FG Spreadshirt Swag
Page 5 of 11 First ... 34567 ... Last
  1. #41
    Thanks Damned - Whatever you did worked perfectly!
    Ultimate License Holder
    Preferred Games: D&D5E
    Timezone: Normally US Central Time but often times others...

  2. #42
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    The error was...

    \Fantasy Grounds\extensions\MCDbD\common\record_npc.xml
    Code:
      
    	Line 270: 						NPCManager.getThac0(rActor)
    	Line 276: 						NPCManager.setNPCSave(rActor, nHD);
    \Fantasy Grounds\extensions\MCDbD\extension.xml
    Code:
    	Line 52: 		<script name="NPCManager" file="common/scripts/npc_more.lua" />
    All references to NPCManager should be NPCManager2

    I suspect Ive made this error in a few other extensions too...

  3. #43
    Interesting, it is those tiny little guys that are tough to catch. Thanks again!
    Ultimate License Holder
    Preferred Games: D&D5E
    Timezone: Normally US Central Time but often times others...

  4. #44
    Hi,

    I am trying to emulate what you are doing in the videos. They are a great resource for someone like me, who has never ever done a single line of coding before.
    But I am getting stuck at the part where you are changing the size of the Attackframe. I'm just not able to change the size of it. I have gone through your videos and your source files multiple times and I am not able to see what I am doing wrong.
    I have even gone into the ruleset and changed the values in the Attackframe directly there, and nothing happened.

    But what I find odd is that the changes for the other elements in the extention file functions. Even the new "statsframe" shows up. I can change the size and position of that just fine.

    I haven't done everything you've done in the videos, as I've basically jumped to video 10 and tried to change the size of the attackframe. So maybe I am missing a XML file I should have made. Could you just take a minute to point me in the right direction?

    This is what I've written in the record_char_more.xml file, and I have underlined part of the code which should change the size of the attackframe:

    Code:
    <?xml version='1.0' encoding='ISO-8859-1'?>
    
    <root>
    <!-- New WindowClass "charsheet_more" -->
    	<windowclass name="charsheet_more" merge="join">
    		<sheetdata>
    	
    <!--Change Health to HP -->
    		<string_useredit name="pc_label_health" merge="join" >
    			<default>HP</default>
    		</string_useredit>
    		
    <!--Change Defence to AC-->
    		<string_useredit name="pc_label_defence" merge="join" >
    			<default>AC</default>
    		</string_useredit>
    	
    <!-- Change Order to Init -->
    		<string_useredit name="pc_label_order" merge="join" >
    			<default>Init</default>
    		</string_useredit>
    	
    <!-- Change Size of Attack Frame -->
    			<frame_char_switch_attacks name="attackframe" merge="join">
    				<!--<bounds>15,45,-190,120</bounds>-->
    				<anchored position="insidetopleft" offset="15,75">
    					<right anchor="center" offset="70" />
    					<bottom anchor="top" offset="215" />
    				</anchored>
    			</frame_char_switch_attacks>
    		
    	
    <!--New Stats Frame -->
    		<frame_char_switch_notes name="statsframe">
    			<!--<bounds>15,45,-190,120</bounds>-->
    			<anchored position="insidetopleft" offset="15,0">
    				<right anchor="center" offset="70" />
    				<bottom anchor="top" offset="75" />
    			</anchored>
    		</frame_char_switch_notes>
    		
    		</sheetdata>
    	</windowclass>
    </root>

  5. #45
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    Many apologies ShakyLuigi

    Some things evolve over time and some things have two ways to handle them.
    In this case if you have a look right at the top of the file approx Ln 19 you will see that frame size is being set in Lua.
    Its doing that to help the page resize nicely when someone adjusts its dimensions on the fly.

    What are you building?

  6. #46
    Thank you for the quick reply. And no apolgies necessary, can't expect a project like MoreCore to stay unimproved over time.

    I found the line you were talking about, and I can see that it does something with the attackframe and combatframe. I will see what fun can be had with this information.

    Building is probably a bit ambitious considering my level. I am just trying to adjust the character sheet to handle WRFP 4th until (hopefully) someone more skillfully creates a ruleset for it.

  7. #47
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    I think WFRPv4 woudl be relatively straight forward to code the core mechanics on top of MoreCore
    By that I mean - go for it - I reckon you will be able to get something workable going!

  8. #48
    Just wanted to let you know I managed to change the size of the Attackframe. Though I had to change it via the ruleset, not the extension. That was a bit beyond what I understand, but it was a way to move on to the other elements I want to change/add.

    If I were to need some more help, is this thread a good place to ask you for it, or are there other channels which are more preferable? Or maybe you are a bit busy for this kind of project?

  9. #49

  10. #50
    Okey, I've been working a bit on this extenstion now. And I'm happy with the progress so far.
    But sometimes something weird happens. The text that I want to come up in the character sheet comes up with different text (see picture). SkillsFrame.PNG

    The text shows as "AdvBasic Skills". And I don't understand why.

    This is my code for the frame and text:
    Code:
    <!--Basic Skills Frame -->
    		<frame_char_switch_notes name="skillsframe">
    			<!--<bounds>15,45,-190,120</bounds>-->
    			<anchored to="statsframe" position="below" offset="0,0">
    				<right anchor="center" offset="170" />
    				<bottom anchor="top" offset="375" />
    			</anchored>
    		</frame_char_switch_notes>
    		
    		<string_useredit_bold name="basicskills" source="basicskills">
    				<anchored to="skillsframe" />
    				<default>Basic Skills</default>
    				<tooltip textres="label_editable_stats" />
    		</string_useredit_bold>
    The same with the "Athl" which should read "Athletics.
    Again my code beneath.

    Code:
    <!-- Athletics -->
    <string_useredit name="athletics">
    		<anchored to="art" position="below" offset="0,10" />
    		<default>Athletics</default>
    		<tooltip textres="label_editable" />
    	</string_useredit>
    I am using copy/paste alot here, so there might be something in the "string_useredit" I don't know about. Heck, I don't even know what "string_useredit'" is!

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
  •  
STAR TREK 2d20

Log in

Log in