• 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!

Lua [almost fixxed]errors loading server lua +xml's

spinna

New Member
Joined
Apr 6, 2009
Messages
52
Reaction score
3
Location
Oklahoma
:thumbup:
EDITED- 9-23-2010 - All times are GMT +1. The time now is 05:07.

thank you for looking, ive spent many hours on this server/files.. probably a fixxed version somewhere lol

i copy pasted the start up dos screen:

i think i need direction for the last couple errors

Code:
The Forgotten Server, version 0.3.6_SVN (Crying Damson)
Compiled with GNU C++ version 3.4.5 (mingw special) at Dec 19 2009, 09:10:06.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornhol
ijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... outdated, please consider updating!
> Current version information - version: 0.3.6_SVN, patch: 0, build: 0, timestam
p: 0.
> Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp:
 1260652199.
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection
>> Running Database Manager
> No tables were optimized.
>> Loading items
>> Loading groups
>> Loading vocations
>> Loading script systems
>> Loading chat channels
>> Loading outfits
>> Loading experience stages
>> Loading monsters
>> Loading mods...
> Loading buypremium_command.xml... done.
> Loading changender_command.xml... done.
> Loading custommonsters.xml... done.
> Loading customspells.xml... done.
> Loading firstitems.xml... done.
> Loading guildWarsystem.xml... done.
> Loading highscorebook.xml... done.
> Loading Inquisition.xml... done.
> Loading phoenix magic shield.xml... done.
> 9 mods were loaded.
>> Loading map and spawns...
> Map size: 38000x38000.
> Map descriptions:
"Saved with Remere's Map Editor 2.1"
"Credits to FrankFarmer on Otland"
> Map loading time: 51.547 seconds.
> Data parsing time: 14.312 seconds.
> Houses synchronization time: 0.5 seconds.
> Content unserialization time: 0.547 seconds.
>> Checking world type... PvP
>> Initializing game state modules and registering services...
[b][Warning - Monster::Monster] Unknown event name - bluelegs[/b]
> ip blah blah
>> All modules were loaded, server is starting up...
>> project-society server Online!



ERROR AFTER BEING ONLINE A WHILE
Code:
mysql_real_query(): SELECT `id` FROM `guilds` WHERE `in_war_with` > 0 - MYSQL ER
ROR: Unknown column 'in_war_with' in 'where clause' (1054)

[Error - GlobalEvent Interface]
buffer:onThink
Description:
data/lib/database.lua:60: [Result:getDataInt] Result not set!
stack traceback:
        [C]: in function 'error'
        data/lib/database.lua:60: in function 'getDataInt'
        data/lib/050-function.lua:945: in function 'getGuildsWithWar'
        [string "loadBuffer"]:3: in function <[string "loadBuffer"]:2>
[Error - GlobalEvents::think] Couldn't execute event: wars
Also geisor problem..

anyone can connect to the 8.54server using the ~~.servegame.com and play
i can view the webpage <geisor> at 192.168~ and local host or the laptop downstairs or 2 other PC's and make accounts etc - but you cannot access from outside the house @ ~.servegame.com or regular IP as a website.
it says 3306 is open on several port checkers, i tried to get 80 but says its blocked, is this port for geisor? could this be the problem? i opened/forward/switched this port just like the rest of them...
EVERY thing pretty much works but that.. people cannot create acct cause they cant access the page lol


Thanks for looking
 
Last edited:
i see at ur addresbar the server folder name is Copy of Server_realtibia\server\blabla
u sure u are opening the server TFS.exe from this map? or from the original one?
 
i see at ur addresbar the server fodler name is Copy of Server_realtibia\server\blabla
u sure u are opening the server TFS.exe from this map? or from the original one?

I have deleted the short cut and replaced several times

target:
Code:
"C:\Documents and Settings\dave\Desktop\OTSERVERs\Copy of server_realtibia\server\TheForgottenServer-console.exe"

start in
Code:
"C:\Documents and Settings\dave\Desktop\OTSERVERs\Copy of server_realtibia\server"
 
can u past the npc file here to? the rune seller npc that opens runes.lua
btw i am going home work is done so i ill awnser later when i get home.
 
hmm.. that may be what i was asking from post 22.. makes sence, ill look for that -ill edit this reply with it

should i be able to :

9:17 Bought 1x blank rune for 10 gold.
09:17 Bought 1x ultimate healing rune for 175 gold.
09:17 Bought 1x sudden death rune for 350 gold.

if the directory doesnt exhist lol?

btw:
hoedet:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Hoedet" script="data/npc/scripts/Sell/runes.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="130" head="19" body="86" legs="87" feet="95" addons="0"/>
    <parameters>
        <parameter key="message_greet" value="Oh, please come in, |PLAYERNAME|. If you need magical equipment such as runes or wands, just ask me for a {trade}."/>
        <parameter key="message_farewell" value="Good bye and come again."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="job;" />
        <parameter key="keyword_reply1" value="I'm sorcerer and trade with all kinds of magic items." />
    </parameters>
</npc>
names have been changed to protect the innocent

only copied the path to theese, cause to long of a post lol
Varoktal
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Varoktal" script="data/npc/scripts/Sell/runes.lua" walkinterval="2000" floorchange="0">
	</npc>
Code:
name="Brandit" script="data/npc/scripts/Sell/runes.lua"

And yes i changed the folder to 'S'ell and not 's'ell just to be sure

Alexandereo.lua
Code:
  <?xml version="1.0" encoding="UTF-8" ?> 
- <npc name="Alexandereo" script="default.lua" walkinterval="2000">
  <health now="200" max="200" /> 
  <look type="130" head="97" body="105" legs="19" feet="95" addons="0" /> 
- <parameters>
  <parameter key="message_greet" value="Hello |PLAYERNAME|." /> 
  <parameter key="message_farewell" value="Good bye." /> 
  <parameter key="module_shop" value="1" /> 
  <parameter key="shop_buyable" value="terra rod,2181,10000;snakebite rod,2182,500;necrotic rod,2185,5000;moonlight rod,2186,1000;underworld rod,8910,22000;northwind rod,8911,7500;springsprout rod,8912,18000;hailstorm rod,2183,15000;wand of decay,2188,5000;wand of cosmic energy,2189,10000;wand of vortex,2190,500;wand of dragonbreath,2191,1000;wand of draconia,8921,7500;wand of starstorm,8920,18000;wand of voodoo,8922,22000;wand of inferno,2187,15000;blank rune,2260,10;life ring,2168,900" /> 
  <parameter key="shop_sellable" value="spellbook of enlightenment,8900,4000;spellbook of lost souls,8903,19000;spellbook of mind control,8902,13000;spellbook of warding,8901,8000" /> 
  </parameters>
  </npc>

Default.lua
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)		npcHandler:onCreatureSay(cid, type, msg)		end
function onThink()				npcHandler:onThink()					end

npcHandler:addModule(FocusModule:new())

gotta get ready for work
 
Last edited:
gotta go to work for.. like 10 or 11 hours so..

do i need to post/check every npc that sells a rune, or is there a lua that loads/executes before the sellers that might cause that error?
 
in the npc's xml change this part:
XML:
script="data/npc/scripts/Sell/runes.lua"
to:
XML:
script="Sell/runes.lua"
and it will find it.

is there a way to change them all(multiple npc) or do i have to do each individually.
maybe "any npc with data/npc/scripts/Sell/runes.lua" to xxxx/lua ?

real maps tend to have different named npc's in each town to do the same thing, unlike some where sam apears everywhere(stalkerish)
 
Windows should have some function for doing that. Use google to find out
yea, well i figured out notepad++ to have the search files function <sweet> and replace with function also!
that was 13 npc's i didnt have to find lol, looking through like 50 to find 13 -.- bad news..

Code:
The Forgotten Server, version 0.3.6_SVN (Crying Damson)
Compiled with GNU C++ version 3.4.5 (mingw special) at Dec 19 2009, 09:10:06.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornhol
ijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... outdated, please consider updating!
> Current version information - version: 0.3.6_SVN, patch: 0, build: 0, timestam
p: 0.
> Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp:
 1260652199.
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection

> WARNING: max_allowed_packet might be set too low for binary map storage.
Use the following query to raise max_allow_packet: SET GLOBAL max_allowed_packet
 = 16776192;
>> Running Database Manager
> No tables were optimized.
>> Loading items
>> Loading groups
>> Loading vocations
>> Loading script systems
>> Loading chat channels
>> Loading outfits
>> Loading experience stages
>> Loading monsters
[Warning - Monsters::loadMonster] Unknown attribute type - attack. (data/monster
/Bosses/morik the gladiator.xml)
>> Loading mods...
> Loading buypremium_command.xml... done.
> Loading changender_command.xml... done.
> Loading custommonsters.xml... done.
> Loading customspells.xml... done.
> Loading firstitems.xml... done.
> Loading guildWarsystem.xml... done.
> Loading highscorebook.xml... done.
> Loading Inquisition.xml... done.
> Loading phoenix magic shield.xml... done.
> 9 mods were loaded.
>> Loading map and spawns...
> Map size: 38000x38000.
> Map descriptions:
"Saved with Remere's Map Editor 2.1"
"Credits to FrankFarmer on Otland"
> Map loading time: 58.468 seconds.
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: sell/runes.lua
cannot open sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
[Error - LuaScriptInterface::loadFile] cannot open Sell/runes.lua: No such file
or directory
[Warning - NpcScript::NpcScript] Cannot load script: Sell/runes.lua
cannot open Sell/runes.lua: No such file or directory
> Data parsing time: 27.235 seconds.
> Houses synchronization time: 0.703 seconds.
> Content unserialization time: 3 seconds.
>> Checking world type... PvP
>> Initializing game state modules and registering services...
[Warning - Monster::Monster] Unknown event name - bluelegs
> ip-blahblah
>> All modules were loaded, server is starting up...
>> project-society server Online!

and those npc's that are affected, arent ingame atm.. so maybe its one npc with the incorrect sell/runes.lua that needs to have the whole data/script/nc thing. ill investigate ! and edtit this again -.-

EDIT: I ROCK by reversing the find there are 14, meaining there was one with sell/runes when needed the data/npc/all that lenthy directory ! muahah

thanks shinmaru and grehy for the info that caused a reproduction of the error that eventually lead me to fix it lol
now i only have morik the gladiator, blueleg, and the guildwar problems left
and ofcourse the webpage cant be seen from off router by anymeans.
 
Last edited:
I FIGURED OUT MORIK THE GLADIATOR.XML lolllll

attacks was ended before attack was:
Code:
[b]<attacks>[/b]
<attack name="melee" interval="2000" skill="46" attack="36" min="-30" max="-215"/>
</attacks>[b]<----needs moved to under "</attack>[/b]
<attack name="physical" interval="3000" chance="15" range="7" radius="3" target="0" min="-30" max="-115">
<attribute key="areaEffect" value="blackspark"/>
</attack>
 
Back
Top Bottom