- Joined
- Jan 29, 2018
- Messages
- 58
Working with mysql, ty!!!
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!{
"Mysql":{
"UseMysql":true, // Changing to false, uses sqlite and works ok.
"MysqlHost":"localhost",
"MysqlUser":"root",
"MysqlPass":"xxxxxxxx",
"MysqlDB":"apitest"
},
{
"Database":"mysql", // Changing to sqlite, uses sqlite and works ok.
"MysqlHost":"localhost",
"MysqlUser":"root",
"MysqlPass":"xxxxx",
"MysqlDB":"apitest",
"MysqlPort":3306,
"DbPathOverride":""
}
It only means that plugin can't connect to the db. Do you use legacy authentication?Not sure what I am doing wrong, Trying to use Mysql (version 8.0.14) but allways give an error code 1114. With Sqlite works normal.
Hey, I have a few questions and a bit of an odd one. I am currently rebuilding our servers' shop file (Bordering 6k lines of code for our Primal Fear/Gaia server) and am learning how this all of this goes together. We have a single server with a couple dino overhaul mods, a vanilla-like cluster across 4-5 maps/servers, and are in the process of adding another server with a different dino overhaul mod.
....
"DefaultKit":""
- it would be empty.Have you gotten this to work? I would like to implement that too.@Michidu any chance of adding ChangeKitAmount, ArkShop.Reload, ResetPoints, ResetKits to the rcon commands? I'm most interested in ChangeKitAmount... I want to automate my discord bot to add kits to people who are subscribers to a twitch stream.... i have all the discord and rcon side handled... just need to be able to changekitamount thru rcon.
This is the best plugin ever for ARK! Thanks for your time!
-B
Good idea, will look at it.
I have answered your post in the support.quick question is it possible for points to carry over between clustered servers if so how?
import sqlite3
import glob
from sqlite3 import Error
def create_connection(db_file):
try:
conn = sqlite3.connect(db_file)
return conn
except Error as e:
print(e)
return None
def add_data(conn, data):
cur = conn.cursor()
l_data = data
cur.execute("SELECT * FROM players")
rows = cur.fetchall()
for row in rows:
steamid = row[1]
points = row[3]
if steamid in l_data:
l_data[steamid] = l_data[steamid] + points
else:
l_data[steamid] = points
return l_data
def main():
folder = "C:\\sqlite\\"
kits = "{""starter"":{""Amount"":0}}"
dbs = glob.glob(folder + "*.db")
data = {}
for i in dbs:
try:
# create a database connection
conn = create_connection(i)
with conn:
data = add_data(conn, data)
except:
print("Error on database " + i)
database = folder + "MergedArkShop.db"
try:
conn = create_connection(database)
cur = conn.cursor()
cur.execute("CREATE TABLE Players (Id integer primary key autoincrement not null,SteamId integer default 0,Kits text default '{}',Points integer default 0)")
for i in data.keys():
cur.execute("INSERT INTO players (STEAMID,KITS,POINTS) VALUES (?,?,?)", (i, kits, data[i],))
conn.commit()
except:
print("Error creating merged database")
if __name__ == '__main__':
main()
Unfortunately, not yet. But still plannedHas this been implemented? I would like to use the /sell function as a resource converter instead of using mods. So like my server on the island the player could sell 100 Stone and receive 500 Sand or 100 Wood for 50 Fungal Wood. If this has been implemented sorry for the double post but I read all 78pgs and didn't find it.
The easiest way is modify default points value in the db.Hello,
Is there a way to reward all new players with a score of X points on their first joining?
Have tried it with a kit but did not manage it.
Many Thanks.
We use essential cookies to make this site work, and optional cookies to enhance your experience.