EOSERV Forum > EOSERV > Compiling Guide R189
Topic is locked.
Page: << 1 2 >>
Compiling Guide R189
Author Message
Post #55081 Compiling Guide R189

Hello and welcome to gads's guide on how to compile your own rev189.

You Will Need :

A Brain
Codeblocks With MinGW
Rev189
Includes Folder
MinGW Update
Winrar

Download all of the above ( unless you already have Winrar )

Step One ( Installing CodeBlocks )

Open up the codeblocks-8.02mingw-setup.

Now Press

Next
I Agree
Next
Install


After that it should promt you with do you want to run code::blocks now...
Press No.

Now press

Next
Finish


Step Two
( MinGW Update )

Open up tdm-mingw-1.908.0-4.4.1-2
Untick Check for updated files on the TDM/MinGW server

Now go to your code::blocks folder and delete the MinGW Folder

C:\Program Files\CodeBlocks ( Windows 7 May Be Different )

after you have deleted it go back to the tdm-mingw-1.908.0-4.4.1-2
and press

Create

Then change C:\MinGW to
C:\Program Files\CodeBlocks\MinGW ( Windows 7 May be different )
Next
Install
Next
Finish


Step Three ( Adding The Rev To CodeBlocks )

First Extract the eoserv-trunk-r189
Now Add the extract the include and add them into the trunk.
Now go to the trunk, Project
and load up mingw
It should load up in codeblocks
Once its loaded go to
Settings
Compiler And Debugger
Linker Settings
And add these three files from the includes folder in your trunk

libmysql.lib
libpthreadGC2.a
WS2_32.Lib

Then go to Search Directories
and add the includes folder to each one ( Compiler, Linker and Resource Compiler )
Then press Ok

Then change the DEBUG+MYSQL+SQLITE to
MYSQL+SQLITE
Then hit F9 In codeblocks

Now it should compile perfectly.

If you get warnings that does not matter warnings mean nothing.
If you get any errors please post and ill reply ASAP.

Thanks

Gads.

Errors you may come aross.

No libmysql.dll

If this happens then use simply go into your includes folder in your trunk
and copy Libmysql.dll to the trunk file aswell as the includes file so there is 1 one in the includes file and one in the trunk.

Reply Your Errors and i will fix them,

Thanks

14 years, 6 hours ago
Post #55082 Re: Compiling Guide R189

btw its not called guild its called guide!

14 years, 6 hours ago
Post #55083 Re: Compiling Guide R189
God_Pure posted: (5th Dec 2010 12:20 pm)

btw its not called guild its called guide!


xD Ill change sorry was typing fast and wasnt consertrating.
14 years, 6 hours ago
Post #55091 Re: Compiling Guide R189

There has been alot of guides.. Why another exspecialy when the community is dead.

14 years, 5 hours ago
Post #55092 Re: Compiling Guide R189

can you do it for me on teamviewer because I dont understand the update bit

got this when compiled!



"eoserv - MYSQL+SQLITE" uses an invalid compiler. Skipping...
Nothing to be done.


help me please? I tried all MYSQL+Debug etc.


14 years, 5 hours ago
Post #55102 Re: Compiling Guide R189


@
14 years, 4 hours ago
Post #55114 Re: Compiling Guide R189
God_Pure posted: (5th Dec 2010 01:20 pm)

can you do it for me on teamviewer because I dont understand the update bit

got this when compiled!



"eoserv - MYSQL+SQLITE" uses an invalid compiler. Skipping...
Nothing to be done.


help me please? I tried all MYSQL+Debug etc.



   Ellos, Go to Settings within Codeblocks.  Then Compiler and debugger then Toolchain executables.  then press ''Auto-Detect".
14 years, 2 hours ago
Post #55139 Re: Compiling Guide R189


hey guys the trunk have no eoserv.exe(the open server program)how to make it?

13 years, 51 weeks ago
Post #55140 Re: Compiling Guide R189
ksh95 posted: (5th Dec 2010 07:24 pm)


hey guys the trunk have no eoserv.exe(the open server program)how to make it?


cause you have to compile it to work

13 years, 51 weeks ago
Post #55141 Re: Compiling Guide R189
ksh95 posted: (5th Dec 2010 07:24 pm)


hey guys the trunk have no eoserv.exe(the open server program)how to make it?


   Ok, lets get this straight :).
  When you download the rev.  Its NOT compiled yet.  So you need to compile it to get the eoserv.exe file.  its pretty straight forward when u get used to it :).
13 years, 51 weeks ago
Post #55142 Re: Compiling Guide R189


perfect and maori can u see my post ?tat harvest

13 years, 51 weeks ago
Post #55178 Re: Compiling Guide R189

you should describe what include folders in MinGW or in your eoserv files


I tried it and it worked. This is first guide that worked for me its simplest guide


-------------- Build: DEBUG+SQLITE in eoserv ---------------

Precompiling header: ..\src\stdafx.h
Precompiling header: ..\src\handlers\handlers.h
Compiling: ..\src\config.cpp
Compiling: ..\src\console.cpp
Compiling: ..\src\container\ptr_list.cpp
Compiling: ..\src\container\ptr_vector.cpp
Compiling: ..\src\database.cpp
D:\EoServ\trunk\src\console.hpp: In member function 'void Database::Close()':
D:\EoServ\trunk\src\console.hpp:199: warning: enumeration value 'MySQL' not handled in switch
D:\EoServ\trunk\src\console.hpp: In member function 'Database_Result Database::Query(const char*, ...)':
D:\EoServ\trunk\src\console.hpp:246: warning: enumeration value 'MySQL' not handled in switch
D:\EoServ\trunk\src\console.hpp:279: warning: enumeration value 'MySQL' not handled in switch
D:\EoServ\trunk\src\console.hpp: In member function 'std::string Database::Escape(std::string)':
D:\EoServ\trunk\src\console.hpp:381: warning: enumeration value 'MySQL' not handled in switch
Compiling: ..\src\eoclient.cpp
Compiling: ..\src\eodata.cpp
Compiling: ..\src\eoserver.cpp
Compiling: ..\src\extra\ntservice.cpp
Compiling: ..\src\guild.cpp
Compiling: ..\src\handlers\Account.cpp
Compiling: ..\src\handlers\AdminInteract.cpp
Compiling: ..\src\handlers\Attack.cpp
Compiling: ..\src\handlers\Bank.cpp
Compiling: ..\src\handlers\Barber.cpp
Compiling: ..\src\handlers\Board.cpp
Compiling: ..\src\handlers\Book.cpp
Compiling: ..\src\handlers\Chair.cpp
Compiling: ..\src\handlers\Character.cpp
Compiling: ..\src\handlers\Chest.cpp
Compiling: ..\src\handlers\Citizen.cpp
Compiling: ..\src\handlers\Connection.cpp
Compiling: ..\src\handlers\Door.cpp
Compiling: ..\src\handlers\Emote.cpp
Compiling: ..\src\character.cpp
Compiling: ..\src\handlers\Global.cpp
Compiling: ..\src\handlers\Guild.cpp
Compiling: ..\src\handlers\Init.cpp
Compiling: ..\src\handlers\Internal.cpp
Compiling: ..\src\handlers\Item.cpp
D:\EoServ\trunk\src\handlers\Item.cpp: In member function 'bool EOClient::Handle_Item(PacketFamily, PacketAction, PacketReader&, int)':
D:\EoServ\trunk\src\handlers\Item.cpp:71: warning: suggest parentheses around assignment used as truth value
Compiling: ..\src\handlers\Jukebox.cpp
Compiling: ..\src\handlers\Law.cpp
Compiling: ..\src\handlers\Locker.cpp
Compiling: ..\src\handlers\Login.cpp
Compiling: ..\src\handlers\Paperdoll.cpp
Compiling: ..\src\handlers\Party.cpp
Compiling: ..\src\handlers\Ping.cpp
Compiling: ..\src\handlers\Players.cpp
Compiling: ..\src\handlers\Priest.cpp
Compiling: ..\src\handlers\Refresh.cpp
Compiling: ..\src\handlers\Shop.cpp
Compiling: ..\src\handlers\Sit.cpp
Compiling: ..\src\handlers\Spell.cpp
Compiling: ..\src\handlers\StatSkill.cpp
D:\EoServ\trunk\src\handlers\StatSkill.cpp: In member function 'bool EOClient::Handle_StatSkill(PacketFamily, PacketAction, PacketReader&, int)':
D:\EoServ\trunk\src\handlers\StatSkill.cpp:61: warning: unused variable 'amount'
D:\EoServ\trunk\src\handlers\StatSkill.cpp:87: warning: unused variable 'data1'
D:\EoServ\trunk\src\handlers\StatSkill.cpp:89: warning: unused variable 'data3'
Compiling: ..\src\handlers\Talk.cpp
D:\EoServ\trunk\src\handlers\Talk.cpp: In member function 'bool EOClient::Handle_Talk(PacketFamily, PacketAction, PacketReader&, int)':
D:\EoServ\trunk\src\handlers\Talk.cpp:244: warning: comparison between signed and unsigned integer expressions
D:\EoServ\trunk\src\handlers\Talk.cpp:402: warning: suggest parentheses around assignment used as truth value
D:\EoServ\trunk\src\handlers\Talk.cpp:609: warning: comparison between signed and unsigned integer expressions
D:\EoServ\trunk\src\handlers\Talk.cpp:668: warning: comparison between signed and unsigned integer expressions
D:\EoServ\trunk\src\handlers\Talk.cpp:844: warning: comparison between signed and unsigned integer expressions
Compiling: ..\src\handlers\Trade.cpp
Compiling: ..\src\handlers\Walk.cpp
Compiling: ..\src\handlers\Warp.cpp
Compiling: ..\src\handlers\Welcome.cpp
Compiling: ..\src\handlers\Face.cpp
Compiling: ..\src\handlers\quest.cpp
D:\EoServ\trunk\src\handlers\quest.cpp:11:21: warning: extra tokens at end of #include directive
Compiling: ..\src\hash.cpp
Compiling: ..\src\hook.cpp
Compiling: ..\src\main.cpp
Compiling: ..\src\map.cpp
D:\EoServ\trunk\src\quest.hpp: In member function 'bool Map::AttackPKSpell(Character*, int, int)':
D:\EoServ\trunk\src\quest.hpp:1828: warning: comparison between signed and unsigned integer expressions
Compiling: ..\src\nanohttp.cpp
Compiling: ..\src\npc.cpp
Compiling: ..\src\packet.cpp
Compiling: ..\src\party.cpp
Compiling: ..\src\player.cpp
Compiling: ..\src\quest.cpp
Compiling: ..\src\script.cpp
Compiling: ..\src\scriptreg.cpp
D:\EoServ\trunk\src\sln.hpp:39: warning: 'script_DEBUG' defined but not used
Compiling: ..\src\sha256.c
Compiling: ..\src\shared.cpp
Compiling: ..\src\sln.cpp
Compiling: ..\src\socket.cpp
Compiling: ..\src\arena.cpp
Compiling: ..\src\timer.cpp
Compiling: ..\src\util.cpp
Compiling: ..\src\world.cpp
Linking console executable: ..\eoserv-debug.exe
Output size is 15.39 MB
Process terminated with status 0 (1 minutes, 3 seconds)
0 errors, 16 warnings
 

when I compile cmmand havnt changed so what do I do next?
13 years, 51 weeks ago
Post #55203 Re: Compiling Guide R189

i will make a guide on how to add # commands as you have to have a certain line

13 years, 51 weeks ago
Post #55214 Re: Compiling Guide R189
gads posted: (6th Dec 2010 09:42 am)

i will make a guide on how to add # commands as you have to have a certain line


it's simple to add player commands. It doesn't really require a full tutorial. here's the code:

before

"if (this->player->character->admin && message[0] == '$')"

add this:


if (message[0] == '#')
{
std::string command;
std::vector<std::string> arguments = util::explode(' ', message);
command = arguments.front().substr(1);
arguments.erase(arguments.begin());
//add your player commands here
}

and put your player commands where it tells you to (note: the first command must start with "if", all of the others should start with "else if")
13 years, 51 weeks ago
Post #56162 Re: Compiling Guide R189

I had same problem as god pure.

"eoserv - MYSQL+SQLITE" uses an invalid compiler. Skipping...
Nothing to be done.

---
-Avra
-A.K.A. Greatveddar
-everlasting-eo.webs.com
-Creator of Everlasting Online II by TxD
13 years, 50 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Compiling Guide R189