Linux file issues

Want to discuss changes to the UOX3 source code? Got a code-snippet you'd like to post? Anything related to coding/programming goes here!
Post Reply
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Linux file issues

Post by supremoleet »

Well I got the server compiling and got the scripts in place, but now I'm having a new issue -- it won't load the MUL files. At first, every file would show as [not found] and at the end it would yell about DATADIRECTORY (I forget the exact message).

I searched the forums and found another post related to this issue which recommended the issue was the end-of-line character difference between Windows and Linux, so I opened the tiles.dfn, maps.dfn, and uox.ini files and converted them to unix style carriage returns.

Now when I attempt to start the server, it can apparently find map4.mul, statics4.mul, staidx4.mul, tiledata.mul... and they all give a status of [done], except for tiledata (which shows up as [Failed]).

Any ideas?

Code: Select all

frank@dominus /game_server/uox/muldata $ ls -la
total 158192
drwxr-xr-x   2 frank users     4096 Sep  2 02:18 .
drwxr-xr-x  15 frank users     4096 Sep  2 01:49 ..
-r--------   1 frank users 89915392 Sep  2 02:14 map0.mul
-r--------   1 frank users 11289600 Sep  2 02:14 map2.mul
-r--------   1 frank users 16056320 Sep  2 02:15 map3.mul
-r--------   1 frank users  6421156 Sep  2 02:15 map4.mul
-r--------   1 frank users   275380 Sep  2 02:17 mapdif0.mul
-r--------   1 frank users  1574664 Sep  2 02:17 mapdif1.mul
-r--------   1 frank users    52528 Sep  2 02:17 mapdif2.mul
-r--------   1 frank users     5620 Sep  2 02:17 mapdifl0.mul
-r--------   1 frank users    32136 Sep  2 02:17 mapdifl1.mul
-r--------   1 frank users     1072 Sep  2 02:17 mapdifl2.mul
-r--------   1 frank users    21684 Sep  2 02:18 stadifi0.mul
-r--------   1 frank users   131172 Sep  2 02:18 stadifi1.mul
-r--------   1 frank users     3216 Sep  2 02:18 stadifi2.mul
-r--------   1 frank users  5505024 Sep  2 02:16 staidx0.mul
-r--------   1 frank users   691200 Sep  2 02:16 staidx2.mul
-r--------   1 frank users   983040 Sep  2 02:16 staidx3.mul
-r--------   1 frank users   393132 Sep  2 02:16 staidx4.mul
-r--------   1 frank users 22535961 Sep  2 02:16 statics0.mul
-r--------   1 frank users  2591316 Sep  2 02:16 statics2.mul
-r--------   1 frank users  2279011 Sep  2 02:16 statics3.mul
-r--------   1 frank users  1190448 Sep  2 02:16 statics4.mul

Code: Select all

frank@dominus /game_server/uox $ ./uox3
o------------------------------------------------------------------------------o| UOX Server start up!
| Welcome to Ultima Offline eXperiment 3 v0.98-3.7g
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)
|
| decs/plants/nbuilding/decs/nbuilding/floors/nbuilding/furniture/nbuilding/walls/n/game_server/uox/dfndata/items/building/n/game_server/uox/dfndata/items/containers/n/game_server/uox/dfndata/items/deeds/narmor/leather_armor/narmor/metal_armor/narmor/other_armor/ngear/armor/ngear/clothing/ngear/weapons/n/game_server/uox/dfndata/items/gear/n/game_server/uox/dfndata/items/gmmenu/n/game_server/uox/dfndata/items/houseaddons/n/game_server/uox/dfndata/items/itemlists/n/game_server/uox/dfndata/items/magic/n/game_server/uox/dfndata/items/misc/nskills/misc/nskills/resources/nskills/tools/n/game_server/uox/dfndata/items/skills/nSection                items :      0 entries                                          [done]
| Section                  npc :      0 entries                          [done]
| Section               create :      0 entries                          [done]
| Section              regions :      3 entries                          [done]
| Section                 misc :      0 entries                          [done]
| Section               skills :      0 entries                          [done]
| Section             location :      0 entries                          [done]
| Section                menus :      0 entries                          [done]
| Section               spells :      0 entries                          [done]
| Section               newbie :      1 entries                          [done]
| Section               titles :      0 entries                          [done]
| Section              advance :      0 entries                          [done]
| Section                house :      0 entries                          [done]
| Section               colors :      0 entries                          [done]
| Section                spawn :      0 entries                          [done]
| Section                 html :      0 entries                          [done]
| Section                 race :      0 entries                          [done]
| Section              weather :      0 entries                          [done]
| Section            harditems :      0 entries                          [done]
| Section              command :      0 entries                          [done]
| Section             msgboard :      0 entries                          [done]
| Section                carve :      0 entries                          [done]
| Section            creatures :      0 entries                          [done]
| Section                 maps :     47 entries                          [done]
o------------------------------------------------------------------------------o| Loading JS Scripts
| WARNING: No JS file mappings found in section SCRIPT_LIST
| WARNING: No JS file mappings found in section COMMAND_SCRIPTS
| WARNING: No JS file mappings found in section MAGIC_SCRIPTS
| WARNING: No JS file mappings found in section SKILLUSE_SCRIPTS
| WARNING: No JS file mappings found in section PACKET_SCRIPTS
| WARNING: No JS file mappings found in section CONSOLE_SCRIPTS
| WARNING: Envoke section not found, no hard id->script matching being done
| WARNING: Envoke section not found, no hard id->script matching being done
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)
|       /game_server/uox/muldata/map0.mul                           [not found]
|       /game_server/uox/muldata/statics0.mul                       [not found]
|       /game_server/uox/muldata/staidx0.mul                        [not found]
|       /game_server/uox/muldata/mapdif0.mul                        [not found]
|       /game_server/uox/muldata/stadif0.mul                        [not found]
|       /game_server/uox/muldata/mapdifl0.mul                       [not found]
|       /game_server/uox/muldata/stadifi0.mul                       [not found]
|       /game_server/uox/muldata/map0.mul                           [not found]
|       /game_server/uox/muldata/statics0.mul                       [not found]
|       /game_server/uox/muldata/staidx0.mul                        [not found]
|       /game_server/uox/muldata/mapdif1.mul                        [not found]
|       /game_server/uox/muldata/stadif1.mul                        [not found]
|       /game_server/uox/muldata/mapdifl1.mul                       [not found]
|       /game_server/uox/muldata/stadifi1.mul                       [not found]
|       /game_server/uox/muldata/map2.mul                           [not found]
|       /game_server/uox/muldata/statics2.mul                       [not found]
|       /game_server/uox/muldata/staidx2.mul                        [not found]
|       /game_server/uox/muldata/mapdif2.mul                        [not found]
|       /game_server/uox/muldata/stadif2.mul                        [not found]
|       /game_server/uox/muldata/mapdifl2.mul                       [not found]
|       /game_server/uox/muldata/stadifi2.mul                       [not found]
|       /game_server/uox/muldata/map3.mul                           [not found]
|       /game_server/uox/muldata/statics3.mul                       [not found]
|       /game_server/uox/muldata/staidx3.mul                        [not found]
|       /game_server/uox/muldata/map4.mul                                [done]
|       /game_server/uox/muldata/statics4.mul                            [done]
|       /game_server/uox/muldata/staidx4.mul                             [done]
|       /game_server/uox/muldata/tiledata.mul                          [Failed]
o------------------------------------------------------------------------------o| Beginning UOX final shut down sequence...
| HTMLTemplates object detected. Writing Offline HTML Now...
| Cleaning up item and character memory...                               [done]
| Destroying class objects and pointers... Destroying JS instances...    [done]
|                                                                        [done]
o------------------------------------------------------------------------------o| Server shutdown complete!
| Thank you for supporting The Official DevTeam
o------------------------------------------------------------------------------o| Exiting UOX with errorlevel 354
Maarc
Developer
Posts: 576
Joined: Sat Mar 27, 2004 6:22 am
Location: Fleet, UK
Has thanked: 0
Been thanked: 0
Contact:

Post by Maarc »

Well, based on what you posted, looks like you're missing some other things too. You might want to convert all the DFNs end of line to the unix format, because your DFNs claim to be empty, and they shouldn't be.

With regards to the MUL files ... your directory listing IS missing tiledata.mul. You'll want to make sure that's copied across. Why it's finding map4 and not the others, I've no idea. Make sure that the maps.dfn info matches that of your MUL files (ie if you've got a 4.x client that it matches maps.4xclients.dfn, which you copy to maps.dfn, only want one of these).

I don't know enough (or at least, remember enough) about unix file permissions. I think that read privilege should be okay, but that's a long time ago since I last compared that stuff.

But that's all I can think of at the moment, sorry it's not more useful.
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Post by supremoleet »

Alright so now that I'm not quite as sleep deprived as I was last night, I went through and looked a bit closer at the problem. I was actually missing several files, so I copied them on in, and converted the major files (uox.ini, maps.dfn) involved with this to the unix style end line. I don't know how I'm going to do ALL of the DFNs, there are a crap ton of them and they're in different folders.

Anyhow, now we're down to it failing on Map0.mul.

Code: Select all

|       /game_server/uox/muldata/map0.mul                    [Failed]
|       /game_server/uox/muldata/statics0.mul                  [done]
|       /game_server/uox/muldata/staidx0.mul                   [done]
|       /game_server/uox/muldata/mapdif0.mul                   [done]
|       /game_server/uox/muldata/stadif0.mul                   [done]
|       /game_server/uox/muldata/mapdifl0.mul                  [done]
|       /game_server/uox/muldata/stadifi0.mul                  [done]
|       /game_server/uox/muldata/stadifl0.mul                  [done]
|       /game_server/uox/muldata/map0.mul                    [Failed]
|       /game_server/uox/muldata/statics0.mul                  [done]
|       /game_server/uox/muldata/staidx0.mul                   [done]
|       /game_server/uox/muldata/mapdif1.mul                   [done]
|       /game_server/uox/muldata/stadif1.mul                   [done]
|       /game_server/uox/muldata/mapdifl1.mul                  [done]
|       /game_server/uox/muldata/stadifi1.mul                  [done]
|       /game_server/uox/muldata/stadifl1.mul                  [done]
|       /game_server/uox/muldata/map2.mul                      [done]
|       /game_server/uox/muldata/statics2.mul                  [done]
|       /game_server/uox/muldata/staidx2.mul                   [done]
|       /game_server/uox/muldata/mapdif2.mul                   [done]
|       /game_server/uox/muldata/stadif2.mul                   [done]
|       /game_server/uox/muldata/mapdifl2.mul                  [done]
|       /game_server/uox/muldata/stadifi2.mul                  [done]
|       /game_server/uox/muldata/stadifl2.mul                  [done]
|       /game_server/uox/muldata/map3.mul                      [done]
|       /game_server/uox/muldata/statics3.mul                  [done]
|       /game_server/uox/muldata/staidx3.mul                   [done]
|       /game_server/uox/muldata/map4.mul                      [done]
|       /game_server/uox/muldata/statics4.mul                  [done]
|       /game_server/uox/muldata/staidx4.mul                   [done]
|       /game_server/uox/muldata/tiledata.mul                  [done]
| Caching Multis....                                           [done]
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 »

Sounds like UOX3 is finding a different sized map0.mul than what it expects. What it expects by default is the "new" size that was patched in relatively recently, while older client versions use the old size.

If you're using an old client version, make sure to replace dfndata/maps/maps.dfn with maps.4xclients.old.
-= Ho Eyo He Hum =-
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Post by supremoleet »

I just repatched to the newest UO version a couple days ago. I am running client version Version: 5.0.4c. At first, I tried the 5x clients DFN. It failed on map0.mul only. So I tried 4x for the hell of it. Same exact thing. Doesn't seem to matter which one I use.

So okay, maybe my map0.mul is jacked up. I deleted it, copied it again. Same issue, both files.

So, here are my map DFN files. Is there a way I can verify the size of the map?
5x Maps wrote:

Code: Select all

// v.03
// Last updated 9/21/2005 - giwo
// This file contains the filenames and X/Y Block sizes for Ultima Online maps.
// This file is current for Client versions 5.0.0a and above, please use maps.old if your client version is 4.x or below.


[MAP 0]	// Felucca
{
MAP=map0.mul
STATICS=statics0.mul
STAIDX=staidx0.mul
MAPDIFF=mapdif0.mul
MAPDIFFLIST=mapdifl0.mul
STATICSDIFF=stadif0.mul
STATICSDIFFLIST=stadifl0.mul
STATICSDIFFINDEX=stadifi0.mul
X=7168
Y=4096
}

[MAP 1]	// Trammel
{
MAP=map0.mul
STATICS=statics0.mul
STAIDX=staidx0.mul
MAPDIFF=mapdif1.mul
MAPDIFFLIST=mapdifl1.mul
STATICSDIFF=stadif1.mul
STATICSDIFFLIST=stadifl1.mul
STATICSDIFFINDEX=stadifi1.mul
X=7168
Y=4096
}

[MAP 2]	// Ilshenar
{
MAP=map2.mul
STATICS=statics2.mul
STAIDX=staidx2.mul
MAPDIFF=mapdif2.mul
MAPDIFFLIST=mapdifl2.mul
STATICSDIFF=stadif2.mul
STATICSDIFFLIST=stadifl2.mul
STATICSDIFFINDEX=stadifi2.mul
X=2304
Y=1600
}

[MAP 3]	// Malas
{
MAP=map3.mul
STATICS=statics3.mul
STAIDX=staidx3.mul
X=2560
Y=2048
}

[MAP 4]	// Tokuno
{
MAP=map4.mul
STATICS=statics4.mul
STAIDX=staidx4.mul
X=1448
Y=1448
}

4x Maps wrote:

Code: Select all

// v.02
// Last updated 10/5/2005 - giwo
// This file contains the filenames and X/Y Block sizes for Ultima Online maps.
// Note that this file is directly related to UOX3.ini MAPCOUNT (IE a MAPCOUNT of 5 will load MAP 0 through MAP 4)
// This file is current for Client versions below 5.0.0a, please use maps.dfn if your client version is 5.0.0a or above.

[MAP 0]	// Felucca
{
MAP=map0.mul
STATICS=statics0.mul
STAIDX=staidx0.mul
MAPDIFF=mapdif0.mul
MAPDIFFLIST=mapdifl0.mul
STATICSDIFF=stadif0.mul
STATICSDIFFLIST=stadifl0.mul
STATICSDIFFINDEX=stadifi0.mul
X=6144
Y=4096
}

[MAP 1]	// Trammel
{
MAP=map0.mul
STATICS=statics0.mul
STAIDX=staidx0.mul
MAPDIFF=mapdif1.mul
MAPDIFFLIST=mapdifl1.mul
STATICSDIFF=stadif1.mul
STATICSDIFFLIST=stadifl1.mul
STATICSDIFFINDEX=stadifi1.mul
X=6144
Y=4096
}

[MAP 2]	// Ilshenar
{
MAP=map2.mul
STATICS=statics2.mul
STAIDX=staidx2.mul
MAPDIFF=mapdif2.mul
MAPDIFFLIST=mapdifl2.mul
STATICSDIFF=stadif2.mul
STATICSDIFFLIST=stadifl2.mul
STATICSDIFFINDEX=stadifi2.mul
X=2304
Y=1600
}

[MAP 3]	// Malas
{
MAP=map3.mul
STATICS=statics3.mul
STAIDX=staidx3.mul
X=2560
Y=2048
}


EOF



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 »

Well, on my system (Win XP) the new map0.mul is roughly 89mb and the old one is roughly 77mb.
-= Ho Eyo He Hum =-
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Post by supremoleet »

My map0.mul file:

85.7 MB (89,915,392 bytes)
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Post by supremoleet »

A bit of an update...

I tried using the same map0.mul file with the Windows all-in-one build, it works fine. It must be some compatibility issue with Linux but I can't figure out what exactly it is. Any ideas?
Maarc
Developer
Posts: 576
Joined: Sat Mar 27, 2004 6:22 am
Location: Fleet, UK
Has thanked: 0
Been thanked: 0
Contact:

Post by Maarc »

How are you copying it across? If it's copying across intact, I would expect it should work fine and dandy. The code is pretty universal once it gets opened.
jr
UOX3 Newbie
Posts: 15
Joined: Mon Mar 07, 2005 1:40 pm
Location: Kiel
Has thanked: 0
Been thanked: 0

Post by jr »

Delete the maps.4xclients.old file. The unix dfn search code is slightly different from the windows code. Should be easy to fix, too, if you want to have some fun :D
supremoleet
UOX3 Neophyte
Posts: 28
Joined: Fri Sep 01, 2006 3:37 am
Has thanked: 0
Been thanked: 0
Contact:

Post by supremoleet »

I deleted the old maps file, sure enough, it works. However now it blows up somewhere _else_ (I can't win):

Code: Select all

frank@dominus /game_server/uox $ ./uox3
o------------------------------------------------------------------------------o| UOX Server start up!
| Welcome to Ultima Offline eXperiment 3 v0.98-3.7g
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)
| 
| decs/plants/nbuilding/decs/nbuilding/floors/nbuilding/furniture/nbuilding/walls/n./dfndata/items/building/n./dfndata/items/containers/n./dfndata/items/deeds/narmor/leather_armor/narmor/metal_armor/narmor/other_armor/ngear/armor/ngear/clothing/ngear/weapons/n./dfndata/items/gear/n./dfndata/items/gmmenu/n./dfndata/items/houseaddons/n./dfndata/items/itemlists/n./dfndata/items/magic/n./dfndata/items/misc/nskills/misc/nskills/resources/nskills/tools/n./dfndata/items/skills/nSection                items :   6964 entries                                [done]
| Section                  npc :    500 entries                          [done]
| Section               create :    496 entries                          [done]
| Section              regions :     55 entries                          [done]
| Section                 misc :    581 entries                          [done]
| Section               skills :     67 entries                          [done]
| Section             location :    143 entries                          [done]
| Section                menus :     11 entries                          [done]
| Section               spells :     64 entries                          [done]
| Section               newbie :     57 entries                          [done]
| Section               titles :      4 entries                          [done]
| Section              advance :     10 entries                          [done]
| Section                house :    103 entries                          [done]
| Section               colors :     29 entries                          [done]
| Section                spawn :      0 entries                          [done]
| Section                 html :      5 entries                          [done]
| Section                 race :     20 entries                          [done]
| Section              weather :      9 entries                          [done]
| Section            harditems :     16 entries                          [done]
| Section              command :      5 entries                          [done]
| Section             msgboard :      5 entries                          [done]
| Section                carve :     97 entries                          [done]
| Section            creatures :    345 entries                          [done]
| Section                 maps :     47 entries                          [done]
o------------------------------------------------------------------------------o| Loading JS Scripts
Assertion failure: !OBJ_GET_PROTO(cx, ctor), at jsapi.c:2284
Aborted
I made sure that js32.a was in the source folder when I ran make. What would be causing this error?
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

Looks like a bug in spidermonkey, checkout a newer or older version.
Post Reply