FG Spreadshirt Swag
  1. #1
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007

    Ruleset Creation Guide and XML Tutorial

    Folks

    I am trying to pull together a ruleset creation guide (complete with walkthrough and final ruleset) and want to concentrate on FG and the ruleset mechanics.

    As a result, I'm not keen to include a potted tutorial on XML, but would rather assume the reader has such knowledge. On the other hand, for readers who don't, I'd like to include a cross-reference to a decent XML tutorial elsewhere.

    Does anyone know of a good tutorial site to which I can point? A PDF would be even better, as some people like to browse this stuff on a laptop, while disconnected.

    I'll post the final guide when its finished, sometime in 2012!

    Thanks for the help,

    Stuart

  2. #2
    jthm0138
    Guest
    Post removed by user
    Last edited by jthm0138; March 14th, 2008 at 00:00.

  3. #3
    I don't know of one, Foen. I'm one of those who would need one. But I'd just like to add that your project is noble indeed. I will look forward to 2012.

  4. #4

    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    7,402
    There are a couple of pages on the site which should cover what anyone needs to know about XML for FG.
    https://www.bloomington.in.us/~mongi...l/Concepts.htm
    https://www.bloomington.in.us/~mongi...l/Examples.htm

    The example is over kill though.
    Last edited by Griogre; February 21st, 2008 at 01:13.

  5. #5
    DNH's Avatar
    Join Date
    Apr 2007
    Location
    Edinburgh, UK
    Posts
    288

    W3Schools

    I learnt much of what I know about XML from the W3Schools website at https://www.w3schools.com/xml/default.asp. This will be five or six years ago now but the core stuff won't have changed.
    DNH
    "Lost in Karameikos"

  6. #6

    Join Date
    Jun 2007
    Location
    Zeist, Netherlands
    Posts
    286
    I was just about to post the same link here. w3schools is the ultimate website for web-related references.

  7. #7

    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    7,402
    Of course you probably want to mention FG just uses elements and attributes - no schema or DTD so basically all you really need to know is it is case sensitive and you have to close any element you open.

  8. #8
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Although it doesn't use attributes, the text values need to be properly xml-encoded. If editing the db.xml by hand, or creating windowclasses with embedded static text, you still need to use & etc.

    Thanks for the links folks, I like the w3schools one in particular (although I'll admit it takes you well beyond the level needed for FG work).

    Cheers

    Stuart

  9. #9

    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    7,402
    Good point on the forbidden text characters like <, ", &, ect.

    Hmm FG uses tons of attributes. Those are the xxx="something" after the element name.

    Edit: Ack I forgot how hard it is to get XML to show up on this board. I was going to give an example.
    Last edited by Griogre; February 22nd, 2008 at 07:10.

  10. #10
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Bah! I confused attributes with entities ... but you got my meaning!

    Stuart

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in