For those of you who have been on my server recently and have noticed your level isn't what it was the day before, there was a problem in my SaveChar.. I was overloading mysql by saving so many strings that long..
here's the remedy! (if you start adding variables to the character database for saving)
in your catch(blah blah) {} clause in savechar replace it with:
Code:
catch (Exception Exc) {
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("USER", "PASS");
if (World.SaveAllChars())
General.WriteLine("Connection to mysql server reinitiated");
else
General.WriteLine("Connection Error, server restarting! " + DateTime.Now());
}
Next, split the string into multiple strings!
(Update Characters Set 'var' = 'value', 'var2' = 'value2', ETC) try to keep it under 10 vars per string for extra saftey!
and Finally, goto public static void SaveAllChars() { in world, and replace it with this:
Code:
public static bool SaveAllChars()
{
try
{
foreach (DictionaryEntry DE in AllChars)
{
Character Charr = (Character)DE.Value;
DataBase.SaveChar(Charr);
}
Guilds.SaveAllGuilds();
return true;
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); return false; }
}
and that will prevent your Connection() from dying and you losing hard-earned character data!
where I put,
catch (Exception Exc) {
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("rech", "prohh");
if (World.SaveAllChars())
General.WriteLine("Connection to mysql server reinitiated");
else
General.WriteLine("Connection Error, server restarting! " + DateTime.Now());
}
help me plz
i'm using powersourceCO
where I put,
catch (Exception Exc) {
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("rech", "prohh");
if (World.SaveAllChars())
General.WriteLine("Connection to mysql server reinitiated");
else
General.WriteLine("Connection Error, server restarting! " + DateTime.Now());
}
help me plz
i'm using powersourceCO
SORRY lol. I sort of retyped it in this window.. be sure to change "rech" to your mysql user, and "prohh" to your pass (this is my limited user on mysql haha, don't worry I already changed the user and pass realizing I typed it in here), as for DateTime.Now... I would change that from
Code:
else
General.WriteLine("Connection Error, server restarting! " + DateTime.Now());
now i got error:
General.WriteLine("{0:F} > Connection Error, server restarting!", DateTime.Now);
"No overload for the method 'WriteLine' takes '2' arguments"
help me please,
Next, split the string into multiple strings!
(Update Characters Set 'var' = 'value', 'var2' = 'value2', ETC) try to keep it under 10 vars per string for extra saftey!
The MySQL C# Adapter has something nifty call a threadpool, thanks for your release; you just made it a lot easier for me to rape LOTF-based servers using this.
if (World.SaveAllChars())
{
General.WriteLine("Connection to mysql server reinitiated");
}
else
{
General.WriteLine("Connection Error, server restarting! " + DateTime.Now);
General.ServerRestart();
}
lol! yah I though of that too :P just sendany packet for a command that uses the database about 50 times in a second (WPE PRO?) and the server shouldn't save anything anymore unless they have a reconnect script.. also I'm working on an auto-drop() and ban script for when people try to do that to my server
Best server atm ? (stability ,rates ,got people ,etc) 09/02/2010 - Aion Private Server - 6 Replies ok so i am dling aion atm ,and found alot of servers ,so was wondering whats the best server atm ,having most stuff done and skills ,classes ,etc is most important ,2nd stability ,3rd actually got people playing not just 11 .. ,4th if available a high rates one ,thanks in advance ^^ .
oh english server btw .
Mass Spawn Stability 03/30/2010 - Dekaron - 18 Replies Lately, Ive been getting disconnected a lot while using Mass Spawn.
For example, when I do Oread, I use drako's all in one vac script with mobs speed set at 1, zoom, fareye, autopots, wall and speed, but no matter what I do, I get disconnected after killing spawns for around a minute to five or ten minutes.
I dont think graphics lag is what is causing me to get disconnected, cause I got an i5 750 processor and a ATI 5770 graphic card, which is overkill for 2moons.
Am I missing...
Increase Gatherbuddys stability 12/04/2009 - WoW Bots - 2 Replies Hello together,
since Gatherbuddy is out i can count myself to a member who use it nearly every day for 12 hours.
But i had a time where i got a lot of WoW Errors 132.
Just a few days ago i found a way how to avoid these annoying errors.
Its so simple .. you just have to run WoW on one core instead of 2 or 4 or whatever.
I dont know why it works but its confirmed by me (Gatherbuddy now runs 9 days without a wow error. Before wow crashed everytime i use an bot which inject)
But after...
Dekaron/CE stability -dc 10/20/2009 - Dekaron - 10 Replies Hi people!
There is something what bothers me and that is damn disconnect while farming..
I wonder how stable is your game whitout disc! 5min, 10min , hour ??
At first i tho there is problem whit offsets, but then some ppl gave me their script and guess what ,problem still stays.. Could it be bypass? I mean that would explain alot, thats why i ask how long u can play whitout disconnect.
Ofcourse im using ReXIGNation v1.1, so thats not a question..Now im done some tests whit CT..
Im...
[RELEASE]Updated Snootae Potter 1.1 *Fixed stopping problem* 03/05/2008 - MapleStory - 0 Replies Snootae Potter 1.1
decided to post it since it's not here yet
Thank snootae.
Snootae's pixel-based potter for MapleStory
http://img301.imageshack.us/img301/6040/asfasfsdgs ghddd0.png
Made By Snootae or AdamG62