Hey Strazer, I started a project in early 2006, and to various distractions, have not picked up on it since then. I had used your excellent module, which was working like a dream, then I upgraded to ags 2.72 and opened the file to continue work and all of a sudden I get an error that says:
There was an error compiling your script, the problem was in "CharacterRegionSounds".
[Error line 31] undefined symbol, "GetGameParameter"
Line 31 is if ((loop < 0) || (loop >= GetGameParameter(GP_NUMLOOPS, view, 0, 0))) AbortGame("Invalid loop specified: '%d'. Use numbers 0 to %d.", loop, GetGameParameter(GP_NUMLOOPS, view, 0, 0) - 1)
can anyone tell me whats gone wrong? I know the new version of ags has moved my sounds to a folder, I'm just unsure how this has affected the code
Edit: Using the the BackwardsCompatible Module, I solved the initial problem, now the game compiles, but crashes before it can run, presenting me with the error:
Error: run_rep_Exec: error -6 (Error: Array index out of bounds (Index: 4, 0..3) in CharacterRegionSounds (line 56)
)Running Function "Repeatedly_Execute_Always"
Any help or insight would be greatly appreciated