[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

02/01/2014 11:42 .Captor#346
Quote:
Originally Posted by atag View Post
My linker error was caused by the python-2.2 includes.
Delete it from Extern/include and Client/SrciptLib then copy the working version from dev/*/worldeditor solved my problem :)

Now i can compile it in distribute mode with v120(!) toolset (new boost includes and crypto++ lib needed).
I have solved the LNK error since 20 minutes. But now the Bin returns a f***ing error. The Bin says, the bin has no attribute named "IsCANADA" but i've included it....


Edit: If i chose MfcDebug it returns this Error:
Code:
fatal error LNK1104: Datei "..\eterpythonlib\eterpythonlib___win32_mfcdebug\eterpythonlib.lib" kann nicht geöffnet werden.	UserInterface	UserInterface
Any idea? -.-



Edit²: If i use Python-2.2, it returns this Error:
Code:
error C2065: 'mod_ty': nichtdeklarierter Bezeichner	D:\src\mainline_released\mainline_sg\Srcs\extern\include\Python-2.2\symtable.h	55	gamelib

If i use Python27 it works wihtout Errors like that.
02/01/2014 15:09 FlAT!K#347

How to fix LNK2019 erros? thanks!
02/01/2014 15:42 .Captor#348
Okey i fixxed the errors but now, the Bin dont load the Modules like EMOTION_DANCE_6 => Error at start (Can't find attribute named EMOTION_DANCE_6). Have any one a fix for this? :P
02/01/2014 15:58 givesource#349
Quote:
Originally Posted by FlAT!K View Post

How to fix LNK2019 erros? thanks!
what vs version?

vs 10+:
to fix the python problem you have to go to your python-2.2 / bitset.h and change the define of BYTE from const char to char?
also try to download new boost and crypto for vs 10 and compile them. then look if there are any errors that are not getting listed and download vs service pack 1 for your vs version then restart computer

i had this linker errors, too. i also changed include folder to the dev includes and deleted my python version that i downloaded before the source files. You have to look in the linker errors, mostly these problems are the types that were changed in the vs 10 compiler (if you look, you see that there are most of them const char*|BYTE problems)
02/01/2014 16:52 kicskarii#350
Quote:
/usr/bin/ld: cannot find -lIL
gmake: *** [../game_r_32] Error 1
- With novaline make file
Quote:
/usr/bin/ld: cannot find -lpng
gmake: *** [../game_r_32] Error 1
- With mainline make file

And i try to compile mainline game file...And devil port is installed (Sorry for my bad english)

Fixed, sorry.
02/01/2014 19:15 DargonMT2#351
[Only registered and activated users can see links. Click Here To Register...]

Anyone know how to fix this?
02/01/2014 21:10 [uLow]NTX?!#352
Quote:
Originally Posted by DargonMT2 View Post
[Only registered and activated users can see links. Click Here To Register...]

Anyone know how to fix this?
Whats about reading the error. It explains alot.
Cannot open 'questcategory.txt'
02/01/2014 23:29 Lufbert#353
Hey

That error when I try to compile game in Visual Studio

02/02/2014 00:33 The Cookie Monster#354
Zeimlich komisch...
Ich habe versucht den Client zu kompilieren genauso wie den World editor....
Ich habe alle Typenfehler oder sonstige Fehler behoben....
Dann fehlte eine python22.lib... okay die hab ich rausgesucht aber jetzt kommen beim linken seeeehr viele fehler...
1. wie kann ich die beheben?
2. wie kann ich mir meine python22.lib selber bauen?
02/02/2014 02:18 PajzlnatorCZ#355
Please help. I do not know how to fix it

02/02/2014 11:39 kicskarii#356
Quote:
Originally Posted by PajzlnatorCZ View Post
Please help. I do not know how to fix it

Use Visual Studio 2012 with v90 platform, and fix these errors:

First: Open PythonGraphic.cpp and go to 169 line and modify it like this:
Second: Open bitset.h and edit byte definition from char to unsigned char

And build it. ;) (Sorry for my bad english!)
02/02/2014 12:04 .Captor#357
I have a Problem with my Bin. The Bin dont load any Module like "EMOTION_DANCE_6". Have someone a fix for this?

Sry for bad english. :D
02/02/2014 12:30 aok96boom#358
Quote:
Originally Posted by .Captor View Post
I have a Problem with my Bin. The Bin dont load any Module like "EMOTION_DANCE_6". Have someone a fix for this?

Sry for bad english. :D
Which brach do you use?
02/02/2014 12:33 .Captor#359
Quote:
Originally Posted by aok96boom View Post
Which brach do you use?
mainline_released (sg)
02/02/2014 13:05 aok96boom#360
open the file PythonPlayerModule.cpp and check if the modules you need are there