Page 1 of 1

Regarding the spawn system in 097 Distro

Posted: Wed Nov 29, 2006 7:30 pm
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.

Posted: Wed Nov 29, 2006 7:48 pm
by Austin
If it is producing any errors, look in pol/log/spawnsystem.log

Posted: Wed Nov 29, 2006 8:14 pm
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.

Posted: Wed Nov 29, 2006 8:17 pm
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.

Posted: Wed Nov 29, 2006 8:47 pm
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.

Posted: Wed Nov 29, 2006 9:09 pm
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.

Posted: Thu Nov 30, 2006 5:18 am
by qrak
i've checked that spawner as well. It doesn't spawn at all.

Posted: Thu Nov 30, 2006 12:10 pm
by Yukiko
Thanks Grak.
I'm glad I am not the only one.

Posted: Sat Dec 30, 2006 8:37 am
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...

Posted: Wed Jan 03, 2007 12:18 am
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.