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

Problem with colors? O.o and debugs [easy for who know to fix it]

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
eey guys
:)
i'm having a trouble in my server
its 0.3.6 TFS with source edited (i don't know what is edited cuz i downloaded it ok?)
its a offline-server. so, its only for me and my rl friends play together xD

i'm having this trouble:
when I look something, it shows in ORANGE in the chatbox, and not in green like the default style...
when I use potions, it debug.
you guys know?
:s

OBS: MY SERVER IS 8.60

i had this problem one time, and some guy fixed it by editing some file of my folder LIB.
i don't know what he change. he doesnt play anymore, and he's so busy then he cant enter MSN to help
so anyone know about it?

thx!
 
Open up your /data/lib/000-constant.lua file and replace your equivalent code snippet (not the entire file, obviously!) with this:
PHP:
MESSAGE_FIRST = 13
MESSAGE_EVENT_ORANGE = MESSAGE_FIRST
MESSAGE_STATUS_CONSOLE_ORANGE = 14
MESSAGE_STATUS_WARNING = 15
MESSAGE_EVENT_ADVANCE = 16
MESSAGE_EVENT_DEFAULT = 17
MESSAGE_STATUS_DEFAULT = 18
MESSAGE_INFO_DESCR = 19
MESSAGE_STATUS_SMALL = 20
MESSAGE_STATUS_CONSOLE_BLUE = 21
MESSAGE_STATUS_CONSOLE_RED = 22
MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_RED

MESSAGE_TYPES = {
	["advance"] = MESSAGE_EVENT_ADVANCE,
	["event"] = MESSAGE_EVENT_DEFAULT,
	["white"] = MESSAGE_EVENT_DEFAULT,
	["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE,
	["info"] = MESSAGE_INFO_DESCR,
	["green"] = MESSAGE_INFO_DESCR,
	["small"] = MESSAGE_STATUS_SMALL,
	["blue"] = MESSAGE_STATUS_CONSOLE_BLUE,
	["red"] = MESSAGE_STATUS_CONSOLE_RED,
	["warning"] = MESSAGE_STATUS_WARNING,
	["status"] = MESSAGE_STATUS_DEFAULT
}
 
Uhm, perhaps these one then.
LUA:
COLOR_BLACK = 0
COLOR_BLUE = 5
COLOR_GREEN = 18
COLOR_LIGHTGREEN = 66
COLOR_DARKBROWN = 78
COLOR_LIGHTBLUE = 89
COLOR_DARKRED = 108
COLOR_DARKPURPLE = 112
COLOR_BROWN = 120
COLOR_GREY = 129
COLOR_TEAL = 143
COLOR_DARKPINK = 152
COLOR_PURPLE = 154
COLOR_DARKORANGE = 156
COLOR_RED = 180
COLOR_PINK = 190
COLOR_ORANGE = 192
COLOR_DARKYELLOW = 205
COLOR_YELLOW = 210
COLOR_WHITE = 215
COLOR_NONE = 255
 
doesnt worked 2 bro! :S

detail: i have the sources, then, when i try to search for "MESSAGE_FIRST" or MESSAGE_EVENT_ADVANCE in source, it doesnt find nothing about it.
can be something like that?
;S
help please ! ^^ ty
 
If that's not it, I am not sure what is. I am not much of a C++ guy unfortunately. I am sure someone will tag along and assist you soon enough though. :-)
 
Well, if you don't know what makes this distribution different from an official TFS release, why do you keep having problems with it? Just download the official release! :P (unless you do know what makes it different, and you like it)
 
I just realized that the loot color is ok: (green color) but the rest is all fucked-up!

Well, if you don't know what makes this distribution different from an official TFS release, why do you keep having problems with it? Just download the official release! :P (unless you do know what makes it different, and you like it)

i tried to put version tfs 0.3.6 at 8.60, but it said wrong items, and when i put the 0.3.6 items it bug the map and doesnt open xD

just to put more clear: its a global-full server, only to me and my rls to have funny ;p

please help me ! :s
 
Last edited by a moderator:
Back
Top