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

Compiling [Tutorial] How to Compile TFS 0.2.8 Dead Bug, VERY DETAILED (pictures and text)

Did it help you?

  • Yes

    Votes: 63 60.6%
  • No

    Votes: 41 39.4%

  • Total voters
    104

Basse

Expert Tutor
Joined
Nov 28, 2007
Messages
111
Reaction score
0
Location
/home/Basse
If you allready have TheForgottenDev-C++ 1.3 or newer and TortoiseSVN. Then skip step 1 - 7

1. I would recommend that you download and install TotoiseSVN so its easier to download the last TFS SVN here: http://tortoisesvn.net/downloads
2. Follow the install steps
3. Get the newest svn from http://forgottenserver.svn.sf.net/svnroot/forgottenserver/ to do this create a folder named SVN on your desktop (Or another name of your choise and loctation) and open it, now right-click and click "TortoiseSVN Checkout"

ss1.png


4. Click ok and it will begin to download it will let you know when its done and it says the revision

ss43.png


5. Download TheForgottenDev-Cpp 1.3 from: http://otland.net/showthread.php?t=1024
6. extract it with winrar (or any other program that can handle rar archives) to C:\Dev-Cpp

ss2.png


7. Now go to that folder and open Dev-Cpp.exe

ss3.png

(if its your first run just follow the instructions)

8. Now the "New Project button"

ss4.png


9. Choose "Console Application", and name your project "TheForgottenServer" (Or another Name)

ss5.png


10. Save your project to the SVN folder, in the the folder containing all those *.cpp and *.h files

ss6.png


11. Remove "main.cpp", No need of this, as its only a template
12. Go to "Project->Project Options"
13. Now, press 1. "Win32 GUI", 2. "Support Windows XP Themes", 3. Press O.K. its important else you will get some funny errors :p

ss7.png


14. Redo step 12.
15. In the tabs, press "Paramenters"
16. In the "C++ Compilers" box, Enter:

Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__SERVER_PROTECTION__

ss8.png


17. In the "Linker" box, Enter:

Code:
-O1
-lboost_system
-lgmp
-lluasql-mysql
-lluasql-sqlite3
-llua5.1
-lmysql
-lregex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s

ss9.png


18. Now add files, (all the *.h and *.cpp)

ss10.png


ss11.png


ss12.png


19. Now let's try compiling it, to see if everything is working. Go to "Execute" and press "Compile"

ss13.png


ss14.png


20. If you have compiled it without any warning or errors you are now Done! Congratulations

ss15.png


Tested working with:

Windows XP Professional
TortoiseSVN-1.4.5.10425-win32-svn-1.4.5
TheForgottenDev-Cpp
TheForgottenServer 0.2.8 Dead Bug sources REVISION 466

Click here if i helped you | Visit my MiniCity

I dont take any responsibility of errors, it worked for me, However you may ask for further
But if it helped rep me please, :)
Sorry for my good english ;) can't do anything for it :D

Credits:
Code:
The Forgotten Team (for making the TFS Server), 
Bloodshed Software (For making Dev-C++), 
Xexza (for giving me the idea of this tutorial),
Nikolas (for making the first tutorial, helped me most of all thank you very much), 
CollabNet and Tigris (for making TortoiseSVN),
Microsoft (For making the WinXP), 
CipSoft (for making tibia), 
Santa Clause (For giving me presents, in 3 days)

Writing time: 2½ hour
Letters: un-countable
 
Last edited:
windres.exe -i Fate_private.rc --input-format=rc -o Fate_private.res -O coff

gcc: installation problem, cannot exec `cc1': No such file or directory

windres.exe: no resources

make.exe: *** [Fate_private.res] Error 1

Execution terminated


how do i fix this error?
 
seems to me that you dont have .rc or .res file, sure you have placed it in the source folder?
 
i have not added anything into the sources i didnt know i had to.... i thought it did all that automatically lol. Where do i get the .rc and .res files?
 
Read my Tutorial and you find out its all up there Step-By-Step ;)
.rc and .res comes when you save a project that has source files in it
 
Nice work! Thanks for posting a tutorial on how to do this, I knew this personally, but I always had to explain how to for other people, and it takes muuch time... So thank you, now I can just give them this link and I will never be bothered by them again.
 
I already knew this so it didn't help me, but if I wouldn't knew it would helped me a lot. Keep making tutorials like this rep ++ :p
 
Get this when compiling:

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\microsoft.XP2400\Bureaublad\SVN\forgottenserver\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\microsoft.XP2400\Bureaublad\SVN\forgottenserver\Makefile.win" all
make.exe: *** No rule to make target `main.cpp', needed by `main.o'. Stop.

Execution terminated
 
@UP

It's because you have the "main.cpp" template, youll get when you make the project you need to delete it before adding Sources
 
Last edited:
thanks!!! i like more of the aspect of a console XD
i'm used to it
 
@Nikolas He asked me how, therefore You can also get some credits :) if you ask me nice instead of flaming me :)
 
@Nikolas He asked me how, therefore You can also get some credits :) if you ask me nice instead of flaming me :)

Okay it seems you're a good guy :D

I'll keep helping on both tutorials,yours and mine :)
 
Back
Top