Anyone got an auto restart they will send me for LOTF source.Im doing edits and stuff but some reason mysql still loses connection with server.So if anyone can send me a auto rest and tell me how to use it would be very help full.
Anyone got an auto restart they will send me for LOTF source.Im doing edits and stuff but some reason mysql still loses connection with server.So if anyone can send me a auto rest and tell me how to use it would be very help full.
Connection.Open();
Newb.
So i need to put only Connection.Open(); to dont lose connection with MySql ??? :|
ya ik his nuub :|
use Server Doc google it it is very easy to use just start it then for example there ur CoServerProject.exe is located put it in there like
C:\Documents and Settings\Owner\Desktop\CoPrivateServer\CoServerProject\bin\debug\CoServerProject.exe
after that use the file config the setup for a time for it to reset by minutes for restart xD
it takes 2 seconds to make a server restarter, you can even make one in batch..
okay if you make it in 2 sec make an autosaver at 30 seconds in 1 sec to see xD for lotf source
Batch can't make an autosaver as it's not apart of the server.
It'd be quite simple, on server load just add a timer for however long, when it goes off run the save world method, then run some other program or batch file then exit, the other program/batch file waits 5-10 seconds before executing another process (the server)
Or better yet, on startup of the server add a pointless Thread.sleep for 5 seconds (to wait for the old server's port's to close) then when the timer i mentioned above shuts down, it just opens the server again and exits the current one.
huhuhu i see you uber at this :D but i can say this for xtimes b cuz if i dont see the code i cant make it, i start to code on fist souce made by hadeset and is prity had fo me till i learn moe, but i donk know from where.....do you got some ideas?
god you dont have to make your own Server Doc<< its free lol google it sooo simpo!!!!
Maybe....
Connection.Reset();
break;
I don't know what kind of source you are using, so yea
technically a batch restarter would work just fine. they use one for eAthena (an RO server project) =P
But a batch restarter cannot save users, it will exit the server causing a slight rollback unless it the server saves every second which i highly doubt it does due to performance issues.
a Batch restarter might work if you program the timings into your server and get it to save about 5 seconds before the restarter would go off, but even doing that is messing with the code when you could make the restarter via the code which puts batch out of the question.
but it would still work just fine. i'd use it for server crashes. like eAthena.....if the server crashes (stops responding) it closes and reopens it with the batch restarter. and when it crashes it also saves before closing =)
lol, i see everyone is still doing global saving of characters,
my server updates the database everytime you do something, which makes rollbacks impossible :)
i would listen to zenney :P (because i know it works, and its easy)
And you were saying setting NPC's into their own classes was un-efficient? I agree that it may have been 0.0000002 times slower than having it handled in 1 class, but very very far from a noticeable difference and well worth the very little performance loss.
Doing a test on a never ending loop of running through 2 voids in 2 different classes, it did it about 5000 times per second, and doing the NPC's the other way is 1 of those 5000.
But saving to the sql every action, i cant imagine how much more performance loss that would lose compared to the issue i said.
for a server that never crashes, it should be saved only upon any type of disconnection.
This is not a flame :P
Good for you then, i know it was barely a loss of performance, except i dont see how you can say running methods in different classes is going to effect performance instead of running through if/else statements.
But i don't even care anymore, i know it's no performance loss i just like a debate now and then :D