Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Open Source PokeNet Laucnher

Joined
Aug 16, 2006
Messages
1,251
Reaction score
199
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..
Code:
New = "3"

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:
-DefaulT - [Release] Open Source PokeNet Laucnher - RaGEZONE Forums


Compiled Launcher:
PSD File:

Source:

.Net Framework 3.5


Gl... I kinda feel bad for releasing something so messy but oh well..
 
Last edited:
凸(ಠ益ಠ)凸
Loyal Member
Joined
Jun 16, 2008
Messages
1,665
Reaction score
227
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?
 
Newbie Spellweaver
Joined
Nov 30, 2004
Messages
41
Reaction score
0
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"
 
Newbie Spellweaver
Joined
Nov 30, 2004
Messages
41
Reaction score
0
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"
 
Joined
Aug 16, 2006
Messages
1,251
Reaction score
199
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.
 
Newbie Spellweaver
Joined
May 28, 2009
Messages
24
Reaction score
0
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.



---------- 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?? :(

 
Last edited:
Joined
Aug 16, 2006
Messages
1,251
Reaction score
199
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.
 
Newbie Spellweaver
Joined
May 28, 2009
Messages
24
Reaction score
0
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






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
 
Joined
Aug 16, 2006
Messages
1,251
Reaction score
199
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.
 
Back
Top