Compiling tfs 1.2

Discussion in 'Support' started by Misokoko, Jan 11, 2017.

  1. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    when itried to compile tfs 1.2 i got this error

    1>------ Build started: Project: theforgottenserver, Configuration: Release x64 ------
    1> otpch.cpp
    1>g:\tibia\forgottenserver-8.6\forgottenserver-8.6\src\otpch.h(42): fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    Error C1083 Cannot open include file: 'boost/asio.hpp': No such file or directory theforgottenserver g:\tibia\forgottenserver-8.6\forgottenserver-8.6\src\otpch.h 42
     
  2. Lordfire

    Lordfire Active Member

    Joined:
    Jul 16, 2008
    Messages:
    219
  3. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
  4. Lordfire

    Lordfire Active Member

    Joined:
    Jul 16, 2008
    Messages:
    219
    Because that is for 1.0 and 1.1, but 1.2 is different.
     
  5. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    same error :/
     
  6. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    solved but when i tried to start it got this Establishing connection database ... then it closed

    my config
    Code:
    -- Combat settings
    -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
    worldType = "pvp"
    hotkeyAimbotEnabled = true
    protectionLevel = 1
    killsToRedSkull = 3
    killsToBlackSkull = 6
    pzLocked = 60000
    removeChargesFromRunes = true
    timeToDecreaseFrags = 24 * 60 * 60 * 1000
    whiteSkullTime = 15 * 60 * 1000
    stairJumpExhaustion = 2000
    experienceByKillingPlayers = false
    expFromPlayersLevelRange = 75
    
    -- Connection Config
    -- NOTE: maxPlayers set to 0 means no limit
    ip = "127.0.0.1"
    bindOnlyGlobalAddress = false
    loginProtocolPort = 7171
    gameProtocolPort = 7172
    statusProtocolPort = 7171
    maxPlayers = 0
    motd = "Welcome to The Forgotten Server!"
    onePlayerOnlinePerAccount = true
    allowClones = false
    serverName = "Forgotten"
    statusTimeout = 5000
    replaceKickOnLogin = true
    maxPacketsPerSecond = 25
    
    -- Deaths
    -- NOTE: Leave deathLosePercent as -1 if you want to use the default
    -- death penalty formula. For the old formula, set it to 10. For
    -- no skill/experience loss, set it to 0.
    deathLosePercent = -1
    
    -- Houses
    -- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
    housePriceEachSQM = 1000
    houseRentPeriod = "never"
    
    -- Item Usage
    timeBetweenActions = 200
    timeBetweenExActions = 1000
    
    -- Map
    -- NOTE: set mapName WITHOUT .otbm at the end
    mapName = "forgotten"
    mapAuthor = "Komic"
    
    -- Market
    marketOfferDuration = 30 * 24 * 60 * 60
    premiumToCreateMarketOffer = true
    checkExpiredMarketOffersEachMinutes = 60
    maxMarketOffersAtATimePerPlayer = 100
    
    -- MySQL
    mysqlHost = "127.0.0.1"
    mysqlUser = "forgottenserver"
    mysqlPass = ""
    mysqlDatabase = "forgottenserver"
    mysqlPort = 3306
    mysqlSock = ""
    
    -- Misc.
    allowChangeOutfit = true
    freePremium = false
    kickIdlePlayerAfterMinutes = 15
    maxMessageBuffer = 4
    emoteSpells = false
    classicEquipmentSlots = false
    
    -- Rates
    -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
    rateExp = 5
    rateSkill = 3
    rateLoot = 2
    rateMagic = 3
    rateSpawn = 1
    
    -- Monsters
    deSpawnRange = 2
    deSpawnRadius = 50
    
    -- Stamina
    staminaSystem = true
    
    -- Scripts
    warnUnsafeScripts = true
    convertUnsafeScripts = true
    
    -- Startup
    -- NOTE: defaultPriority only works on Windows and sets process
    -- priority, valid values are: "normal", "above-normal", "high"
    defaultPriority = "high"
    startupDatabaseOptimization = false
    
    -- Status server information
    ownerName = ""
    ownerEmail = ""
    url = "[URL]https://otland.net/[/URL]"
    location = "Sweden"
    
    Bump!!
     
    Last edited by a moderator: Jan 13, 2017
  7. Doomdice

    Doomdice Just another day to live.

    Joined:
    Jul 20, 2009
    Messages:
    601
    you have to setup a database with site to run the server or else you cannot create your account.
     
    Misokoko likes this.
  8. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    ty but when i copied another data i got errors in console and close
     
  9. Xeraphus

    Xeraphus the best

    Joined:
    Feb 14, 2015
    Messages:
    1,704
    dont just copy/paste and expect everything to work
    you have to set up a database yourself and use uniserver zero to create a website (look up znote aac)
     
  10. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    i mean data that conatains items,actions, etc..
     
  11. Doomdice

    Doomdice Just another day to live.

    Joined:
    Jul 20, 2009
    Messages:
    601
    If you need them fix best way to fix is this download this https://github.com/otland/forgottenserver clean datapacks & all start scratch.
     
  12. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    but i need make mine works i copied it from another ot
     
  13. Doomdice

    Doomdice Just another day to live.

    Joined:
    Jul 20, 2009
    Messages:
    601
    If you download what you need out of that link you can make it work and insert what you want from other ot and find whats needs to be fixed as you go.
     
  14. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    i will try and tell you :)
     
  15. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    @Doomdice
    i got these bugs and with all files like actions movements
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 0
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 1
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 2
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 3
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 4
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 5
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 6
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 7
    [Notice - Vocations::loadFromXml] Missing skill id for vocation: 8
    >> Loading items
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: preventDrop
    [Warning - Items::parseItemNode] Unknown key value: worth
    [Warning - Items::parseItemNode] Unknown key value: worth
    [Warning - Items::parseItemNode] Unknown key value: worth
    [Warning - Items::parseItemNode] Unknown key value: preventDrop
    [Warning - Items::parseItemNode] Unknown key value: preventDrop
    [Warning - Items::loadFromXml] fromid (2264) without toid
    [Warning - Items::loadFromXml] fromid (2280) without toid
    [Warning - Items::loadFromXml] fromid (2296) without toid
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: breakChance
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown slotType: Wand
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown key value: ammoAction
    [Warning - Items::parseItemNode] Unknown floorChange: southEx
    [Warning - Items::parseItemNode] Unknown floorChange: eastEx
    [Warning - Items::parseItemNode] Unknown floorChange: southEx
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: forceSerialize
    [Warning - Items::parseItemNode] Unknown key value: worth
    >> Loading script systems
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - RuneSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - InstantSpell::loadFunction] Function "" does not exist.
    [Warning - Event::checkScript] Event onUse not found. scripts/tile.lua
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Event::checkScript] Can not load script: scripts/Vip.lua
    cannot open data/actions/scripts/Vip.lua: No such file or directory
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.

    Lua Script Error: [Test Interface]
    data/actions/scripts/ultimatehp.lua
    data/actions/scripts/ultimatehp.lua:8: attempt to call global 'getItemNameById' (a nil value)
    stack traceback:
    [C]: in function 'getItemNameById'
    data/actions/scripts/ultimatehp.lua:8: in main chunk
    [Warning - Event::checkScript] Can not load script: scripts/ultimatehp.lua
    cannot open data/actions/scripts/Vip.lua: No such file or directory

    Lua Script Error: [Test Interface]
    data/actions/scripts/greatmp.lua
    data/actions/scripts/greatmp.lua:8: attempt to call global 'getItemNameById' (a nil value)
    stack traceback:
    [C]: in function 'getItemNameById'
    data/actions/scripts/greatmp.lua:8: in main chunk
    [Warning - Event::checkScript] Can not load script: scripts/greatmp.lua
    cannot open data/actions/scripts/Vip.lua: No such file or directory

    Lua Script Error: [Test Interface]
    data/actions/scripts/spiritpot.lua
    data/actions/scripts/spiritpot.lua:8: attempt to call global 'getItemNameById' (a nil value)
    stack traceback:
    [C]: in function 'getItemNameById'
    data/actions/scripts/spiritpot.lua:8: in main chunk
    [Warning - Event::checkScript] Can not load script: scripts/spiritpot.lua
    cannot open data/actions/scripts/Vip.lua: No such file or directory
     
  16. Doomdice

    Doomdice Just another day to live.

    Joined:
    Jul 20, 2009
    Messages:
    601


    You need to replace ur files to clean ones I hate to say it but you do the copy & paste dont work as good its best to have a clean datapack.
     
  17. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    and what about world it's the same too ?
     
  18. Tinkz

    Tinkz Java Developer

    Joined:
    Feb 14, 2012
    Messages:
    28
    You can not just place data from another server to another one. I´m guessing you´re trying to use old TFS data to new TFS data. I did that too but you must fix and work so that TFS 1.2 can read the files. Start with just actions .. if you get errors fix, if good then place another etc...
     
  19. Misokoko

    Misokoko Member

    Joined:
    Mar 29, 2013
    Messages:
    99
    started with actions got this
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    [Warning - Action::loadFunction] Function "" does not exist.
    how it can be solved btw the same will happen with other files
     
  20. Xeraphus

    Xeraphus the best

    Joined:
    Feb 14, 2015
    Messages:
    1,704
    actions.xml in 1.2 isn't the same as 0.4
    there is no more event="script" or event="function" or value="something.lua"
    use
    script="something.lua" or function="sampleFunction"
     

Share This Page