07-11-2007, 12:32 PM | #11 |
Join Date: Jan 2007
|
Re: [Space] System Generator
I wrote a character generator for Rifts by using XML for each character database and automating MSIE for the screens. I used XSL files to take XML and then produce datascreens and for exports. it was my first attempt at XML/XSL and while it looks clunky now, it works and was decent for my first shot at it.
automating MSIE allowed me to do things like have clickable columns in HTML display tables, such that if I needed to "add all first level spells" I could double-click the column header and the program would add everything. Same with deleting, as it saved having to make 30 or 40+ clicks just to add or delete a group of items. HTML tables also allow you to disable portions like if a certain skill or power isn't available you can disable that particular item (or entire column) and work from there. You can pickup COM objects that do this, but then they have to be installed, etc, which may or may not be a pain. HTML also allows dynamic sizing of DIVs and placing and hiding things very easily. CSS allows easy formatting. The other thing was that at certain points, I had what amounted to a spreadsheet displayed on screen as it had 30+ rows, and 15 columns (representing each level) and a certain row (say saving throw vs Horror Factor) gets a 1 at 1st level, 1 at 5th level and 1 and 9th level and so on. This way you could enter a particular item freehand "Save vs Little Green Men" and then enter the bonuses as needed. Then the script would grab the HTML from the display, I'd run it thru HTMLTidy, turn it into XML and then query the 300+ inputs very quickly, to update the character database. Turning HTML into XML means you can do some impressive things, like only grab rows that don't contain all zeroes and not have to bother with inventoring each and every one every single time. HTMLTidy is a single DLL and my scripts could peek at the registry, tell if it wasn't already installed, to use regsvr32 and register it silently and then proceed to use it, all transparent to the user. Sorry I could go on for hours. Anyway, MSIE is on most windows PC, and even if your user doesn't use it, you're only using it locally, not for Web-use and you can reap all the nice font and display uses from it. DHTML is pretty simple.
__________________
"Now you see me, now you don't, woof" -- The Invisible Vargr . . There are 10 types of people in the world. Those who understand binary, and those who don't. |
07-11-2007, 12:55 PM | #12 | |
"Gimme 18 minutes . . ."
Join Date: Sep 2005
Location: Albuquerque, NM
|
Re: [Space] System Generator
Quote:
You bring up a good point about PDFs. I'll have to give it some thought, but an easily editable output format would probably be best. |
|
07-11-2007, 01:44 PM | #13 |
Join Date: Jan 2007
|
Re: [Space] System Generator
make sure you look this post over thoroughly
Web-based Automatic Sector Data / Map pdf Generator while you might not be interested in the Traveller aspects, the author/coder has done an awesome job with the project. I think it's for Mac, but she might have some Windows insights for you.
__________________
"Now you see me, now you don't, woof" -- The Invisible Vargr . . There are 10 types of people in the world. Those who understand binary, and those who don't. |
07-13-2007, 02:52 PM | #14 |
Join Date: Aug 2006
|
Re: [Space] System Generator
There is a script for astro synthesis 2. It added typical gurps statistics to world description (like TL etc.)
|
07-17-2007, 07:58 PM | #15 |
Join Date: Jul 2007
|
Re: [Space] System Generator
I read this thread last week, weeks after I started writing my own generator for star systems based on the GURPS Space rules.
Thanks for the wonderful ideas. And especially to Exxar. I was writing it in an obscure scripting language, but I've started learning JavaScript since it looks like it can do everything I need and is much more portable. Not meaning to hijack your thread or anything. But once I've got stuff that I've done so far converted to Javascript, I can post it here for you or anyone to use. And if you happen to know the arcane scripting language of awk, I can post what I have done already. It's looking good so far, but still far to go. But I'll probably have to write a java applet or something to do the graphing of the orbits that I want to do. Plus, knowing me, I'll probably add inclination of orbits as well. Many of you guys sound like you know way more about the star system mechanics than I do. So, I'll check back periodically for ideas and answers. If I should have started a new thread for this, please be kind and just let me know. I've never used forums much so any unpoliteness on my part just means I'm ignorant of etiquette. Tulonsae |
07-17-2007, 08:06 PM | #16 |
Join Date: Dec 2005
|
Re: [Space] System Generator
I can't even tell you all how excited I am that a utility like this could be out. Mmm mmm goood!
|
07-18-2007, 12:13 AM | #17 | |
Join Date: Nov 2006
Location: Heartland, U.S.A.
|
Re: [Space] System Generator
Quote:
Are you sure you'll be able to provide us the finished product when you're done? |
|
07-18-2007, 01:12 AM | #18 |
"Gimme 18 minutes . . ."
Join Date: Sep 2005
Location: Albuquerque, NM
|
Re: [Space] System Generator
Tulonsae: I don't mind at all, I figure if it's all in one place it's easier for everyone, right?
You sound like you're much further along than me. Thats not very hard, as I'm in the middle of midterms, so progress has slowed considerably. My only real comment is that most planets are going to be pretty much in the plane of the elliptical. Anything with a highly eccentric(or significantly out of plane) orbit is much more likely to be an Oort Cloud/Kuiper Belt Object (like Pluto,) with the exception of any asteroid belts, as they'll tend to be much more scattered. Also, although it's not mentioned in any of the system generation tables(I think) asteroid distribution is gonna be a bit wonky(If you're actually concerned with where the asteroids are in the belt, as opposed to there just being a belt) due to the gravitational effects of any gas giants in the system. Basically there's huge holes in the belts due to certain parts of an orbit being more stable than others. Also, said gas giants are likely to have clumps of asteroids in their L4 and L5 orbits(60 degrees forward of the gas giants orbit and 60 degrees behind the orbit.) I digress. I'm an asteroid geek. Anywho, like I said, not very likely that most planets will have highly eccentric orbits, but anything is possible. Look forward to seeing what you come up with. |
07-18-2007, 02:17 AM | #19 | |
Join Date: Nov 2006
Location: Heartland, U.S.A.
|
Re: [Space] System Generator
Quote:
Inclination (in degrees) = 50.274 * Eccentricity with an R-squared value of 0.7519 when you include Pluto or Inclination (in degrees) = 31.621 * Eccentricity with an R-squared value of 0.5629 when you don't include Pluto. If you're really serious about adding inclination data, let me know and I'll be happy to work with you on it. (I have an M.S. in Astronomy.) |
|
07-18-2007, 06:21 PM | #20 | |
Join Date: Sep 2004
Location: Medford, MA
|
Re: [Space] System Generator
Quote:
|
|
Tags |
space, system generation |
|
|