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

Compiling help compiling tfs 0.3.7 svn

Solution
Solution
thank you and wich boost ++ will be good?
Yes, it gonna work try and tell us the results.
Edit u don't need boosts it has already boosts included all u gonna do is link your include folder path in Additional Include Directories
the same this with lib64 like that.
 

Attachments

Last edited:
Yes, it gonna work try and tell us the results.
Edit u don't need boosts it has already boosts included all u gonna do is link your include folder path in Additional Include Directories
the same this with lib64 like that.
worked perfectly well ill add your post as solution thank you!

pd: i have another question im trying to add this to luascript.cpp:


C++:
int32_t LuaScriptInterface::luaSetPlayerModes(lua_State* L)
{
    //setPlayerModes(cid, fight, chase, secure)
    uint8_t rawFightMode = popNumber(L); //1 - offensive, 2 - balanced, 3 - defensive
    uint8_t rawChaseMode = popNumber(L); //0 - stand while fightning, 1 - chase opponent
    uint8_t rawSecureMode = popNumber(L); //0 - can't attack unmarked, 1 - can attack unmarked

    ScriptEnviroment* env = getEnv();
    if(Player* player = env->getPlayerByUID(popNumber(L)))
    {
        chaseMode_t chaseMode = CHASEMODE_STANDSTILL;
        if(rawChaseMode == 1)
            chaseMode = CHASEMODE_FOLLOW;
    
        fightMode_t fightMode = FIGHTMODE_ATTACK;
        if(rawFightMode == 2)
            fightMode = FIGHTMODE_BALANCED;
        else if(rawFightMode == 3)
            fightMode = FIGHTMODE_DEFENSE;
    
        secureMode_t secureMode = SECUREMODE_OFF;
        if(rawSecureMode == 1)
            secureMode = SECUREMODE_ON;

        player->setFightMode(fightMode);
        player->setChaseMode(chaseMode);
        player->setSecureMode(secureMode);
        lua_pushboolean(L, true);
    }
    else
    {
        errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
        lua_pushboolean(L, false);
    }
    return 1;
}

and i got this erros any solution?

Code:
1>..\luascript.cpp(9437): error C3861: 'popNumber': no se encontró el identificador
1>..\luascript.cpp(9438): error C3861: 'popNumber': no se encontró el identificador
1>..\luascript.cpp(9439): error C3861: 'popNumber': no se encontró el identificador
1>..\luascript.cpp(9441): error C3861: 'getEnv': no se encontró el identificador
1>..\luascript.cpp(9442): error C3861: 'popNumber': no se encontró el identificador
1>..\luascript.cpp(9465): error C3861: 'error': no se encontró el identificador
1>..\luascript.cpp(9465): error C3861: 'getError': no se encontró el identificador
 
Back
Top