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

[8.41/42] The Forgotten Server 0.3.4PL2 (Crying Damson)

Status
Not open for further replies.
I'm not able to post any patches and anything, so I'll post few fixes for most important things. You need to compile it.

1. Premium days removing (-1 day after relog) fix
iologindata.cpp
Change:
Code:
uint32_t days = (uint32_t)std::ceil((double)(timeNow - account.lastDay) / 86400);
To:
Code:
uint32_t days = (uint32_t)std::ceil((timeNow - account.lastDay) / 86400);

2. Error when compiling with __EXCEPTION_TRACER__
exception.cpp
After:
Code:
#include "otpch.h"
Add:
Code:
#include "otsystem.h"

3. doCreateItem fix
luascript.cpp
Change whole function
Code:
int32_t LuaScriptInterface::luaDoCreateItem(lua_State* L)
To:
Wklej.to - po prostu wklej to - paste: coje

4. Monster crash, temporary fix (pushCreatures)
monster.cpp
Change whole function:
Code:
void Monster::pushCreatures(Tile* tile)
To:
Wklej.to - po prostu wklej to - paste: D9rF

Really thaks slawkens, but all people don't know copile...
You can post TheForgottenServer.Exe already fixed? is better ;) tnx!
 
Yay thx elf but i need help of some one ... i cant save the server with the cryingdamson3-gui.7z cuz that dont have reload , main and that things but when i open cryingdamson3-console.7z it say it stop working ... :S help plz how i can use cryingdamson3-console.7z

Help me please :S i cant open the Yay thx elf but i need help of some one ... i cant save the server with the cryingdamson3-gui.7z cuz that dont have reload , main and that things but when i open cryingdamson3-console.7z it say it stop working ... :S help plz how i can use cryingdamson3-console.7z

and thats the one that have the settings plz help

Ops didnt c that i re-post it my bad guys :S but if some1 can help me
 
Last edited by a moderator:
I'm not able to post any patches and anything, so I'll post few fixes for most important things. You need to compile it.

@guys above
Can't you read? If he could post compiled version he would do it...
You should thank slawkens for posting here patches from private subversion instead of ignoring his words and asking for something which can not be done...
 
@slawkens

Post codes to fix doCreateItem and Monster Crash, and i'll compile it!!
 
ok here you have latest version, with fixed much bugs (Much more than I posted previously)

With __EXCEPTION_TRACER__
and
its __CONSOLE__

It also contains new config values (you can add it to config.lua)
Code:
premiumDaysToFormGuild = 0
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
confirmOutdatedVersion = "yes"

Changes:
Code:
* Premium account time fix (thanks Faramir)
* Teleport summon fix
* 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.)
* Fixes to click & turn teleport (Debug prevent, and you can't enter house)
* Client version displaying onLook
* Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name
* New configurable: premiumDaysToFormGuild (Default: 0)
* New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000)
* New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation)
* New configurable: deathContainerId, its a default container added afer player death
* New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList()
* Display more detailed time in banishment info (at login etc)
* lastLogin param to onLogin
* executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging
* new creature events: onFollow(cid, target) and onTarget(cid, target)
* few additional things displayed onLook, like decayTo and ghost activated
* doCreateItem fix. Count is OPTIONAL
* Few fixes with vocation multipliers
* '*Ghost Mode*' text for invisible gamemasters onLook
* Temporary crashbug fix with Monster::pushCreatures

There are more changes/fixes in doc/ and data/ but I can give you only this binary.

Download link:
http://uploadhyper.com/file/2177/TFSFIXED.rar.html
 
ok here you have latest version, with fixed much bugs (Much more than I posted previously)

With __EXCEPTION_TRACER__
and
its __CONSOLE__

It also contains new config values (you can add it to config.lua)
Code:
premiumDaysToFormGuild = 0
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
confirmOutdatedVersion = "yes"

Changes:
Code:
* Premium account time fix (thanks Faramir)
* Teleport summon fix
* 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.)
* Fixes to click & turn teleport (Debug prevent, and you can't enter house)
* Client version displaying onLook
* Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name
* New configurable: premiumDaysToFormGuild (Default: 0)
* New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000)
* New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation)
* New configurable: deathContainerId, its a default container added afer player death
* New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList()
* Display more detailed time in banishment info (at login etc)
* lastLogin param to onLogin
* executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging
* new creature events: onFollow(cid, target) and onTarget(cid, target)
* few additional things displayed onLook, like decayTo and ghost activated
* doCreateItem fix. Count is OPTIONAL
* Few fixes with vocation multipliers
* '*Ghost Mode*' text for invisible gamemasters onLook
* Temporary crashbug fix with Monster::pushCreatures

There are more changes/fixes in doc/ and data/ but I can give you only this binary.

Download link:
http://uploadhyper.com/file/2177/TFSFIXED.rar.html

OMG tnxxx :D!! Add Rep you!!
 
I'm having an error while trying to compile:

../gui.cpp: In member function `void GUI::initFont()':
../gui.cpp:35: error: `_T' was not declared in this scope

gui.cpp:
Code:
////////////////////////////////////////////////////////////////////////
// OpenTibia - an opensource roleplaying game
////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////
#ifndef __CONSOLE__
#ifdef WIN32
#include "gui.h"

void GUI::initTrayMenu()
{
	m_trayMenu = CreateMenu();
	HMENU subFile = CreatePopupMenu();
	AppendMenu(subFile, MF_STRING, ID_TRAY_HIDE, "&Hide window");
	AppendMenu(subFile, MF_SEPARATOR, 0, 0);
	AppendMenu(subFile, MF_STRING, ID_TRAY_SHUTDOWN, "&Shutdown");
	AppendMenu(m_trayMenu, MF_STRING | MF_POPUP, (UINT)subFile, "&File");
}

void GUI::initFont()
{
	LOGFONT lFont;
	memset(&lFont, 0, sizeof(lFont));
	lstrcpy(lFont.lfFaceName, _T("Tahoma"));
	lFont.lfHeight = 14;
	lFont.lfWeight = FW_NORMAL;
	lFont.lfItalic = FALSE;
	lFont.lfCharSet = DEFAULT_CHARSET;
	lFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
	lFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
	lFont.lfQuality = DEFAULT_QUALITY;
	lFont.lfPitchAndFamily = DEFAULT_PITCH;
	m_font = CreateFontIndirect(&lFont);
}

#endif
#endif

Help, repp++
 
ok here you have latest version, with fixed much bugs (Much more than I posted previously)

With __EXCEPTION_TRACER__
and
its __CONSOLE__

It also contains new config values (you can add it to config.lua)
Code:
premiumDaysToFormGuild = 0
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
confirmOutdatedVersion = "yes"

Changes:
Code:
* Premium account time fix (thanks Faramir)
* Teleport summon fix
* 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.)
* Fixes to click & turn teleport (Debug prevent, and you can't enter house)
* Client version displaying onLook
* Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name
* New configurable: premiumDaysToFormGuild (Default: 0)
* New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000)
* New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation)
* New configurable: deathContainerId, its a default container added afer player death
* New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList()
* Display more detailed time in banishment info (at login etc)
* lastLogin param to onLogin
* executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging
* new creature events: onFollow(cid, target) and onTarget(cid, target)
* few additional things displayed onLook, like decayTo and ghost activated
* doCreateItem fix. Count is OPTIONAL
* Few fixes with vocation multipliers
* '*Ghost Mode*' text for invisible gamemasters onLook
* Temporary crashbug fix with Monster::pushCreatures

There are more changes/fixes in doc/ and data/ but I can give you only this binary.

Download link:
http://uploadhyper.com/file/2177/TFSFIXED.rar.html

Thank you a lot, slawkens! Rep ++
 
can someone helpme with my problem ???? please :S

when i open the console it stop work but with the other no :s help

and slawkens u rox xD
 
Ok guys can someone help me with this problem ?

i have the server ok but when i open
cryingdamson3-console.7z it say The Forgotten Server has stop working :S im in vista and if i open as administer is the same and if i open cryingdamson3-gui.7z i can open normally it work but when i close it the server dont save please help with the cryingdamson3-console.7z
 
I have a problem with this script that I modify to make it work
Code:
local roomPos  = {x = xxx, y = xxx, z = x}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 30330 then 
if(getPlayerStorageValue(cid, 20000) == TRUE) and (getPlayerStorageValue(cid, 20001) == TRUE) and (getPlayerStorageValue(cid, 20002) == TRUE) and (getPlayerStorageValue(cid, 20003) == TRUE) then
doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
end
end
return TRUE
end
 
Code:
09:57 Uptime: 8 hours and 6 minutes.
on Test Server but we need more people to test, we are trying to crash server with spell spam today at 11 CET... so if you want to test it too come and help us
 
Specjalist, you really need more players to do that, 5 is not enought, and I've been testing that at my server and it has never crashed because of spell spam.
Now im happy with using TFS 0.3.1 I've got 23 hours of uptime, and that's the only thing that matters for me now.
#Slawenks, did you repair the compiler bugs??
 
Specjalist, you really need more players to do that, 5 is not enought, and I've been testing that at my server and it has never crashed because of spell spam.
Now im happy with using TFS 0.3.1 I've got 23 hours of uptime, and that's the only thing that matters for me now.
#Slawenks, did you repair the compiler bugs??

I'm using 0.3.1 and I have 80 hours uptime :)
and the buggest bug on it is a bless bug but I can live with that xd
 
@TrimerA - if you mention the one with exception then yes

@kuba - First is just a warning and it says all to you. Send is about player who sent wrong packet.
 
KaczooH
I have this some problem as Kuba.No way I understand what you mean with "@kuba - First is just a warning and it says all to you. Send is about player who sent wrong packet. "
 
and whather it is possible to somehow disable?(sorry for my english)
 
Can you tell me why function doTeleportingThing~ not working ... ?
 
Status
Not open for further replies.
Back
Top