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

[7.72] OTHire 0.0.1b - Based in OTServ Trunk (Latest)

Its Othire with Othire Znote

What did i wrong ? Server is running on debian 7, i created acc, char, and after trying to connect i get this. Probably its sth with db schema or just db.

Any solution, guide or maybe tips where to look or what to fix ? Pls ;s
 

Attachments

Its Othire with Othire Znote

What did i wrong ? Server is running on debian 7, i created acc, char, and after trying to connect i get this. Probably its sth with db schema or just db.

Any solution, guide or maybe tips where to look or what to fix ? Pls ;s

Check config.lua and make sure password types is set to plain, unless you're using sha1 / md5 of course.
 
Hello,
Maybe it's not 100% related to OTHire distro, but...
I'm using your distro(Peonso datapack), did some changes, everything seems to work really fine so far, but i got an issue with a spellbook and editing items.otb.

First: I got same problem as Arcadius few pages earlier, spellbook crashes Tibia client.
I really don't know what causes it.
Already tried to change spells.xml (dunno if its even related to that crash), other spellbook scripts, making !spellbook command, still crashes.

The second problem I'm messing with is editing items.otb with OTItemEditor 0.2.2 (as proposed by Peonso), but when I edit something and save it, Server says that items.otb version is invalid. Also, ItemEditor doesn't load item names, descriptions etc., only item IDs, I think thats the problem, but don't know how to fix this.

Thanks from above : )
 
Hello,
Maybe it's not 100% related to OTHire distro, but...
I'm using your distro(Peonso datapack), did some changes, everything seems to work really fine so far, but i got an issue with a spellbook and editing items.otb.

First: I got same problem as Arcadius few pages earlier, spellbook crashes Tibia client.
I really don't know what causes it.
Already tried to change spells.xml (dunno if its even related to that crash), other spellbook scripts, making !spellbook command, still crashes.

The second problem I'm messing with is editing items.otb with OTItemEditor 0.2.2 (as proposed by Peonso), but when I edit something and save it, Server says that items.otb version is invalid. Also, ItemEditor doesn't load item names, descriptions etc., only item IDs, I think thats the problem, but don't know how to fix this.

Thanks from above : )

Concerning spellbook, does it only happen with the spellbook itself or all other types of readable books?
 
Sorry for double post, but can not find the edit button. Forgot to add crash report from the spellbok issue:
Code:
+---------------------------------------------------------------
Debug Assertion 7.72 Utils.cpp 310
Thu Dec 25 23:58:36 2014
Windows Version: 6.1 build 7601 on 2 with Service Pack 1
Graphic Engine: 1
Last Packet Types: 150 110 109 109 109 109 131 160 109 109
Last Packet: 231 011 150 001 000 000 000 243 011 220 011 220 011 083 112 101
Player Position: [1310,580,6]
Player.cpp 383: exception occurred, reason:
Network.cpp 885: exception occurred (ErrorCode = 0), reason:
Control.cpp 1280: exception occurred (Type = 150), reason:
Communication.cpp 2303: exception occurred, reason:
Network.cpp 482: exception occurred, reason:
Utils.cpp 310: assertion failed (Position = 3051) (Size = 3051), reason:
Position<=Size-2
----------------------------------------------------------------
 
Concerning spellbook, does it only happen with the spellbook itself or all other types of readable books?
Tested book(id 2325 for example), and writeable and readable parchment, works fine. Can write and read text.
 
Tested book(id 2325 for example), and writeable and readable parchment, works fine. Can write and read text.
I noticed this error too. It's probably the script for spellbook, try and disable the script and see if it still gives the error
 
Well, when I disabled spellbook script it didn't give me error, that's nice, but dunno what's so bad in that spellbook script? It looks simple, in addition to that I wasn't able to find any different script.
 
Well, when I disabled spellbook script it didn't give me error, that's nice, but dunno what's so bad in that spellbook script? It looks simple, in addition to that I wasn't able to find any different script.

Could you share your script in here? (do not use pastebin)
 
Of course, there it is:
Code:
function onUse(cid, item, frompos, item2, topos)
    local count = getPlayerInstantSpellCount(cid)
    local text = ""
    local t = {}

    for i=0, count-1 do
        local spell = getPlayerInstantSpellInfo(cid, i)
        if spell.level ~= 0 then
            if spell.manapercent > 0 then
                spell.mana = spell.manapercent .. "%"
            end

            table.insert(t, spell)
        end
    end
   
    table.sort(t, function(a, b) return a.level < b.level end)

    local prevLevel = -1
    for i,spell in ipairs(t) do
        local line = ""
        if prevLevel ~= spell.level then
            if i ~= 1 then
                line = "\n"
            end

            line = line .. "Spells for Level " .. spell.level .. "\n"
            prevLevel = spell.level
        end
       
        text = text .. line .. "  " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
    end
       
    doShowTextDialog(cid, item.itemid, text)
    return true
end
The weirdes thing about it is that it crashes client and gives absolutely no errors in server console.
 
Code:
function onUse(cid, item, frompos, item2, topos)
    local count = getPlayerInstantSpellCount(cid)
    local text = ""
    local t = {}

    for i=0, count-1 do
        local spell = getPlayerInstantSpellInfo(cid, i)
        if spell.level ~= 0 then
            if spell.manapercent > 0 then
                spell.mana = spell.manapercent .. "%"
            end

            table.insert(t, spell)
        end
    end
   
    table.sort(t, function(a, b) return a.level < b.level end)

    local prevLevel = -1
    for i,spell in ipairs(t) do
        local line = ""
        if prevLevel ~= spell.level then
            if i ~= 1 then
                line = "\n"
            end

            line = line .. "Spells for Level " .. spell.level .. "\n"
            prevLevel = spell.level
        end
       
        text = text .. line .. "  " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
    end
       
    doShowTextDialog(cid, item.itemid, text)
    return 1
end
 
I'm not at home so I can't really test anything under OTHire environment, so have you tried just using e.g; "doShowTextDialog(cid, item.itemid, "Hello")" to see if it crashes? If it doesn't, then I'm guessing it might be the "text" being too big for the client to handle?
 
I'm not at home so I can't really test anything under OTHire environment, so have you tried just using e.g; "doShowTextDialog(cid, item.itemid, "Hello")" to see if it crashes? If it doesn't, then I'm guessing it might be the "text" being too big for the client to handle?
I've made a very simple script to test doShowTextDialog function:

Code:
function onUse(cid, item, frompos, item2, topos)
doShowTextDialog(cid, item.itemid, "hello")

end
And it crashes. It seems that this function is the crash reason
 
Back
Top