Jump to content

Recommended Posts

Posted

Want to make a new add-on for your server?! Here's a 10-step guide on how to create your own launcher for your server. This would serve great as a one-way directory for your players, you can easily redirect them to your applications, website, etc!

 

Disclaimer

I used VB6 because most players do not have a .NET framework version later then 3.0ish installed

Step 1: Download VB 6.0 portable, Run it afterwards. Don't forget to press Reg Key before running it.

k3x4t2.jpg

 

Step 2: Select Standard EXE

2q2mmwp.jpg

 

Step 3: Click on the main form, then edit Caption under the Properties tab(lower right) rename it to your server name or whatever title you want. You can also re-size the form to whatever size you want your launcher to look like by dragging the borders, like how you re-size normal windows.

4zyuza.jpg

 

Step 4(Optional): Place an icon by browsing the file upon clicking Icon property.

2yk16kn.jpg

 

Step 5: Create a button to launch your Patcher/Exe! By clicking the Command Button tool on the toolbox(left side), then dragging the desired size that you want on your main form.

5z2v0g.jpg

 

Step 6(Optional): Create another button to launch Setup or any file that your players often access.

z3046.jpg

 

Step 7(Optional): Add your logo or banner to make your launcher pretty! Simply click the Picture Box tool, only two icons above the command button icon. Then browse for your logo by clicking the Picture property

9b9o9j.jpg

 

Step 8: Time to code those buttons! Simply double click the Patcher button we made earlier, the coding area will pop-up afterwards. Copy the codes written in the photo or paste the code below. Don't forget to replace "Your RO Patcher.exe" to the name of your patcher/exe file!

Dim RetVal
RetVal = Shell("Your RO Patcher.exe",1)
Unload Form1

245gb2h.jpg

 

Step 9: Now, let's put the code for running the Setup.exe! Now, why is it much shorter? 'Cause the code below is needed to be used instead of the one below, only IF your exe/patcher contains spaces.

Shell ("Setup.exe")
Unload Form1

25gql2r.jpg

 

Step 10: Save your project then compile it! Go to File > Make Project1.exe

hvwie0.jpg

 

Hurray, we're done! Here's the finished product of what we created!

 

Now, just simply place this on the root folder of your RO files, along with setup, patcher, etc. so you wouldn't get errors!

2cglsaa.jpg

 

To improve the design and functionality of your launcher, you might wanna add & explore some functions & properties of forms and controls!

  • Upvote 4
Posted

How to setup auto start exe ?

 

Auto-start from what?

 

Also Maybe add in a guide for creating the Login Screen for users who require a Launcher to login?

 

That, I might not be able to make. I'm not pro with gfx unfortunately.

Posted

 

 

 

Auto-start from what?

 

from client seem likes splash screen.

 

Hmm.. I don't have the codes right now for I am at work, but i'll give you the logic,

 

> Create a new form, make it as your default form.

> Edit its properties and make it a borderless window

> Insert picture box then resize it to the max size of the form

> Code it to load for at least 1-3 seconds.

> After the loading delay, unload the picture box form, load your launcher's form

 

There's some code like that roaming in google, I can't code in VB during weekdays so yeah. Google would be your friend for this one.

Posted

I was just wondering what the purpose of this launcher is /hmm . My understanding is that the launcher served as a login screen to enter your credentials then launch the game / patcher. :)

Posted
This would serve great as a one-way directory for your players, you can easily redirect them to your applications, website, etc!

 

You can use this to create a one-click access to your website/forums/wiki/patcher/exe. You can even use this like an offline NPC with the proper idea and coding. The possibilities are limitless, i'm just showing one of its purposes, what you only need is to imagine and improvise :D

 

Visual Basic/C# is a great OOP language which is used in some of the 3rd party tools that you see in our forums..

 

Even Visual C++ which is used by most people as rAthena's compiler only, which is sad since it has more uses like the one stated above.

Posted

The solution presented at the top is dependent on whether the target system has IE. but someone has provided a better code a little lower.

Im just copying it below which should be the apt way of doing it.

Dim x As Long 
x = ShellExecute(large.hwnd, "Open", "http://www.windostat.org", &O0, &O0, 0) 
  • 2 weeks later...
Posted

Wow, that Visual Basic works like a charm on Windows 8.1. I missed VB6 since I used Windows 7. Now I don't need a VM to run Windows XP anymore. Thank you sandbox!

  • 6 months later...
  • 2 weeks later...
  • 4 months later...
  • 2 weeks later...
Posted

again, I missed something cool

 

sandbox @_@ u should come back here for a while to give a thank to u for this guide.

it's been years since last time I use VB6

Posted (edited)

I might make an addition to this tutorial about how to add cmd line switches (1rag1)

 

Uhm sorry to bump any result to this?

Shell("/path/to/rag.exe -1rag1 (other args)")

Edited by uyjulian

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...