• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Need assistance :/

frost

Banned
ok so im writing a 7 instances realm re-starter because all i find out there is a re-starter that can only restart 1 realm at a time.
this is annoying for anyone that has multiple realms. i need some help
im having issues starting my realms with my program.

the issue:

process.start("c:\trinitycore\authserver.exe")

it is trying to start trinitycore authserver.exe but says that the authserver.conf is missing
PLEASE NOTE: the realm re-starter is not in the same folder as authserver.exe so it is trying to call the authserver.conf
to the re-starter's path. this is freaking annoying because using process.start(path) is forcing authserver.exe to look away from its own path for the authserver.conf
and that just will not do.

basically if i put the re-starter in the same folder as authserver.exe it runs without a hitch but you cant have 4 to 5 realms in the same folder
unless they use the same worldserver.conf and that is a nono if each realm needs different settings.
please if anyone can help me find a better way to execute the authserver.exe by having it search its own path and not
the path of the re-starter can you please help me. i will inturn release my re-starter here at emudevs exclusively.
and give full credit to you in my post when releasing it.

i tried doing it like this also but same issue

process.start("c:\trinitycore\authserver.exe", "c:\trinitycore\authserver.conf")​
 
Last edited:

Hyperion

Founder
If you wrote this in C#, the process would run from it's parent directory :p

I would like to help.. I don't do VB tho
 

frost

Banned
Code:
Private Sub setrealmsettings_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles setrealmsettings.Click
        Dim filename As String = ""
        Dim filepath As String = ""
        Dim fileparam As String = ""
        OpenFileDialog1.ShowDialog()
        If DialogResult.OK Then
            filename = OpenFileDialog1.FileName()
            Textfilename.Text = filename
            OpenFileDialog2.ShowDialog()
            If DialogResult.OK Then
                fileparam = OpenFileDialog1.FileName()
                Textparam.Text = fileparam
            End If
        End If
    End Sub

 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        'If TextBox1.Text = "" Then
        'MsgBox("please set the exe file location in settings")
        ' Else
        ' Process.Start(Textfilename.Text)
        'End If
        Dim p1_params As New ProcessStartInfo
        p1_params.Arguments = Textparam.Text
        p1_params.FileName = Textfilename.Text
        Process.Start(p1_params)
    End Sub
the commented out part is how i was doing it before
still same result says the file authserver.conf is missing.
 
Last edited:

frost

Banned
If you wrote this in C#, the process would run from it's parent directory :p

I would like to help.. I don't do VB tho

but i dont have the slightest clue about c# never tried to learn it lol
im thinking that VB is limited by security :/
 

frost

Banned
Nice!!! THANKYOU SO MUCH. this is what i was looking for. why its so easy for you to find this info and not me lol ? i must be one retarded mofo. or google don't like me LMAO

imma release my program here soon. along with a guide. should i give the source code and make ppl compile it themself?
seems the most secure way with programs... otherwise ppl put nasty freaking code hidden inside it LOL
i just have a few minor bugs to work out and this program is going to be beast!



since this site is for learning imma just release the source code and ppl can compile it themself after looking inside and laughing how crappy my naming conventions are. aka textbox1.text :p



allways editing becayse i cant type for crap :/
 
Last edited:
Top