Page 1 of 2
UOX3 on linux
Posted: Tue Jul 01, 2014 9:30 pm
by Lynchpin
Hi, I can get uox3 to run fine on CentOS 6 (basically redhat), but I can't seem to get it to populate spawns. I've altered the spawn.dfn using the spawn map editor and the community build .dfn. I'm running client 7.0.15.1; server muls match it. What am I doing wrong? The documentation is kinda all over the place.
Re: UOX3 on linux
Posted: Tue Jul 01, 2014 9:35 pm
by Lynchpin
BTW, do I have to insert the .bmp from the spawn region editor back into the mul? Or does it add spawns automatically? that may be where my issue is.
Re: UOX3 on linux
Posted: Fri Jul 04, 2014 8:53 pm
by Xuri
Sorry for the slow reply! The only thing necessary for spawns should be the spawn.dfn file, the bmp is just used for the spawn region editor. There are no warnings or errors showing up in the UOX3 console during startup/when spawning occurs? You can trigger spawns manually using the 'REGSPAWN ALL command in-game, or through the UOX3 console (press * to unlock the console followed by ? to see the menu).
Re: UOX3 on linux
Posted: Fri Jul 04, 2014 9:55 pm
by Lynchpin
That's the thing, I generated a spawn.dfn using both spawn map utility and the community made spawn one. Regspawn in game gives an error... sec, starting it up. I see no errors during startup, whatsoever
Code: Select all
UOX Server start up!
| Welcome to Ultima Offline eXperiment 3 v0.99.2b
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Processing INI Settings [done]
| Initializing and creating class pointers...
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Starting JavaScript Engine....
| JavaScript engine startup complete.
o------------------------------------------------------------------------------------------------------------------------------------------------------------oo------------------------------------------------------------------------------------------------------------------------------------------------------------o| Loading server scripts...
| o Clearing AddMenuMap entries(0)
|
| ./dfndata/items/containers/n./dfndata/items/gmmenu/n./dfndata/items/deeds/n./dfndata/items/magic/nbuilding/walls/ndecs/plants/nbuilding/decs/nbuilding/furniture/nbuilding/floors/n./dfndata/items/building/ngear/weapons/narmor/metal_armor/narmor/leather_armor/narmor/other_armor/ngear/armor/ngear/clothing/n./dfndata/items/gear/n./dfndata/items/itemlists/n./dfndata/items/houseaddons/n./dfndata/items/misc/nskills/resources/nskills/tools/nskills/misc/n./dfndata/items/skills/nSection items : 7156 entries [done]
| Section npc : 514 entries [done]
| Section create : 802 entries [done]
| Section regions : 157 entries [done]
| Section misc : 586 entries [done]
| Section skills : 71 entries [done]
| Section location : 143 entries [done]
| Section menus : 11 entries [done]
| Section spells : 64 entries [done]
| Section newbie : 62 entries [done]
| Section titles : 4 entries [done]
| Section advance : 10 entries [done]
| Section house : 105 entries [done]
| Section colors : 29 entries [done]
| Section spawn : 0 entries [done]
| Section html : 5 entries [done]
| Section race : 22 entries [done]
| Section weather : 9 entries [done]
| Section harditems : 17 entries [done]
| Section command : 5 entries [done]
| Section msgboard : 5 entries [done]
| Section carve : 97 entries [done]
| Section creatures : 400 entries [done]
| Section maps : 48 entries [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Loading JS Scripts
| o Loaded 120 scripts from section SCRIPT_LIST
| o Loaded 55 scripts from section COMMAND_SCRIPTS
| o Loaded 2 scripts from section MAGIC_SCRIPTS
| o Loaded 17 scripts from section SKILLUSE_SCRIPTS
| o Loaded 0 scripts from section PACKET_SCRIPTS
| o Loaded 2 scripts from section CONSOLE_SCRIPTS
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Loading skill advancement [done]
| Loading dictionaries...
| Dictionary.UNK [loaded]
| Dictionary.ZRO [loaded]
| Dictionary.ENG [loaded]
| Dictionary.FRE [loaded]
| [done]
| Loading teleport [done]
| Loading GoPlaces [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Preparing to open *.mul files...
| (If they don't open, fix your paths in uox.ini or filenames in maps.dfn)
| ./muldata/map0.mul(/map0LegacyMUL.uop) [done]
| ./muldata/statics0.mul [done]
| ./muldata/staidx0.mul [done]
| ./muldata/mapdif0.mul [done]
| ./muldata/stadif0.mul [done]
| ./muldata/mapdifl0.mul [done]
| ./muldata/stadifi0.mul [done]
| ./muldata/stadifl0.mul [done]
| ./muldata/map1.mul(/map1LegacyMUL.uop) [done]
| ./muldata/statics1.mul [done]
| ./muldata/staidx1.mul [done]
| ./muldata/mapdif1.mul [done]
| ./muldata/stadif1.mul [done]
| ./muldata/mapdifl1.mul [done]
| ./muldata/stadifi1.mul [done]
| ./muldata/stadifl1.mul [done]
| ./muldata/map2.mul(/map2LegacyMUL.uop) [done]
| ./muldata/statics2.mul [done]
| ./muldata/staidx2.mul [done]
| ./muldata/mapdif2.mul [done]
| ./muldata/stadif2.mul [done]
| ./muldata/mapdifl2.mul [done]
| ./muldata/stadifi2.mul [done]
| ./muldata/stadifl2.mul [done]
| ./muldata/map3.mul(/map3LegacyMUL.uop) [done]
| ./muldata/statics3.mul [done]
| ./muldata/staidx3.mul [done]
| ./muldata/map4.mul(/map4LegacyMUL.uop) [done]
| ./muldata/statics4.mul [done]
| ./muldata/staidx4.mul [done]
| ./muldata/map5.mul(/map5LegacyMUL.uop) [done]
| ./muldata/statics5.mul [done]
| ./muldata/staidx5.mul [done]
| ./muldata/tiledata.mul [done]
| Caching Multis.... [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Loading custom ore data [done]
| Loading creation menus [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Loading Spawn Regions [done]
| Loading Regions [done]
| Loading Races [done]
| Loading Weather [done]
| Loading Commands
| o Loading command levels
| [done]
| Loading World now 100% [done]
| ASCII world loaded in 0.19sec
| Loading Guilds [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Clearing all trades [done]
| Initializing multis [done]
| Initializing Jail system [done]
| Initializing Status system [done]
| Loading custom titles [done]
| Loading temporary Effects [done]
| Loading creatures [done]
| Starting World Timers [done]
o------------------------------------------------------------------------------------------------------------------------------------------------------------o| Compiled on Nov 2 2012 (23:02:16)
| Compiled by The UOX3 DevTeam
Going to log in server and try regspawn again, this is a fresh install.
Re: UOX3 on linux
Posted: Fri Jul 04, 2014 10:04 pm
by Lynchpin
Regspawn all errors: Failed to spawn any new creatures or items in 0 regions.
Re: UOX3 on linux
Posted: Fri Jul 04, 2014 11:11 pm
by Lynchpin
I just thought of something, although I'd doubt it'd the issue, never know. I use razor and/or steam to connect to my server. The client side files match the server - do I have to decrypt the files server side?
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 4:21 am
by Xuri
Hm that shouldn't matter. Could you upload the spawn.dfn file you're using as an attachment to this forum, so I can take a look? Alternatively, give me a private link if you don't want to make the file public.
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 4:42 am
by Lynchpin
sure thing
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 4:44 am
by Lynchpin
errr...its not attaching.
its the spawn.dfn cfrom community build; nothing edited on it whatsoever
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 5:03 am
by Lynchpin
i have a couple other VMs at my disposal too, i might wipe and restart on a different one at some point in case its an environment bug
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 6:32 am
by Lynchpin
OK, tried it on a fresh VM with same OS and similar environment. Connecting with client gets "The client could not attach to the game server. It must have been taken dow, please wait a few minutes and try again." - but its up and running. I've had this happen on the primary one before; all I did was wait and it worked. Probably the case here, but mentioning it, regardless.
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 6:45 am
by Lynchpin
Yup, same thing. No spawns. Failed to spawn items or npcs etc.
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 1:28 pm
by Xuri
Urgh. Apparently dfn extension for for attached files is not allowed.

Either zip it up or copy & paste a couple of regions from the top of the spawn.dfn directly in a post instead?
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 5:59 pm
by Lynchpin
yup yup here it is
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 10:09 pm
by Xuri
Alright, I tested your spawn.dfn here on my test-setup (Windows 7), and it seems to work fine. It spawned 10000+ NPCs after I had used the 'REGSPAWN ALL command a couple of times. So the issue lies either with Linux builds or with the map-files (if UOX3 can't find a valid maptile to spawn on, it shouldn't spawn at all).
However, one more thing you could try if you haven't already: Use
dos2unix or similar to convert the spawn.dfn file from DOS to UNIX format. I can't test this myself at the moment, though, as I have no Linux environment set up.
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 10:18 pm
by Lynchpin
just ths spawn.dfn file? maps are fine, i think; unless theres something missing. Appears fine when I laod the server, however. I'll give it a shot; thanks for the help. I'll give a head's up when I'm done
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 10:56 pm
by Lynchpin
OK, admittedly I'm a relative noob to linux. Not entirely certain how to use this.
Would I have to run it on all .dfns? Most of them work, jsut a couple gm commands don't seem to work right.
Re: UOX3 on linux
Posted: Sat Jul 05, 2014 11:20 pm
by Lynchpin
slowly figuring it out. doesn't appear to de any different characters if i vi it on the terminal.
Re: UOX3 on linux
Posted: Sun Jul 06, 2014 1:24 am
by Lynchpin
Re: UOX3 on linux
Posted: Sun Jul 06, 2014 1:38 am
by Xuri
Ah, coolness!

Glad you managed to figure it out - I'm pretty much a Linux noob myself as well
The community spawn.dfn only spawns NPCs, btw. For items (decorations, doors, containers, signs, etc.) you have two options:
1) Download the
Default UOX3 Worldfiles from the Downloads-page. This is a pre-made set of worldfiles that contain decorations, doors and signs for all the original towns in Britannia (Felucca facet only, does not include expansion areas). Basically just unzip those to your UOX3/SHARED/ folder, overwriting the existing files there. NOTE HOWEVER that this will also overwrite anything you might have done previously to your world - any characters you've made, items you've placed by hand, etc. It's possible you might have to
dos2unix these files as well, btw - however you should avoid doing that to the
resource[x].bin files, as those are binary files.
2) Decorate the world yourself, by hand. This is time-consuming, but can be very rewarding since you not only learn a lot about GM commands and how the server works by doing so, but it will also feel more like "your" world as you'll be completely in control of what items go where.