-
[Release] Open Source PokeNet Laucnher
Well the development is complete, its not the greatest in the world but it works :]
It is completely customizable, you can change any images, any image sizes, and the positions of everything, as well as the links etc without having to edit the source of the program.
The launcher reads 2 ini configuration files.
pokenet.ini and update.ini.
pokenet.ini has all the settings for the images, positions, sizes, etc. and update.ini has all the patch information along with the rev #.
First im going to give u the download and tell u have to set up the pokenet.ini to your server, then i will tell you how to customize it if you want to, and then i will tell you how to make patches!
Extract all the files to the directory of your client.
(download at the bottom)
Open pokenet.ini
It should look something like this:
Code:
[IMAGES]
Play = "http://pocket-monsuta.co.cc/os-launcher/imgs/play.png"
Play2 = "http://pocket-monsuta.co.cc/os-launcher/imgs/play2.png"
Website = "http://pocket-monsuta.co.cc/os-launcher/imgs/website.png"
Website2 = "http://pocket-monsuta.co.cc/os-launcher/imgs/website2.png"
Forums = "http://pocket-monsuta.co.cc/os-launcher/imgs/forums.png"
Forums2 = "http://pocket-monsuta.co.cc/os-launcher/imgs/forums2.png"
Background = "http://pocket-monsuta.co.cc/os-launcher/imgs/bg.png"
Close = "http://pocket-monsuta.co.cc/os-launcher/imgs/x.png"
Close2 = "http://pocket-monsuta.co.cc/os-launcher/imgs/x.png"
[POSITIONS]
PlayX = "375"
PlayY = "160"
WebsiteX = "375"
WebsiteY = "34"
ForumsX = "375"
ForumsY = "69"
CloseX = "477"
CloseY = "5"
WebbrowserX = "12"
WebbrowserY = "34"
Progressbar1X = "12"
Progressbar1Y = "242"
Progressbar2X = "12"
Progressbar2Y = "265"
Label1X = "370"
Label1Y = "246"
Label2X = "370"
Label2Y = "269"
[SIZES]
WebsiteWidth = "114"
WebsiteHeight = "29"
ForumsWidth = "114"
ForumsHeight = "29"
PlayWidth = "114"
PlayHeight = "76"
WebbrowserWidth = "352"
WebbrowserHeight = "202"
BaseWidth = "500"
BaseHeight = "300"
CloseWidth = "16"
CloseHeight = "16"
Progressbar1Width = "352"
Progressbar1Height = "17"
Progressbar2Width = "352"
Progressbar2Height = "17"
[LINKS]
Website = "http://127.0.0.1:8080/"
Forums = "http://127.0.0.1:8080/forums"
News = "http://127.0.0.1:8080/news"
[UPDATE]
UpdateINI = "http://127.0.0.1:8080/update.ini"
[MISC]
Shell = "cmd.exe /k java -Djava.library.path=lib/native -jar client1.jar > pokenet.log"
Here is a breakdown
Code:
[IMAGES] - All of the images are under this
Play - Play button image
Play2 - Play button image rollover
Website - Website button image
Website2 - Website button image rollover
Forums - Forums button image
Forums2 - Forums button image rollover
Background - Background image for the form
Close - Close button image
Close2 - Close button image rollover
[POSITIONS] - The X & Y coordinates
PlayX - Play button x position
PlayY - Play button y position
WebsiteX - Website button x position
WebsiteY - Website button y position
ForumsX - Forums button x position
ForumsY - Forums button y position
CloseX - Close button x position
CloseY - Close button y position
WebbrowserX - Webbrowser (the news) x position
WebbrowserY - Webbrowser (the news) y position
Progressbar1X - Progressbar1 (top) x position
Progressbar1Y - Progressbar1 (top) y position
Progressbar2X - Progressbar2 (bottom) x position
Progressbar2Y - Progressbar2 (bottom) y position
Label1X - Label1 (top) x position
Label1Y - Label1 (top) y position
Label2X - Label2 (bottom) x position
Label2Y - Label2 (bottom) y position
[SIZES] - The width and height
WebsiteWidth - Website button width
WebsiteHeight - Website button height
ForumsWidth - Forums button width
ForumsHeight - Forums button height
PlayWidth - Play button width
PlayHeight - Play button height
WebbrowserWidth - Webbrowser (news) width
WebbrowserHeight - Webbrowser (news) height
BaseWidth - Launcher width
BaseHeight - Launcher height
CloseWidth - Close button width
CloseHeight - Close button height
Progressbar1Width - Progressbar1 (top) width
Progressbar1Height - Progressbar1 (top) height
Progressbar2Width - Progressbar2 (bottom) width
Progressbar2Height - Progressbar2 (bottom) height
[LINKS] - Links
Website - The website button link
Forums - The forums button link
News - The news link (for the webbrowser)
[UPDATE] - Remote location of the update.ini
UpdateINI - Remote location of the update.ini
[MISC] - Misc
Shell - The code to start the game
Now looking at update.ini
Code:
[UPDATE]
UpdateINI = "http://127.0.0.1:8080/pokenet.ini"
UpdateINI2 = "http://127.0.0.1:8080/update.ini"
PatchFiles1 = ""
PatchFiles2 = ""
PatchFiles3 = ""
PatchFiles4 = ""
PatchFiles5 = ""
PatchFiles6 = ""
PatchFiles7 = ""
PatchFiles8 = ""
PatchFiles9 = ""
PatchFiles10 = ""
Patch1Extention = ""
Patch2Extention = ""
Patch3Extention = ""
Patch4Extention = ""
Patch5Extention = ""
Patch6Extention = ""
Patch7Extention = ""
Patch8Extention = ""
Patch9Extention = ""
Patch10Extention = ""
Patch1 = "Disabled"
Patch2 = "Disabled"
Patch3 = "Disabled"
Patch4 = "Disabled"
Patch5 = "Disabled"
Patch6 = "Disabled"
Patch7 = "Disabled"
Patch8 = "Disabled"
Patch9 = "Disabled"
Patch10 = "Disabled"
PostUpdateINI = "http://127.0.0.1:8080/update/update.ini"
[REV]
New = "2"
Old = "2"
Here is the breakdown:
Code:
[UPDATE] - Update information
UpdateINI - Link to the pokenet.ini update
UpdateINI2 - Link to the update.ini update
PatchFiles1 - Location of patch files
PatchFiles2 - Location of patch files
PatchFiles3 - Location of patch files
PatchFiles4 - Location of patch files
PatchFiles5 - Location of patch files
PatchFiles6 - Location of patch files
PatchFiles7 - Location of patch files
PatchFiles8 - Location of patch files
PatchFiles9 - Location of patch files
PatchFiles10 - Location of patch files
Patch1Extention - The extention (ex. /res/102.png)
Patch2Extention - The extention (ex. /res/102.png
Patch3Extention - The extention (ex. /res/102.png
Patch4Extention - The extention (ex. /res/102.png
Patch5Extention - The extention (ex. /res/102.png
Patch6Extention - The extention (ex. /res/102.png
Patch7Extention - The extention (ex. /res/102.png
Patch8Extention - The extention (ex. /res/102.png
Patch9Extention - The extention (ex. /res/102.png
Patch10Extention - The extention (ex. /res/102.png
Patch1 - Is patch enabled or disabled?
Patch2 - Is patch enabled or disabled?
Patch3 - Is patch enabled or disabled?
Patch4 - Is patch enabled or disabled?
Patch5 - Is patch enabled or disabled?
Patch6 - Is patch enabled or disabled?
Patch7 - Is patch enabled or disabled?
Patch8 - Is patch enabled or disabled?
Patch9 - Is patch enabled or disabled?
Patch10 - Is patch enabled or disabled?
PostUpdateINI - Link to the post update ini
[REV] - Revision settings
New - New revision number
Old - Old revision number
So looking at pokenet.ini, you can see that all the images are remotely set, if you want to skin it, then do so but upload the images to a host and it will retrieve them, the sizes and positioning should be self explanatory.
Here is what the launcher does, when you start it up it download the pokenet.ini and the update.ini rite from the webhost, the purpose of this is simple, if you want to update the skin, or the position etc of something, then just edit the pokenet.ini and upload it to your site, then when the user opens his client, it will download the new ini and thus update the pictures etc.
If you want to supply a new patch, put a default update.ini, which means no values in there, and upload it to your webhost, change the postupdate link to that link.
So if this all seems confusing, this is it broken down basically
to make a patch.
Open update.ini
Edit PatchFiles1 = ""
Put the link to the file there,
Code:
ex: PatchFiles1 = "http://pocket-monsuta.co.cc/img/download.png"
Edit Patch1Extention = ""
Put the extention etc. there.
Code:
ex: Patch1Extention = "download.png" or Patch1Extention = "res/download.png"
Edit Patch1 = "Disabled"
Change it to Enabled
Then change New = "2" and just add 1 so.. Here is now a break down of where to put what files.
Upload a copy of pokenet.ini to the webhost, if you want to patch it then edit the copy on the webhost.
Upload a copy of update.ini to the webhost, if you want to patch it then edit the copy on the webhost.
Upload another copy of the update.ini to a different location on the webhost (this is the post update.ini)
After looking at all of this, it isnt very easy to use, but.. oh well..
Moving on, lets upload our PHP files.
Put the included php files for the news onto your webhost and change the news link.
Edit the settings.php
Code:
/* CONFIGURE HERE :) */
var $myhost = "localhost";
var $mylog = "root";
var $mypass = "yourpassword";
var $mydb = "pokemon";
var $mytable = "pn_news";
var $mynews = "9";
Edit that accordingly.
Then execute the SQL into your database, the SQL is named pn_news.sql
Thats pretty much it... enjoy.
Pic:
http://i52.tinypic.com/igc0mu.png
Compiled Launcher: Link
PSD File: Link
Source: [VB.NET] 'Open Source PokeNet Launcher Coded by -DefaulT 'Copyright (C) 2011 -DefaulT - - Pastebin.com
.Net Framework 3.5
http://www.microsoft.com/download/en/details.aspx?id=21
Gl... I kinda feel bad for releasing something so messy but oh well..
-
Re: [Release] Open Source PokeNet Laucnher
-
Re: [Release] Open Source PokeNet Laucnher
As long as you can figure out how to work it, your welcome i guess xD
-
Re: [Release] Open Source PokeNet Laucnher
Quote:
Originally Posted by
-DefaulT
As long as you can figure out how to work it, your welcome i guess xD
with all your hype about creating it... you don't seem very appealed with it?
-
Re: [Release] Open Source PokeNet Laucnher
Well i could have done better, and i started coding it with comments and trying to make the coding clean, but it didnt stay xD
-
Re: [Release] Open Source PokeNet Laucnher
-
Re: [Release] Open Source PokeNet Laucnher
hey neohazuki guess what, the library is including in the zip.
Maybe next time you will download the file and look before speaking.
-
Re: [Release] Open Source PokeNet Laucnher
Quote:
Originally Posted by
-DefaulT
hey neohazuki guess what, the library is including in the zip.
Maybe next time you will download the file and look before speaking.
Yes the download compiled a person who will try to change the use open source would not use! Yes in compiled launcher not in dev our post. I just tried to help, now if you want to be rude =) is!
No more,
cya"
-
Re: [Release] Open Source PokeNet Laucnher
Honestly if your smart enough to take the source, then your smart enough to realize u need the library.
-
Re: [Release] Open Source PokeNet Laucnher
Quote:
Originally Posted by
-DefaulT
Honestly if your smart enough to take the source, then your smart enough to realize u need the library.
It's not about intelligence or anything like that question is to help or inform in a topic, I want to know who complies, and do not want to have knowledge and ... good, might be helped.
But honestly no one needs to accept help :tongue:
cya"
-
Re: [Release] Open Source PokeNet Laucnher
Alright lol. Thnaks for trying to help?
-
Re: [Release] Open Source PokeNet Laucnher
uhm it says unable to access jar file client1.jar
-
Re: [Release] Open Source PokeNet Laucnher
Run as admin and edit the pokenet.ini
Code:
Shell = "cmd.exe /k java -Djava.library.path=lib/native -jar client1.jar > pokenet.log"
Edit the jars name to match yours.
-
Re: [Release] Open Source PokeNet Laucnher
-
Re: [Release] Open Source PokeNet Laucnher
-
Hey I've been trying to get this to work for a while (patching) but I just can't seem to get a website working off my pc not locally but publicly. I've been trying since my last post so I'm pretty sure I've tryed everything. Is it possible for the launcher to check for updates from the server instead of a website?? I have a bit of experience coding and I don't see what would be the big diff O.o
Sorry if this is allot lol and I have the server working publically and I saw ur eg http://127.0.0.1:8080/update/update.ini" how could I get that done with my ip without making a web site.
Posted via Mobile Device
---------- Post added at 08:47 AM ---------- Previous post was at 08:39 AM ----------
Or is it even possible to do it off of a Media fire dl link or a free website were the client downloads and compares the new = "wever ver" line of code in update.ini to the old one and simply replaces the old update.ini and patches the same way you showed above?? :(
Posted via Mobile Device
-
Re: [Release] Open Source PokeNet Laucnher
If you have a direct link file then yes you can use mediafire, to download a file from the machine directly would be way to much of a work load on the host machine.
Just upload the files to some random web hosting service and use that link to them.
-
Re: [Release] Open Source PokeNet Laucnher
so i got a error and i actually got the website to work off my comp seems like just needed to restart it :( so here are some print screens
http://i741.photobucket.com/albums/x...ngearz/4-1.jpg
http://i741.photobucket.com/albums/x...dengearz/3.jpg
http://i741.photobucket.com/albums/x...dengearz/2.jpg
http://i741.photobucket.com/albums/x...dengearz/1.jpg
Every time i launch it, it deletes my pokenet.ini file also..... im not really sure if i even have the whole website thing set up correctly for putting files on it but the site can be accesed on other computers and it isn't just locally. I've tried with the MyIpAdress/update.ini etc.... and it still gave me that error or kept deleting my pokenet.ini or update.ini
-
Re: [Release] Open Source PokeNet Laucnher
When it launches it is set to check if the file exists then download a new one. If it isnt downloading that means something is wrong with the link or a corrupt code. On that Microsoft .Net Framework error, hit details and copy/paste the contents please.
-
Re: [Release] Open Source PokeNet Laucnher
i'll be home late tomorrow il do it then
-
Re: [Release] Open Source PokeNet Laucnher
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: 'runthedomes.zapto.org/postupdate.ini' is not a valid remote file address. A valid address should include a protocol, a path and a file name.
Parameter name: address
at Microsoft.VisualBasic.Devices.Network.GetUri(String address)
at Microsoft.VisualBasic.Devices.Network.DownloadFile(String address, String destinationFileName, String userName, String password, Boolean showUI, Int32 connectionTimeout, Boolean overwrite, UICancelOption onUserCancel)
at Microsoft.VisualBasic.Devices.Network.DownloadFile(String address, String destinationFileName, String userName, String password, Boolean showUI, Int32 connectionTimeout, Boolean overwrite)
at Microsoft.VisualBasic.Devices.Network.DownloadFile(String address, String destinationFileName)
at PokeNet_Launcher.Form1.Form1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at PokeNet_Launcher.Form1.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PokeNet-Launcher
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Michael/Desktop/pokemon/SERVER/t/StrickenFromHistory-PocketMonstersOnline-df11f38/Client/PokeNet-Launcher.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4212 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Nini
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Users/Michael/Desktop/pokemon/SERVER/t/StrickenFromHistory-PocketMonstersOnline-df11f38/Client/Nini.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
-
Re: [Release] Open Source PokeNet Laucnher
You need to add http:// to runthedomes.zapto.org/postupdate.ini
and any links you have in the cofigs.
-
Re: [Release] Open Source PokeNet Laucnher
well i feel like an idiot
---------- Post added at 06:00 AM ---------- Previous post was at 05:58 AM ----------
Thanks and final question how do u configure this line in news/setting.php var $mynews = "9";
-
Re: [Release] Open Source PokeNet Laucnher
What do u want to do with the line? im not understanding the question
-
Re: [Release] Open Source PokeNet Laucnher
well i dont even know what it does, my whole updating and stuff works perfectly now just that were the news is aspost to apear it shows one of those internet explorer erros were page cannot be loaded blah blah blah so obv it isnt conencting to my database or im not setting up the php's correctly on my website
-
Re: [Release] Open Source PokeNet Laucnher
Add me to msn and ill help u out
d.faultx@hotmail.com
-
Re: [Release] Open Source PokeNet Laucnher
think i might of found a bug with the patching it only seems to patch extension 1 even if other extensions are enabled. i tryed testing it by making 2 different load .png's and it downloaded the 1st one and not the second one, also my 2nd patch never worked. even if i set the clients rev back 1 so it patches again it still doesnt work
http://i741.photobucket.com/albums/x...earz/zzzzz.png
[servers update.ini]
PatchFiles1 = "http://runthedomes.zapto.org/downloads/load.png"
PatchFiles2 = "http://runthedomes.zapto.org/downloads/pokeball.png"
PatchFiles3 = "http://runthedomes.zapto.org/downloads/t/load.png"
Patch1 = "Enabled"
Patch2 = "Enabled"
Patch3 = "Enabled"
[REV]
New = "4"
Old = "3"
in the client it goes new = 3 old =3 which is whats aspost to happen but my patch 2 and 3 files are not even downloaded. it also seems not to bother adding the other extensions or patch files into the client update.ini
[client update.ini]
PatchFiles1 = http://runthedomes.zapto.org/downloads/load.png
PatchFiles2 =
PatchFiles3 =
Patch1Extention = res/load.png
Patch2Extention =
Patch3Extention =
yes the two load.png's are different images, they look nothing alike and yes ive refreshed the folder and no im getting a long client error only one is, unable to update revision or something like that and i think thats related to updating rev.txt