Archer 88 Posted October 2, 2017 Popular Post Report Share Posted October 2, 2017 I made a Launcher for a project I was working on, this is what it looks like: Whilst it's loading the client: Once it's downloaded and ready to play: The news are .png's you can host anywhere and link to, so you can make them update whenever, since it just fetches the png's every time the launcher opens. So keep in mind, although the launcher has news1.png, news2.png and news3.png there it doesn't read those, the other images provided in the source of the launcher are not fetched from the web and instead stored and used locally. I'll add a template for the news in .psd format you can use to just edit the text and image of a news image, so you don't have to struggle with alignment and such, but i'm at work so it has to wait till I get home, I don't have the file here. This is the hidden content, please Sign In or Sign Up for the launcher, if anyone wants to use it. It hasn't been tested on Mac OS yet because it uses (what I believe to be) a windows specific function to get the users root directory, but I'll check it out and post info, maybe a version that works on Mac as well. How to get the client working: Step 0) Download the launcher, ofc. Step 1) Host your client somewhere and make sure it has a direct download link. (For example, if you put it on dropbox, you can add ?dl=1 at the end of the link to make it download directly upon opening the link) Step 2) Open up Launcher.java and find the call to the DownloadClient method: else{ //play.setEnabled(false); lblClientUpTo.setVisible(false); clientdl = true; new File(File.listRoots()[0].getAbsolutePath() + "/chpJar/").mkdir(); downloadClient("http://informativcek.atspace.eu/client/Ordale.jar", File.listRoots()[0].getAbsolutePath() + "/chpJar/Ordale.jar"); } Change the first parameter of downloadClient from "http://informativcek.atspace.eu/client/Ordale.jar" to your own client download link, you can also change the last parameter to something else, if you don't want the client to be saved in a folder called chpJar under the name Ordale (C:/chpJar/Ordale.jar would be the path if the users root dir is C:) After you do that, it should already work. To change the news images, look for: //Initialize the contents of the frame. private void initialize() { try { java.io.InputStream in = new URL("http://informativcek.atspace.eu/client/news1.png").openStream(); Files.copy(in, Paths.get(File.listRoots()[0].getAbsolutePath() + "/chpJar/news1.png"), StandardCopyOption.REPLACE_EXISTING); in = new URL("http://informativcek.atspace.eu/client/news2.png").openStream(); Files.copy(in, Paths.get(File.listRoots()[0].getAbsolutePath() + "/chpJar/news2.png"), StandardCopyOption.REPLACE_EXISTING); in = new URL("http://informativcek.atspace.eu/client/news3.png").openStream(); Files.copy(in, Paths.get(File.listRoots()[0].getAbsolutePath() + "/chpJar/news3.png"), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } and change the URLs there. To change the Twitter and Facebook links, again, search for those URLs and change those. That should be it, hopefully someone finds some use out of this. Cheers 69 Link to comment Share on other sites More sharing options...
Madara 767 Posted October 4, 2017 Report Share Posted October 4, 2017 Awesome Job. Do you happen to have the .PSD's? Id love to get those as well. Link to comment Share on other sites More sharing options...
Archer 88 Posted October 4, 2017 Author Report Share Posted October 4, 2017 6 hours ago, Madara said: Awesome Job. Do you happen to have the .PSD's? Id love to get those as well. Thanks! Didn't get much reaction so I completely forgot about the .psd's, I'll link them when I get home Link to comment Share on other sites More sharing options...
Sanity 436 Posted October 4, 2017 Report Share Posted October 4, 2017 Nice, Looks really good. Might use in the future. Link to comment Share on other sites More sharing options...
Archer 88 Posted October 4, 2017 Author Popular Post Report Share Posted October 4, 2017 9 hours ago, Sanity said: Nice, Looks really good. Might use in the future. Thanks 17 hours ago, Madara said: Awesome Job. Do you happen to have the .PSD's? Id love to get those as well. This is the hidden content, please Sign In or Sign Up , but this is not the original one I used, so it might have some alignment issues, if it does, go to the launcher and find the news links that are current there, linking to the .png's, and use that as a base width*height ratio 15 Link to comment Share on other sites More sharing options...
r00tsecure 1 Posted October 23, 2017 Report Share Posted October 23, 2017 nice Link to comment Share on other sites More sharing options...
OG Zen 1,198 Posted November 17, 2017 Report Share Posted November 17, 2017 nice Link to comment Share on other sites More sharing options...
Noah Houser 15 Posted December 23, 2017 Report Share Posted December 23, 2017 thanks will use Link to comment Share on other sites More sharing options...
topdevelopment 1 Posted January 8, 2018 Report Share Posted January 8, 2018 nice job Link to comment Share on other sites More sharing options...
reece3221 0 Posted January 23, 2018 Report Share Posted January 23, 2018 looks pretty nice man, nice psd's tooo. Link to comment Share on other sites More sharing options...
craiglf 0 Posted February 1, 2018 Report Share Posted February 1, 2018 Thanks man i'll use this Link to comment Share on other sites More sharing options...
synful 1 Posted February 4, 2018 Report Share Posted February 4, 2018 a tad old but I'm just gonna experiment with this. thanks Link to comment Share on other sites More sharing options...
Syphox 0 Posted February 17, 2018 Report Share Posted February 17, 2018 (edited) Thank you very much! Edited February 17, 2018 by Syphox Link to comment Share on other sites More sharing options...
Zipk0 0 Posted March 4, 2018 Report Share Posted March 4, 2018 I want to try it Link to comment Share on other sites More sharing options...
Michael IO 5 Posted March 7, 2018 Report Share Posted March 7, 2018 thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now