|
You last visited: Today at 07:40
Advertisement
[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts
Discussion on [SAMMELTHREAD] Metin2 Source Compile Tips/Tuts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
02/14/2014, 22:36
|
#406
|
elite*gold: 0
Join Date: May 2013
Posts: 223
Received Thanks: 93
|
Quote:
Originally Posted by .Risan.
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
|
#407
|
elite*gold: 317
Join Date: Jul 2008
Posts: 511
Received Thanks: 102
|
Quote:
Originally Posted by .Captor
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
|
#408
|
elite*gold: 0
Join Date: May 2013
Posts: 223
Received Thanks: 93
|
Quote:
Originally Posted by mamAmok
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.
Code:
../../../Extern/include/gtest/internal/gtest-port.h:870: error: 'regex_t' does not name a type
../../../Extern/include/gtest/internal/gtest-port.h:871: error: 'regex_t' does not name a type
gmake: *** [OBJDIR/main.o] Error 1
|
|
|
02/15/2014, 11:02
|
#409
|
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
|
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
|
#410
|
elite*gold: 0
Join Date: Jul 2010
Posts: 83
Received Thanks: 89
|
How to change the rate in char_manager.cpp (game server)
Code:
m_iMobItemRate = 100;
m_iMobDamageRate = 100;
m_iMobGoldAmountRate = 100;
m_iMobGoldDropRate = 100;
m_iMobExpRate = 100;
m_iMobItemRatePremium = 100;
m_iMobGoldAmountRatePremium = 100;
m_iMobGoldDropRatePremium = 100;
m_iMobExpRatePremium = 100;
m_iUserDamageRate = 100;
m_iUserDamageRatePremium = 100;
|
|
|
02/16/2014, 13:25
|
#411
|
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
|
Quote:
Originally Posted by Adasaurus
How to change the rate in char_manager.cpp (game server)
Code:
m_iMobItemRate = 100;
m_iMobDamageRate = 100;
m_iMobGoldAmountRate = 100;
m_iMobGoldDropRate = 100;
m_iMobExpRate = 100;
m_iMobItemRatePremium = 100;
m_iMobGoldAmountRatePremium = 100;
m_iMobGoldDropRatePremium = 100;
m_iMobExpRatePremium = 100;
m_iUserDamageRate = 100;
m_iUserDamageRatePremium = 100;
|
I think those are int's, but convertable.
|
|
|
02/16/2014, 14:52
|
#412
|
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
|
Quote:
Originally Posted by callmax
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
|
#413
|
elite*gold: 200
Join Date: Apr 2012
Posts: 577
Received Thanks: 290
|
Quote:
Originally Posted by callmax
......
|
Devil(Developers image library) first answer... just search the port for freebsd.
Kind Regards
MartPwnS
|
|
|
02/18/2014, 23:09
|
#414
|
elite*gold: 0
Join Date: Mar 2011
Posts: 27
Received Thanks: 1
|
Hallo,
Wie kann ich von game_r40250_32.cpp nach game?
Danke
|
|
|
02/19/2014, 06:09
|
#415
|
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
|
Mal ne andere Frage wie bekommt ihr den die game's überhaupt dazu das sie richtig laufen?
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
|
#416
|
elite*gold: 0
Join Date: Oct 2013
Posts: 67
Received Thanks: 4
|
Quote:
Wozu so viele Tabs  ?
|
|
|
02/19/2014, 12:29
|
#417
|
elite*gold: 0
Join Date: Dec 2010
Posts: 30
Received Thanks: 11
|
Shared object "libmysqlclient.so.15" not found, required by "game"
Help me.
|
|
|
02/19/2014, 13:23
|
#418
|
elite*gold: 0
Join Date: Feb 2012
Posts: 185
Received Thanks: 127
|
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
|
#419
|
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
|
Quote:
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
|
#420
|
wild wild son
elite*gold: 0
Join Date: Feb 2011
Posts: 5,995
Received Thanks: 3,389
|
Quote:
Originally Posted by callmax
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)
Liegt also nicht am Source oder am kompilierten Core.
__
Gruß
sYND[i]cATe
|
|
|
Similar Threads
|
Reverse Crypt Systems [Tips/Hints/Tuts needed]]
03/01/2012 - CO2 Private Server - 8 Replies
Hello PVPers,
So the Title says it all, Since i came here and i am trying to learn how to be a good Coder and Co2 P.Server Specially , i guess i dd well so far but i'v noticed that all my prev experience ddnt came near Encrypting/Decrypting systems , i also aware of that most of good coders around here are very busy coding stuff and so ,i was away for sometime and about 2 months ago i came back from AD (work trip) and a friend asked for an up to date P.Server , actually i miss that fun so...
|
All times are GMT +1. The time now is 07:41.
|
|