DICE PACKS BUNDLE
  1. #1

    Modifying the Adventure Deck extension

    Hello fellow Savage World gamers,

    I am not a professional programmer, but I learned a few things in my time. So I thought I would put my skills to good use and create a bunch of homebrew cards for my Deadlands Reloaded game. After much hair pulling, here is what I have learned.... the hard way. I want to share this on the off chance that someone else might stumble upon this and avoid the same frusteration.

    1. Converting the .ext file to a zip, unzipping and then zipping back up again does not work. Instead, use a zip program to view the internal workings of the ext file, and drag and drop your modded xml files directly inside the ext file.

    2. The .lua files must be saved as ANSI. OK, I do not know if that is excatly true. I used a freeware program called XML Copy Editor to edit the xml code. I used it for the .lua files as well. The program saves the .lua files as UTF-8. Using these files creates error messages. After coding, I used Notepad to convert back to ANSI before dropping them into the ext file. That worked.

    I really struggled for a long time with both of these bugs. Argh. But it all works now. Thanks to the community for telling me how to beat the first one. You guys are awesome.

    Kevin

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    To be honest, I don't have any issues with the first one - I unzip an extension into a folder, work on the extension code in the unzipped folder and then zip the extension back up from within the folder, not outside the folder (this is he key gotcha) then rename the .zip back to .ext. I do this all of the time - with extensions, rulesets and modules.

    One thing that is good about doing it this way is that you can work on your code within the extension folder and just use /reload within FG to try out your new code. FG reads the folder and it's files as an extension, so while developing their is no need to keep zipping/renaming. This works for rulesets too, but not modules. Just remember to tidy up your development folders after. FG will load code from an extension directory first, ignoring a .ext file of the same name.
    Last edited by Trenloe; July 30th, 2014 at 16:01.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

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
  •  
FG Spreadshirt Swag

Log in

Log in