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

The Forgotten Dev-Cpp v2.6!

Status
Not open for further replies.
Now have this error!!!

Code:
C:\Documents and Settings\Noobzinha\Desktop\0.3.4\vocation.cpp In member function `void Vocation::reset()': 
296 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\vocation.cpp [Warning] passing `float' for converting 2 of `void* memset(void*, int, size_t)' 
C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp In member function `virtual int32_t WeaponWand::getWeaponDamage(const Player*, const Creature*, const Item*, bool) const': 
1043 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp [Warning] converting to `int32_t' from `float' 
1044 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp [Warning] converting to `int32_t' from `float'
 
They are warnings, not errors :p but if you don't wanna see them you need to fix the following:

in vocation.cpp change:
memset(skillMultipliers, 2.0f, sizeof(skillMultipliers) - 1);

to this:
memset(skillMultipliers, 2, sizeof(skillMultipliers) - 1);


In weapons.cpp at the bottom change:

minValue *= vocation->getWandMultiplier();
maxValue *= vocation->getWandMultiplier();

to this:

minValue *= (int)vocation->getWandMultiplier();
maxValue *= (int)vocation->getWandMultiplier();


and that's it, no more warnings.. Tell me your output! Should compile fine now..
 
They are warnings, not errors :p but if you don't wanna see them you need to fix the following:

in vocation.cpp change:
memset(skillMultipliers, 2.0f, sizeof(skillMultipliers) - 1);

to this:
memset(skillMultipliers, 2, sizeof(skillMultipliers) - 1);


In weapons.cpp at the bottom change:

minValue *= vocation->getWandMultiplier();
maxValue *= vocation->getWandMultiplier();

to this:

minValue *= (int)vocation->getWandMultiplier();
maxValue *= (int)vocation->getWandMultiplier();


and that's it, no more warnings.. Tell me your output! Should compile fine now..
Kiss for you thxx
 
DevCPP 2.3, Boost 1.35, trying to compile TFS 0.2.2 (Revision 56)

Code:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Administrator\Desktop\0.2.2\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Administrator\Desktop\0.2.2\dev-cpp\Makefile.win" all
g++.exe obj//account.o obj//actions.o obj//admin.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//commands.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//exception.o obj//fileloader.o obj//game.o obj//gui.o obj//house.o obj//housetile.o obj//inputbox.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//items.o obj//logger.o obj//luascript.o obj//mailbox.o obj//map.o obj//md5.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//playerbox.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocollogin.o obj//quests.o obj//raids.o obj//rsa.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//sha1.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//tasks.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//ban.o obj//protocolold.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"lib" -mwindows -O1 -lboost_regex -lboost_system -lgmp -lluasql_mysql -lluasql_sqlite -llua5.1 -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

obj//admin.o:admin.cpp:(.text+0xbddf): undefined reference to `boost::system::get_generic_category()'
obj//admin.o:admin.cpp:(.text+0xbe05): undefined reference to `boost::system::get_generic_category()'
obj//admin.o:admin.cpp:(.text+0xbe2b): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x373d): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x3763): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x3789): more undefined references to `boost::system::get_generic_category()' follow

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

Execution terminated
 
Elf messed up boost in v2.3, I'll release an updated and fixed version with boost 1.39.0 later today or tomorrow.
 
Thanks Tala, the previous v2.2 of DevCpp works fine for both 0.2.2 and 0.3.4pl2
 
Sorry for not releasing it in time, I'm working on it at the moment.
 
Updated to version 2.4!
 
Status
Not open for further replies.
Back
Top