• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TibiaCore 7.4 TFS 1.2 same Nostalrius project.

GitHub - RCP91/TibiaCore (https://github.com/RCP91/TibiaCore) "How Compiler"

For windows download xampp to upload sql or WSL1 also.
Ubuntu Linux install (mysql or mariadb), apache2.
If you have knowledge of Ubuntu, its the quickest and easiest way to start running the server.
I spent some hours yesterday trying to figure it out and bumped into these errors:


I was told this was because of the BOOST version. Do i need to downgrade it or smth?
Post automatically merged:

I'll try to run it on a VM with ubuntu
 
Last edited:
ubuntu you can compiler easy using apt installs, only cmake!
Im setting up a ubuntu right now to try on that first! Obrigado pela ajuda
Post automatically merged:

ubuntu you can compiler easy using apt installs, only cmake!
Alright I think I compiled it in ubuntu, but probably missing a database. How do I do that in ubuntu? Sorry for being stupid lol
 
Last edited:
Did it!

Trying to find out how to create an account now.

Got it to work on the VM that's running the server. When I try on my own pc I get "Connection failed (ERROR 10061) after selecting the character
 
Last edited:
Trying to set up myaac but it doesn't recognize config.lua even though the path seems to be right. /home/user/TibiaCore
 
Trying to set up myaac but it doesn't recognize config.lua even though the path seems to be right. /home/user/TibiaCore
try:
sudo chmod 644 /home/user/TibiaCore/config.lua
sudo chown user:www-data /home/user/TibiaCore/config.lua
sudo chmod 755 /home/user/TibiaCore

Or edit path on config.local.php
Post automatically merged:

I spent some hours yesterday trying to figure it out and bumped into these errors:


I was told this was because of the BOOST version. Do i need to downgrade it or smth?
Post automatically merged:

I'll try to run it on a VM with ubuntu
fixed:
 
try:


Or edit path on config.local.php
Post automatically merged:


fixed:
Did the chmod chown configs but didn't help. Can't find config.local.php though.

EDIT: got it to work with the following:

sudo chmod +x /home
sudo chmod +x /home/user
sudo chmod +x /home/user/TibiaCore
sudo chmod +x /home/user/TibiaCore/config.lua

Thanks for the fix for the windows version!


ty for the help



My only issue now is getting to login with the client from outside the VM. Inside the VM it works fine, outside I get the following error:

Connection Failed. (ERROR 10061)

EDIT: Okay got that to work too. Had to change ip in config lua from 127.0.0.1 to my local ip
Post automatically merged:

try add in item.cpp in function :
C++:
bool Item::equals(const Item* otherItem) const
{
    if (!otherItem || id != otherItem->id) {
        return false;
    }

    // new if.
    if (isStackable()) {
        return true;
    }

    if (!attributes) {
        return !otherItem->attributes;
    }

    const auto& otherAttributes = otherItem->attributes;
    if (!otherAttributes || attributes->attributeBits != otherAttributes->attributeBits) {
        return false;
    }

    const auto& attributeList = attributes->attributes;
    const auto& otherAttributeList = otherAttributes->attributes;
    for (const auto& attribute : attributeList) {
        if (ItemAttributes::isStrAttrType(attribute.type)) {
            for (const auto& otherAttribute : otherAttributeList) {
                if (attribute.type == otherAttribute.type && *attribute.value.string != *otherAttribute.value.string) {
                    return false;
                }
            }
        } else {
            for (const auto& otherAttribute : otherAttributeList) {
                if (attribute.type == otherAttribute.type && attribute.value.integer != otherAttribute.value.integer) {
                    return false;
                }
            }
        }
    }
    return true;
}
I'm getting a crash when throwing a spear too. I added:

// new if.
if (isStackable()) {
return true;
}

to items.cpp but still crashes after recompiling, weirdly the server only crashes if I throw it with a normal character. GM character doesn't crash when throwing spear/small stone

error.webp

Edit:

Fixed it by changing in combat.cpp from:

ConditionType_t conditionType = DamageToConditionType(weapon->getCombatType());
ConditionType_t conditionTypeAmmo = DamageToConditionType(ammunition->getCombatType());
uint32_t aD1 = ammunition->getDamageA();
uint32_t aD2 = ammunition->getDamageB();

to:

ConditionType_t conditionType = DamageToConditionType(weapon->getCombatType());

ConditionType_t conditionTypeAmmo = DamageToConditionType(
ammunition ? ammunition->getCombatType() : COMBAT_NONE
);

uint32_t aD1 = ammunition ? ammunition->getDamageA() : 0;
uint32_t aD2 = ammunition ? ammunition->getDamageB() : 0;


Not sure if it's gonna mess something else, but it's working now
 
Last edited:
Did the chmod chown configs but didn't help. Can't find config.local.php though.

EDIT: got it to work with the following:

sudo chmod +x /home
sudo chmod +x /home/user
sudo chmod +x /home/user/TibiaCore
sudo chmod +x /home/user/TibiaCore/config.lua

Thanks for the fix for the windows version!


ty for the help



My only issue now is getting to login with the client from outside the VM. Inside the VM it works fine, outside I get the following error:

Connection Failed. (ERROR 10061)

EDIT: Okay got that to work too. Had to change ip in config lua from 127.0.0.1 to my local ip
Post automatically merged:


I'm getting a crash when throwing a spear too. I added:

// new if.
if (isStackable()) {
return true;
}

to items.cpp but still crashes after recompiling, weirdly the server only crashes if I throw it with a normal character. GM character doesn't crash when throwing spear/small stone

View attachment 96196

Edit:

Fixed it by changing in combat.cpp from:

ConditionType_t conditionType = DamageToConditionType(weapon->getCombatType());
ConditionType_t conditionTypeAmmo = DamageToConditionType(ammunition->getCombatType());
uint32_t aD1 = ammunition->getDamageA();
uint32_t aD2 = ammunition->getDamageB();

to:

ConditionType_t conditionType = DamageToConditionType(weapon->getCombatType());

ConditionType_t conditionTypeAmmo = DamageToConditionType(
ammunition ? ammunition->getCombatType() : COMBAT_NONE
);

uint32_t aD1 = ammunition ? ammunition->getDamageA() : 0;
uint32_t aD2 = ammunition ? ammunition->getDamageB() : 0;


Not sure if it's gonna mess something else, but it's working now

Yes, throwing weapons don't have attributes, so they can't clone attributes. Therefore, there needs to be a stackable check to return true and combine it with the others. I had corrected it and ended up forgetting to upload it to GitHub.
 
Hello community, I just wanted to take this time to thank you all that collaborated for this thread, specially the OP @chucky91.

I'm starting a OT project from scracht as a hobby. I spent so many hours trying to set up the environment until I tried this one.
Now I can finally start having some fun with it, haha
I hope I can retribute in the future.
Have a nice weekend.
 
What otclient is best for this project and have corret ids with this server? Because when i click right on blueberry bush i have errors in my terminal + i have to relog to see correct sprites with "3x blueberry"
 
What otclient is best for this project and have corret ids with this server? Because when i click right on blueberry bush i have errors in my terminal + i have to relog to see correct sprites with "3x blueberry"
For any project really, 7.4, 7.6. 8.0, simply the best is to read the error.
 
EDIT: I found the map editor here: TibiaCore 7.4 TFS 1.2 same Nostalrius project. (https://otland.net/threads/tibiacore-7-4-tfs-1-2-same-nostalrius-project.288396/post-2749183)

What map editor can be used with this server? I tried remeres map editor but all the tiles has wrong items placed when I load the map.
You need to put the right .spr and .dat to remeres works.
Post automatically merged:

After a long time trying, I managed to get TibiaCore working with OTclient classic 772, however, after about 30 seconds or 1 minute the connection drops and it goes to the character selection screen. This doesn't happen with the original client.
Post automatically merged:

You need to put the right .spr and .dat to remeres works.
Post automatically merged:

After a long time trying, I managed to get TibiaCore working with OTclient classic 772, however, after about 30 seconds or 1 minute the connection drops and it goes to the character selection screen. This doesn't happen with the original client.
in features.lua you should activate:

g_game.enableFeature(GameClientPing)

it was commented
 
Last edited:
I am starting on ots, and i am having issues running this the first time, where i find the .dat and spr?

1766420941211.webp
 
Last edited:
Back
Top