[Release] Open Source PokeNet Laucnher

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    [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..
    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:


    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..
    Last edited by -DefaulT; 07-07-11 at 07:38 PM.


  2. #2
    ʕノ•ᴥ•ʔノ ︵ ┻━┻ "Rawr!" Coolkidbloo is offline
    True MemberRank
    Dec 2009 Join Date
    United StatesLocation
    239Posts

    Re: [Release] Open Source PokeNet Laucnher

    AmazIng work. Thanks!

  3. #3
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    Re: [Release] Open Source PokeNet Laucnher

    As long as you can figure out how to work it, your welcome i guess xD

  4. #4
    凸(ಠ益ಠ)凸 Omnija is offline
    Alpha MaleRank
    Jun 2008 Join Date
    QuebecLocation
    2,245Posts

    Re: [Release] Open Source PokeNet Laucnher

    Quote Originally Posted by -DefaulT View Post
    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?

    -o)
    /\\
    _\_V
    The Penguin is "ALWAYS WATCHING".. HEHE

  5. #5
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    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

  6. #6
    Member neohazuki is offline
    MemberRank
    Nov 2004 Join Date
    /home/rz/.TrashLocation
    57Posts

    Re: [Release] Open Source PokeNet Laucnher

    =] great job
    Last edited by neohazuki; 07-07-11 at 08:26 PM.

  7. #7
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    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.

  8. #8
    Member neohazuki is offline
    MemberRank
    Nov 2004 Join Date
    /home/rz/.TrashLocation
    57Posts

    Re: [Release] Open Source PokeNet Laucnher

    Quote Originally Posted by -DefaulT View Post
    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"

  9. #9
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    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.

  10. #10
    Member neohazuki is offline
    MemberRank
    Nov 2004 Join Date
    /home/rz/.TrashLocation
    57Posts

    Re: [Release] Open Source PokeNet Laucnher

    Quote Originally Posted by -DefaulT View Post
    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

    cya"

  11. #11
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    Re: [Release] Open Source PokeNet Laucnher

    Alright lol. Thnaks for trying to help?

  12. #12
    Account Inactive gotenkvg is offline
    InactiveRank
    May 2009 Join Date
    30Posts

    Re: [Release] Open Source PokeNet Laucnher

    uhm it says unable to access jar file client1.jar

  13. #13
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    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.

  14. #14
    Account Inactive gotenkvg is offline
    InactiveRank
    May 2009 Join Date
    30Posts

    Re: [Release] Open Source PokeNet Laucnher

    thx bro

  15. #15
    Omg It's -DefaulT -DefaulT is offline
    True MemberRank
    Aug 2006 Join Date
    Emerald CityLocation
    1,402Posts

    Re: [Release] Open Source PokeNet Laucnher

    Your welcome.



Page 1 of 2 12 LastLast

Advertisement