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

Solved Help to compile source!

eyteew

es neko nesaprotu :D
Joined
Nov 25, 2009
Messages
104
Reaction score
0
Location
Thais
Hello!
I'm noob at compiling and even don't have C++. It would be so nice, if someone could take the source, do changes, compile and send to me. Or at least give me step by step tutorial, how to compile...
Source im using: cryingdamson 0.3.6 (8.60) V8.2 Source.rar

(stacking bug fix)
search in game.cpp
Code:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
	int32_t subType = -1;
	if(item->hasSubType() && !item->hasCharges())
		subType = item->getSubType();
 
	const ItemType& it = Item::items[item->getID()];
	uint32_t count = player->__getItemTypeCount(item->getID(), subType, false);
 
	char buffer[40 + it.name.size()];
	if(count == 1)
		sprintf(buffer, "Using the last %s...", it.name.c_str());
	else
		sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());
 
	player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

and replace with this one
Code:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
	const ItemType& it = Item::items[item->getID()];
	uint32_t count = player->__getItemTypeCount(item->getID(), -1);
 
	char buffer[40 + it.name.size()];
	if(count == 1)
		sprintf(buffer, "Using the last %s...", it.name.c_str());
	else
		sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());
 
	player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

Thank you and have a nice day! :)
 
Last edited:
Pay 5$ (through paypal) who will fix stackable items count when used via hotkey and compile this source in 64 bits (GUI). Need more info - pm.
 
just keep your money i will give you a little things that you can do to compile idk if it work to 64 i tried in 32bit (windows)
first go to :
http://otland.net/f19/stians-dev-cpp-repack-0-2-crypto-64bit-62455/
try to find a reuploaded version 64bit
then go to your source and open dev-cpp and open
TheForgottenServer-console or anything make sure the file extenstion is Dev file
then open sources and you will find game.cpp and redit i can do it for you if you can't


- - - Updated - - -

btw the bool you are searching for is the last bool ^^
 
yeah man, i have compiled with 32 bits and it worked, and worked only with console panel, not gui. (GUI just simply doesn't appear when opened, but in tasks it is)
Im trying for long time to compile 64 bits with gui, but without success. I dont know why, but in the process of compiling after ~5mins It stops because of too much errors.
Have tried with other sources, but it shows - can't be compiled in 64 bit mode.
Can you do this for me? If you can solve it, I would like to find out, what i were doing wrong. I will be very thankful to you.
 
Last edited:
Back
Top