Hello guys, good evening to all.
I got an error message by Ags after closing the window game.
I have two custom functions Save/Load that works good so far in game,
and other two functions that reads files.
function saveStartTime()
{
File* output = File.Open("saved game.dat", eFileWrite);
if (output != null) {
DateTime* dt = DateTime.Now;
int starting_time = dt.RawTime;
output.WriteInt(starting_time);
output.Close();
}
}
function readStartTime()
{
int starting_time = 0;
File* output = File.Open("saved game.dat", eFileRead);
if (output != null) {
starting_time = output.ReadInt();
output.Close();
}
return starting_time;
}
/////////////////////////////////////////////////////
function SaveGame()
{
saveStartTime();
SaveGameSlot(1, "Salva");
}
function LoadGame()
{
readStartTime();
RestoreGameSlot(1);
}
The error message say :
An error has occured. Please contact the game author for support, as this is likely to be a scripting error and not a bug in AGS. (ACI version 3.21.1115)
Error: DeleteSprite: Attempted to free static sprite 103 (that doesn't exist in my sprite manager) that was not loaded by the script.
I didn't use any DynamicSprite, DrawingSurface command at the moment, the room is almost empty..
Someone know how to solve this ?
I've certainly heard about this before...
http://www.adventuregamestudio.co.uk/forums/index.php?issue=362.0
http://www.adventuregamestudio.co.uk/forums/index.php?topic=47064.0
If, as you say, you don't use DynamicSprites at all, this might be a different case of same error.
Quote
An Error Has Occurred!
You are not allowed to view issues of this project.
This is what I get when I click on the first link, CW.
Quote from: Adeel S. Ahmed on Sat 11/10/2014 01:44:00
Quote
An Error Has Occurred!
You are not allowed to view issues of this project.
This is what I get when I click on the first link, CW.
Is "PCA" a new member group? This issue tracker is working in an unusual way: it denies access if at least one group you are in is not given an explicit access right... I added PCA to the rights, but it is better to report this to AGA.
Hi CrimsonWizard, thanks for the reply.
I'm focusing on the two links you send me, someone got problems about creating/deleting a Dynamic Sprite after/before beign used, or calling changeview command..
I'm really so sure that i'm not using any of these commands...
Quote from: Crimson Wizard on Sat 11/10/2014 01:48:34
Quote from: Adeel S. Ahmed on Sat 11/10/2014 01:44:00
Quote
An Error Has Occurred!
You are not allowed to view issues of this project.
This is what I get when I click on the first link, CW.
Is "PCA" a new member group? This issue tracker is working in an unusual way: it denies access if at least one group you are in is not given an explicit access right... I added PCA to the rights, but it is better to report this to AGA.
PCA is the love child of Baron's idea (http://www.adventuregamestudio.co.uk/forums/index.php?topic=50930.0). We are supposed to be a secret group. And I still can't access the issue tracker. I'll report about it to AGA after confirming with other members of my group. Sorry for hijacking this thread, :)
Quote
Sorry for hijacking this thread, :)
ah, it's ok. thank you.