Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 14:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Leicht zu benutzende Petquest (Caching, Petnamen)

Discussion on [Release] Leicht zu benutzende Petquest (Caching, Petnamen) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 10/17/2015, 20:23   #16
 
elite*gold: 0
Join Date: Aug 2015
Posts: 14
Received Thanks: 1
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=CALL player.pet_AllPets()' at line 1

in putty get this error...what can be problem?
LoniceraWorld1 is offline  
Old 11/07/2015, 01:20   #17
 
Sogma's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 670
Received Thanks: 137
Wie sieht's mit Pet Bonis aus? Wie kann ich die hinzufügen?
Sogma is offline  
Old 11/07/2015, 01:28   #18

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by Sogma View Post
Wie sieht's mit Pet Bonis aus? Wie kann ich die hinzufügen?
In der item_proto in den applys des Siegels
rollback is offline  
Old 11/07/2015, 03:37   #19
 
naosou's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 391
Received Thanks: 92
Do I need to add functions to quest_funtions?
Btw, those who are using vanilla's source code should change mysql_query to game_mysql_query or something like that?
naosou is offline  
Old 11/07/2015, 05:13   #20

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by naosou View Post
Do I need to add functions to quest_funtions?
Btw, those who are using vanilla's source code should change mysql_query to game_mysql_query or something like that?
If your compiler says you have missing functions just add them to your quest_functions.
For mysql_query you can use ANY that returns the rows like this:
[row][column]

so yes, you can use the vanilla game.mysql_query
rollback is offline  
Old 11/07/2015, 13:12   #21
 
naosou's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 391
Received Thanks: 92
Quote:
Originally Posted by Seחsi View Post
If your compiler says you have missing functions just add them to your quest_functions.
For mysql_query you can use ANY that returns the rows like this:
[row][column]

so yes, you can use the vanilla game.mysql_query
Do you know why, everytime I make reboot player_pet gets deleted?
Server goes way back after reboot.


Edit: sql_mode="" to .cnf
Edit2: When I choose the name for pet the window just closes.

Code:
SYSERR: Nov  7 13:46:55.640718 :: RunState: LUA_ERROR: [string "petsystem"]:25: attempt to call field `match' (a nil value) WITH ERRORCODE 1
SYSERR: Nov  7 13:46:55.640762 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Nov  7 13:46:55.640804 :: WriteRunningStateToSyserr: LUA_ERROR: quest petsystem.start click
naosou is offline  
Old 11/10/2015, 11:40   #22
 
naosou's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 391
Received Thanks: 92
Quote:
Originally Posted by naosou View Post
Edit2: When I choose the name for pet the window just closes.

Code:
SYSERR: Nov  7 13:46:55.640718 :: RunState: LUA_ERROR: [string "petsystem"]:25: attempt to call field `match' (a nil value) WITH ERRORCODE 1
SYSERR: Nov  7 13:46:55.640762 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Nov  7 13:46:55.640804 :: WriteRunningStateToSyserr: LUA_ERROR: quest petsystem.start click
???
naosou is offline  
Old 11/10/2015, 12:15   #23

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by naosou View Post
[STRIKE]Edit2: When I choose the name for pet the window just closes.

Code:
SYSERR: Nov  7 13:46:55.640718 :: RunState: LUA_ERROR: [string "petsystem"]:25: attempt to call field `match' (a nil value) WITH ERRORCODE 1
SYSERR: Nov  7 13:46:55.640762 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Nov  7 13:46:55.640804 :: WriteRunningStateToSyserr: LUA_ERROR: quest petsystem.start click
Did you overwrite your string.match function with nil?

Can you dump your string table using this code and show it to me?
Code:
local seen={}

function dump(t,i)
	seen[t]=true
	local s={}
	local n=0
	for k in pairs(t) do
		n=n+1 s[n]=k
	end
	table.sort(s)
	for k,v in ipairs(s) do
		print(i,v)
		v=t[v]
		if type(v)=="table" and not seen[v] then
			dump(v,i.."\t")
		end
	end
end

dump(_G.string,"")
rollback is offline  
Old 11/10/2015, 16:38   #24
 
naosou's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 391
Received Thanks: 92
Quote:
Originally Posted by Seחsi View Post
Can you dump your string table using this code and show it to me?
Code:
local seen={}

function dump(t,i)
	seen[t]=true
	local s={}
	local n=0
	for k in pairs(t) do
		n=n+1 s[n]=k
	end
	table.sort(s)
	for k,v in ipairs(s) do
		print(i,v)
		v=t[v]
		if type(v)=="table" and not seen[v] then
			dump(v,i.."\t")
		end
	end
end

dump(_G.string,"")
That's a querie?
naosou is offline  
Old 12/29/2015, 00:59   #25
 
.Ayaz''s Avatar
 
elite*gold: 0
Join Date: Dec 2014
Posts: 54
Received Thanks: 5
Guten Abend / Morgen?

Habe alles eingefügt ohne jegliche Fehlermeldungen. Wenn ich ingame auf mein Siegel klicke, kommt auch das Fenster, zum ersten mal Namen auswählen. Ich gebe den Namen ein, das Fenster schließt sich und nichts passiert. Was habe ich falsch gemacht?
.Ayaz' is offline  
Old 01/02/2016, 22:35   #26
 
SemTex℠'s Avatar
 
elite*gold: 50
Join Date: Jan 2016
Posts: 23
Received Thanks: 2
sehr schöne Sache!
SemTex℠ is offline  
Reply


Similar Threads Similar Threads
Petquest Fehler
03/23/2014 - Metin2 - 1 Replies
#Edit Hat sich erledigt, hab ihn selber gefunden
KingsRoad Release Notes 1/29/14—“Flash Caching Edition”
01/30/2014 - Facebook - 2 Replies
http://i.hizliresim.com/w1dOkD.png KingsRoad Release Notes 1/29/14—“Flash Caching Edition” by Brett Bates | Jan 29, 2014 The latest KingsRoad update is now live. Among the highlights: You can now improve your game performance by caching some game art on your hard drive! //New Features and Updates: * Some players now have the option of caching some game on their hard drive. The amount of game art stored locally is variable, but doing so should improve overall game...
[Release]Neuartige Petquest
06/10/2013 - Metin2 PServer Guides & Strategies - 14 Replies
Habt Spaß damit. War nur schnell mal hingeklatscht und könnte kürzer, aber immerhin funzt alles. Es wird dazu die Dif aus dem Pet-Gui und die Functionen benötigt. pet.summon pet.unsommon pet.is_summon
mysql caching
11/25/2012 - C/C++ - 0 Replies
mich würde grad mal interessieren wie man mysql queries am besten cached, da mein server recht viele mysql zugriffe machen wird. ich würde da gerne einen lokalen cache verwenden, den ich alle 5 minuten mit dem mysql server syncen will. ich hätte da schon eine idee, indem ich jeden query in einer map mit timestamp und result zwischenspeicher (timestamp zum überprüfen und ggf. syncen) damit wäre dann denke ich die sache mit 'select' geregelt, jetzt stellt sich mir noch die frage ob das ein...
[PHP] Ungewolltes Caching
09/02/2011 - Web Development - 5 Replies
Heyho ihr super Coder :D Ich fange gleich an... Und zwar habe ich einen Mini CSS Editor gemacht ist ja nichts Großes nun habe ich komischer weise das Problem das er wenn ich das CSS per file_get_contents in die CSS Dateien rein tue den alten CSS kram im Cache speichert.. Ich habe keine Ahnung wieso ob ich einfach nur zu dumm bin oder was weiß ich. Das ist aber auch nur auf meinem PC so auf Windows Root geht es... Es wird halt im Cache gespeichert wenn ich per FTP die Datei öffne ist der...



All times are GMT +2. The time now is 14:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.