Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > GURPS

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-11-2007, 01:32 PM   #21
Shrale
 
Shrale's Avatar
 
Join Date: Jan 2007
Default 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.
Shrale is offline   Reply With Quote
 

Tags
space, system generation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.