Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 13:57

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

Advertisement



FreeBSD 64 Bit und Mijago questlib.lua Problem

Discussion on FreeBSD 64 Bit und Mijago questlib.lua Problem within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,228
FreeBSD 64 Bit und Mijago questlib.lua Problem

Es gab schon viele Themen und diese habe mir alle durchgelesen und auch die notwendigen Änderungen vorgekommen aber es klappt nicht.

mein Query in der Quest:

mysql_query("update account.account set coins = coins+"..(100).." where id = "..pc.get_account_id())


meine Änderung in der questlib.lua beim mysql_query = function(query)

os.execute('mysql '..pre..' -e'..string.format('%q', query)..' > '..fi)

Ich habe habe FreeBSD 8.3 64 Bit und mysql 5.5.33

Immer wieder der Fehler das ich einen Mysql Error (1064) habe, was mache ich denn falsch, auf älteren FreeBSD Versionen und MYSQl 5.0 lief das alles ohne Probleme.
ebert.tonna is offline  
Old 08/31/2013, 02:27   #2
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Comment this line in /etc/my.cnf

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLE S

and:

service mysql-server restart
.Shōgun is offline  
Old 08/31/2013, 02:48   #3
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,228
keine Änderung geht so auch nicht


Habe ich vielleicht was vergessen zu installieren oder ist mein query einfach nur falsch mit der mysql version. gibt ja immerhin unterschiede.
ebert.tonna is offline  
Old 08/31/2013, 09:06   #4
 
elite*gold: 0
Join Date: Jun 2013
Posts: 111
Received Thanks: 7
glaube weiß das problem adde dich
CersusAkaBrot is offline  
Old 09/01/2013, 20:21   #5
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,228
Push Problem besteh immer noch, ich glaube langsam es liegt am AMD 64
ebert.tonna is offline  
Old 09/01/2013, 20:23   #6
 
elite*gold: 5
Join Date: Mar 2013
Posts: 1,986
Received Thanks: 2,254
Mach mal bitte einen Screen vom Error und ladt deine Questlib.lua hoch
xGr33n is offline  
Old 09/01/2013, 22:55   #7
 
ebert.tonna's Avatar
 
elite*gold: 50
Join Date: Nov 2009
Posts: 865
Received Thanks: 1,228
Problem behoben:

Das ist der Eintrag von Mijago in der Questlib:

mysql_query = function(query)
if not pre then
local rt = io.open('CONFIG','r'):read('*all')
pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+) %s(%S+).+','-h%1 -u%2 -p%3 -D%4')
end
math.randomseed(os.time())
local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2 ^10),{},{}
os.execute('mysql '..pre..' -e='..string.format('%q',query)..' > '..fi)
for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
for i = 2, table.getn(t) do table.foreach(t[i],function(a,b)
out[i-1] = out[i-1] or {}
out[i-1][a] = tonumber(b) or b or 'NULL'
out[t[1][a]] = out[t[1][a]] or {}
out[t[1][a]][i-1] = tonumber(b) or b or 'NULL'
end) end
out.__lines = t[1]
return out
end








und das ist der neue Eintrag mit dem alten ersetzt und es klappt nun ohne Probleme:

mysql_query = function(query)
if not MYSQL_CONNECTION then
local rt = io.open('CONFIG','r'):read('*all')
MYSQL_CONNECTION = string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+) %s(%S+).+','-h%1 -u%2 -p%3 -D%4')
end
math.randomseed(os.time())
local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2 ^10),{},{}
os.execute("mysql "..MYSQL_CONNECTION.." -e "..string.format('%q',query).." > "..fi)
for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
for i = 2, table.getn(t) do table.foreach(t[i],function(a,b)
out[i-1] = out[i-1] or {}
out[i-1][a] = b
out[t[1][a]] = out[t[1][a]] or {}
out[t[1][a]][i-1] = b
end) end
return out
end

und den Query in:

mysql_query("update account.account set coins = coins+100 where id = '"..pc.get_account_id().."'")

Vielen Dank an LCFMaus(BEN) für die Lösung


geändert.
ebert.tonna is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Questlib von Mijago
04/12/2013 - Metin2 Private Server - 3 Replies
Hey weiß einer von euch wie man die Questlib einfügt da ich das nicht hinkriege -.- mysql_query: Command not found.
Mijago Questlib wie?
11/29/2012 - Metin2 Private Server - 2 Replies
Hallo, um die questlib von mijago zu nützen benötige ich doch ein Programm, was sich Git nennt oder? Wo finde ich ne Anleitung zur Installation von diesem ding? lg
Questlib von Mijago
09/20/2012 - Metin2 Private Server - 2 Replies
Hey, kann mir jemand die Questlib von Mijago hochladen? oder anderen Link schicken? In seinem Thread der Link funktioniert nicht mehr und ich würde gerne Quests einfügen, wofür ich diese Questlib brauche. Danke schön
[HELP]Questlib erweiterung von Mijago
07/12/2012 - Metin2 Private Server - 3 Replies
#erledigt



All times are GMT +1. The time now is 13:58.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.