[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

02/14/2014 22:36 .Captor#406
Quote:
Originally Posted by .Risan. View Post
STEHT DOCH DA; nicht deklariert..! Deklariere es oder pass es an.. is ne Variable....
Habe ich versucht, es geht nicht....
02/15/2014 04:12 mamAmok#407
Quote:
Originally Posted by .Captor View Post
Habe ich versucht, es geht nicht....
versuche mal das

#define __P4_VERSION__ 123

oder

int __P4_VERSION__=123

oben in der datei
02/15/2014 10:29 .Captor#408
Quote:
Originally Posted by mamAmok View Post
versuche mal das

#define __P4_VERSION__ 123

oder

int __P4_VERSION__=123

oben in der datei
Habe es bereits fast genauso versucht, hatte nur eine Zahl hinter VERSION__ vergessen. Versuche es gerade nochmals. Wenn es nicht geht, könnte es daran liegen das ich die Devline compilen möchte? Ein Kumpel von mir hat es geschafft mit ein paar Änderungen, leider weiß er nicht mehr was er alles gemacht hat. Auf Windows kann ich die Devline usw problemlos compilen, auf FreeBSD bis jetzt nur Novaline.

Edit: Hat zwar etwas gebracht, aber neue Fehler. :D

02/15/2014 11:02 LastSpartan300#409
Hi, how can i fix this error?:

Error 37 error C2039: 'SetLocale' : is not a member of 'CAsyncSQL' core\novaline\srcs\server\db\src\dbmanager.cpp 172

*Solved AsyncSQL error, you just have to take DBManager.cpp && .h from mainline's db..


Now i have a problem with ATL's headers:

'AtlThrowImpl' : is not a member of 'ATL' atlalloc.h 190
Error 24 error C3861: 'AtlThrowImpl': identifier not found atlalloc.h 190

Am i the only one with this ATL errors?
02/16/2014 11:19 Adasaurus#410
How to change the rate in char_manager.cpp (game server)

02/16/2014 13:25 LastSpartan300#411
Quote:
Originally Posted by Adasaurus View Post
How to change the rate in char_manager.cpp (game server)

I think those are int's, but convertable.
02/16/2014 14:52 callmax#412
Quote:
Originally Posted by callmax View Post
Quote:
/usr/bin/ld: cannot find -lIL
Ich versuch grad ne kompilierfähige Maschine auf 10.0 einzurichten, nur weiß ich nichtmehr welcher port das war und finds grad auch iwie nicht raus, weiß das vilt grad wer?
......
02/16/2014 14:58 MartPwnS#413
Quote:
Originally Posted by callmax View Post
......
[Only registered and activated users can see links. Click Here To Register...]

Devil(Developers image library) first answer... just search the port for freebsd.

Kind Regards
MartPwnS
02/18/2014 23:09 Kreshcz#414
Hallo,
Wie kann ich von game_r40250_32.cpp nach game?
Danke
02/19/2014 06:09 callmax#415
Mal ne andere Frage wie bekommt ihr den die game's überhaupt dazu das sie richtig laufen?

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

Wenn ich jetzt Strg+c oder Strg+z drücke bzw einfach Putty schließe läuft die db nichtmehr, dasselbe bei den Cores, ist das bei euch nicht so?
02/19/2014 07:10 QuaLiTi#416
Quote:
[Only registered and activated users can see links. Click Here To Register...]
Wozu so viele Tabs :o ?
02/19/2014 12:29 kicskarii#417
Shared object "libmysqlclient.so.15" not found, required by "game"

Help me.
02/19/2014 13:23 qAleXso#418
Hey..what is this ?
Code:
root@alexso:~ # cd /root/mainline/Srcs/Server
root@alexso:~/mainline/Srcs/Server # gmake
Makefile:47: warning: overriding recipe for target `libserverkey'
Makefile:13: warning: ignoring old recipe for target `libserverkey'
gmake -C libthecore/src dep
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -MM *.c > Depend
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory `/root/mainline/Srcs/Server/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c socket.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c fdwatch.c
fdwatch.c: In function 'void fdwatch_clear_event(fdwatch*, socket_t, unsigned int)':
fdwatch.c:163: warning: comparison between signed and unsigned integer expressions
fdwatch.c:165: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'int fdwatch_check_event(fdwatch*, socket_t, unsigned int)':
fdwatch.c:173: warning: comparison between signed and unsigned integer expressions
fdwatch.c:175: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'int fdwatch_get_ident(fdwatch*, unsigned int)':
fdwatch.c:207: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'void* fdwatch_get_client_data(fdwatch*, unsigned int)':
fdwatch.c:225: warning: comparison between signed and unsigned integer expressions
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c buffer.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c signal.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c log.c
log.c: In function 'void _sys_err(const char*, int, const char*, ...)':
log.c:129: warning: format '%d' expects type 'int', but argument 5 has type 'suseconds_t'
log.c:129: warning: format '%d' expects type 'int', but argument 5 has type 'suseconds_t'
log.c:117: warning: unused variable 'nMiliSec'
log.c: In function 'void sys_log(unsigned int, const char*, ...)':
log.c:214: warning: format '%d' expects type 'int', but argument 4 has type 'suseconds_t'
log.c:200: warning: unused variable 'nMiliSec'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c utils.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c kstbl.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c hangul.c
hangul.c: In function 'const char* first_han(const BYTE*)':
hangul.c:47: warning: deprecated conversion from string constant to 'char*'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c heart.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c main.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c tea.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c des.c
DES_table.h:164: warning: 'KeyPerm' defined but not used
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c gost.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c memcpy.c
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o kstbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
ranlib ../lib/libthecore.a
chmod 700 ../lib/libthecore.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/libthecore/src'
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libthecore/src'
gmake -C libgame/src dep
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libgame/src'
touch Depend
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -MM *.cc > Depend
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory `/root/mainline/Srcs/Server/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory `/root/mainline/Srcs/Server/libgame/src'
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c grid.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c attribute.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c targa.cc
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/libgame/src'
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/libgame/src'
gmake -C liblua clean
gmake[1]: Entering directory `/root/mainline/Srcs/Server/liblua'
cd include; gmake clean
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/include'
gmake[2]: Nothing to be done for `clean'.
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/src/lib'
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/liblua'
gmake -C liblua
gmake[1]: Entering directory `/root/mainline/Srcs/Server/liblua'
cd include; gmake all
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/include'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/include'
cd src; gmake all
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/src'
gcc -O2 -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -g -Wall -I../include      -c -o llex.o llex.c
llex.c: In function 'read_string':
llex.c:285: warning: case label value is less than minimum value for type
gcc -O2 -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory `/root/mainline/Srcs/Server/liblua/src/lib'
gcc -O2 -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -g -Wall -I../../include         -c -o liolib.o liolib.c
liolib.c: In function 'g_iofile':
liolib.c:251: warning: value computed is not used
liolib.c: In function 'f_lines':
liolib.c:286: warning: value computed is not used
gcc -O2 -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory `/root/mainline/Srcs/Server/liblua/src/lib'
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/liblua'
gmake -C db/src dep
p4: not found
p4: not found
gmake[1]: Entering directory `/root/mainline/Srcs/Server/db/src'
makedepend -fDepend  -I../../boost -I../../libmysql/5.x-5.1.35 -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p.obj/ Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp  2> /dev/null
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/db/src'
gmake -C db/src clean
p4: not found
p4: not found
gmake[1]: Entering directory `/root/mainline/Srcs/Server/db/src'
gmake[1]: Leaving directory `/root/mainline/Srcs/Server/db/src'
--------------------------------------
Build Done
--------------------------------------
02/19/2014 13:33 callmax#419
Quote:
Wozu so viele Tabs ?
Weil ich jede Game einzeln starten lassen muss und das Putty Fenster offen haben muss :<
Da wiegesagt wenn ich Strg+z oder Strg+c drücke bzw das Fenster schließe die Game beendet wird / abstürzt
02/19/2014 14:41 Nick#420
Quote:
Originally Posted by callmax View Post
Weil ich jede Game einzeln starten lassen muss und das Putty Fenster offen haben muss :<
Da wiegesagt wenn ich Strg+z oder Strg+c drücke bzw das Fenster schließe die Game beendet wird / abstürzt
Logisch, du startest deine Cores ja auch im Vordergrund, d.h. wenn die PuTTY-Sitzung beendet, unterbrochen o.Ä. wird, verabschieden sich auch die jeweiligen Tasks, sofern diese sitzungsgebunden gestartet worden sind.

Um Prozesse im Background zu fahren, führst du Folgendes einfach zusätzlich aus; (am Beispiel des DB-Cores)

Code:
./callmax_db &
Liegt also nicht am Source oder am kompilierten Core.
__

Gruß

sYND[i]cATe