Re: [RELEASE] HK's standard launcher
Re: [RELEASE] HK's standard launcher
Awesome launcher HK!!, damn man that was one hell of a beauty! <3
10/10
Re: [RELEASE] HK's standard launcher
good job man 10/10 ... nice looking too xD
Re: [Release] HK's standard launcher
remember to come with suggestions
Re: [Release] HK's standard launcher
Quote:
Originally Posted by
*HK*
remember to come with suggestions
Game volume conf:
Code:
Dim Volume As String = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", "")
TrackBar1.Maximum = 5
Code:
Select Case Volume
Case "1"
TrackBar1.Value = 1
Case "2"
TrackBar1.Value = 2
Case "3"
TrackBar1.Value = 3
Case "4"
TrackBar1.Value = 4
Case "5"
TrackBar1.Value = 5
Case Else
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 5)
CheckBox1.Checked = True
End Select
Code:
If TrackBar1.Value = 1 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 1)
End If
If TrackBar1.Value = 2 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 2)
End If
If TrackBar1.Value = 3 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 3)
End If
If TrackBar1.Value = 4 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 4)
End If
If TrackBar1.Value = 5 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 5)
End If
my old auto update:
Code:
Public Class Form4
Dim FI_1 As String = Nothing
Dim WithEvents downl As New Net.WebClient
Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListBox1.Items.Add("Connection to download server . . .")
Try
Dim ts As System.Net.Sockets.TcpClient = New System.Net.Sockets.TcpClient("127.0.0.1", 44405)
Catch ex As System.Net.Sockets.SocketException
If (ex.ErrorCode = 10061) Then
ListBox1.Items.Add("Connection to server established")
Else
MsgBox("Update server is offline")
End If
End Try
ListBox1.Items.Add("Checking client server version . . .")
My.Computer.Network.DownloadFile("http://localhost/xx.txt", "yourversion.txt", 1, 1, False, 1, True)
'Dispose()
Const cnstart = "ClientVersion="
Dim lines = IO.File.ReadAllLines("yourversion.txt")
Dim ComputerName = (From line In lines Where line.StartsWith(cnstart)).First.Substring(cnstart.Length)
ListBox1.Items.Add("Your client version" & ComputerName)
My.Computer.Network.DownloadFile("http://localhost/xxx.txt", "lastversion.txt", 1, 1, False, 1, True)
' Dispose()
Const cnstart2 = "ClientVersion="
Dim lines2 = IO.File.ReadAllLines("lastversion.txt")
Dim ComputerName2 = (From line2 In lines2 Where line2.StartsWith(cnstart2)).First.Substring(cnstart2.Length)
ListBox1.Items.Add("Lastest client version" & ComputerName2)
If ComputerName2 = ComputerName Then
ListBox1.Items.Add("You already have the lastest version . . .")
End If
If ComputerName2 <> ComputerName Then
ListBox1.Items.Add("Downloading update file . . .")
My.Computer.Network.DownloadFile("http://localhost/xxx.txt", "lastversion.txt", 1, 1, False, 1, True)
downl.DownloadFileAsync(New Uri("http://localhost/lol.exe"), "temp_update.exe")
ListBox1.Items.Add("Closing download process . . .")
downl.Dispose()
ListBox1.Items.Add("Selection option that update download done . . .")
FI_1 = True
Else
FI_1 = False
End If
If FI_1 = True Then
ListBox1.Items.Add("Starting install update . . .")
Dim p As Process = Process.Start("temp_update.exe")
ListBox1.Items.Add("Waiting for exit . . .")
p.WaitForExit()
ListBox1.Items.Add("Deleting update file . . .")
My.Computer.FileSystem.DeleteFile("temp_update.exe")
ListBox1.Items.Add("Now you can go play . . .")
End If
End Sub
Private Sub downl_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles downl.DownloadProgressChanged
ProgressBar1.Value = e.ProgressPercentage
End Sub
End Class
fade in/out:
Code:
Me.Opacity = 0
Dim iCount2 As Integer
For iCount2 = 0 To 100 Step +10
Me.Opacity = iCount2 / 100
Me.Refresh()
Threading.Thread.Sleep(65)
Next
Me.Opacity = 100
Dim iCount As Integer
For iCount = 100 To 0 Step -10
Me.Opacity = iCount / 100
Me.Refresh()
Threading.Thread.Sleep(65)
Next
Form1.Show()
Me.Close()
server status:
Code:
Try
Dim ts As System.Net.Sockets.TcpClient = New System.Net.Sockets.TcpClient("127.0.0.1", 44405)
Catch ex As System.Net.Sockets.SocketException
If (ex.ErrorCode = 10061) Then
Label2.Text = "Offline"
End If
End Try
check if main.exe exist and start game
Code:
If (My.Computer.FileSystem.FileExists("./main.exe")) Then
Process.Start("./main.exe")
Else
MsgBox("Can't find object 'main.exe', please reinstall client.", MsgBoxStyle.Critical, "Client Critical Error")
End If
Re: [Release] HK's standard launcher
will try but cant promise anything
rb migt be similar to vb6 but its far from same xD
btw just curious
why would you want a volume config on launcher when its ingame and you can use the one on the computer? :P
Re: [Release] HK's standard launcher
use visual basic 2008... it's good language for beginners...
Quote:
Originally Posted by
*HK*
btw just curious
why would you want a volume config on launcher when its ingame and you can use the one on the computer? :P
don't know.. but wz added that option.. :P
Re: [Release] HK's standard launcher
Quote:
Originally Posted by
*LoRD*
use visual basic 2008... it's good language for beginners...
don't know.. but wz added that option.. :P
i hate vb.net -.-' why you think i used vb6 in the first place lol
anyway i like realbasic its ok its not visual basic but much are similar and some stuff are totaly different
here is a snipset of the open event(on load in vb)
Code:
dim s as shell
s = new shell
s.execute "launcher.bat"
dim regpath as registryitem
regpath = new RegistryItem("HKEY_CURRENT_USER\Software\webzen\MU\Config")
Launcher.title = regpath.value("ServerName")
htmlviewer2.helptag = regpath.value("NewsURL")
htmlviewer3.helptag = regpath.value("DonationURL")
Editfield1.text = regpath.value("ID")
if regpath.value("SoundOnOff") = 1 then
Checkbox1.value = true
else
Checkbox1.value = false
end if
if regpath.value("MusicOnOff") = 1 then
checkbox2.value = true
else
checkbox2.value = false
end if
if regpath.value("WindowMode") = 1 then
checkbox3.value = true
else
checkbox3.value = false
end if
if regpath.value("ColorDepth") = 1 then
checkbox4.value = true
else
checkbox4.value = false
end if
if regpath.value("Resolution") = 3 then
radiobutton1(4).value = true
elseif regpath.value("Resolution") = 1 then
radiobutton1(2).value = true
elseif regpath.value("Resolution") = 2 then
radiobutton1(3).value = true
else
radiobutton1(1).value = true
end if
if regpath.value("CloseLauncher") = 0 then
Checkbox5.Value = false
else
checkbox5.value = true
end if
if checkbox6.value = true then
regpath.value("LoadNews") = 1
else
regpath.value("LoadNews") = 0
end if
if regpath.value("LoadNews") = 1 then
HTMLViewer2.LoadURL Htmlviewer2.helptag
else
end if
if regpath.value("LoadDonate") = 1 then
HTMLViewer3.LoadURL htmlviewer3.helptag
else
end if
and here is enabling and disabling window mode
Code:
dim winmode as registryitem
winmode = new registryitem("HKEY_CURRENT_USER\Software\webzen\MU\Config")
if checkbox3.value = false then
winmode.value("WindowMode") = 0
else
winmode.value("WindowMode") = 1
end if
its close to how it could been done in vb6(if you dont add in the api declares)
some stuff only have different names
some stuff have different names and alot more functions lol:drool:
only thing that annoys me is that i cant use own namespaces but the code is sorted so nicely i hardly notice haha
its like learning vb6 from scratch again
and *lord* if youre interested maybe you want to work with me developing in this language and make a fast and custumizeable launcher for RZ community xD
Re: [Release] HK's standard launcher
Nice Launcher :)
LoRD:
Code:
If TrackBar1.Value = 1 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 1)
End If
If TrackBar1.Value = 2 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 2)
End If
If TrackBar1.Value = 3 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 3)
End If
If TrackBar1.Value = 4 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 4)
End If
If TrackBar1.Value = 5 Then
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", 5)
End If
Maybe better change this to:
Code:
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Webzen\Mu\Config", "VolumeLevel", TrackBar1.Value)
Re: [Release] HK's standard launcher
2 Xezis and LorD
What is lang? (source)
Re: [Release] HK's standard launcher
Quote:
Originally Posted by
Kirgston
2 Xezis and LorD
What is lang? (source)
the sources they posted are in visualbasic
Re: [Release] HK's standard launcher
Quote:
Originally Posted by
*HK*
and *lord* if youre interested maybe you want to work with me developing in this language and make a fast and custumizeable launcher for RZ community xD
add me on msn: thunder52@live.com
Re: [Release] HK's standard launcher
added and i will start right away
also i will add a custumize tab where you can change server url/ip and enable/disable the server status checker
more suggestions anyone?
Re: [Release] HK's standard launcher
updated
added server status checker! also i updated the download link and i might have autoupdate ready once i get to test it
i just need someone who can lend me a little space on their server by having 2 files on it
a txt file and a zip file
pm me for more info
download link: http://www.sendspace.com/file/rhjhq0