Regarding the spawn system in 097 Distro

Open discussion forum. For topics that do not fit anywhere else.
Locked
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Regarding the spawn system in 097 Distro

Post by Yukiko »

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.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

If it is producing any errors, look in pol/log/spawnsystem.log
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

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

Post by Yukiko »

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

Code: Select all

	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.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

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.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

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.
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Post by qrak »

i've checked that spawner as well. It doesn't spawn at all.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Thanks Grak.
I'm glad I am not the only one.
Bjerlk
New User
Posts: 13
Joined: Wed Dec 27, 2006 12:00 pm

Post by Bjerlk »

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...
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

*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.
Locked