Welcome, Guest

Author Topic: UBox System Editor - Work In Progress  (Read 15372 times)

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
UBox System Editor - Work In Progress
« on: January 19, 2011, 09:21:00 PM »
DELAYED UNTIL I GET MORE C# KNOWLEDGE UNDER MY BELT!



So I thought about helping out the US community by making it somewhat easier to create/edit their systems with XML.

So I am slowly working in C# to make a editor for Universe Sandbox.

I'll gladly take suggestions and whatnot.

Right now I am trying to figure out how I should sort tags in my buttons.

So what do you think?


Also I wasn't sure if I should post this in US2 forum or Anything Forum.

I'm sure Dan will move it if need be.
« Last Edit: February 03, 2011, 08:43:26 PM by Chaotic Cow »

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: UBox System Editor - Work In Progress
« Reply #1 on: January 19, 2011, 09:27:13 PM »
So I thought about helping out the US community by making it somewhat easier to create/edit their systems with XML.

So I am slowly working in C# to make a editor for Universe Sandbox.

I'll gladly take suggestions and whatnot.

Right now I am trying to figure out how I should sort tags in my buttons.

So what do you think?


Also I wasn't sure if I should post this in US2 forum or Anything Forum.

I'm sure Dan will move it if need be.

Put Velocity and Position under Body. Same thing with Object and Name.

og1250

  • **
  • Posts: 15
  • The Light The Cosmogramma
Re: UBox System Editor - Work In Progress
« Reply #2 on: January 19, 2011, 09:45:19 PM »
Yes Yes Brilliant Idea man now we can edit the ubox files instead of converting them back to xml

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: UBox System Editor - Work In Progress
« Reply #3 on: January 19, 2011, 09:53:50 PM »
Yes Yes Brilliant Idea man now we can edit the ubox files instead of converting them back to xml
Do you not know this is an XML Maker? You can make XML files, but not edit UBOX.

UBox System Editor means it is an editor for Universe Sandbox.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: UBox System Editor - Work In Progress
« Reply #4 on: January 19, 2011, 09:56:05 PM »
oh my god, that's such a problem! I can download 7-zip or simply use "File Tools" in US.  :o :o :o :o :o

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #5 on: January 19, 2011, 09:57:59 PM »
Yes Yes Brilliant Idea man now we can edit the ubox files instead of converting them back to xml
Do you not know this is an XML Maker? You can make XML files, but not edit UBOX.

UBox System Editor means it is an editor for Universe Sandbox.

Correct. Unless I can figure out a way for this to also save them as a .ubox

Also...been trying to find a WinForms code editor...but atlas...I have not.
At least nothing that wasn't so confusing. I just gave up looking.

So I can't figure out how to get line counting. :[

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: UBox System Editor - Work In Progress
« Reply #6 on: January 19, 2011, 11:12:16 PM »
Looks good. Maybe it'll be official sometime.

ufufu~

kevin94

  • *****
  • Posts: 93
Re: UBox System Editor - Work In Progress
« Reply #7 on: January 20, 2011, 05:14:31 AM »
that would be great to help out Dan  in  Universe Sandbox :)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: UBox System Editor - Work In Progress
« Reply #8 on: January 20, 2011, 07:36:37 AM »
Yes Yes Brilliant Idea man now we can edit the ubox files instead of converting them back to xml
Do you not know this is an XML Maker? You can make XML files, but not edit UBOX.

UBox System Editor means it is an editor for Universe Sandbox.

Correct. Unless I can figure out a way for this to also save them as a .ubox

Also...been trying to find a WinForms code editor...but atlas...I have not.
At least nothing that wasn't so confusing. I just gave up looking.

So I can't figure out how to get line counting. :[

implement a 7zip thingy...

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: UBox System Editor - Work In Progress
« Reply #9 on: January 20, 2011, 11:21:07 AM »
implement a 7zip thingy...
I know how that should work.
Load a UBOX file (add a checker to ensure it is a .ubox), then change the extension to zip (change the name of the file only at the end (after the period)). Extract it, load the .xml, and place its data into the field.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: UBox System Editor - Work In Progress
« Reply #10 on: January 20, 2011, 12:59:31 PM »
This project looks a fun way to learn C#.

Here's the library that I use to create and extract the zipped UBOX files:
http://dotnetzip.codeplex.com/

(and just realized I hadn't added this project to the credits page (in Universe Sandbox), this link will be in the next update)
« Last Edit: January 20, 2011, 01:08:23 PM by Dan Dixon »

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: UBox System Editor - Work In Progress
« Reply #11 on: January 20, 2011, 11:34:07 PM »
So I thought about helping out the US community by making it somewhat easier to create/edit their systems with XML.

So I am slowly working in C# to make a editor for Universe Sandbox.

I'll gladly take suggestions and whatnot.

Right now I am trying to figure out how I should sort tags in my buttons.

So what do you think?


Also I wasn't sure if I should post this in US2 forum or Anything Forum.

I'm sure Dan will move it if need be.


Anything? Heck no!
It's about US isn't it?

yay 7zip and winrar in yo face. jk.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #12 on: January 21, 2011, 08:06:38 AM »
Still working on it. Still sorting out how I should group tags in my buttons.


Right now the most annoying things is, after I use a button to add tags it places the tags and resets the text cursor(?) back to the beginning. So you have to go click back to where you want it after everyone tag click.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #13 on: January 25, 2011, 10:39:34 AM »
Just an update. I dropped the first idea and thought about "ease of use".

Making most things GUI controlled. I'll post some pictures once I get a good layout of everything.

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: UBox System Editor - Work In Progress
« Reply #14 on: January 26, 2011, 06:53:08 PM »
Hrm... Interesting and cool.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #15 on: January 26, 2011, 07:28:26 PM »
Driving me crazy though. Trying to figure out to get one from to send text to another form.

triclops200

  • **
  • Posts: 15
Re: UBox System Editor - Work In Progress
« Reply #16 on: February 06, 2011, 02:03:54 AM »
Look up asynchronous sockets :)

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #17 on: February 06, 2011, 02:54:29 PM »
I'm not trying to connect to a server?

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #18 on: February 06, 2011, 04:47:34 PM »
Yeah I figured some of that out.

Seems a Rich Text Box will not allow me to save as a XML file.


What I got so far...

« Last Edit: February 06, 2011, 06:44:59 PM by Chaotic Cow »

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #19 on: February 07, 2011, 09:34:20 AM »
Well I am using StreamReader/Writer


Is there an XML Text Reader?

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: UBox System Editor - Work In Progress
« Reply #20 on: February 07, 2011, 10:13:13 AM »
I'm guessing molun means this.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #21 on: February 07, 2011, 10:48:31 AM »
Yeah, can't seem to figure out this. Like how to get it to send to textbox.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #22 on: February 07, 2011, 11:17:26 AM »
http://i455.photobucket.com/albums/qq280/MooMooUdder/uboxeditor2.png

This is nice.


What is driving me nuts is I cannot figure out how to get a seperate Class file to get data from a textbox.

I could do it all Form1.cs but I want to try to stay organized.
« Last Edit: February 07, 2011, 12:08:21 PM by Chaotic Cow »

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #23 on: February 07, 2011, 12:48:46 PM »
I have Form1.cs and theClass.cs

Note that theClass.cs is not a form but just a class file.

I need theClass.cs to look at a textbox on the Form1.




Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #24 on: February 07, 2011, 05:58:53 PM »
I figured I would let you guys play around with what I have and tell me what you think about it.

http://anyhub.net/file/1KyY-ubox-editor.zip

I included copies of Earth and Moon and Our Solar System - All Known Moons,
so you guys don't have to edit your normal files.
You can also create copies of your own and use those!

This only saves as .XML for now.
Only what you edit in Text View will be saved.

Features:
  • Text View: View the file as Text
  • Grid View: View each object in it's own cell
  • Reference Search: Search a tag name and get a description.
  • ..probably more

To uninstall: Go to Add/Remove programs in your Control Panel.

« Last Edit: February 07, 2011, 06:03:46 PM by Chaotic Cow »

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #25 on: February 08, 2011, 10:27:13 AM »
Nice.

I'm trying to figure out how to update the grid / text view when one or the other is edited.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #26 on: February 09, 2011, 05:58:38 PM »
I'm having a problem in saving in UBOX.

When I save Earth & Moon as XML and drag the file into US it works fine.

But, when I save it as a UBOX and drag that into US the Moon isn't included.


Never mind....seems to work fine now.

Weird.



Now I can't seem to get .UBOX working in US.

I save it with exact name as the xml file in the zip and it doesn't load anything in US.
« Last Edit: February 09, 2011, 06:16:41 PM by Chaotic Cow »

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: UBox System Editor - Work In Progress
« Reply #27 on: February 09, 2011, 06:40:59 PM »
Wait what? I thought US native file format was .ubox. >???

also heres a sentence so this isnt a one word post

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #28 on: February 09, 2011, 07:17:03 PM »
I save the .ubox file and it doesn't load the system even though the .xml inside the .ubox works fine alone.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: UBox System Editor - Work In Progress
« Reply #29 on: February 10, 2011, 12:47:44 PM »
I added view features and cleaned up my search code. Added the ability to save as a .ubox but it doesn't seem to work when you try to load it into Universe Sandbox.

Try it out if you guys want to.

DON'T FORGET TO REMOVE PREVIOUS VERSION IF YOU HAVE IT.

http://anyhub.net/file/1MNT-ubox-editor-002.zip