ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ACS problem

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing
View previous topic :: View next topic  
Author Message
theDooMguy
On a Rampage!


Joined: 07 Feb 2009
Location: Installing ZDaemon on the school computers

PostPosted: Sat Mar 21, 2009 10:29 pm    Post subject: ACS problem Reply with quote

I'm working on a map with an scripted event similar to the one on dietest18 map 30, on the "hive" area. Basically a bunch of monsters spawn and once they are all dead different monsters spawn in. the problem is that while testing, right after the demons spawn in, I get runaway script 4 terminated. I can't really see anything that could be causing this.

here's that script

script 4 (void)
{
int n = 100;
sector_setcolor(11,200,0,0);
delay(50);

thing_spawn(8,T_imp,0,9);

while(n>0)
{
n = thingcount(T_IMP,9);
delay(100);
}
delay(50);

thing_spawn(8,T_demon,0,10); <---ZD terminates right after this
delay(50);
n = 100;

while(n>5);
{
n = thingcount(T_DEMON,10);
delay(100);
}
delay(50);

thing_spawn(8,T_cacodemon,0,11);
delay(50);
n = 100;
delay(50);

while(n>0);
{
n = thingcount(T_CACODEMON,11);
delay(100);
}
delay(50);
sector_setcolor(11,0,200,0);
}
Back to top
View user's profile Send private message
adeon
has entered the game!


Joined: 22 Feb 2009

PostPosted: Sat Mar 21, 2009 11:40 pm    Post subject: Reply with quote

Could you upload the wad?
Back to top
View user's profile Send private message
theDooMguy
On a Rampage!


Joined: 07 Feb 2009
Location: Installing ZDaemon on the school computers

PostPosted: Sat Mar 21, 2009 11:41 pm    Post subject: Reply with quote

sure, I'll get that up in just a minute

EDIT: and here it is

http://wadhost.fathax.com/files/SG_levels.rar

p.s. hope you have winRAR Wink
Back to top
View user's profile Send private message
ZombieMachine
Bloatware!


Joined: 12 Jan 2009
Location: Im not telling.

PostPosted: Sun Mar 22, 2009 1:19 am    Post subject: Reply with quote

nice wad. You got a few missing texture errors.
Back to top
View user's profile Send private message MSN Messenger
theDooMguy
On a Rampage!


Joined: 07 Feb 2009
Location: Installing ZDaemon on the school computers

PostPosted: Sun Mar 22, 2009 2:31 am    Post subject: Reply with quote

thanks for the copliment-and the error check Laughing
I'll go check that out

EDIT: oh, I see what you mean. Other than the first one, I meant to delete that inner sector that causes those missing textures. fixed it on my version
Back to top
View user's profile Send private message
Ronald
Rontard


Joined: 17 Aug 2005
Location: Netherlands Clan: [QnB]

PostPosted: Sun Mar 22, 2009 9:01 am    Post subject: Reply with quote

Code:
thing_spawn(8,T_demon,0,10); <---ZD terminates right after this
delay(50);
n = 100;

while(n>5);                                                  [B]INSERT DELAY HERE[/B]
{
n = thingcount(T_DEMON,10);
delay(100);
}
delay(50);


I think it's because your variable gets doubled up here. But there are far easier methods to achieve the behaviour you like, and also more flexible. Contact me in Zdaemon IRC is you would like to know more about it ([QnB]Ronald). Also a little warning. Servers will hate you when you try to spawn more than 60 monsters at one time.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
BestOfTheWorst
Unstoppable!


Joined: 02 Jun 2006

PostPosted: Sun Mar 22, 2009 9:34 am    Post subject: Reply with quote

take out the semicolon after the second and third while.

also you shouldn't name your wad "epic.wad", as there is already a epic.wad, and people who use getwad are likely to download the wrong wad. (not to mention people who already have eternals epic.wad Surprised)
Back to top
View user's profile Send private message
theDooMguy
On a Rampage!


Joined: 07 Feb 2009
Location: Installing ZDaemon on the school computers

PostPosted: Sun Mar 22, 2009 4:37 pm    Post subject: Reply with quote

k I'll try the semicolon thing.

and I'll rename it. I really just threw on the first name that came to mind, Didn't know there was already an epic.wad either.

EDIT: well getting rid of the semicolons worked, but I would like to hear about Ronald's method too, so I'll head to irc in just a minute.
Good to know I shouldn't be spawning so many monsters at once on a server. I guess another thing I should keep in mind is that i'm testing this on a very fast computer (quad-core 3 GHz processer w/ 3.2 gigs of RAM Shocked ) so maybe when it's done i'll test it on my old computer and see how it runs there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group