DICE PACKS BUNDLE
  1. #1

    Building a Rule Set

    I would like to build a new rule set with Core RPG as the Basis, however the information on the site seems to be fairly confusing in terms of reference material. What would help me most is if there was a rules set that was fully commented so as to show where things were in the existing code. Are there any examples of this?

    I am attempting to put together a version of the old CP2020 rules and add in Friday Night Firefight automation. Unfortunately the reference material present seems to be lacking in examples that demonstrate what is done where and when I comb through the D&D examples and some of what folks have put together I find it difficult to find the various sub-parts and how they connect together to form various functions. It's almost as if every single functional area of every sheet has a separate sub-file with further sub-files that detail parts of them, etc. This gets hard to navigate when you grew up programming in languages that put everything in one place.

  2. #2
    Yeap, I feel your pain - unfortunately, the only way (at the moment) to learn how to do this is by reverse engineering a Ruleset, which means going through each file to learn how it all fits together.

    I found the best way to do this is use something like Notepad++ so that each file could be opened in a separate tab but that the global search still works, and then simply "doing the slog".

    The Developers Guide and similar documents on the Wiki are also useful - at least for the basic foundations of which (base) objects do what.

    By my estimation there are at least 4 different programmers who have worked on FG over the years (based on at least 4 different "styles" of coding I've identified in the XML and LUA) - while there is some consistency it is obvious that this is the case.

    However, if you have a good understanding of OOP, Encapsulation, Polymorphism and Inheritance, it shouldn't be too hard to figure things out, once you get going

    Cheers
    Last edited by dulux-oz; June 21st, 2015 at 04:55.
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

  3. #3
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    have a look at the MoreCore extension -
    https://www.fantasygrounds.com/forum...on-for-CoreRPG

    It adds some extras to the PC and NPC character sheets and also adds some stuff to the Combat Tracker.
    These are the basic things that you will do with a new ruleset and it is reasonably well commented.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    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!

  5. #5
    Brenn's Avatar
    Join Date
    Jun 2005
    Location
    Fort Smith, AR
    Posts
    196
    To add what is above, don't shy away from the LUA. To do much of any type of automation you will have to get into the scripting. Also (in some cases) doing the gui implementation through lua is easier than screwing around with the XML( that said, I wouldn't start trying to do any of that until you are solid with your basic lua stuff). But if you want automation you are going to have to get deep into the scripting.

    Notepad++ works quite well for me in figuring things out. You can do a Find In Files and search for a particular procedure that is called to track the flow of something down. Note that some of the script is embedded in XML, though the bulk of it is in the LUA files. Initially it is very time consuming until you get a feel for how stuff is laid out, then it really isn't so bad. They have really done quite an excellent job with the CoreRPG implementation. Believe me, I know what it was like prior to this. Comments might be sparse, but overall the code reads fairly well so I've found that while I initially would have liked something robustly commented, I don't really need it any longer.

    You have to be prepared to devote some time. It will not come quickly, but if you are like me, each visual/procedural advance keeps the fires stoked. You really can (now) do a lot within the XML/LUA framework.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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