Jump to content

[FIXED] Water Redness


gameboy
 Share

Recommended Posts

 Today, I tested the latest version of SVN22302. When I started the game, there was a problem message on the main interface of the game: ‘WARNING: SDL_Set Windows Gamma Ramp failed.’

BTW: When I rotated the camera, I found the red box, which had never appeared before.    The map I used was the Mediterranean coast.

imageproxy.php?img=&key=4309c155facf0c1f

 

screenshot0012.png

screenshot0013.png

screenshot0016.png

Edited by gameboy
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Hey gameboy, that's related to me merging D359 yesterday.

You can fix it by de-activating fancy effects as it turns out I can reproduce this (didn't notice yesterday, unluckily).

 

Edit - I'm interested in other people reporting SQL/GL error, by the way, as testing these shaders things is annoying at best.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Your old friend is busy. Please have patience. In the meantime, you can test the proposed fix here: https://code.wildfiregames.com/D1919. If it works, then we can include it.

Edit: At 10:57 UTC today, the patch was committed. Your problem should now be fixed. Don't forget to update your local copy.

Edited by s0600204
Update with latest status.
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

@wraitii  @Angen I have found the reason why this warning always appears: 

  Reveal hidden contents

 

91.png

Link to comment
Share on other sites

(./source/ps/VideoMode.cpp, line 247)

Error appears self inflicted - this is the same code block as it appears in our code repository:

	u16 ramp[256];
	SDL_CalculateGammaRamp(g_Gamma, ramp);
	if (SDL_SetWindowGammaRamp(m_Window, ramp, ramp, ramp) < 0)
		LOGWARNING("SDL_SetWindowGammaRamp failed");

Looking at the history of the file, the line in question has never read SDL_CalculateRamp. Thus, this error appears to be caused by local modification by user.

Neither SDL_CalculateGammaRamp nor SDL_CalculateRamp appear anywhere else in the source files.

Link to comment
Share on other sites

  On 30/05/2019 at 5:48 AM, gameboy said:

@Itms  @Stan`

I have completely updated all the files in your way, but the warning message still appears:

WARNING: SDL_Set Windows Gamma Ramp failed

 

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/hdr.xml"

 

ERROR: Failed to load effect'postproc/hdr'

Expand  

Looks like you sir uded one of @aeonios's patch as a mod :) And forgot to either disable the mod or revert it.

Link to comment
Share on other sites

@Stan`

I didn't use anyone's MOD。

BTW: WARNING: SDL_Set Windows Gamma Ramp failed   This warning has disappeared.

These two mistakes still exist:

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/hdr.xml"

 

ERROR: Failed to load effect'postproc/hdr'

 

They still appear in SVN.

 

20190530170207.png

Edited by gameboy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...