Auto Restart

Page 1 of 2 12 LastLast
Results 1 to 25 of 32
  1. #1
    Account Upgraded | Title Enabled! petertoft is offline
    MemberRank
    Jan 2008 Join Date
    In ur mom!Location
    417Posts

    Auto Restart

    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.


  2. #2
    Proficient Member XeroRecoil is offline
    MemberRank
    May 2007 Join Date
    In Hell Called HeavenLocation
    192Posts

    Re: Auto Restart

    Connection.Open();

  3. #3
    Account Upgraded | Title Enabled! petertoft is offline
    MemberRank
    Jan 2008 Join Date
    In ur mom!Location
    417Posts

    Re: Auto Restart

    Quote Originally Posted by XeroRecoil View Post
    Connection.Open();
    Hehe that dont really help i need the program or tell me like what to add:D

  4. #4
    Account Upgraded | Title Enabled! lizzio is offline
    MemberRank
    Jun 2008 Join Date
    Belgium[BE]Location
    291Posts

    Re: Auto Restart

    Quote Originally Posted by petertoft View Post
    Hehe that dont really help i need the program or tell me like what to add:D
    its your own conecction.. a program cant help on this case!

  5. #5
    Enthusiast Super.Pvper is offline
    MemberRank
    Jun 2008 Join Date
    36Posts

    Re: Auto Restart

    Newb.

  6. #6
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Auto Restart

    So i need to put only Connection.Open(); to dont lose connection with MySql ??? :|

  7. #7
    Account Upgraded | Title Enabled! petertoft is offline
    MemberRank
    Jan 2008 Join Date
    In ur mom!Location
    417Posts

    Re: Auto Restart

    Quote Originally Posted by Super.Pvper View Post
    Newb.
    Like ur perfect ur the one releaseing lotf source

  8. #8
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Auto Restart

    ya ik his nuub :|

  9. #9
    Enthusiast Super.Pvper is offline
    MemberRank
    Jun 2008 Join Date
    36Posts

    Re: Auto Restart

    Quote Originally Posted by petertoft View Post
    Like ur perfect ur the one releaseing lotf source
    Oh thanks, Yeah, I know im perfect. What can I say?

  10. #10
    Proficient Member chris101 is offline
    MemberRank
    Dec 2007 Join Date
    150Posts

    Re: Auto Restart

    Quote Originally Posted by Super.Pvper View Post
    Oh thanks, Yeah, I know im perfect. What can I say?
    no ur not your just a perfect dick head
    Pirate boi
    lets release LOTF again hehe im a geek oops weres my glassses

  11. #11
    Valued Member zenneynguyen91 is offline
    MemberRank
    Jul 2007 Join Date
    californiaLocation
    102Posts

    Re: Auto Restart

    Quote Originally Posted by petertoft View Post
    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.
    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

  12. #12
    Valued Member xEnt is offline
    MemberRank
    Nov 2006 Join Date
    100Posts

    Re: Auto Restart

    it takes 2 seconds to make a server restarter, you can even make one in batch..

  13. #13
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Auto Restart

    okay if you make it in 2 sec make an autosaver at 30 seconds in 1 sec to see xD for lotf source

  14. #14
    Valued Member xEnt is offline
    MemberRank
    Nov 2006 Join Date
    100Posts

    Re: Auto Restart

    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.

  15. #15
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Auto Restart

    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?

  16. #16
    Valued Member zenneynguyen91 is offline
    MemberRank
    Jul 2007 Join Date
    californiaLocation
    102Posts

    Re: Auto Restart

    god you dont have to make your own Server Doc<< its free lol google it sooo simpo!!!!

  17. #17
    Account Upgraded | Title Enabled! YoungJeezy is offline
    MemberRank
    Mar 2008 Join Date
    Your www directoryLocation
    211Posts

    Re: Auto Restart

    Maybe....

    Connection.Reset();
    break;


    I don't know what kind of source you are using, so yea

  18. #18
    Account Upgraded | Title Enabled! JoshuaX is offline
    MemberRank
    Jan 2007 Join Date
    225Posts

    Re: Auto Restart

    technically a batch restarter would work just fine. they use one for eAthena (an RO server project) =P

  19. #19
    Valued Member xEnt is offline
    MemberRank
    Nov 2006 Join Date
    100Posts

    Re: Auto Restart

    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.

  20. #20
    Account Upgraded | Title Enabled! JoshuaX is offline
    MemberRank
    Jan 2007 Join Date
    225Posts

    Re: Auto Restart

    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 =)

  21. #21
    Account Upgraded | Title Enabled! Korvacs is offline
    MemberRank
    Jan 2008 Join Date
    298Posts

    Re: Auto Restart

    lol, i see everyone is still doing global saving of characters,

    my server updates the database everytime you do something, which makes rollbacks impossible :)

  22. #22
    C# Developer stealarcher is offline
    MemberRank
    Jan 2008 Join Date
    571Posts

    Re: Auto Restart

    i would listen to zenney :P (because i know it works, and its easy)

  23. #23
    Valued Member xEnt is offline
    MemberRank
    Nov 2006 Join Date
    100Posts

    Re: Auto Restart

    Quote Originally Posted by Korvacs View Post
    lol, i see everyone is still doing global saving of characters,

    my server updates the database every time you do something, which makes rollbacks impossible :)
    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

  24. #24
    Account Upgraded | Title Enabled! Korvacs is offline
    MemberRank
    Jan 2008 Join Date
    298Posts

    Re: Auto Restart

    Quote Originally Posted by xEnt View Post
    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
    I loss no performance and have atually improved performance on previous database systems, ever heard of multi threading and .dlls?

    Absolutely no loss in performance what so ever :)

  25. #25
    Valued Member xEnt is offline
    MemberRank
    Nov 2006 Join Date
    100Posts

    Re: Auto Restart

    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



Page 1 of 2 12 LastLast

Advertisement