[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

06/14/2014 18:16 Derradeiro_24#466
im have some errors trying to compile db

im using mainline_released (sg)

i solve some problems and now i have this 10:

Error 156 error LNK1169: one or more multiply defined symbols found D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\db_d.exe db
Error 146 error LNK2005: "void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)" (?_invalid_parameter@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 147 error LNK2005: "void __cdecl _invoke_watson(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)" (?_invoke_watson@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 154 error LNK2005: ___pInvalidArgHandler already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 148 error LNK2005: __call_reportfault already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 149 error LNK2005: __get_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 150 error LNK2005: __initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 151 error LNK2005: __invalid_parameter already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 152 error LNK2005: __invoke_watson already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
Error 153 error LNK2005: __set_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj) D:\Metin2\Source\mainline_released\mainline_sg\Src s\Server\db\src\LIBCMT.lib(invarg.obj) db
06/21/2014 16:39 meca4h4#467
When i summon many time with 0 hp i have full hp, because my bonus adds bonus hp. and if i have bonus hp in invetory same problem and fast mount / unmount someone know how to fix it ?

/yes bad english xd


syser:

from spam ctrl + g with arrmor + 2000 HP

Jun 21 16:10:52 :: NO_DEATH_PENALTY_LUCK([root]MeCa)
Jun 21 16:10:52 :: AddAffect [root]MeCa type 215 apply 0 0 flag 28 duration 5
Jun 21 16:10:54 :: [root]MeCa: USE_ITEM Zbr. Płyt. Czar. Magii+9 (inven 1, cell: 12)
Jun 21 16:10:55 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:55 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:55 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:55 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:55 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:56 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:56 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:56 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:56 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:56 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:56 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:56 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:56 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:56 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:56 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:57 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:57 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:57 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:57 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:57 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:57 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:57 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:57 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:57 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:57 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:58 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:58 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:58 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:58 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:58 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:58 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:58 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:58 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:58 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:58 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:59 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:59 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:59 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:59 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:59 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:10:59 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: COMMAND: [root]MeCa: ride
Jun 21 16:10:59 :: [root]MeCa: USE_ITEM Biały Lew (inven 1, cell: 3)
Jun 21 16:10:59 :: AddAffect [root]MeCa type 221 apply 109 20114 flag 0 duration 1727820
Jun 21 16:10:59 :: AddAffect [root]MeCa type 533 apply 53 20 flag 0 duration 1727820
Jun 21 16:11:02 :: GLOBAL_TIME: Jun 21 16:11:02 time_gap 0

HELP PLS
08/02/2014 04:59 |Calypso|#468
Problem compile client with Visual Studio

1>Error: MIDL will not generate DLLDATA.C unless you have at least 1 interface in the main project.
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Windows\System32\cmd.exe'.
08/05/2014 00:31 |Calypso|#469
Compile client novaline.
Python27.

Error start client: [Only registered and activated users can see links. Click Here To Register...]
08/15/2014 18:53 tm-react#470
Hi,
My problem is following, compile source stops in this error.
[Only registered and activated users can see links. Click Here To Register...]

You know how this fix?

I would add that when compile removes main.o...
08/16/2014 17:27 Zonni#471
Quote:
Originally Posted by tm-react View Post
Hi,
My problem is following, compile source stops in this error.
[Only registered and activated users can see links. Click Here To Register...]

You know how this fix?

I would add that when compile removes main.o...
Może się naucz najpierw czytać a potem zadawaj pytania ciołku. A najlepiej wyłącz komputer i wyjdź na dwór bo widać, że nie wychodzi ci programowanie skoro nie umiesz zdebugować tak prostego kodu.



Everything what you need to do is described in your screen.
1. update boost & replace it in your extern directory
2. gmake clean
3. gmake -j20

Don't say 'thank you' or pm me, you must figure rest by yourself.
08/16/2014 17:30 Gürkin#472
thank u work
08/17/2014 19:51 Zonni#473
Quote:
Originally Posted by Lurrdock View Post
I'm new at this domain, so please don't hate me, but can anyone explain to me how do I compile mainline to make the launcher?
Launcher (Patcher), Client or Server?


For server i recommend you mainline's dev dir and for client - novaline.
08/17/2014 23:12 Lιρтση##474
PHP Code:
../../liblua/lib/liblua.a(lobject.o)(.text+0x4c3): In function `luaO_str2d':
/usr/include/runetype.h:96: undefined reference to 
`_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0xa72): In function `luaX_lex'
:
/
usr/include/runetype.h:96undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x13b3):/usr/include/runetype.h:96: undefined reference to 
`_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x141f):/usr/include/runetype.h:96: undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x14e2):/usr/include/runetype.h:96undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblualib.a(lauxlib.o)(.text+0x355):/usr/include/runetype.h:96: more undefined references to 
`_ThreadRuneLocale' follow 
Hat jemand nen FIX?
08/17/2014 23:16 Zonni#475
Quote:
Originally Posted by Lιρтση# View Post
PHP Code:
../../liblua/lib/liblua.a(lobject.o)(.text+0x4c3): In function `luaO_str2d':
/usr/include/runetype.h:96: undefined reference to 
`_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0xa72): In function `luaX_lex'
:
/
usr/include/runetype.h:96undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x13b3):/usr/include/runetype.h:96: undefined reference to 
`_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x141f):/usr/include/runetype.h:96: undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblua.a(llex.o)(.text+0x14e2):/usr/include/runetype.h:96undefined reference to `_ThreadRuneLocale'
../../liblua/lib/liblualib.a(lauxlib.o)(.text+0x355):/usr/include/runetype.h:96: more undefined references to 
`_ThreadRuneLocale' follow 
Hat jemand nen FIX?
Can you put your /usr/include/runetype.h file on pastebin.com and send link here ?
08/17/2014 23:38 Lιρтση##476
done
08/18/2014 03:42 Derradeiro_24#477
im with some problems compiling the db file, im trying to compile db from mainline_released(sg)

this already compile but with errors and dont work....

i have this erros:

[Only registered and activated users can see links. Click Here To Register...]

i already edit the Makefile and Depend file for add the Boost, but appear: error 'boost' are not been declared......



sorry for my bad english
08/22/2014 17:04 bozdanel#478
0822 16:32:34400 :: Source file has no content
0822 16:32:34417 :: Unknown packet header: 213, last: 81 29


Help me :(
08/22/2014 17:25 MakkeNN#479
who have source pls link.
THX
08/24/2014 22:27 trixored#480
I try compile game from mainline_released (sg) but I have 1 error:

Code:
/usr/bin/ld: cannot find -lgtest
What can I install?