Quote: "Happy to report that r721 has allowed the "savegame" command to be used by itself without the need of the "pause" and "resumegame" commands.
Again, Blackfox's work-around was brilliant and will work until the official version is released and there won't be any problems with scripts that do use them after it's released."
I took the "fix" and ported into our source. Here are the results.
The save script attached to the fairy. Notice I removed the "pausegame" from "state=1" line, removed the "resumegame" from "state=2", and put "savegame" at "state=1".
saveprogress.fpi
;Artificial Intelligence Script
;By Friskon(lotgd) from Making-Videogames.Net
desc = fairy Save Progress
;Triggers
:state=0:animate=1,entitysetimmune=1,hideshadow=1
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\fatasave1.dds,hudname=fatasave,hudmake=display,hudhide=1,state=1
:state=1,plrdistfurther=60:hudunshow=fatasave
:state=1,plrdistwithin=50:hudshow=fatasave,rotatetoplr
:state=1,plrdistwithin=50,keypressed=21 1:hudunshow=fatasave,savegame,state=2
:state=2:none
;End of Script
Screenshot result...
Approach the fairy and hud displays.
Save dialogue box opens up.
After saving, decided to load that save slot.
Slot 1 saved game reloaded and I can continue.
The fix applied works great. Thank you Terry and Dave for implementing this.
Additional
Now there is an anomaly during this process that could arise for some during the process. Here is an example.
I write the script as follows:
;Artificial Intelligence Script
;By Friskon(lotgd) from Making-Videogames.Net
desc = fairy Save Progress
;Triggers
:state=0:animate=1,entitysetimmune=1,hideshadow=1
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\fatasave1.dds,hudname=fatasave,hudmake=display,hudhide=1,state=1
:state=1,plrdistfurther=60:hudunshow=fatasave
:state=1,plrdistwithin=50:hudshow=fatasave,rotatetoplr
:state=1,plrdistwithin=50,keypressed=21 1:hudunshow=fatasave,state=2
:state=2:savegame,state=3
;End of Script
When I enter the game, I see the hud and press Y. The Save game dialogue opens up and I select slot 1 as normal. Then I decide to load the game and choose slot 1. After the load, here is the anomaly. The Save game dialogue appears a second time with a distortion.
As you can see in the next shot, the distortion moves as I move the mouse.
I press ESC to close the box, then ESC>Load Game to attempt the load again. After slot 1 loads, the Save game dialogue opens up with no distortion.
Explanation-
The reason is because of
how the script was written. By scripting the script with this...
:state=1,plrdistwithin=50,keypressed=21 1:hudunshow=fatasave,state=2
:state=2:savegame,state=3
..instead of doing it this way...
:state=1,plrdistwithin=50,keypressed=21 1:hudunshow=fatasave,savegame,state=2
:state=2:none
...the anomaly will appear (at least for us in v1.17). I'm not saying it will happen to anyone, but if it does, check your script. In other words, there are times when using a command in a script will cause issues because you have it somewhere it does not like. By moving the command on a line and ending the script (like I did above), the anomaly never appears.
There's no problem that can't be solved without applying a little scripting.