Thread: MoreCore Coding Tutorials
-
April 19th, 2020, 02:47 #71
-
April 22nd, 2020, 05:30 #72
Top Secret? Ooh, ah... haven't played that since puberty!
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
April 22nd, 2020, 20:23 #73
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
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:
Code:psrace = { Interface.getString("Reiklander"), Interface.getString("Dwarf"), Interface.getString("Elf"), Interface.getString("Hafling"), };
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>
[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:
[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)Last edited by ShakyLuigi; April 22nd, 2020 at 20:26. Reason: New error
-
April 23rd, 2020, 01:38 #74
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.
-
April 23rd, 2020, 11:29 #75
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
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.
-
May 5th, 2020, 23:32 #76
- Join Date
- Apr 2018
- Posts
- 40
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?
Last edited by Amatiste; May 6th, 2020 at 00:24.
-
May 6th, 2020, 01:18 #77
-
July 8th, 2020, 09:53 #78
- Join Date
- Aug 2019
- Posts
- 135
-
July 8th, 2020, 13:44 #79
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.
-
July 8th, 2020, 13:45 #80
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks