DICE PACKS BUNDLE
  1. #1

    More Character Sheet Questions

    All right, I'm at it again.

    I've tried to figure it out myself, but somewhere, it goes horribly wrong. I'm working on a modified CoreRPG ruleset (not heavily modified or anything).

    What I'm trying to do is:

    1) Add two additional tabs/pages to the character sheet
    2) Rename the tab of one of the existing sheets
    3) Have the text on each tab be the same color
    (one of them is for some reason pale grey, no it's not because it is not the selected tab, it is even brighter)

    I don't need to make complicated window settings in these new tabs, they can be exactly like the standard Abilities window) -
    so I thought, I'll just copy "record_char_abilities" twice, renaming them (in my case) "record_char_proficiencies" and "record_char_skills". I then went into these files and changed instances of <name>ability</name> to <name>proficiencies</name> but that just made FG fail to load the ruleset at all.

    So I realize there must be more to it.. I have searched the forums and tried making sense of the support documentation but to no avail.

    I'd love to end up with a character sheet, then, with six tabs from above to below:

    1) "Notes" sheet/tab first, renamed "Main"
    2) "Main" sheet/tab second, renamed "Attributes"
    3) Another "Main" sheet/tab third, but renamed "Skills"
    4) "Abilities" sheet/tab fourth, renamed "Proficiencies"
    5) Another "Abilities" sheet/tab fifth, renamed "Maneuvers"**
    6) "Inventory" sheet, no changes needed except for being bottom tab on the character sheet


    Does anyone feel like helping out / guide me on my path (littered with spike traps)?

    ** Actually I already have this tab renamed "Maneuvers", with some kindly help from damned

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Hello again Wolfheart.
    Please revisit the MoreCore extension and investigate the code - it does a lot of these things and has a reasonable number of comments and links to where and why...

  3. #3
    leozelig's Avatar
    Join Date
    Jun 2007
    Location
    Eastern USA
    Posts
    1,856
    Blog Entries
    1
    As far as the text color of the tabs, the images are in the graphics folder. You will need to create images for tabs like Maneuvers and Proficiencies, otherwise the tab image will show as blank.

  4. #4
    Quote Originally Posted by damned View Post
    Hello again Wolfheart.
    Please revisit the MoreCore extension and investigate the code - it does a lot of these things and has a reasonable number of comments and links to where and why...
    Oh, right, of course! Thanks for the tip

  5. #5
    leozelig's Avatar
    Join Date
    Jun 2007
    Location
    Eastern USA
    Posts
    1,856
    Blog Entries
    1
    The file campagin/record_char.xml defines the character sheet tabs:

    Code:
                <subwindow name="main">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_main</class> -- This is the name of the windowclass defined in a separate file
                </subwindow>
                <subwindow name="attributes">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_attributes</class>
                </subwindow>        
                <subwindow name="skills">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_skills</class>
                </subwindow> 
                <subwindow name="proficiencies">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_proficiencies</class>
                </subwindow>
                <subwindow name="maneuvers">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_manuevers</class>
                </subwindow>           
                <subwindow name="inventory">
                    <bounds>0,65,-1,-20</bounds>
                    <class>charsheet_inventory</class>
                </subwindow>
    
    
                <tabs_charsheet>
                    <tab>
                        <icon>tab_main</icon>  -- This is the name of the image file
                        <subwindow>main</subwindow>  -- This must match the subwindow name above
                    </tab>
                    <tab>
                        <icon>tab_attributes</icon>
                        <subwindow>attributes</subwindow>
                    </tab>
                    <tab>
                        <icon>tab_skills</icon>
                        <subwindow>skills</subwindow>
                    </tab>
                    <tab>
                        <icon>tab_proficiencies</icon>
                        <subwindow>proficiencies</subwindow>
                    </tab>
                    <tab>
                        <icon>tab_maneuvers</icon>
                        <subwindow>maneuvers</subwindow>
                    </tab>
                    <tab>
                        <icon>tab_inventory</icon>
                        <subwindow>inventory</subwindow>
                    </tab>
                    <activate>1</activate>
                </tabs_charsheet>
    You have to define the icon names in graphics/graphics_icons.xml - look for this section and add the other tab names (which will need their own images):



    Code:
    <!-- Tab controls -->
        <icon name="tab_inventory" file="graphics/tabs/tab_inventory.png" />
        <icon name="tab_main" file="graphics/tabs/tab_main.png" />
    The icon name is what you referenced in the record_char.xml file, and file="..." is the location of the file.

    You have the right idea with copying and renaming the record_char_xxx files. At the top of the code, you need to rename the windowclass:

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    
    
    <!-- 
      Please see the license.html file included with this distribution for 
      attribution and copyright information.
    -->
    
    
    <root>
        <windowclass name="charsheet_main"> -- This name must match the class name in record_char.xml
            <margins control="0,0,0,2" />
            <sheetdata>
    
            </sheetdata>
        </windowclass>
    
    </root>


    Hope that helps...
    Last edited by leozelig; June 14th, 2015 at 12:57.

  6. #6
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    leozelig has just done pretty much teh same thing you are working on.
    He took a couple of other rulesets and modified and reworked and updated the code to produce a DCC ruleset so what he is saying is fresh off a developers still warm creative furnace

  7. #7
    All right, I'll try understanding this stuff. It's quite complicated, but now I'm doing it for fun not because I necessarily *have to*. Thanks

  8. #8
    leozelig's Avatar
    Join Date
    Jun 2007
    Location
    Eastern USA
    Posts
    1,856
    Blog Entries
    1
    You might want to look at template_char.xml, which defines many of the components on the character sheet. You are welcome to PM me if you want to break down specific parts of the character sheet more. Send me a chunk of code you are curious about or whatever...

  9. #9
    I found the file, and I see a lot of stuff in it, but I don't understand anything lol.
    I'll give this up for now, thanks for offering assistance anyway

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