Thread: Hyperion character editor

Results 1 to 10 of 10
  1. #1 Hyperion character editor 
    Registered Member
    Join Date
    Jul 2016
    Posts
    69
    Thanks given
    8
    Thanks received
    17
    Rep Power
    64
    Hyperion character editor
    I know this tool is about done, but I just can't seem to find the error that occurs when I try to save the player.
    Loading player data works though.



    Just posting this if anyone needed it. (if you also need saving you might be able to fix it in a sec)

    Instructions
    Put the contents of the .zip file inside the root folder of hyperion source and configure it to your build path on eclipse then press the run button in eclipse, that's it.

    Download (source files)
    Download tools.zip @ UppIT
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Join Date
    Sep 2016
    Posts
    122
    Thanks given
    4
    Thanks received
    30
    Rep Power
    0
    gross af at least make a proper editor
    Reply With Quote  
     

  4. #3  
    love

    scoob's Avatar
    Join Date
    Oct 2015
    Age
    25
    Posts
    1,642
    Thanks given
    367
    Thanks received
    640
    Rep Power
    1559
    Thanks for contribution.
    Attached image
    Reply With Quote  
     

  5. #4  
    Registered Member

    Join Date
    Oct 2011
    Posts
    2,084
    Thanks given
    0
    Thanks received
    1,043
    Rep Power
    3608
    thanks for this.
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Jul 2016
    Posts
    69
    Thanks given
    8
    Thanks received
    17
    Rep Power
    64
    Quote Originally Posted by Capri View Post
    gross af at least make a proper editor
    Yeah sorry, I just made this and really didn't feel like fixing the saving issue. I just got it on here because I thought it might save time for some people that wanted to make something similar.

    @the other two people: Thanks for the reply!
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Sep 2016
    Posts
    122
    Thanks given
    4
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Curiousity View Post
    Yeah sorry, I just made this and really didn't feel like fixing the saving issue. I just got it on here because I thought it might save time for some people that wanted to make something similar.

    @the other two people: Thanks for the reply!
    you literally just opened the file and put it in a text-area, you have no list to select different files nor any search function. this is just horrible dude, it's no better than just opening the files yourself.
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Registered Member mrexiled's Avatar
    Join Date
    Feb 2016
    Posts
    274
    Thanks given
    144
    Thanks received
    32
    Rep Power
    29
    Quote Originally Posted by Capri View Post
    you literally just opened the file and put it in a text-area, you have no list to select different files nor any search function. this is just horrible dude, it's no better than just opening the files yourself.
    his editor is perfectly convenient especially if there were more similar tools and the editor had tabs to select between them.

    all you really need is a textfield and a bufferReader/Writer to edit the file. works fine.
    and its a pretty unique idea that could turn into something cool, unlike yours.

    but if this was me I'd make an ingame interface.
    Reply With Quote  
     

  10. #8  
    Registered Member
    Join Date
    Sep 2016
    Posts
    122
    Thanks given
    4
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by mrexiled View Post
    his editor is perfectly convenient
    its still faster to open files yourself and ill tell you why.

    Code:
    		System.out.println("Running player editor...");
    		new LoadPlayer("mopar");
    hes harding everything, if he did this correctly and listed all files in the directory so you could search the file and select it from a list it would load all of that information into the textArea which is "convenient" this is far from convenient.

    Code:
    	public boolean loadPlayer(String name) {
    		try {
    			File f = new File("data/savedGames/" + name + ".dat.gz");
    			InputStream is = new GZIPInputStream(new FileInputStream(f));
    			IoBuffer buf = IoBuffer.allocate(1024);
    			buf.setAutoExpand(true);
    			while(true) {
    				byte[] temp = new byte[1024];
    				int read = is.read(temp, 0, temp.length);
    				if(read == -1) {
    					break;
    				} else {
    					buf.put(temp, 0, read);
    				}
    			}
    			buf.flip();
    			deserialize(buf);
    			is.close();
    			return true;
    		} catch(IOException ex) {
    			return false;
    		}
    	}
    all of the conventions used above are horrible, use try with resources. you also don't need to do this crap

    Code:
    			while(true) {
    				byte[] temp = new byte[1024];
    				int read = is.read(temp, 0, temp.length);
    				if(read == -1) {
    					break;
    				} else {
    					buf.put(temp, 0, read);
    				}
    			}
    can be replaced with Files #readAllBytes

    Quote Originally Posted by mrexiled View Post
    all you really need is a textfield and a bufferReader/Writer to edit the file. works fine
    using a textarea is perfectly fine, but at least do it right by not harding the file names.

    Quote Originally Posted by mrexiled View Post
    unlike yours.
    mine would be far better, but i wouldn't ever release it to this community

    Quote Originally Posted by mrexiled View Post
    but if this was me I'd make an ingame interface.
    pointless and waste of time
    Reply With Quote  
     

  11. #9  
    Registered Member
    Join Date
    Jul 2016
    Posts
    69
    Thanks given
    8
    Thanks received
    17
    Rep Power
    64
    Quote Originally Posted by Capri View Post
    its still faster to open files yourself and ill tell you why.

    Code:
    		System.out.println("Running player editor...");
    		new LoadPlayer("mopar");
    hes harding everything, if he did this correctly and listed all files in the directory so you could search the file and select it from a list it would load all of that information into the textArea which is "convenient" this is far from convenient.

    Code:
    	public boolean loadPlayer(String name) {
    		try {
    			File f = new File("data/savedGames/" + name + ".dat.gz");
    			InputStream is = new GZIPInputStream(new FileInputStream(f));
    			IoBuffer buf = IoBuffer.allocate(1024);
    			buf.setAutoExpand(true);
    			while(true) {
    				byte[] temp = new byte[1024];
    				int read = is.read(temp, 0, temp.length);
    				if(read == -1) {
    					break;
    				} else {
    					buf.put(temp, 0, read);
    				}
    			}
    			buf.flip();
    			deserialize(buf);
    			is.close();
    			return true;
    		} catch(IOException ex) {
    			return false;
    		}
    	}
    all of the conventions used above are horrible, use try with resources. you also don't need to do this crap

    Code:
    			while(true) {
    				byte[] temp = new byte[1024];
    				int read = is.read(temp, 0, temp.length);
    				if(read == -1) {
    					break;
    				} else {
    					buf.put(temp, 0, read);
    				}
    			}
    can be replaced with Files #readAllBytes



    using a textarea is perfectly fine, but at least do it right by not harding the file names.



    mine would be far better, but i wouldn't ever release it to this community



    pointless and waste of time
    Is it supposed to be ironic that you quote everything Graham wrote? Because I'm sure he's a way better developer than you.
    Reply With Quote  
     

  12. #10  
    Registered Member
    Join Date
    Sep 2016
    Posts
    122
    Thanks given
    4
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Curiousity View Post
    Is it supposed to be ironic that you quote everything Graham wrote? Because I'm sure he's a way better developer than you.
    you realize back when Graham wrote most of Hyperion it was considered "good" conventions and reasonably up-to-date? now the conventions he used is old af and in his predecessor (Apollo) he changed all his code to newer conventions. just because it was written by Graham doesn't mean its good code.
    Reply With Quote  
     


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. Hyperion itemDefinitions Editor
    By Kupo in forum Tools
    Replies: 13
    Last Post: 07-09-2016, 10:46 AM
  2. [Hyperion] Character Design Packet
    By Linux in forum Snippets
    Replies: 7
    Last Post: 03-06-2010, 07:57 AM
  3. Replies: 3
    Last Post: 12-21-2009, 11:51 PM
  4. Character Editor
    By Chachi in forum Requests
    Replies: 3
    Last Post: 04-29-2009, 01:24 PM
  5. Character Editor
    By WhiteFang in forum Tools
    Replies: 19
    Last Post: 05-23-2008, 10:17 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
  •