Fantasy Grounds Merchandise
  1. #1121
    Wow, that sounds quite complex. Thank you, it will definitely help. I’ll try to adapt it to what I need in the end. If you’re interested, I can send it to you when I’m done!

  2. #1122
    Quote Originally Posted by Elawyn View Post
    Hi all, I just stumbled over an issue, perhaps since last update: I have created a subwindow for my NPC Sheet and -as usual before in RW- binded it with the Tab Template, like in Charsheet as I did several times before. Worked fine until last update. But now, the self-made Tab and the binded subwindow are not shown. I might be wrong, but Moon Wizard told something about the new structure and NPC sheet is already changed to the new settings. I don`t know how to change my tab to reach my new subwindow again or how to rename. Is there a possibility? For my understanding it should be an easy renaming ?

    Regards
    Elawyn

    as a workaround I overwrite this snippet from record_npc.xml and added my Tab/ Subwindow

    <root>
    <windowclass name="npc" copy="record_window_tabbed">
    <minimize>minimized_npc</minimize>
    <gmexport>npc</gmexport>
    <tab>
    <name>main</name>
    <resource>tab_main</resource>
    <class>npc_main</class>
    <embed/>
    </tab>
    <tab merge="add">
    <name>notes</name>
    <resource>tab_notes</resource>
    <class>record_content_notes</class>
    <embed/>
    </tab>
    <tab merge="add">
    <name>spells</name>
    <resource>tab_spells</resource>
    <class>npc_spells</class>
    <embed/>
    </tab>
    </windowclass>
    </root>

    this works, but what do I missing, using the RW functionallity? the wording is the same...
    Did someone ever answer this question a few pages back? I am also curious how to add a new tab to a record window, preferably without having to mess with xml using this Ruleset Wizard.

    I am trying out the demo and following Damian's Ruleset Wizard Extension Tutorial and the second video isn't working for me where a tab is added. Even though it bugs out and is presumably fixed in future tutorials, it at least adds the tab and is overriding the original functionality, but it doesn't even do that for me. I'm guessing the way tabs work has been recently changed to involve this record_window_tabbed thing that I can't seem to find on the internet except for in this thread a couple pages back and another thread also in 2024, so it's got to be recent, I'm guessing. Is there a way to work around it with Ruleset Wizard currently so I can keep going on in the tutorial?
    Last edited by SieferSeesSomething; September 20th, 2024 at 21:41.

  3. #1123

  4. #1124
    Oh wow, it must be fresh then. I suppose I'll just keep an eye on this thread, and wait for people smarter than myself, like you or psicodelix, to figure it out.

    Do you think the Ruleset Wizard would still be useful to learn or does that signify other parts of the code have changed too much, and I should wait for some patches for the Ruleset Wizard before I jump in and try to figure it out? Was hoping to use it to help make extensions for existing rulesets. I was learning how to do it manually through XML and Lua before, and I could keep doing that, but this looks like it could really speed the workflow up.

    For example, D&D 4th edition doesn't have classes, races, backgrounds, skills, etc, in the sidebar for some reason like other rulesets do, just feats and powers. I was thinking I could possibly use this tool to help mimic that behavior as an extension (and it'd be even more awesome if I could make it so you can drag them onto a character sheet to add them, too). I've got other ideas, but that's probably the next online campaign I'll run, so anything that speeds up the process to make extensions for it sounds tempting.
    Last edited by SieferSeesSomething; September 21st, 2024 at 01:25.

  5. #1125
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,097
    Blog Entries
    1
    You may have to do the tabs manually in XML (you can create manual XML files in your project via the RSW still) at this time.
    Not only have tabs changed but they have not changed across all things at the same time.
    Some have new tabs, some have old tabs and I think some might even be in a transitional state too right now.

  6. #1126
    Hi, also after the last update, where the "npc_pictures" tab occurs, you need to set a xml based vertical tab additionally. But only for npc sheet.

    xml_example.png

    As Damned mentioned, you have to do a xml script. In my example you can see, it is very easy inside the Ruleset Wizard to create a new xml file an put your code in. I underlined my own code snippet inside the core template, you have to override. This example works, if you only want to add a vertical tab on npc sheet, take it and customize it into your wording. All the other tab functionalities are working in Ruleset Wizard without coding. If that was still familiar , I am sorry!

  7. #1127
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,097
    Blog Entries
    1
    Great work! One small suggestion Elawyn - consider naming the file something like npc_tabs.xml - the word script might confuse you or someone else at a later time.

  8. #1128
    Hi Damned, thanks for the hint. I will do.

  9. #1129
    Hello again.
    I keep working on my ruleset, and have new porblem. I used the standard version with a character sheet that uses "SubWindow". I have charsheet. it has a subwindow. For work, I use charsheet_main and charsheet_weapon, which are switched via verticalTab. charsheet_weapon has a windowlist called weapon_detail. it contains a weapon_detail object. There is a fight cell in weapon_detail. I need to get the value of the Fight_current cell from charsheet_main and assign it to the fight cell from weapon_detail. I used like:

    1.local nodeCharSheetMain = window.getDatabaseNode("charsheet_main");

    2. local nodeWin = window.getDatabaseNode();
    local nodePath = nodeWin.getPath();
    local nodeList = nodeWin.getParent().getParent()

    and numerous variation of that codes. But it didnt work. I know, i can put Fight_current cell in window list to set value, but i need to keep it on charsheet_main. Is there any solution of this problem?

    thanks a lot!

  10. #1130
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,097
    Blog Entries
    1
    Dont get it from the Window. Get it from the database.

    Something like:

    Code:
    local nodeChar = window.getDatabaseNode();
    Debug.chat("nodeChar: ", nodeChar);
    
    local nFight = DB.getValue(nodeChar, "fight_curr", 0);
    Debug.chat("nFight : ", nFight );

Page 113 of 114 First ... 1363103111112113114 Last

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 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
  •  
Cosmere RPG Beta Launch

Log in

Log in