RunAGSGame(); problems

Started by MrColossal, Thu 05/06/2003 08:37:50

Previous topic - Next topic

MrColossal

hello

my name is eric and i have a problem

so i used runagsgame and i compiled both games with the new ags and when i run it and it goes to the new ags game whenever there is displayspeech it stops

it doesn't freeze cause the music still plays and alt x still works but the talk animation doesn't play either

odd

if i hit alt x it tells me that it was stopped on the line for displayspeech

if i play the game i'm running as a seperate game, it runs fine

that's about it

any ideas?

eric
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Erica McLane

Can you show the script where RunAGSGame and DisplaySpeech are? It can be an error in the script.

Pumaman

I'm not sure really, I admit I haven't really tested RunAGSGame that extensively, but I haven't found speech to cause a problem in anything I've tested.

Hmm I don't know what to suggest really, a last resort would be to send me both games so I can find the problem but that's rather a lot of hassle.

Spyros

RR3 and the BOS COMPLETE game I'm making use RunAGSGame with no problem. But they use an older version of AGS.

MrColossal

#4
that would be a lot of work...

poop, this is stinky

and erica the script is just RunAGSGame("ac2game.ags",0,0);

and then it stops on

DisplaySpeech(EGO, "Look at them...");

and if i remove that line it gets locked up on the next bit of speech

i'll try a test game now

ok so i did a test game with roger and no animations and it worked fine

then i tried something different in my game and it appears to not want to run any animations so i guess it freezes on the talk animation

maybe someone else can test it?

ooook, so i had scid test something for me, he made 2 games both with displayspeech and talk animations, then used runagsgame and it worked, i did the same, with two new games, and it worked.

so i'm completely stumped totally 100%... i even had the game point to it's self and it played no animation

eric
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

SSH

#5
I would guess that maybe somehow your conversion of the second game to the latest version of AGS didn't work 100%... maybe try doing it again in a fresh copy and test it on its own?
12

Pumaman

What sort of size are the games, eric?

RunAGSGame is a very complicated feature and it's not really surprising that it works with simple games but has trouble with more complex ones - it may well be a bug that I'll need a copy of the game to find.

MrColossal

well, size as in bytes, they are both about 2.5 megabytes and one is just gonna get bigger.

if i were to send them to you i have them zipped now and they're about 1 meg

i can upload them to sylpher.com if you want to grab them anytime?

eric
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Pumaman

Sure thing, I think it's going to be the only way to resolve this problem I'm afraid.

MrColossal

"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Pumaman

Ah, thanks for sending that.

It appears there's a bug with RunAGSGame in that it doesn't un-pause the game, so if the old game was paused, the new one is too.

That's fixed here:
http://www.agsforums.com/acwin.zip

which should solve your problem.

MrColossal

so... happy

thank you very much CJ
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

SMF spam blocked by CleanTalk