[LINUX] problem loading mul files

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
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

[LINUX] problem loading mul files

Post by GhostTyper »

hello again. :D

my self compiled linux version doesn't load mulfiles!

load screen:

Code: Select all

o------------------------------------------------------------------------------o| Preparing to open *.mul files...
| (If they don't open, fix your paths in uox.ini or filenames in maps.dfn)
|       /root/projects/uox3/binary/muldata/map0.mul                 [not found]
|       /root/projects/uox3/binary/muldata/statics0.mul             [not found]
|       /root/projects/uox3/binary/muldata/staidx0.mul              [not found]
|       /root/projects/uox3/binary/muldata/mapdif0.mul              [not found]
|       /root/projects/uox3/binary/muldata/stadif0.mul              [not found]
|       /root/projects/uox3/binary/muldata/mapdifl0.mul             [not found]
|       /root/projects/uox3/binary/muldata/stadifi0.mul             [not found]
|       /root/projects/uox3/binary/muldata/map0.mul                 [not found]
|       /root/projects/uox3/binary/muldata/statics0.mul             [not found]
|       /root/projects/uox3/binary/muldata/staidx0.mul              [not found]
|       /root/projects/uox3/binary/muldata/mapdif1.mul              [not found]
path section in uox.ini:

Code: Select all

[directories]
{
DIRECTORY=./
DATADIRECTORY=./shared/
DEFSDIRECTORY=./dfndata/
BOOKSDIRECTORY=./books/
ACTSDIRECTORY=./accounts/
SCRIPTSDIRECTORY=./js/
BACKUPDIRECTORY=./archives/
MSGBOARDDIRECTORY=./msgboards/
SHAREDDIRECTORY=./shared/
ACCESSDIRECTORY=./accounts/
HTMLDIRECTORY=./html/
LOGSDIRECTORY=./logs/
DICTIONARYDIRECTORY=./dictionaries/
}
dfndata/maps/maps.dfn:

Code: Select all

[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
}
where does the directory "muldata" come from? i diddn't setup or configure souch a thing. even if i create this directory and put the files in it:

Code: Select all

uox binary # cd muldata/
uox muldata # pwd
/root/projects/uox3/binary/muldata
uox muldata # ls -l
total 85351
-rwxrw-rw- 1 root root 77070336 Feb  2 10:56 map0.mul
-rwxrw-rw- 1 root root   275380 Jul 25  2005 mapdif0.mul
-rwxrw-rw- 1 root root   592560 Jul 25  2005 multi.mul
-rwxrw-rw- 1 root root   146790 Jul 25  2005 stadif0.mul
-rwxrw-rw- 1 root root  4718592 Feb 15 19:31 staidx0.mul
-rwxrw-rw- 1 root root  4504129 Feb 15 19:31 statics0.mul
uox muldata #
what's the problem?
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 »

The muldata directory is just a default for people who want to copy across a separate set of MULs specifically for a server.

However, once it's all in there, it should be able to work. If your map files are older (IE not the new larger maps, make sure you use the right maps.dfn (the 4.x one)
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 »

I noticed you have set the DATADIRECTORY to point to ./shared/, which contains the UOX3 worldfiles - while it should point to the folder which contains the various .mul files from the UO client (either the UO client folder itself or a custom folder with all the necessary files in it).
-= Ho Eyo He Hum =-
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

hi there,

the problem is simply that unix has different line endings than windows. windows uses 0x0D 0x0A where unix/linux uses 0x0A only.

the parser for dfn-files compiled for linux handles the windows line endings wrong.

example:
blah=hallo.mul[0x0D][0x0A]
will be parsed to filename hallo.mul[0x0D] in linux.

changing all *.dfn and *.js files to unix-line-ending will solve the problem. (greets from dos2unix. :P)
Post Reply