Rappelz Launcher Project

08/03/2011 19:24 .Nexitis#16
-.- I asked for help did I insult you ?

Sooo with

Try
my.computer.network.ping("MY SERVER IP")
msgbox("Server online")
catch ex as exception
Msgbox("Server offline")
End try

I made the "Servercheck Button" (If you push the button a window pops up that shows you the serverstatus)

How can i do that:

If the "Server is online" the oval shape will be green
and if the "Server is offline" the oval shape will be red
08/03/2011 20:29 s0ul37#17
VB is enough to code a working launcher, why should it be a "noob" language. That's non sense.
08/03/2011 20:47 .Nexitis#18
Please ignore them i need help =)
08/03/2011 21:07 lawlywood#19
Im not a programmer, but maybe this simple solution works for you.

You insert a red dot somewere in the background, and if your code reports: server is ok you just place a green dot over the red dot. If the ping test fails nothing will hapend and the red dot stays.

Was iSmoke vorher sagen wollte: Was macht dein Launcher um festzustellen, dass er im richtigen Verzeichniss ist? Er meinte, dass der Code nicht mächtig genug ist, um den Age of Rappelz pfad selbst zu finden, und daher nur testen kann ob z.b. sframe.exe da ist oder nicht, und dann entweder eine Fehlermeldung ausgibt oder nicht.
08/03/2011 21:09 .Nexitis#20
aber wie pack ich ihn in den ordner ich habs bis jertzt nur durch debugging gemacht
08/03/2011 21:25 s0ul37#21
Du gehst in den Ordner "Projects" wo sich die Projekte befinden, öffnest den Ordner von deinem Projekt. bin/debug/DeinProjekt.exe.

Dann kopierst du einfach die .exe, das ist dann dein Programm.

Um zu überprüfen ob die SFrame.exe da ist, kannst du das benutzen.

Quote:
Code:
 [COLOR="Blue"]If Dir[/COLOR]("sframe.exe", AppPath) <> "" [COLOR="blue"]Then[/COLOR]
            Shell("SFrame.exe /auth_ip:your.server.ip /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
        [COLOR="blue"]Else[/COLOR]
            MessageBox.Show("Please put the launcher into the client folder.")
        [COLOR="blue"]End If[/COLOR]
08/03/2011 22:40 .Nexitis#22
"AppPath" wurde nicht deklariert. Auf das Objekt kann aufgrund seiner Schutzstufe möglicherweise nicht zugegriffen werden.




Oo Was tun? ich hab das noch nie gehabt und google hilft mir nicht weiter
08/03/2011 22:45 MutterKonfessor#23
Quote:
Originally Posted by Strean View Post
reports are useless nub :>
Ähmm strean du bist in rappelz zu blöd eine laggerhalle zu erstellen also lass bitte die anfänger in ruhe ja danke.
08/03/2011 23:04 .Nexitis#24
Ich hab aus
Code:
 If Dir("sframe.exe", [COLOR="Red"]AppPath[/COLOR]) <> "" Then
            Shell("SFrame.exe /auth_ip:your.server.ip /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
        Else
            MessageBox.Show("Please put the launcher into the client folder.")
        End If
Das gemacht würde es dann auch funktionieren?
Code:
If Dir("sframe.exe", [COLOR="Red"]FileAttribute.Normal[/COLOR]) <> "" Then
            Shell("SFrame.exe /auth_ip:46.4.64.76 /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
        Else
            MessageBox.Show("Bitte pack den Launcher in den Last-Warriors Ordner.")
08/03/2011 23:51 Strean#25
Quote:
Originally Posted by MutterKonfessor View Post
Ähmm strean du bist in rappelz zu blöd eine laggerhalle zu erstellen also lass bitte die anfänger in ruhe ja danke.
wassen du für ein fail0r :' D

btw ich kann dir nicht direkt zu vb helfen allerdings

apppath beschreibt meiner meinung nach den relativen pfad zum launcher.

in c++ würde man ihr mit GetCurrentDirectory einfach in eine variable speichern und an der stelle abfragen

such in der msdn am besten nach der funktion da es sie bestimmt ähnlich für vb gibt.
08/04/2011 00:56 s0ul37#26
Quote:
Originally Posted by bigdady256314 View Post
Ich hab aus
Code:
 If Dir("sframe.exe", [COLOR="Red"]AppPath[/COLOR]) <> "" Then
            Shell("SFrame.exe /auth_ip:your.server.ip /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
        Else
            MessageBox.Show("Please put the launcher into the client folder.")
        End If
Das gemacht würde es dann auch funktionieren?
Code:
If Dir("sframe.exe", [COLOR="Red"]FileAttribute.Normal[/COLOR]) <> "" Then
            Shell("SFrame.exe /auth_ip:46.4.64.76 /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
        Else
            MessageBox.Show("Bitte pack den Launcher in den Last-Warriors Ordner.")
Nein, benutze wieder AppPath, dann erscheint unter dem h eine Option. Klicke die an und wähle: "Feld für AppPath generieren" und dann funktioniert es.

[Only registered and activated users can see links. Click Here To Register...]
08/04/2011 02:52 .Nexitis#27
Kannst du mir per PN deinen Skype namen sagen ? oder ich pn dir den gleich weil ich mehr probleme habe und naja Epvp ist nciht dafür geeignet


Und danke hat funktioniert ehm weißt du wie man Serverstatus bilder einbaut ?

z.B Server on = Grüner Punkt
Server off = Roter Punkt

Bumb

Bumb

push

puuuush

is the post pash thing ? restricesd
08/16/2011 22:08 GeneraL_SchnitzeL#28
wie kann ich eine server status anzeige einfügen ? (nicht mein rappelz server aber ich mache für einen anderen einen launcher^^) also dass es angezeit wird ob auth and gameserver online oder offline sind? nicht wenn man aufm button klickt oder aufm label oder so dass sich dann nen extra fenster öffnet sonder das des direkt im launcher angezeigt wird.
danke im vorraus
08/17/2011 01:59 mKeey#29
Code:
       Dim p1 As New System.Net.IPEndPoint(System.Net.IPAddress.Parse("IPADRESS"), 4514)
        Dim client1 As New System.Net.Sockets.TcpClient
        Try
            client1.Connect(p1)
            If Dir("sframe.exe", FileAttribute.Directory) <> "" Then
                Shell("SFrame.exe /auth_ip:IPADRESS /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
            Else
                MessageBox.Show("Please put the launcher into the client folder.", "Error")
            End If

            Close()
        Catch ex As Exception
            MsgBox("The Server is currently in Mainantance or Offline. Please check the Website out for more informations.")
            Application.Exit()
        End Try
        client1.Close()

So das ist eine Abfrage wo er erst den Server anpingt und schaut ob der server online ist, ist er nicht online wird wie unten beschrieben die Error messag angezeigt das er nicht Online ist oder in Mainantance ist. Sollte es funktionieren und du auf Start klickst startet dann die SFrame, der launcher sollte aber in dem Ordner vom Spiel sein.

Have fun and good luck

So far
mKeey
08/17/2011 02:23 GeneraL_SchnitzeL#30
danke aber ich hatte es schon , aber trotzdem nützliches script bei dir ich habs in start button eingefügt :)

edit: mit dem script (wenn man auf den start game button klickt der dann sagt wenn der server offlne is : the server is currently down blabla) braucht der launcher voll lange zum laden wenn man auf start button klickt wenn der server down is