now I have a new problem, any info I put into the test character's skills will show up in a new character, and all of the changes is mirrored.
Attachment 16483
Printable View
now I have a new problem, any info I put into the test character's skills will show up in a new character, and all of the changes is mirrored.
Attachment 16483
Sounds like the database entries aren't being stored in the right place. Time to learn about FG's database!
Open up the campaign db.xml file in Notepad++ (or whatever you use to view XML) and look for where the data is being stored. Each should be in an individual <charsheet><id-XXXXX> section (XXXXX is the unique internal number FG uses to identify child records). So, PC one would be in <charsheet><id-00001>, PC 2 two in <charsheet><id-00002>, etc..
If it isn't then look at the <datsource> tag for the control - make sure it starts with a period, e.g. .skills - the period means that the database entry will be referenced from the main underlying database record the FG control is anchored to (usually the window data source). Without the period, the data will be stored in a single location at the root of the FG database - which might be what is happening here.
Info on the FG database here: https://www.fantasygrounds.com/modguide/database.xcp
Thank you, when I was reading your reply I remember, back when I was trying to get the list to show up on character creation delete the "dot" part from <datasource>.skillsTextlist</datasource>. But I'm back to the list not showing up on a new character without clicking in the frame.
but I have "list_text.lua" file and the line of code I am going to make my "common folder" copy the list_text file and in line 46 charge "w[sFocus].setFoucus(record_skillsText.xml);" or will this break other things that use this code?
43 function addEntry(bFocus)
44 local w = createWindow();
45 if bFocus then
46 w[sFocus].setFocus();
47 end
48 return w;
49 end
Where/how are you populating the skills list data? Sounds like you're populating the data within the onInit() function within the skills list control? If so, you might need to move that to the window that contains the control rather than within the control itself - so when the parent window is created the data is populated, not having to wait until it is clicked (or trying to force it with the setFocus command).
I'm not doing anything with the "list_text.lua" file as of yet. I took the codes from the "record_char_abilities.xml" and use it to make my "record_char_skills.xml" and "record_ability.xml" to make "record_skillsText.xml" as you suggested on 11/08/16. I have not touch any of the LUA scripts that are not in XML files not under the <script> tag.
I think you're doing what I was referring too - populating the data from lower down in the GUI, which doesn't happen until you use (gain focus) to the controls.
You didn't answer my main question - where and how are you populating the data for the records shown in the windowlist control? If the data doesn't show until you click in the frame, then that means that the data isn't being populated until that point.
I think it might be best for you to post the whole code you're using, and provide steps to recreate the problem - so we can see the big picture and not just try to talk in theory about what you need to do, as I think there is a misunderstanding/disconnect somewhere here.
Ok here is what I have.
base.xml file
record_char_skills.xmlCode:<?xml version="1.0" encoding="iso-8859-1"?>
<!--
Please see the license.html file included with this distribution for
attribution and copyright information.
-->
<root version="3.0" release="3" logo="logo.png">
<announcement text="Iron Kingdoms RPG by Privateer Press\rRuleset by: Carl Hawkins" font="emotefont" icon="rulesetlogo_CoreRPG" />
<!-- Attributes -->
<description>
<text>Iron Kingdoms</text>
<author>Carl Hawkins</author>
<website>https://www.fantasygrounds.com</website>
</description>
<!-- Layers -->
<importruleset source="CoreRPG" />
<!-- Tabletop settings -->
<includefile source="gameelements.xml" />
<!-- Graphics -->
<!-- Strings -->
<includefile source="strings/strings_ik.xml" />
<includefile source="strings/strings_ik-skills.xml" />
<!-- Campaign Records -->
<includefile source="campaign/record_char.xml" />
<includefile source="campaign/record_char_main.xml" />
<includefile source="campaign/record_char_skills.xml" />
<includefile source="campaign/record_char_abilities.xml" />
<includefile source="campaign/record_char_inventory2.xml" />
<includefile source="campaign/record_char_notes.xml" />
<includefile source="campaign/record_skillsText.xml" />
</root>
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_skills">
<margins control="0,0,0,2" />
<sheetdata>
<!--CCCCCCCC(skillSframe)CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-->
<frame_char name="skillSframe">
<bounds>13,0,242,476</bounds>
</frame_char>
<label_frametop>
<anchored to="skillSframe" />
<static textres="SkillsTitle" />
</label_frametop>
<list_text name="skillsText">
<anchored to="skillSframe">
<left offset="10" />
<top offset="25" />
<right offset="-20" />
<bottom offset="-15" />
</anchored>
<columns width="222" filldown="false" />
<datasource>.skillsTextlist</datasource>
<class>skillsText</class>
</list_text>
<scrollbar_list>
<anchored to="skillsText" />
<target>skillsText</target>
</scrollbar_list>
<!--CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-->
<!--CCCCCCCCC( Abilities )CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-->
<frame_char name="AbilitiesFrame">
<bounds>260,0,-20,-5</bounds>
</frame_char>
<label_frametop>
<anchored to="AbilitiesFrame" />
<static textres="baaTitle" />
</label_frametop>
<stringu name="Abilities">
<anchored to="AbilitiesFrame">
<top offset="30" />
<left offset="15" />
<right offset="-20" />
<bottom offset="-15" />
</anchored>
<multilinespacing>20</multilinespacing>
</stringu>
<scrollbar_list>
<anchored to="Abilities" />
<target>Abilities</target>
</scrollbar_list>
<!--CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-->
</sheetdata>
</windowclass>
</root>
record_skillsText.xml (had to shortin to post)
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="skillsText">
<placement>
<size width="240" height="1760" />
</placement>
<!--CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-->
<sheetdata name="skillsTextlist">
<anchor_column name="columnanchor" />
<!--Skills/Skills/Skills/Skills/Skills/Skills/Skills/Skills/Skills/-->
<label_column name="Skill_label">
<static textres="Alchemy" />
<bounds>0,5,153,15</bounds>
</label_column>
<number_columnh name="Int-stat">
<bounds>159,5,6,15</bounds>
<hideonvalue >0</hideonvalue>
<nokeyedit />
</number_columnh>
<label_column name="plus_label">
<static textres="plus" />
<bounds>169,5,15,15</bounds>
</label_column>
<number_columnh name="Alchemy-rnk">
<bounds>181,5,6,15</bounds>
<hideonvalue >0</hideonvalue>
</number_columnh>
<label_column name="equl_label">
<static textres="equl" />
<bounds>191,5,15,15</bounds>
</label_column>
<number_columnh name="Alchemy-tot">
<bounds>202,5,6,15</bounds>
<hideonvalue >0</hideonvalue>
</number_columnh>
<!--Skills/Skills/Skills/Skills/Skills/Skills/Skills/Skills/Skills/-->
<!-- had to short this one to post -->
</sheetdata>
</windowclass>
</root>
Can you provide the whole ruleset and steps to reproduce the issue? Thanks.
ok here is the pak file.
Attachment 16537