PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Type mismatch in distro spawnSystem

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
Yazaki



Joined: 18 Mar 2007
Posts: 4

PostPosted: Sun Mar 18, 2007 5:32 pm    Post subject: Type mismatch in distro spawnSystem Reply with quote

In both of the spawn engines, itemFill and npcFill, there is a case mismatch on line 27;

Code:
   var max_amt := group_settings.max_amt;
   var cur_amount := SS_GetSpawnsInRegionGroup(region_name, group_name).Size();

   for ( cur_amount; cur_amount<=max_amt; cur_amount+=1 )


Where max_amt is returned as a string instead of integer and the following for sentence is completely ignored.

Author Message
tekproxy
Distro Developer


Joined: 06 Apr 2006
Posts: 350
Location: Nederland, Texas

PostPosted: Sun Mar 18, 2007 10:00 pm    Post subject: Reply with quote

Added in GetConfigInt, so that should fix the problem. Thanks! Very Happy

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1080
Location: Southern Central USA

PostPosted: Sun Mar 18, 2007 10:23 pm    Post subject: Reply with quote

Yazaki, was that error what was causing the spawn system to not spawn anything? Cause when I tried to use it it wasn't working.

Author Message
Yazaki



Joined: 18 Mar 2007
Posts: 4

PostPosted: Mon Mar 19, 2007 2:29 am    Post subject: Reply with quote

Yes it was the problem causing it to not spawn anything. Works fine now thoo.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1080
Location: Southern Central USA

PostPosted: Tue Mar 20, 2007 2:19 am    Post subject: Reply with quote

Oh Goody!!!
*rubs hands together gleefully*
Now atleast folks can have a working spawner.
I however am using a different system now thanks to... well he knows who he is.
*grins*

Author Message
Haos



Joined: 01 Mar 2007
Posts: 25

PostPosted: Wed Mar 21, 2007 3:28 pm    Post subject: Reply with quote

Thx guys, the spawns seem to work now.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty