Madness Upcoming

Started by Vincent, Sat 11/10/2014 18:22:08

Previous topic - Next topic

Vincent

I have a custom text box.
Where the player can type anything or almost.
The player can type also save or load. The player have only one slot to save his state.

the custom textbox, on activate, have a call function like this.

Code: ags

function TxtBox_OnActivate(GUIControl *control)
{
  process_console();
}


The function process_console work more or less like this.

Code: ags

if (command.StartsWith("save")
{
  SaveGameSlot(1, "saved game");
}

if (command.StartsWith("load")
{
  RestoreGameSlot(1);
}


It work everything good exept of this error after closing the window game.
Error: DeleteSprite: Attempted to free static sprite 103 that was not loaded by the script.

I opened a different thread with the same error that i got yesterday, and i dunno how to solve this..
Someone can suggest me, anything.. ?! may be could be helpful for me...

ps: i'm not using any Dynamic sprite, Drawing surface, overlay, changeview/unlock view commands.
I just upload some sprites in the sprite editor until the 102 sprite.
And the message error say attempted to free static sprite 103 that doesn't exist.
So what he is trying to doing with that ?

I'm doing something wrong when i save / load ?!

Crimson Wizard

Why did you open second thread? You could post in the first, giving more details to this problem.

Frankly, I have no idea why this happens. I doubt that has any connection to opening a file or having a TextBox.
I do not see the rest of your game, it may be anything in there, either in script or in properties.

The only thing I may suggest at this moment is to send either your full game project, or compiled game to me so that I could run the game under debugger and see what is going on inside the program.

Vincent

Hi CrimsonWizard,
i'm sorry that i opened a second thread with the same error.
I simply had to add more details to the old post and not to open a second one, sorry again.
but honestly besides that there are no such details to add.. mortified..



If you can do that i would be very happy, becuase there's something wrong here.
- Still very thank you in advice for you patience with me..

Crimson Wizard

Well, if you could PM me the game project, I will test it to see what happens, because this is a very strange error indeed.
I will make an oath that I won't give your game to anyone :).

Vincent

ahah, thank you very much Crimson Wizard.

i'm trying to update my file to server, so i can send it to you by PM,

Crimson Wizard

#5
Vincent, I've got your project. There's indeed a DynamicSprite, they are being used in the NoiseFilter script module. It is assigned to some GUI, as far as I can tell.

If I disable the "noise", then the error does not occur.

I think it is another variant of this bug in AGS:
http://www.adventuregamestudio.co.uk/forums/index.php?issue=362.0

Vincent

Ciao Crimson Wizard, i'm deeply sorry for this misunderstanding, really.
I did not notice this detail. Yes, i was using the NoiseFilter Module.
I'm still sorry for having disturbed you, but thanks to you now I've finally figured out where the error was specifically.

Thanks again Crimson Wizard for your time.
I hope you have a great day, today


Crimson Wizard

Quote from: Vincent on Sun 12/10/2014 15:16:28
Ciao Crimson Wizard, i'm deeply sorry for this misunderstanding, really.
I did not notice this detail. Yes, i was using the NoiseFilter Module.
I'm still sorry for having disturbed you, but thanks to you now I've finally figured out where the error was specifically.
No problem really (I am not sure what you mean by "disturbing me" :)).
You say that you figured out where error is; so you fixed it in script, or just removed the noise filter? I was not completely sure if it can be fixed in game.

Monsieur OUXX

Quote from: Crimson Wizard on Sun 12/10/2014 14:05:52
I think it is another variant of this bug in AGS:
http://www.adventuregamestudio.co.uk/forums/index.php?issue=362.0

For the record, "regular" people cannot see the bug tracker. I can't.
 

Crimson Wizard

#9
Quote from: Monsieur OUXX on Sun 12/10/2014 16:18:13
Quote from: Crimson Wizard on Sun 12/10/2014 14:05:52
I think it is another variant of this bug in AGS:
http://www.adventuregamestudio.co.uk/forums/index.php?issue=362.0

For the record, "regular" people cannot see the bug tracker. I can't.

"Regular" people can, but those with new extra group (AGSA) can't. This is a known issue, happened to AGS Bakers in the past. Please report to AGA.

Vincent

#10
by that, i was meaning the disturb that you download the file, and then you have inspected it to check the problem.
Disturbing your time.


So, i just went home right now, and in this time I thought about how you might solve the problem, still didn't try.
but happy that i understand where the problem was. :)



SMF spam blocked by CleanTalk