|
You last visited: Today at 08:32
Advertisement
[C++/Source] Gildenlager
Discussion on [C++/Source] Gildenlager within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
02/15/2015, 01:29
|
#91
|
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
|
Quote:
Originally Posted by socressor
yoa danke für die Info ersma^^...
hatte das hinzugefügt ja...nur wird der window typ iwi nicht richtig gesetzt...bleibt einfach leer..
was vergessen?
|
haste der enum den neuen eintrag fürs gildenlager hinzugefügt?
|
|
|
02/15/2015, 10:09
|
#92
|
elite*gold: 1300
Join Date: Sep 2008
Posts: 927
Received Thanks: 379
|
Quote:
Originally Posted by [Sensenmann]
haste der enum den neuen eintrag fürs gildenlager hinzugefügt?
|
Joa
|
|
|
02/15/2015, 10:57
|
#93
|
elite*gold: 0
Join Date: Jun 2010
Posts: 19
Received Thanks: 1
|
Quote:
Originally Posted by socressor
Joa
|
add BELT INVENTORY to table player.item
|
|
|
02/15/2015, 12:43
|
#94
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
Quote:
Originally Posted by socressor
Joa
|
Du musst in der Tabelle noch den Eintrag "guild_safebox" hinzufügen:
Geh in Navicat Rechtsklick auf die Tabelle "item" und geh auf "Design Table". Jetzt bei der Spalte "window" auf Bearbeiten und unter "belt" (o.ä.) die Spalte "guild_safebox" hinzufügen.
Außerdem musst du in der ENUM das "GUILD_SAFEBOX" über "GROUND" schieben.
@Eistee:
Die is_gm_owner-Einträge musst du auch entfernen, war ein Fehler von mir; allerdings musst du sie auch aus den Queries entfernen. Wegen dem Client-Error: Hast du in der "PythonSafeBox.cpp" alle Einträge des neusten Updates drinnen? Prüf mal ob du unten (fast letzte Zeile) drinnen hast:
Code:
{ "GetGuildMoney", safeboxGetGuildMoney, METH_VARARGS },
|
|
|
02/15/2015, 12:52
|
#95
|
elite*gold: 1300
Join Date: Sep 2008
Posts: 927
Received Thanks: 379
|
Quote:
Originally Posted by TiRez
Du musst in der Tabelle noch den Eintrag "guild_safebox" hinzufügen:
Geh in Navicat Rechtsklick auf die Tabelle "item" und geh auf "Design Table". Jetzt bei der Spalte "window" auf Bearbeiten und unter "belt" (o.ä.) die Spalte "guild_safebox" hinzufügen.
Außerdem musst du in der ENUM das "GUILD_SAFEBOX" über "GROUND" schieben.
@Eistee:
Die is_gm_owner-Einträge musst du auch entfernen, war ein Fehler von mir; allerdings musst du sie auch aus den Queries entfernen. Wegen dem Client-Error: Hast du in der "PythonSafeBox.cpp" alle Einträge des neusten Updates drinnen? Prüf mal ob du unten (fast letzte Zeile) drinnen hast:
Code:
{ "GetGuildMoney", safeboxGetGuildMoney, METH_VARARGS },
|
ist bereits drin
|
|
|
02/15/2015, 13:14
|
#96
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
Quote:
Originally Posted by socressor
ist bereits drin
|
Dein Problem ist, die ENUM-Liste im Server muss mit der in der Datenbank übereinstimmen. Das heißt, du musst in der Datenbank die Reihenfolge so machen:
Code:
INVENTORY
EQUIPMENT
SAFEBOX
MALL
DRAGON_SOUL
BELT
GUILD_SAFEBOX
@Eistee: Gib mal bitte die Zeile in der die Funktion "GetGuildMoney" aufgerufen wird.
|
|
|
02/15/2015, 13:44
|
#97
|
elite*gold: 222
Join Date: Oct 2012
Posts: 2,369
Received Thanks: 3,389
|
game
Code:
compile battle.cpp
In file included from stdafx.h:12,
from guild_safebox.h:4,
from guild.h:7,
from battle.cpp:15:
../../common/utils.h: In function 'bool str_to_number(bool&, const char*)':
../../common/utils.h:2: error: redefinition of 'bool str_to_number(bool&, const char*)'
../../common/utils.h:2: error: 'bool str_to_number(bool&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(char&, const char*)':
../../common/utils.h:10: error: redefinition of 'bool str_to_number(char&, const char*)'
../../common/utils.h:10: error: 'bool str_to_number(char&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(unsigned char&, const char*)':
../../common/utils.h:18: error: redefinition of 'bool str_to_number(unsigned char&, const char*)'
../../common/utils.h:18: error: 'bool str_to_number(unsigned char&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(short int&, const char*)':
../../common/utils.h:26: error: redefinition of 'bool str_to_number(short int&, const char*)'
../../common/utils.h:26: error: 'bool str_to_number(short int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(short unsigned int&, const char*)':
../../common/utils.h:34: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)'
../../common/utils.h:34: error: 'bool str_to_number(short unsigned int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(int&, const char*)':
../../common/utils.h:42: error: redefinition of 'bool str_to_number(int&, const char*)'
../../common/utils.h:42: error: 'bool str_to_number(int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(unsigned int&, const char*)':
../../common/utils.h:50: error: redefinition of 'bool str_to_number(unsigned int&, const char*)'
../../common/utils.h:50: error: 'bool str_to_number(unsigned int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(long int&, const char*)':
../../common/utils.h:58: error: redefinition of 'bool str_to_number(long int&, const char*)'
../../common/utils.h:58: error: 'bool str_to_number(long int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(long unsigned int&, const char*)':
../../common/utils.h:66: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)'
../../common/utils.h:66: error: 'bool str_to_number(long unsigned int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(long long int&, const char*)':
../../common/utils.h:74: error: redefinition of 'bool str_to_number(long long int&, const char*)'
../../common/utils.h:74: error: 'bool str_to_number(long long int&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(float&, const char*)':
../../common/utils.h:82: error: redefinition of 'bool str_to_number(float&, const char*)'
../../common/utils.h:82: error: 'bool str_to_number(float&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(double&, const char*)':
../../common/utils.h:90: error: redefinition of 'bool str_to_number(double&, const char*)'
../../common/utils.h:90: error: 'bool str_to_number(double&, const char*)' previously defined here
../../common/utils.h: In function 'bool str_to_number(long double&, const char*)':
../../common/utils.h:99: error: redefinition of 'bool str_to_number(long double&, const char*)'
../../common/utils.h:99: error: 'bool str_to_number(long double&, const char*)' previously defined here
Makefile:130: recipe for target 'OBJDIR/battle.o' failed
gmake: *** [OBJDIR/battle.o] Error 1
db
Code:
compile Main.cpp
In file included from Main.cpp:21:
GuildSafeboxManager.h:67: error: 'GUILD_SAFEBOX_PASSWORD_MAX_LEN' was not declared in this scope
GuildSafeboxManager.h:70: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h:71: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h: In member function 'void CGuildSafebox::SetPassword(const char*)':
GuildSafeboxManager.h:36: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const char* CGuildSafebox::GetPassword()':
GuildSafeboxManager.h:37: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'bool CGuildSafebox::CheckPassword(const char*) const':
GuildSafeboxManager.h:38: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const TPlayerItem* CGuildSafebox::GetItem(BYTE) const':
GuildSafeboxManager.h:59: error: 'm_pItems' was not declared in this scope
Makefile:56: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
|
|
|
02/15/2015, 14:24
|
#98
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
@Eistee:
Nein, in dem Python-Script also in der uiSafebox.py.
@Avenue:
game: geh in die "common/utils.h" und pack oben folgendes hin:
Code:
#ifndef __METIN2_COMMON_UTILS_H__
#define __METIN2_COMMON_UTILS_H__
und ans Dateiende: db: Schick mal bitte die "stdafx.h"
|
|
|
02/15/2015, 15:58
|
#99
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
@Eistee:
Überprüf mal ob du in die Locale_inc.h das
Code:
#define ENABLE_GUILD_SAFEBOX
reingeschrieben hast & ob die Locale_inc.h in der GuildSafebox.cpp includet wird.
|
|
|
02/15/2015, 18:22
|
#100
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
Quote:
Originally Posted by EisTee,
Voll vergessen, aber wenn ich jetzt Compilen will die Binary kommt mir der Fehler 
|
Füg "GUILD_SAFEBOX_SUBHEADER_GOLD = 3," in das ENUM von den Subheaders ein (Packet.h glaub ich) und erhöhe die beiden anderen ENUMs um 1 (die andere 3 und die 4).
|
|
|
02/15/2015, 18:23
|
#101
|
elite*gold: 0
Join Date: Jan 2015
Posts: 110
Received Thanks: 178
|
Quote:
Originally Posted by EisTee,
Voll vergessen, aber wenn ich jetzt Compilen will die Binary kommt mir der Fehler 
|
in der Packet.h das Gold mit einfügen
PHP Code:
#ifdef ENABLE_GUILD_SAFEBOX
HEADER_CG_GUILD_SAFEBOX_OPEN = 207,
HEADER_CG_GUILD_SAFEBOX_CHECKIN = 208,
HEADER_CG_GUILD_SAFEBOX_CHECKOUT = 209,
HEADER_CG_GUILD_SAFEBOX_ITEM_MOVE = 210,
HEADER_CG_GUILD_SAFEBOX_GIVE_GOLD = 211,
HEADER_CG_GUILD_SAFEBOX_GET_GOLD = 212,
#endif
|
|
|
02/15/2015, 18:32
|
#102
|
elite*gold: 1300
Join Date: Sep 2008
Posts: 927
Received Thanks: 379
|
danke tirez...mein einziger Fehler ist nurnoch das wenn ich yang wieder vom lager zurückziehen will, in mein inventar, dann bekomme ich es einfach nicht.
An welcher Stelle muss ich da genau suchen wo der Fehler liegen kann. ( hab bei mir die yang grenze auf int64 erhöht und jetzt soweit alles bei der guildsafebox auf int64 umgeschrieben)
|
|
|
02/15/2015, 18:52
|
#103
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
@socressor:
Vermutlich liegt das an einem Packet von Game->DB oder DB->Game wo das Yang gesendet wird und dort ein &<Gold-Variable>, sizeof(DWORD) steht & du musst dort das in sizeof(int64) ändern.
|
|
|
02/15/2015, 19:40
|
#104
|
elite*gold: 125
Join Date: Aug 2012
Posts: 641
Received Thanks: 2,460
|
Quote:
Originally Posted by EisTee,
Danke erst mal für deine/eure hilfe. Habe jetzt noch 1-2 Fehler beim Compilen

|
Du musst für die Header Nummern finden, die noch nicht vergeben sind. Guck in die Packet.h & guck welche Zahlen zwischen 1-255 noch nicht vergeben sind & wähle diese für die Header. Wichtig ist nur, dass im Clienten und im Server in der Packet.h für die gleichen Header die gleichen Zahlen stehen.
|
|
|
02/16/2015, 12:01
|
#105
|
elite*gold: 0
Join Date: Dec 2014
Posts: 1
Received Thanks: 0
|
Kannst vll ma rechte reinmachen und z.b. wie es auf karma 2 sein wird so ein system machen des ein spieler rechte für eine seite hat z.b. spieler xy hat sich seite 1 gekauft spiele xz seite 2 spieler xy kann dann nichts von der 2 seite nehmen kann man das einfügen?
|
|
|
 |
|
Similar Threads
|
Gildenlager
01/17/2015 - Metin2 Private Server - 1 Replies
Hey,
kann mir einer pls helfen beim Gildenlager ?
Und zwar geht es dadrum, dass ich beim Gildenlager rechte verteile, jedoch kann ich die Rechte nicht verwenden. Ab und zu kann ich sogar kein Namen eintragen, um überhaupt Rechte zu verteilen... ?
|
Gildenlager Bug or so :D
01/16/2015 - Metin2 Private Server - 5 Replies
Tag,hab mir mal das Gildenlager eingebaut,soweit geht alles jedoch kann ich keine Items in das Lager lagern aber Yang geht.
Hoffentlich kennt jemand eine Lösung
Screen
Screenshot by Lightshot
Screenshot by Lightshot
Syserr spuckt nichts aus
|
[Buying] Gildenlager
12/16/2014 - Metin2 Trading - 1 Replies
Servus!
Suche die komplett entbuggte Version des Gildenlager's.
Bitte in Skype oder per PN melden.
LG
_Point_
|
[Rls]Gildenlager Only Quest
09/03/2014 - Metin2 PServer Guides & Strategies - 13 Replies
#deleted
|
[Verbesserungsvorschläge] Gildenlager
02/14/2014 - Metin2 Private Server - 46 Replies
Guten Abend ,
da .He3o Copy und ich nun fast mit dem Gildenlager fertig sind wollten wir mal Wissen ob ihr noch ein paar Verbesserungsvorschläge für uns hättet.
http://i.epvpimg.com/SX3Wc.jpg
|
All times are GMT +1. The time now is 08:33.
|
|