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

Console issues :(

Queari

New Member
Joined
Feb 27, 2015
Messages
75
Reaction score
1
Hello I have few errors in my console, if anyone could help me please :)
1
Code:
> 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;
Please do not give me this SET GLOBAL max_allowed_packet = 16776192; to put onto the SQL cause after a restart it appears again :(

2
Code:
>> Loading monsters
[Error - Monsters::deserializeSpell] Pythius The Rotten - Unknown spell name: pythius summon
[Warning - Monsters::loadMonster] Cant load spell. (data/monster/Bosses/pythius the rotten.xml)
[Warning - Monsters::loadMonster] Duplicate registered monster with name: Training Monk
[Warning - Monster::Monster] Unknown event name - PythiusTheRotten


Please people help me with it :)
 
Last edited:
Limos thank you, npc issue on helped ! :)
however the one with my.ini < I have linux and when I go to etc/mysql/my.inf there is that line with max_allowed packet although I am not able to change. Everytime when I try to change it only show me 'Save as'
 
When I'm trying to save in notepad ++, small window appear "Save failed-Please check if this file is opened in another program"
I have not got any other program opened this file :(
Its like I have not got permission to change in that file anything, how to fix it ?
I have tried through termianl in ubuntu:(
Here is the code
Code:
sebastiansnitko@sebastiansnitko-X550CL:~$ chmod 777 my.cnf
chmod: cannot access ‘my.cnf’: No such file or directory
sebastiansnitko@sebastiansnitko-X550CL:~$ cd /etc/mysql
sebastiansnitko@sebastiansnitko-X550CL:/etc/mysql$ chmod 777 my.cnf
chmod: changing permissions of ‘my.cnf’: Operation not permitted
sebastiansnitko@sebastiansnitko-X550CL:/etc/mysql$
 
Last edited:
You can try to run notepad ++ as administrator.
This is the one you're supposed to change from 1M to 16M btw.
Code:
max_allowed_packet = 16M

About those monsters, remove the spells that those names in the monster xml file.
And training monk is added twice, so remove 1 of them.
 
I have no clue on how to open 'notepad++' as administrator in ubuntu :(
I have 16M already it needs to be more than that.

monster issue one, new problem in console
Code:
>> Loading monsters
data/monster/Bosses/pythius the rotten.xml:65: parser error : Opening and ending tag mismatch: attack line 23 and monster
</monster>
          ^
data/monster/Bosses/pythius the rotten.xml:66: parser error : Premature end of data in tag monster line 2

^
[Warning - Monsters::loadMonster] Cannot load monster (Pythius The Rotten) file (data/monster/Bosses/pythius the rotten.xml).
Line: 66, Info: Premature end of data in tag monster line 2
This is my pythius the rotten xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Pythius The Rotten" nameDescription="Pythius the rotten" race="undead" experience="7000" speed="300" manacost="0">
  <health now="9000" max="9000"/>
  <look type="231" corpse="0"/>
  <targetchange interval="60000" chance="0"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
   <script>
    <event name="PythiusTheRotten"/>
  </script>
  <attack>
    <attack name="melee" interval="2000" min="0" max="-400"/>
    <attack name="lifedrain" interval="2000" chance="14" range="7" radius="4" target="1" min="-165" max="-200">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="redspark"/>
    </attack>
    <attack name="physical" interval="2500" chance="13" range="7" min="-0" max="-200">
      <attribute key="shootEffect" value="suddendeath"/>
      <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="earth" interval="2000" chance="14" range="7" radius="4" target="1" min="-55" max="-155">
      <attribute key="shootEffect" value="poison"/>
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="earth" interval="2000" chance="9" length="8" min="-333" max="-418">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="15" radius="4" target="1" min="-85" max="-110">
      <attribute key="shootEffect" value="energy"/>
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="speed" interval="2000" chance="10" range="7" target="1" speedchange="-650">
      <attribute key="shootEffect" value="ice"/>
      <attribute key="areaEffect" value="iceattack"/>
    </attack>
  <defenses armor="40" defense="45">
  </defenses>
 
  <immunities>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
    <immunity lifedrain="1"/>
    <immunity death="1"/>
    <immunity energy="1"/>
    <immunity earth="1"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="YOU'LL NEVER GET MY TREASURE!" yell="1"/>
    <voice sentence="MINIONS, MEET YOUR NEW BROTHER!" yell="1"/>
    <voice sentence="YOU WILL REGRET THAT YOU ARE BORN!" yell="1"/>
    <voice sentence="YOU MADE A HUGE WASTE!" yell="1"/>
  </voices>
</monster>
 
Last edited:
Limos but still cannot change it anyways I have read many tutorials on how to edit that file, but to be honest any of them did not work or it might be me :p, I have added new problem in console just check post above you
 
Last edited:
On line 23, change <attack> to <attacks>, on line 48 add </attacks>.
You can find out what's wrong in an xml file by using this: http://www.xmlvalidation.com/
If you're not sure to what you have to change it, you can compare it with an other monster to see how it's supposed to look like.
 
Thank I got another one, this time it's xml
Code:
[Warning - Actions::registerEvent] Duplicate registered item id: 6512
[Error - LuaInterface::loadFile] data/creaturescripts/scripts/charges.lua:3: ')' expected near 'then'
[Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/charges.lua)
data/creaturescripts/scripts/charges.lua:3: ')' expected near 'then'

And from charges.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local amulet = getPlayerSlotItem(cid, CONST_SLOT_NECKLACE)
        if ((getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2138) then
            doChangeTypeItem(amulet.uid, amulet.type+1)   
                doSendMagicEffect(getCreaturePosition(cid), 39)
     end
    return true
    end
return true
end
 
if ((getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2138) then

Remove the red one.
Also if you tab your script, you can see that the last return true and end don't close anything and are outside the function.
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
     local amulet = getPlayerSlotItem(cid, CONST_SLOT_NECKLACE)
     if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2138) then
         doChangeTypeItem(amulet.uid, amulet.type+1)   
         doSendMagicEffect(getCreaturePosition(cid), 39)
     end
     return true
end

return true
end
So remove that.
 
Thank you for your help, I really appreciate people like you ! :), Have you got any tips on making ot or any tutorials that will help me to improve my ot experience ! :) ?!
Anyways I got only few problems in my console
Code:
Duplicate uniqueId 61472
Duplicate uniqueId 61472
Duplicate uniqueId 24150
Duplicate uniqueId 65535
Duplicate uniqueId 33210
Some of them uniqueId '61472' it's a razachai quest < have 3 same uniqueID chests what can I do about that?
Code:
[Error - MoveEvents Interface]
data/movements/scripts/walkback.lua:onStepIn
Description:
data/movements/scripts/walkback.lua:8: attempt to call global 'isContainer' (a nil value)
stack traceback:
    data/movements/scripts/walkback.lua:8: in function <data/movements/scripts/walkback.lua:3>
walkback lua
Code:
local SPECIAL_QUESTS = {2001}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(not isPlayer(cid)) then
        return true
    end

    if(isContainer(item.uid)) then
        if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
            return true
        end
    elseif(getTileInfo(position).creatures <= 1) then
        return true
    end
   
    if(fromPosition.x == 0) then -- player just logged in
        fromPosition = getTownTemplePosition(getPlayerTown(cid))
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end

    doTeleportThing(cid, fromPosition, true)
    return true
end
 
Last edited:
Thank you will check it out :)
Code:
[CODE][Error - MoveEvents Interface]
data/movements/scripts/walkback.lua:onStepIn
Description:
data/movements/scripts/walkback.lua:8: attempt to call global 'isContainer' (a nil value)
stack traceback:
    data/movements/scripts/walkback.lua:8: in function <data/movements/scripts/walkback.lua:3>
walkback lua
Code:
local SPECIAL_QUESTS = {2001}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(not isPlayer(cid)) then
        return true
    end
    if(isContainer(item.uid)) then
        if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
            return true
        end
    elseif(getTileInfo(position).creatures <= 1) then
        return true
    end

    if(fromPosition.x == 0) then -- player just logged in
        fromPosition = getTownTemplePosition(getPlayerTown(cid))
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end
    doTeleportThing(cid, fromPosition, true)
    return true
end
[/CODE]
 
The function isContainer is a function is the source, so it's probable set to something in the datapack, like the lib folder. So you can try to replace that or replace any of the older folders to see if you still get that problem.
 
I had done compiling my tfs and don't really want to have a trouble again, dont really want to mess with the source :(
Would you help me ?, if I could connect to teamviewer?. I have no idea to be honest how to do it ;(
 
Last edited:
If you think the problem is in the source, you can try to use an other server/distribution with your datapack to see if you also get that problem there, if you do, it's probable something in the datapack (data folder).
 
God damm.. Problems appears and appears ..
Code:
>> Loading script systems
[Error - LuaInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Error - LuaInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Error - LuaInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Error - LuaInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['

Code:
local specialQuests = {
    [2001] = 30015 --Annihilator
    [2002] = 61472 --Razachaiquest
}

local questsExperience = {
    [30015] = 10000
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getBooleanFromString(getConfigValue('enableProtectionQuestForGM'))) then
        if(getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF, cid)
            return true
        end
    end

    local storage = specialQuests[item.actionid]
    if(not storage) then
        storage = item.uid
        if(storage > 65535) then
            return false
        end
    end

    if(getPlayerStorageValue(cid, storage) > 0) then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
        return true
    end

    local items = {}
    local reward = 0

    local size = isContainer(item.uid) and getContainerSize(item.uid) or 0
    if(size == 0) then
        reward = doCopyItem(item, false)
    else
        for i = 0, size do
            local tmp = getContainerItem(item.uid, i)
            if(tmp.itemid > 0) then
                table.insert(items, tmp)
            end
        end
    end

    size = table.maxn(items)
    if(size == 1) then
        reward = doCopyItem(items[1], true)
    end

    local result = ""
    if(reward ~= 0) then
        local ret = getItemDescriptions(reward.uid)
        if(reward.type > 0 and isItemRune(reward.itemid)) then
            result = reward.type .. " charges " .. ret.name
        elseif(reward.type > 0 and isItemStackable(reward.itemid)) then
            result = reward.type .. " " .. ret.plural
        else
            result = ret.article .. " " .. ret.name
        end
    else
        if(size > 20) then
            reward = doCopyItem(item, false)
        elseif(size > 8) then
            reward = getThing(doCreateItemEx(1988, 1))
        else
            reward = getThing(doCreateItemEx(1987, 1))
        end

        for i = 1, size do
            local tmp = doCopyItem(items[i], true)
            if(doAddContainerItemEx(reward.uid, tmp.uid) ~= RETURNVALUE_NOERROR) then
                print("[Warning] QuestSystem:", "Could not add quest reward")
            else
                local ret = ", "
                if(i == 2) then
                    ret = " and "
                elseif(i == 1) then
                    ret = ""
                end

                result = result .. ret
                ret = getItemDescriptions(tmp.uid)
                if(tmp.type > 0 and isItemRune(tmp.itemid)) then
                    result = result .. tmp.type .. " charges " .. ret.name
                elseif(tmp.type > 0 and isItemStackable(tmp.itemid)) then
                    result = result .. tmp.type .. " " .. ret.plural
                else
                    result = result .. ret.article .. " " .. ret.name
                end
            end
        end
    end

    if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then
        result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you have not enough space."
    else
        result = "You have found " .. result .. "."
        setPlayerStorageValue(cid, storage, 1)
        if(questsExperience[storage] ~= nil) then
            doPlayerAddExp(cid, questsExperience[storage])
            doSendAnimatedText(getCreaturePosition(cid), questsExperience[storage], TEXTCOLOR_WHITE)
        end
    end

    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, result)
    return true
end
 
Add a comma.

local specialQuests = {
[2001] = 30015, --Annihilator
[2002] = 61472 --Razachaiquest​
}

Table values are separated by a comma, not by an enter, that is just to make it better readable.
 
Back
Top Bottom