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

Solved I have problem with compiling

remus934

New Member
Joined
Mar 1, 2014
Messages
13
Reaction score
0
I have this problem when i'm trying to rebuild project:
At the end of compiling in protocolgame.cpp i have red marked:
Code:
if(type > SHOOT_EFFECT_NONE || (!canSee(from) && !canSee(to)))
and at the end of compiling:
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp In member function `void ProtocolGame::sendDistanceShoot(const Position&, const Position&, uint8_t)': 2055 C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp [Warning] comparison is always false due to limited range of data type
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp In member function `void ProtocolGame::sendMagicEffect(const Position&, uint8_t)':
2068 C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp [Warning] comparison is always false due to limited range of data type
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\dev-cpp\Makefile.win [Build Error] [TheForgottenServer-console.exe] Error 1

Need help! :<
 
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp In member function `void ProtocolGame::sendDistanceShoot(const Position&, const Position&, uint8_t)':
2055 C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp `pos' was not declared in this scope
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp In member function `void ProtocolGame::sendMagicEffect(const Position&, uint8_t)':
2068 C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\protocolgame.cpp [Warning] comparison is always false due to limited range of data type
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\dev-cpp\Makefile.win [Build Error] [obj-console//protocolgame.o] Error 1
 
oh. srry i forget that error in Distance :P
in this function
Code:
void ProtocolGame::sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
change to this V
Code:
    if(type > SHOOT_EFFECT_LAST || (!canSee(from) && !canSee(to)))
        return;

and in this function
Code:
void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
change to this V
Code:
    if(type > MAGIC_EFFECT_LAST || !canSee(pos))
        return;
 
wtf?
In compiler I have:
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\dev-cpp\Makefile.win [Build Error] [TheForgottenServer-console.exe] Error 1

In compiler log:
Compiler: Default compiler
Building Makefile: "C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\dev-cpp\Makefile.win"
Executing make clean
rm -f obj-console//actions.o obj-console//allocator.o obj-console//baseevents.o obj-console//beds.o obj-console//chat.o obj-console//combat.o obj-console//protocolold.o obj-console//condition.o obj-console//configmanager.o obj-console//connection.o obj-console//container.o obj-console//creature.o obj-console//creatureevent.o obj-console//cylinder.o obj-console//database.o obj-console//databasemysql.o obj-console//databasesqlite.o obj-console//depot.o obj-console//exception.o obj-console//fileloader.o obj-console//game.o obj-console//gui.o obj-console//house.o obj-console//housetile.o obj-console//inputbox.o obj-console//ioguild.o obj-console//iologindata.o obj-console//iomap.o obj-console//iomapserialize.o obj-console//item.o obj-console//items.o obj-console//luascript.o obj-console//mailbox.o obj-console//map.o obj-console//md5.o obj-console//monster.o obj-console//monsters.o obj-console//movement.o obj-console//networkmessage.o obj-console//npc.o obj-console//otserv.o obj-console//outfit.o obj-console//outputmessage.o obj-console//party.o obj-console//player.o obj-console//playerbox.o obj-console//position.o obj-console//protocol.o obj-console//protocolgame.o obj-console//protocollogin.o obj-console//quests.o obj-console//raids.o obj-console//rsa.o obj-console//scheduler.o obj-console//scriptmanager.o obj-console//server.o obj-console//sha1.o obj-console//spawn.o obj-console//spells.o obj-console//status.o obj-console//talkaction.o obj-console//tasks.o obj-console//teleport.o obj-console//textlogger.o obj-console//thing.o obj-console//tile.o obj-console//tools.o obj-console//trashholder.o obj-console//vocation.o obj-console//waitlist.o obj-console//weapons.o obj-console//ioban.o obj-console//globalevent.o obj-console//gameservers.o obj-console//databasemanager.o obj-console//admin.o obj-console//itemattributes.o obj-console//group.o obj-console//TheForgottenServer_private.res TheForgottenServer-console.exe

windres.exe -i TheForgottenServer_private.rc --input-format=rc -o obj-console//TheForgottenServer_private.res -O coff

g++.exe obj-console//actions.o obj-console//allocator.o obj-console//baseevents.o obj-console//beds.o obj-console//chat.o obj-console//combat.o obj-console//protocolold.o obj-console//condition.o obj-console//configmanager.o obj-console//connection.o obj-console//container.o obj-console//creature.o obj-console//creatureevent.o obj-console//cylinder.o obj-console//database.o obj-console//databasemysql.o obj-console//databasesqlite.o obj-console//depot.o obj-console//exception.o obj-console//fileloader.o obj-console//game.o obj-console//gui.o obj-console//house.o obj-console//housetile.o obj-console//inputbox.o obj-console//ioguild.o obj-console//iologindata.o obj-console//iomap.o obj-console//iomapserialize.o obj-console//item.o obj-console//items.o obj-console//luascript.o obj-console//mailbox.o obj-console//map.o obj-console//md5.o obj-console//monster.o obj-console//monsters.o obj-console//movement.o obj-console//networkmessage.o obj-console//npc.o obj-console//otserv.o obj-console//outfit.o obj-console//outputmessage.o obj-console//party.o obj-console//player.o obj-console//playerbox.o obj-console//position.o obj-console//protocol.o obj-console//protocolgame.o obj-console//protocollogin.o obj-console//quests.o obj-console//raids.o obj-console//rsa.o obj-console//scheduler.o obj-console//scriptmanager.o obj-console//server.o obj-console//sha1.o obj-console//spawn.o obj-console//spells.o obj-console//status.o obj-console//talkaction.o obj-console//tasks.o obj-console//teleport.o obj-console//textlogger.o obj-console//thing.o obj-console//tile.o obj-console//tools.o obj-console//trashholder.o obj-console//vocation.o obj-console//waitlist.o obj-console//weapons.o obj-console//ioban.o obj-console//globalevent.o obj-console//gameservers.o obj-console//databasemanager.o obj-console//admin.o obj-console//itemattributes.o obj-console//group.o obj-console//TheForgottenServer_private.res -o "TheForgottenServer-console.exe" -L"C:/Users/Remek/Desktop/DBWarrior/Narzędzia/TheForgottenDevCpp/The Forgotten Dev-Cpp/lib" -O1 -lboost_system -lgmp -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s -lboost_filesystem -lboost_thread -lwsock32 -Wl,-Map=otserv.map -llibboost_regex-mgw-mt-s-1_33_1 C:/Dev-Cpp/bin/libxml2.dll C:/Dev-Cpp/bin/lua5.dll C:/Dev-Cpp/bin/lualib5.dll

g++.exe: C:/Dev-Cpp/bin/libxml2.dll: No such file or directory

g++.exe: C:/Dev-Cpp/bin/lua5.dll: No such file or directory
g++.exe: C:/Dev-Cpp/bin/lualib5.dll: No such file or directory

make.exe: *** [TheForgottenServer-console.exe] Error 1

Execution terminated
 
but you know ,I need dev cpp for this source because I want to do some updates...
I will try compile it in other dev cpp ,Stians maybe?
 
My last question is:
How can I fix it?
Compiler:
cannot find -llibboost_regex-mgw-mt-s-1_33_1
C:\Users\Remek\Desktop\DBWarrior\0.3.6pl1.r83 (Silnik)\dev-cpp\Makefile.win [Build Error] [TheForgottenServer-console.exe] Error 1
Compiler Log:
lboost_filesystem -lboost_thread -lwsock32 -Wl,-Map=otserv.map -llibboost_regex-mgw-mt-s-1_33_1
ld: cannot find -llibboost_regex-mgw-mt-s-1_33_1
make.exe: *** [TheForgottenServer-console.exe] Error 1
Execution terminated

I already installed boost 1_33_1 ;/



OK , I Fixed IT!
Thank you all!
 
Last edited:
Back
Top