I recently decided to stop using the stable release 0.98r004 and started using the pseudo stable release 0.99. I have been making the necessary modifications to update my code to work with this version of CS. I am running into a couple of problems though. I am receiving the following messages in the console when I launch the application. This does not crash my application. It still runs, but the top half of the view doesn't get displayed.
crystalspace.maploader.parse.region:
<renderpriorities> is no longer supported!
[node: world]
crystalspace.graphics3d.shader.glcg:
CG ERROR : The compile returned an error.
(39) : warning C7006: uninitialized variable "A2F.surface.texture"
used
(169) : fatal error C9999: sampler parameter to texture function not a uniform sampler
These messages were not generated when I was using the stable release. I decided to recompile my application using the flarge map and I did not get the renderpriorities message.
This is the <renderpriorities> section of my XML for my world:
<!-- render priority specification -->
<renderpriorities>
<priority name="sky">
<level>1</level>
<sort>NONE</sort>
</priority>
<priority name="wall">
<level>2</level>
<sort>NONE</sort>
</priority>
<priority name="object">
<level>3</level>
<sort>NONE</sort>
</priority>
<priority name="alpha">
<level>4</level>
<sort>BACK2FRONT</sort>
</priority>
</renderpriorities>
I did not see much difference between that and what is in the definition for the flarge map.
Also, when I build my solution I receive the following warnings.
c:\cs\include\csutil\win32\csosdefs.h(387) : warning C4996: 'getenv' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(483) : see declaration of 'getenv'
Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\cs\include\csutil\win32\csosdefs.h(389) : warning C4996: 'getenv' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(483) : see declaration of 'getenv'
Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
g_player.cpp
g_playermovement.cpp
c:\cs\include\csutil\win32\csosdefs.h(387) : warning C4996: 'getenv' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(483) : see declaration of 'getenv'
Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\cs\include\csutil\win32\csosdefs.h(389) : warning C4996: 'getenv' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(483) : see declaration of 'getenv'
Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
g_view.cpp
Any ideas on how to eliminate these warnings from being generated other than changing the verbosity of the compiler?
Thanks,
willjm
Version of CS: Pseudo Stable Release (0.99 from 27 January 2006)
Version of winlibs package (if on windows): CrystalSpace Win32 libraries 0.99r0_018
Operating system: Win 2K
Compiler: Microsoft Visual Studio 2005
Video card: MOBILITY RADEON 9000 DDR x86/SSE2 (vendor: ATI Technologies Inc.)
Driver: atioglxx.dll 6.14.10.3842