Help On Realm Restarter menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    wickedarsenal's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help On Realm Restarter

    So Ive been coding this thing for a while. And now its working and such except when a realm goes down it doesnt restart. I know the problem which is that it looks for the process name of the world.exe to restart it and since its a multi realm the exe is all the same name so it detects the working one. How can I fix this. Code below

    Button Code (Exe Start)

    Code:
          Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
            worldtime1.Enabled = True
            If (File.Exists(TextBox2.Text)) Then
                Process.Start(TextBox2.Text)
                PictureBox2.BackColor = Color.Lime
            Else
                MessageBox.Show("ERROR: File settings not found")
                PictureBox2.BackColor = Color.Yellow
            End If
        End Sub:confused::wave:
    Timer Code (Process Restarter)

    Code:
          'Start Of Worldtime Timers Code'
        Private Sub worldtime1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles worldtime1.Tick
            If True Then
                If Process.GetProcessesByName("ascent-world").Length = 0 Then
                    Process.Start(Me.TextBox2.Text)
                End If
            End If
        End Sub

    Help On Realm Restarter
  2. #2
    [Sadistic]'s Avatar Member
    Reputation
    42
    Join Date
    Sep 2009
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    wickedarsenal's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think it would be a waste of time. Its a learning experience. Anyone have an idea?

  4. #4
    [Sadistic]'s Avatar Member
    Reputation
    42
    Join Date
    Sep 2009
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1 u dont want use timers with VB

  5. #5
    Dombo's Avatar Banned
    Reputation
    622
    Join Date
    Nov 2008
    Posts
    1,421
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by [Sadistic] View Post
    1 u dont want use timers with VB
    This . Try to find another way.

  6. #6
    wickedarsenal's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any hints on how to start a process, or restart one for that matter, without using timers?

  7. #7
    Kirth's Avatar Active Member
    Reputation
    58
    Join Date
    Nov 2007
    Posts
    274
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eradicator says:
    The fact that he clearly is a ****wit
    I didn't even read his code
    I just glanced at it
    And saw
    "If True Then"
    And then I said "NO **** YOU" and closed it
    Also, the use of a timer and that method is rather.. primitive. Not to mention resource intensive. You'd be better off gathering a "pool" of world processes, get the location of their executable and restart them when they exit/crash.
    Last edited by Kirth; 04-03-2010 at 02:21 PM.

  8. #8
    wickedarsenal's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, well I'm not surprised its primitive since I am pretty new to coding in general. How would I be able to detect if the process that I started crashed and not get it mixed up with the others?

Similar Threads

  1. [HELP] How to restart server without owner
    By slayer99 in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 06-29-2008, 06:21 AM
  2. [HELP]No realm
    By gotiefan in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 06-22-2008, 06:43 AM
  3. [HELP] 2 realms problem ><
    By jackdaripper in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 06-06-2008, 10:25 PM
  4. Help for Realms selection at startup
    By marko001 in forum WoW Memory Editing
    Replies: 0
    Last Post: 05-16-2008, 01:14 PM
  5. [Help] I need help With realms
    By PsycoDisciples in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-28-2008, 06:47 PM
All times are GMT -5. The time now is 04:59 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search