View Full Version : Need assistance :/

01-17-2014, 08:38 AM
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:


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

01-17-2014, 10:38 AM
Take a look at this (http://stackoverflow.com/questions/3383063/how-to-pass-multiple-command-line-arguments-in-a-program-called-in-vb-net).

Regards, DarkAngel

01-17-2014, 05:12 PM
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

01-17-2014, 05:46 PM
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 = ""
If DialogResult.OK Then
filename = OpenFileDialog1.FileName()
Textfilename.Text = filename
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
End Sub

the commented out part is how i was doing it before
still same result says the file authserver.conf is missing.

01-17-2014, 05:52 PM
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 :/

01-21-2014, 04:30 PM
This page here is an exact issue you are having and was fixed using 'WorkingDirectory'


01-22-2014, 09:46 AM
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 :/