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

tfs 1.1 crash when use food/potion

You have to change the values for SpeakClasses/MessageClasses in const.h.
 
You have to change the values for SpeakClasses/MessageClasses in const.h.
they are ATM
Code:
enum SpeakClasses : uint8_t {
    TALKTYPE_SAY = 1,
    TALKTYPE_WHISPER = 2,
    TALKTYPE_YELL = 3,
    TALKTYPE_PRIVATE_FROM = 4,
    TALKTYPE_PRIVATE_TO = 5,
    TALKTYPE_CHANNEL_Y = 7,
    TALKTYPE_CHANNEL_O = 8,
    TALKTYPE_PRIVATE_NP = 10,
    TALKTYPE_PRIVATE_PN = 12,
    TALKTYPE_BROADCAST = 13,
    TALKTYPE_CHANNEL_R1 = 14, //red - #c text
    TALKTYPE_PRIVATE_RED_FROM = 15, //@name@text
    TALKTYPE_PRIVATE_RED_TO = 16, //@name@text
    TALKTYPE_MONSTER_SAY = 36,
    TALKTYPE_MONSTER_YELL = 37,

    TALKTYPE_CHANNEL_R2 = 0xFF //#d
};

enum MessageClasses : uint8_t {
    MESSAGE_STATUS_CONSOLE_BLUE = 0x04, /*FIXME Blue message in the console*/
    MESSAGE_STATUS_CONSOLE_RED = 0x0E, /*Red message in the console*/
    MESSAGE_STATUS_DEFAULT = 0x11, /*White message at the bottom of the game window and in the console*/
    MESSAGE_STATUS_WARNING = 0x12, /*Red message in game window and in the console*/
    MESSAGE_EVENT_ADVANCE = 0x13, /*White message in game window and in the console*/
    MESSAGE_STATUS_SMALL = 0x15, /*White message at the bottom of the game window"*/
    MESSAGE_INFO_DESCR = 0x16, /*Green message in game window and in the console*/
    MESSAGE_DAMAGE_DEALT = 0x17,
    MESSAGE_DAMAGE_RECEIVED = 0x18,
    MESSAGE_HEALED = 0x19,
    MESSAGE_EXPERIENCE = 0x1A,
    MESSAGE_DAMAGE_OTHERS = 0x1B,
    MESSAGE_HEALED_OTHERS = 0x1C,
    MESSAGE_EXPERIENCE_OTHERS = 0x1D,
    MESSAGE_EVENT_DEFAULT = 0x1E, /*White message at the bottom of the game window and in the console*/
    MESSAGE_LOOT = 0x1F,
    MESSAGE_EVENT_ORANGE = 0x24, /*Orange message in the console*/
    MESSAGE_STATUS_CONSOLE_ORANGE = 0x25  /*Orange message in the console*/
};
 
It seems like you are overriding the value for TALKTYPE_MONSTER_SAY somewhere in your libraries, remove it.

You'll probably find something like:
Code:
TALKTYPE_MONSTER_SAY = 35
 
It seems like you are overriding the value for TALKTYPE_MONSTER_SAY somewhere in your libraries, remove it.

You'll probably find something like:
Code:
TALKTYPE_MONSTER_SAY = 35
in compat.lua at the top i have
TALKTYPE_ORANGE_1 = TALKTYPE_MONSTER_SAY
 
It seems like you are overriding the value for TALKTYPE_MONSTER_SAY somewhere in your libraries, remove it.

You'll probably find something like:
Code:
TALKTYPE_MONSTER_SAY = 35
Actually, i in lib-custom.lua in libs
it has
TALKTYPE_MONSTER_SAY = 35
:D ill remove it
 
Back
Top