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

When player attack tfs freeze after compiling

krycha511

New Member
Joined
Dec 24, 2015
Messages
19
Reaction score
0
Hey guys I have done compiling server. All work before someone attack something, then server with console freeze.
What I have to do now?
There is player.cpp, with which I had a lot of problems http://pastebin.com/tvcf2Mvb
I have no idea what version of tfs is it, but this is DBViolent server.
There is player cpp which I give up:
http://pastebin.com/gz755P4c
And problem that I have when compiling:
https://i.imgur.com/vT5cfnx.png
 
Last edited:
This sounds like luajit problems again. Anyhow, when you rebuild, make sure you don't get this warning:

LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

It may look innocent, since it doesn't hinder the exe from being built, but it will have serious implications on run-time. This happens when some of your libraries are compiled with /MT, and others with /MD. If you use DLLs (dynamic linking), it's safer to use /MD in all cases. So all your libraries should be compiled with the /MD flag. Change it in Project Properties -> C/C++ -> Code Generation. For debug builds it should be /MDd not /MD.
 
Last edited:
I paste /MDd in debug properties
Is it here? idk
Jryc0RS.png

I have no idea where is project properties. As in guide I'm using devc++
I have done compiling with this guide: https://otland.net/threads/compiling-windows-how-to-set-up-a-compiler-noob-friendly-tutorial.193878/
Maybe I don't understand you :/. Say it easier what I can do, I know you already said this.
 
Last edited:
Don't use DevC++, it's dead. Download Visual Studio Community Edition. Use the vc14/*.sln file in the source.
Have I need to download libraries that was downloaded in Devc++ from guide what I say?
I downloading VSCE now.

@edit must be Community Edition?
Microsoft .NET Framework 4.6.1 Developer Pack : Wrong Fuction.
Visual Studio Core Features : User canceled instalation
(Translated by me xd = bad English)
 
Last edited:
No, ignore that tutorial. Use this instead:

https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows

There is no perfect guide I'm afraid. You have to learn how to compile stuff in VS, how to add additional /include & /lib directories etc. It can all be done from the Project Properties. However, in the case of TFS, these directories should be set in environment variables for your "convenience". In the long run, this will benefit you more than using an old IDE & guide.
 
Is still installing.
I have source files, you know it's dragon ball's source. I really don't want include more directories etc,
What I need is fix bug when character attacks.

Then I have to download Boost c++ libraries (I have DB's Source and will have soon VS)?

@EDIT
Installed, I have no idea what to do now. I can't open TheForgottenServer.cpp coz .... Look at this:
EXcE28f.png

Wrong format?

Can I fix attack bug this in Devc++?
 
Last edited:
Then I have to download source you said and change all files (I mean eg. player.cpp, player.h, action.cpp etc).
How server is precomiled? Maybe you right.

I have idea: Can you compile this server, I can upload server or take you source thread with download.
Then You can send to me. I will know it works or not.

@edit
Nothing happend: look:
r9NC5S6.png
 
Last edited:
You said something about luajit:
0OIQjcB.png

I have dlls in server folder Maybe these files are libraries? IDK.
I want to compile with devc++ if viable to do.
MSVS doesn't work with your source. Its opening and nothing happend.
 
Back
Top