• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux help problem with files being hosted in linux

johnsamir

Active Member
Joined
Oct 13, 2009
Messages
231
Solutions
1
Reaction score
35
Location
Nowhere
Hello

i have migrated my server from windows to ubuntu, in windows i didn't have any trouble with it but now im running it in ubunntu and im having many issues related to files like actions files are not there the same for some movements and some npcs

files are there but the server console they says they're not
Lua:
- Npc::loadFromXml] Failed to load data/npc/Baa'Leal.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Bo'ques.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/mirabell.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/The Gatekeeper.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Tim.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Oldrak.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/ferks.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/avar tar.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Loria.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Grof, The Guard.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/loui.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/lynda.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Sherry Mcronald.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Kulag, The Guard.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/wyat.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Walter, The Guard.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/william.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/The Cobra.xml: File was not f
 
Last edited:
OP
OP
J

johnsamir

Active Member
Joined
Oct 13, 2009
Messages
231
Solutions
1
Reaction score
35
Location
Nowhere
is ther a way to fix that, automatically?, i mean there are so many npcs, actions movements, file names to rename that will take years if it is done one by one.
Lua:
[Warning - Event::checkScript] Can not load script: scripts/carlin/book.lua
cannot open data/actions/scripts/carlin/book.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/PitsOfInferno/poi_entrance.lua
cannot open data/movements/scripts/PitsOfInferno/poi_entrance.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/PitsOfInferno/poi_exit.lua
cannot open data/movements/scripts/PitsOfInferno/poi_exit.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/town/Venore.lua
cannot open data/movements/scripts/town/Venore.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/town/Darashia.lua
cannot open data/movements/scripts/town/Darashia.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/town/ankrahmun.lua
cannot open data/movements/scripts/town/ankrahmun.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_entrance.lua
cannot open data/movements/scripts/paradox/paradox_entrance.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_deadtree.lua
cannot open data/movements/scripts/paradox/paradox_deadtree.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_lvl1.lua
cannot open data/movements/scripts/paradox/paradox_lvl1.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_lvl3.lua
cannot open data/movements/scripts/paradox/paradox_lvl3.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_lvl3.lua
cannot open data/movements/scripts/paradox/paradox_lvl3.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_questroom.lua
cannot open data/movements/scripts/paradox/paradox_questroom.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_questroom.lua
cannot open data/movements/scripts/paradox/paradox_questroom.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_questroom.lua
cannot open data/movements/scripts/paradox/paradox_questroom.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_questroom.lua
cannot open data/movements/scripts/paradox/paradox_questroom.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/paradox/paradox_exit.lua
cannot open data/movements/scripts/paradox/paradox_exit.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/dhq/beginoff.lua
cannot open data/movements/scripts/dhq/beginoff.lua: No such file or directory
[Warning - Event::checkScript] Can not load script: scripts/dhq/beginoff.lua
cannot open data/movements/scripts/dhq/beginoff.lua: No such file or directory
 

Ichito123

New Member
Joined
Nov 25, 2013
Messages
36
Reaction score
2
I thing you have problem with name npc etc.
Grof, The Guard.xml for Grof The Guard.xml
Check your npc files name, like same name, spawn.xml in world. Your name misy by this same anywere. Windows and Linux have problem with names etc. I have this same problem.
 
OP
OP
J

johnsamir

Active Member
Joined
Oct 13, 2009
Messages
231
Solutions
1
Reaction score
35
Location
Nowhere
Found a solution, It doesn't do all the work automatically in sub folders or renaming folders itself. But if you move the batch file folder by folder you will save a lot of effort anyway, renaming spaces to underscore.
here is the bat file code.
Lua:
@echo off
setlocal enabledelayedexpansion
for %%a in ("* *") do (
  set "folder=%%a"
  ren "%%a" "!folder: =_!"
)

still missing batch for changing the capitalization of the letters in file/ folder names
 

tarantonio

Old School Player
Joined
Jun 21, 2009
Messages
826
Solutions
1
Reaction score
237
still missing batch for changing the capitalization of the letters in file/ folder names

Renaming lowercase to uppercase and vice-versa

In some situations, you may want to batch rename the files from lowercase to uppercase or, uppercase to lowercase. To change the case of the target file names, let’s use the following commands.

The game here is the Perl expression. Run the following command for turning all the lowercase characters of the file names into uppercase.

$ rename -v 'y/a-z/A-Z/' *.txt

Note that even the file extension will be changed to uppercase. To change from uppercase to lowercase, run the following command.

$ rename -v 'y/A-Z/a-z/' *.TXT
 
Top