Page 1 of 1

Does spawn.dfn actually support words > 0?

Posted: Wed Sep 27, 2006 7:41 pm
by supremoleet
Initially I observed that no matter what I did to spawn.dfn, it would not spawn any NPCs in Ilshenar. I even used a spawn.dfn file which contained only the following:

Code: Select all

[REGIONSPAWN 0]
{
NAME=Ilshenar healer
NPCLIST=ilshhealer
MAXNPCS=3
X1=1502
Y1=614
X2=1512
Y2=624
WORLD=2
MINTIME=1
MAXTIME=2
CALL=1
}
I went to that location -- nothing showed up. Restarted server, reloaded DFNs, [respawn, you name it -- no luck. It appeared to me that it just didn't support setting the world to 2.

But then I noticed none of the areas I added to the spawn.dfn file for regions on Felucca (0) were working either. Their syntax is copied directly from the existing entries from the community spawn file. I don't understand why they wouldn't work. I have a total of 686 regions set up in this file (regions 0 - 685). Is this too big? The file itself is 107kb. I have made sure that all region numbers are sequential and none are skipped.

I've tried terminating the file with and without ending carriage return. I've tried tweaking all sorts of things. I can't understand why this isn't working properly. An example of some of my other regions:

Code: Select all

[REGIONSPAWN 677]
{
NAME=Ilsh wilderness
NPCLIST=ilshwild
MAXNPCS=3
X1=817
Y1=1222
X2=849
Y2=1250
WORLD=2
MINTIME=5
MAXTIME=15
CALL=1
}
[REGIONSPAWN 678]
{
NAME=Ilsh wilderness
NPCLIST=ilshwild
MAXNPCS=6
X1=434
Y1=815
X2=542
Y2=848
WORLD=2
MINTIME=5
MAXTIME=15
CALL=2
}
[REGIONSPAWN 679]
{
NAME=Ilsh wilderness
NPCLIST=ilshwild
MAXNPCS=4
X1=509
Y1=311
X2=559
Y2=379
WORLD=2
MINTIME=5
MAXTIME=15
CALL=1
}
and

Code: Select all

[REGIONSPAWN 682]
{
NAME=T2A Undead City
X1=5187
Y1=3597
X2=5253
Y2=3688
WORLD=0
NPCLIST=strongundeadlist
MAXNPCS=10
MINTIME=5
MAXTIME=15
CALL=3
}
[REGIONSPAWN 683]
{
NAME=Ophidian Spawns
X1=5406
Y1=2540
X2=5807
Y2=2836
WORLD=0
NPCLIST=taophids
MAXNPCS=25
MINTIME=5
MAXTIME=15
CALL=4
}
[REGIONSPAWN 684]
{
NAME=Ophidian Spawns
X1=5414
Y1=2838
X2=5627
Y2=2988
WORLD=0
NPCLIST=taophids
MAXNPCS=10
MINTIME=5
MAXTIME=15
CALL=2
}
[REGIONSPAWN 685]
{
NAME=Ophidian Spawns
X1=5304
Y1=2487
X2=5402
Y2=2597
WORLD=0
NPCLIST=taophids
MAXNPCS=4
MINTIME=5
MAXTIME=15
CALL=1
}
The lists all exist and appear to be valid. Are there any known issues with spawn.dfn? Am I forgetting something? Heh... any help is greatly appreciated, and if someone is willing to look over the file for issues, I'd gladly send it for review.

Posted: Wed Sep 27, 2006 8:50 pm
by Grimson
There seems to be a bug regarding the WORLD tag. It spawns always in world 0, no matter to what the tag is set.

Edit: This bug is now fixed on CVS.

As for the other spawnregions, is there any error message when UOX3 reads them in? Which version of UOX3 are you using and on what OS?

Posted: Wed Sep 27, 2006 10:20 pm
by supremoleet
I'm using 0.98-3.7g under Gentoo Linux 2.6.16-r13. If I take the community worldfile untouched, it works fine. Perfectly actually (at least as far as I can tell).

The edited one appears to work except for the regions I put into place. When I get home, I'm going to try wiping my world files and starting with a modified spawn.dfn on a fresh world. That way I'll know for sure whether or not any part of the modified file is working. I'm fairly sure the original parts of it did, but I'll need to double-check.

There were no error messages on the console that I saw, and I definitely converted the file to linux end-of-line format.

Anyhow, I'll have to post a follow up tonight to confirm whether or not any part of the modified file works. Ilshenar and the regions I set up in Trinsic definitely did not.

Posted: Wed Sep 27, 2006 10:26 pm
by Grimson
supremoleet wrote: Anyhow, I'll have to post a follow up tonight to confirm whether or not any part of the modified file works. Ilshenar and the regions I set up in Trinsic definitely did not.
I'm not shure how fast anonymus CVS catches up, so might have to add this change by yourself to the sources and rebuild UOX3, to let NPCs spawn in the correct world.

http://openuo.cvs.sourceforge.net/openu ... 23&r2=1.24

Posted: Thu Sep 28, 2006 5:12 am
by supremoleet
Okay I applied the change, everything looks like it's working properly now. The Trinsic issue was actually a stupid typo/oversight on my part.

Thank you!