UOX3 on linux

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

UOX3 on linux

Post 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.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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).
-= Ho Eyo He Hum =-
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

Regspawn all errors: Failed to spawn any new creatures or items in 0 regions.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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.
-= Ho Eyo He Hum =-
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

sure thing
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

errr...its not attaching.

its the spawn.dfn cfrom community build; nothing edited on it whatsoever
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

Yup, same thing. No spawns. Failed to spawn items or npcs etc.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Urgh. Apparently dfn extension for for attached files is not allowed. :P Either zip it up or copy & paste a couple of regions from the top of the spawn.dfn directly in a post instead?
-= Ho Eyo He Hum =-
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

yup yup here it is
Attachments
spawn.zip
(13.83 KiB) Downloaded 198 times
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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.
-= Ho Eyo He Hum =-
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post 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.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

slowly figuring it out. doesn't appear to de any different characters if i vi it on the terminal.
Lynchpin
UOX3 Newbie
Posts: 22
Joined: Mon Jun 30, 2014 7:12 pm
Has thanked: 0
Been thanked: 0

Post by Lynchpin »

YAYYYYYyyyyyyyyyyyy!
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

dos2unix didn't work for some reason at first on the community-spawn pack originally, so I did a fresh install and dos2'd the entire dfn directory, working now!

No items spawned, however; not entire certain if that's a separate file or whatever. Haven't really looked around much.


Thanks a ton, Xuri! I'll be on the boards while building my world and hosting it.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Ah, coolness! :) Glad you managed to figure it out - I'm pretty much a Linux noob myself as well :P

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.
-= Ho Eyo He Hum =-
Post Reply