Joshua Stream Pre
  1. #1
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,350

    Advanced PC tools extension

    I made this small extension for Savage Worlds v3.1 that adds support for exporting pre-generated player character to modules. Exported characters are complete copy of original so you can setup these characters fully, export and put them in use without need add missing character information in new campaigns.

    In addition I added support for exporting and importing individual player character to single XML file. This is alternative way for moving characters from campaign to another.

    Gamemaster's character selection view has been updated slightly by adding new Menu button, for importing XML character. Also there is own frame for pre-generated characters. When you have exported character to module, and you open that module in your campaign, all pre-generated character will be listed in this frame. Gamemaster can thereafter include pre-generated character in the campaign by dragging-and-dropping them to character selection list. Export window has also been updated slightly by adding the option to export "Pre-generated characters".

    Hopefully people will find this useful.

    PS: Changes in the original code are very small and it would be very easy to include these features to core SW ruleset.
    Attached Images Attached Images
    Last edited by Ikael; March 5th, 2013 at 07:22.
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  2. #2
    phantomwhale's Avatar
    Join Date
    Aug 2007
    Location
    Melbourne, Australia
    Posts
    1,370
    v3.2 will have pre-gen support for modules already, but sounds like you've done something slightly different here to the implementation I've coded, so I'll try and take a look and see if it'll play well or improve what's there (which I dare say it will). Nice one.
    Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.

  3. #3
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,350
    Here are the changes that were made to existing windowclasses and scripts. You can also found out which windowclasses belongs to which original file.
    This will help people who want to embed it into their ruleset

    IMPORTANT: This extension actually should work for any other ruleset that's d20/foundation ruleset based. All you need to do is remove the <ruleset> restriction tag from extension.xml . Alternatively the way how to embed it into the ruleset is similar. However I won't guarantee that it would work out of the box, but according to my experience these windowclasses and scripts are the very same in most d20/foundation based rulesets and they are also untouched in most cases. Be sure to backup your ruleset before doing anything that you are not sure of.

    Code:
    export_categoryentry --> utility_export.xml
    -------------------------------------------
    Changes: window's script was altered to contain
    new importsource variable
    
    
    export --> utility_export.xml
    -------------------------------------------
    Changes: no changes here, it's only inside 
    extension to make it use revised scripts 
    (export.lua and export_list.lua)
    
    
    charactersheetlistentry --> utility.xml
    -------------------------------------------
    Changes: Added new registered item in window for
    exporting characters to XML files
    
    
    pregensmall --> utility.xml
    -------------------------------------------
    totally new windowclass
    
    
    charactersheetlist --> utility.xml
    -------------------------------------------
    Changes: Added the pregen frame and menu-button
    
    
    export.lua
    -------------------------------------------
    Changes: addExportNode function was revised and
    all sources where it was called.
    
    
    export_list.lua
    -------------------------------------------
    Changes: addCategories function was revised that
    each item contains also the setImportName call.
    Difference between import and export names is that
    you can set one database nodename as input (import)
    that will be read from the root databasenode and
    it will be exported using the export as databasenode.
    It's only used by pregens where you define charsheet
    as input source and export it to pregen source.
    
    
    export_tokens.lua
    -------------------------------------------
    Changes: no changes here (this actually could be
    left out from extension)
    
    
    utility_pregenlist.lua
    -------------------------------------------
    totally new script
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  4. #4
    phantomwhale's Avatar
    Join Date
    Aug 2007
    Location
    Melbourne, Australia
    Posts
    1,370
    Thanks for the breakdown, I've had a look and it fits nicely in with what I'd already written; whereas I'd gone with allowing NPCs to drag and drop onto the PC selector, which copies the NPC into the PC list, you've gone with exporting actual PC entries into a module.

    Your approach works better for PC fields that NPCs don't normally have (you'd have to hack the module XML to put them in under my approach). Drag and Drop NPCs does allow quick conversion of allies / henchman to fully fledged PCs too. So together, it's gonna be a nice offering.

    And I'd added the export / import PC stuff from XML files as slash commands, so adding them in as menu options on the PC selector too makes a lot of sense.

    Overall, made a few changes, but should get most of it into the v3.2 release. Cheers for the efforts and nice explanation of what changes there are, really helped with integration.
    Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.

  5. #5
    phantomwhale's Avatar
    Join Date
    Aug 2007
    Location
    Melbourne, Australia
    Posts
    1,370
    Ok, this might get bumped back to v3.3 now in order to get 3.2 released this year.

    Have added an item to the wishlist, for anyone keen to see this get into the next, next release : http://savagefgii.idea.informer.com/proj/?ia=33672
    Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Fantasy Grounds PREP SHOW

Log in

Log in