Will do:) thanks
Printable View
Top Secret? Ooh, ah... haven't played that since puberty!
Okey, now I am kinda stuck at several places. First thing first, a combo box.
So I've added the combo box code from CoreRpg into my extension:
Code:<combobox name="checkselected">
<anchored to="characterinfo" position="insidetopleft" offset="25,0" width="100" height="20" />
<default textres="ps_default_groupability" />
<gmvisibleonly />
<script>
function onInit()
super.onInit();
addItems(DataCommon.psrace);
end
</script>
</combobox>
Then I've added the script and given it the name "DataCommon", and under "psrace" I've added the following:
THEN I've added some strings in my string file.Code:psrace = {
Interface.getString("Reiklander"),
Interface.getString("Dwarf"),
Interface.getString("Elf"),
Interface.getString("Hafling"),
};
And now I get the following error:Code:<root>
<!-- Common -->
<string name="Reiklander">Reiklander</string>
<string name="Dwarf">Dwarf</string>
<string name="Elf">Elf</string>
<string name="Hafling">Hafling</string>
<string name="ps_default_groupability">Reiklander</string>
</root>
I belive the strings are correct as it can find the "ps_default_groupabilty" string and add Reiklander as the default choice.Quote:
[4/22/2020 9:05:01 PM] [<color="red">ERROR</color>] Failed script initialization (DataCommon): [string "scripts/data_common.lua"]:4: attempt to index global 'Interface' (a nil value)
And now I don't know where to keep on troubleshooting.
EDIT: Just got another error:
Quote:
[4/22/2020 9:23:28 PM] [<color="red">ERROR</color>] Script execution error: [string "common/scripts/combobox.lua"]:337: bad argument #1 to 'ipairs' (table expected, got nil)
Hey Shaky
I am unable to make any time to help you on this debugging right now
FYI I will be making a Races tool, similar to Classes, for MoreCore very soon.
No worries. I'm just happy you've helped me so much allready.
I have plenty of other things I need to do with the extension, so maybe I'll get some ideas for troubleshooting through that.
Damned, Quick question. I copied and renamed the file record_char_notes in Morecore/campaign to be able to change things for the Top Secret sheet I am working on, where do you put your own version for the extension? Do you make a campaign folder?
FG uses several different file extensions
.pak is for rulesets
.ext is for extensions
.mod is for modules
.ppk is for portraits
All of them are actually ZIP files. If you install 7zip it will recognise files as such.