thoth23 / fpscreatorengine

Automatically exported from code.google.com/p/fpscreatorengine
1 stars 0 forks source link

save/load issue with ambience. When ambience changes and then game saved, loaded ambience reverts back to setuplevel.fpi value. #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. unzip files into fps creator folder
2. build level and run level
3. move player into trigger zone, save game and then load game

What is the expected output? What do you see instead?
The ambience should be "5" but instead it is, I beleieve, 25 which is in 
setuplevel.fpi

What version of the product are you using? On what operating system?
v118 beta 10 OS = W7

Please provide any additional information below.
I also have attached a video running the built game. I also have attached in 
the files folder the fpg so that you can use that when building game.

Everything is set to highest levels with full shaders on.

Original issue reported on code.google.com by terryr...@gmail.com on 18 Mar 2011 at 9:27

Attachments:

GoogleCodeExporter commented 9 years ago
Instead of downloading the video click the youtube link below:

http://www.youtube.com/watch?v=S-5GZ3UDBfQ

Original comment by terryr...@gmail.com on 18 Mar 2011 at 9:33

GoogleCodeExporter commented 9 years ago
Apparently this only happens with levels with NO lights. Also, it does not 
revert back to the ambience value in the setuplevel.fpi. 

It is only effected when there are no lights and the following code is used in 
source

_lighting_postdefaults:

rem if no lights, set ambience to full
tokay=0
array index to top infinilight()
while array index valid(infinilight())
 if infinilight().islit=1
  tokay=1
 endif
 next array index infinilight()
 inc currentindex
endwhile
if tokay=0 and guivisualsettings.ambiencescripted=0
    rem no lights, use full ambience (zero means no FPI aetting, go for defaults)
    if guseeffectonscenesstate=1
        guivisualsettings.ambience=25
    else
        guivisualsettings.ambience=75
    endif
endif
forceambientlightsetting=10

return

This probably needs to be avoided if there is saved ambience level. I'll give a 
shot at fixing it.

Original comment by terryr...@gmail.com on 30 Mar 2011 at 3:09

GoogleCodeExporter commented 9 years ago
Terry's fix added to latest code for next beta.

Original comment by LeeBamberTGC@gmail.com on 5 Apr 2011 at 12:42