Thread: [Any Source] Global RSPS Server GUI - Release 1.0

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 [Any Source] Global RSPS Server GUI - Release 1.0 
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    GLOBAL RSPS GUI
    [Only registered and activated users can see links. ]


    Source: (Not noob friendly)
    [Only registered and activated users can see links. ]

    JAR Library: (Recommened)
    [Only registered and activated users can see links. ]



    Code:
    Changlog:
    -Displayed memory fixed
    -Added dynamic players tab
    -Combined everything needed by the server in one easy to use file
    -Added the support of system look and feel
    -Fixed a bug with displaying console text
    and more!
    Spoiler for Old Versions:
    v0.1 source: [Only registered and activated users can see links. ]
    v0.1 jar: [Only registered and activated users can see links. ]

    Introduction:
    I originally started this project with no future intended and didnt expect to be able to do much with it because of the flexibility I wanted to obtain with it, but after long hours of work and some trial and error I have come up with the perfect solution for all servers large or small, public or private, commercial or non-profit. I present to you the Global RuneScape Private Server Graphical User Interface, your total server solution you can easily manager your players on your server from an interface or read you console logs in a much easier way. No longer are you restricted to the black console window! Below you will find a tutorial on how to achieve all off this and more! thanks for reading!

    ----
    Tutorial Part:
    ----
    Spoiler for If using the source:
    If you are using the source, it is recommended you compile it and make a jar(you will need to drag the Main.java and GuiHandler.java to the src/org/alexmason/cp folder) after compiling you need to place the GuiHandler.java in your server source files

    Spoiler for If using the jar:
    You will need to make a file called GuiHandler.java and place it with your server files:
    Code:
    //package org.alexmason.cp;
    
    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    
    import org.alexmason.cp.tab.*;
    import org.alexmason.cp.tab.impl.PlayersTabImpl;
    
    public class GuiHandler extends PrintStream implements PlayersTabImpl {
    
    	public String title = "RSPS Gui";
    	public boolean useSystemLAF = false; //Set true if using windows to use windows Look and Feel
    	public JPanel[] tabs = {(new SystemTab()), //What tabs you want to load SystemTab, ConsoleTab, and PlayersTab are included in the jar and source
    							(new ConsoleTab()),
    							(new PlayersTab(this))
    							};
    
    	//These are what each button does in the players tab
    	public void ban(DefaultListModel listModel) {
    		listModel.addElement("Ban");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void mute(DefaultListModel listModel) {
    		listModel.addElement("Mute");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void unmute(DefaultListModel listModel) {
    		listModel.addElement("Unmute");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void kick(DefaultListModel listModel) {
    		listModel.addElement("Kick");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void viewBank(DefaultListModel listModel) {
    		listModel.addElement("Bank");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void viewInventory(DefaultListModel listModel) {
    		listModel.addElement("Inventory");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void viewStats(DefaultListModel listModel) {
    		listModel.addElement("Stats");
    		System.out.println(listModel.size()+"");
    	}
    	
    	public void clearView(DefaultListModel listModel) {
    		listModel.addElement("Clear");
    		System.out.println(listModel.size()+"");
    	}
    
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    	//###########LEAVE EVERYTHING BELOW ALONE##############
    
    	public GuiHandler() {
    		super(new ByteArrayOutputStream()); //For the printstream
    		System.setOut(this);
    		System.setErr(this);
    		if(useSystemLAF) {
    			try {
    				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    			} catch(Exception e) {
    				e.printStackTrace();
    			}
    		}
    		Gui g = new Gui(title, tabs);
    		g.load();
    	}
    	
    	public void println(String str) {
    		ConsoleTab.append(str+"\n");
    	}
    	
    	public void print(String str) {
    		ConsoleTab.append(str);
    	}
    
    }


    You need to edit all of the following methods in GuiHandler.java so they can work:
    Code:
    ban, kick, mute, unmute, viewBank, viewInventory, viewStats, clearView
    You can set your gui title using the title string in GuiHandler and you can set it to use windows look and feel.

    Place your jar in a directory called deps in your server root.

    Open up your compile.bat and add this:**
    Code:
    set deps=../deps/*.jar;.
    and change your javac... to javac -cp %deps%...*

    Open up your run.bat and add this:**
    Code:
    set deps=../deps/*.jar;.
    and change your java.... to java -cp %deps%...*
    Spoiler for Make it so black cmd box disappears:
    Put start in front of java...
    so it looks like start java...

    *: If a -cp already exists after the last jar add ;%deps% but do not put a space or anything.
    **: Remove a dot after deps= if you are getting problems

    Below your public static void main(String[] args) { in Server.java add:
    Code:
    (new GuiHandler());
    so it looks like:
    Code:
    public static void main(String[] args) {
        (new GuiHandler());
        ...
    }
    Last edited by Chiief; 04-12-2011 at 07:04 AM.

    Reply With Quote  
     

  2. #2  
    Registered Member DestriX's Avatar
    Join Date
    Nov 2008
    Posts
    1,329
    Thanks given
    490
    Thanks received
    152
    Rep Power
    257
    Neat idea, I will consider using this
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2010
    Age
    23
    Posts
    4,836
    Thanks given
    1,676
    Thanks received
    1,563
    Discord
    View profile
    Rep Power
    0
    I'd rather use eclipse, but nice nevertheless.
    Reply With Quote  
     

  4. #4  
    Super Donator


    Join Date
    Sep 2008
    Age
    27
    Posts
    1,897
    Thanks given
    677
    Thanks received
    776
    Rep Power
    456
    Quote Originally Posted by Big Sean View Post
    I'd rather use eclipse, but nice nevertheless.
    Eclipse is a IDE.

    This is not.

    Reply With Quote  
     

  5. #5  
    Registered Member pkersworld's Avatar
    Join Date
    Mar 2011
    Age
    23
    Posts
    667
    Thanks given
    3
    Thanks received
    21
    Rep Power
    4
    good job , not using
    -Removed
    Reply With Quote  
     

  6. #6  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    thinking about implementing a players tab with ban kick mute/unmute and others.

    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    i like the idea nice work.
    Reply With Quote  
     

  8. #8  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Thank you.

    Reply With Quote  
     

  9. #9  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    Quote Originally Posted by AlexMason View Post
    thinking about implementing a players tab with ban kick mute/unmute and others.
    You should you know
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  10. #10  
    #1 footwear

    Shoes's Avatar
    Join Date
    Aug 2009
    Age
    24
    Posts
    2,613
    Thanks given
    185
    Thanks received
    255
    Rep Power
    579
    Quote Originally Posted by AlexMason View Post
    thinking about implementing a players tab with ban kick mute/unmute and others.
    Just don't add a million useless features, cause atm I think this looks really good


    Spoiler for different picture now:
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 81
    Last Post: 10-23-2011, 10:05 PM
  2. Replies: 1
    Last Post: 11-11-2010, 05:54 PM
  3. Replies: 18
    Last Post: 09-21-2009, 01:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •