PenUltima Online

It is currently Sun Sep 07, 2008 12:12 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Regarding the spawn system in 097 Distro
PostPosted: Wed Nov 29, 2006 7:30 pm 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 7:48 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 410
Location: San Diego, California
If it is producing any errors, look in pol/log/spawnsystem.log

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 8:14 pm 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
I have seen absolutely no console errors Austin. It's as if it doesn't even try to spawn. No spawnlog file exists.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 8:17 pm 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 8:47 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 410
Location: San Diego, California
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.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 9:09 pm 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 5:18 am 
Offline

Joined: Sun Feb 05, 2006 4:35 pm
Posts: 160
Location: Poland
i've checked that spawner as well. It doesn't spawn at all.

_________________
Shutdown();


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 12:10 pm 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
Thanks Grak.
I'm glad I am not the only one.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:37 am 
Offline

Joined: Wed Dec 27, 2006 12:00 pm
Posts: 13
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...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 12:18 am 
Online

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1128
Location: Southern Central USA
*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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl