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
Regarding the spawn system in 097 Distro

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

Author Message
Yukiko



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

PostPosted: Wed Nov 29, 2006 11:30 pm    Post subject: Regarding the spawn system in 097 Distro Reply with quote

Has anyone been using the spawner from 097 Distro. I am attempting to get it working.

It's in. Compiles and appears to work letting me add realms, regions and groups of NPCs. I can assign groups to the regions but nothing spawns.

Just to give some info about my system, I am running a converted POL 095 scriptbase. I am not using any AI Brain stuff but that shouldn't matter for NPC creation in the spawner I wouldn't think.

If anyone has used the spawner successfully I'd like to hear.

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Wed Nov 29, 2006 11:48 pm    Post subject: Reply with quote

If it is producing any errors, look in pol/log/spawnsystem.log

Author Message
Yukiko



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

PostPosted: Thu Nov 30, 2006 12:14 am    Post subject: Reply with quote

I have seen absolutely no console errors Austin. It's as if it doesn't even try to spawn. No spawnlog file exists.

Author Message
Yukiko



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

PostPosted: Thu Nov 30, 2006 12:17 am    Post subject: Reply with quote

Austin it's not getting to the 'for' loop in spawnCycle.src

Code:

   for ( cur_amount; cur_amount<=max_amt; cur_amount+=1 )
      var spawn_coords := SS_SelectCoordsInArea(coords.x1, coords.y1, coords.x2, coords.y2);
      var z_pos := CInt(GetWorldHeight(spawn_coords.x, spawn_coords.y, realm_name));
      var spawn_object := group_entries[RandomInt(num_entries)+1];
                Broadcast ( "NPC spawning is " + spawn_object);
      var created := CreateNPCFromTemplate(spawn_object, spawn_coords.x, spawn_coords.y, z_pos, 0, realm_name);
      if ( created )
         SS_AddSpawnToRegion(region_name, group_name, created);
      elseif ( created.errortext )
         SS_ReportText("Error: Unable to create ("+spawn_object+") for group ("+group_name+") in region ("+region_name+"). ->"+created.errortext, SPAWN_REPORT_SYSLOG);
      endif
      SleepMS(2);
   endfor



As you can see I put a Broadxast in there and it ain't hitting it.

I'll be the first to admit that the spawn system is very uhm... compartmentalized and is more than I'd want to take on right now.

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Thu Nov 30, 2006 12:47 am    Post subject: Reply with quote

It doesn't output to the console, most stuff doesn't.
Instead of SysLog() they have a report.inc in the packages that handles logging to their own .log file.

Check fileaccess.cfg to make sure everything can write to .log files.

Author Message
Yukiko



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

PostPosted: Thu Nov 30, 2006 1:09 am    Post subject: Reply with quote

Yep. I needed the fileaccess.cfg file. Now I get a spawnSystem log file. Here is the entry that keeps repeating in the file:

[11/29 23:10:46] [pkg/systems/spawnSystem/engines/npcFill/spawncycle.ecl]: Completed spawning of group (cold_animals) in region (fornost).


However, there are no animals being spawned.

Author Message
qrak



Joined: 05 Feb 2006
Posts: 160
Location: Poland

PostPosted: Thu Nov 30, 2006 9:18 am    Post subject: Reply with quote

i've checked that spawner as well. It doesn't spawn at all.

Author Message
Yukiko



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

PostPosted: Thu Nov 30, 2006 4:10 pm    Post subject: Reply with quote

Thanks Grak.
I'm glad I am not the only one.

Author Message
Bjerlk



Joined: 27 Dec 2006
Posts: 13

PostPosted: Sat Dec 30, 2006 12:37 pm    Post subject: Reply with quote

I guess this is fixed. at least it spawns for me...
After some tweaking to get the new .cfgs into the data...

On another note: The gump gets quite unhandable when you have regions or groups more than 20 or so. The list dosnt move to another page. All gets added down and hard to get a look on the content...

Author Message
Yukiko



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

PostPosted: Wed Jan 03, 2007 4:18 am    Post subject: Reply with quote

*nods*
That's about what I found though I couldn't get it to spawn. I am not using the Brain AI NPCs. Maybe I need to have the NPCs in a package to get it to spawn them.

I am still in the market for a decent spawner for multiple maps.

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