Thread: Official MGT2e Bug Report Thread
-
June 11th, 2026, 15:58 #1581Zealot
- Join Date
- Apr 2020
- Posts
- 95
I have done the basic fixes to hide the armour and equipment sections for animals and robots. I'm also extracting the skill modifier for Melee (natural) skills. I'm NOT coding for the exceptions for which there are many, such as Melee (bite) or Melee (Bite and stomp) as I don't have a complete list of these and the code will become combersome. In these cases, either change the skill to Melee (natural) OR manually edit the attack mod field on the combat tracker prior to combat.
I've pushed a hotfix, please keep a lookout and let me know if the fixes are working as expected.Last edited by Toko Loshe; June 11th, 2026 at 16:08.
-
June 12th, 2026, 12:16 #1582
Excellent, don't worry about the exceptions.
When i make a new NPC, and switch the type from Nothing > Robot, i get this error in the console, and also if I then change it back to other Types.
[ERROR] Handler error: [string "MGT2:campaign/scripts/npcs_main.lua"]:75: attempt to call field 'setArmourVisible' (a nil value)
Initially the Armour and Protection fields aren't visible, although when I add a weapon, or lock the NPC and unlock it again, those fields appear.
if i fill in Armour and Protection, eg Hide & 4, then I lock the NPC, close it, then open it & unlock it again, the fields seem to empty themselves.
Also the + buttons for equipment seem to appear sometimes, when i do this.
Best regards
Nick Smith
-
June 12th, 2026, 12:28 #1583Zealot
- Join Date
- Apr 2020
- Posts
- 95
Thanks for the feedback, I'll have a look but it seems to be the initial script I added to set the visibility is not working with new npcs. Existing should work fine.
My initial fix did not take new records into account, I focussed on the existing npc records. I've moved the logic to show/hide the sections to the correct place and ensured the add buttons are not shown if the sections are not visible.Last edited by Toko Loshe; June 12th, 2026 at 12:53.
-
Yesterday, 21:12 #1584
Central Supply Catalogue 2023 Update uses "Heavy Weapons (portable)" skill for heavy weapons like Machinegun instead of "Heavy Weapons (man portable)" from Core Rules.
-
Yesterday, 23:15 #1585
-
Today, 02:25 #1586
I ran into some ERRORs and an oddity when creating a new NPC and set the Type to Humanoid.
I tried all the other NPC types and get the same error for all of them. Regarding the error, I am no longer seeing the Armour field on the NPC record sheet.Code:[6/13/2026 7:16:26 PM] [ERROR] Handler error: [string "MGT2:campaign/scripts/npcs_main.lua"]:75: attempt to call field 'setArmourVisible' (a nil value) [6/13/2026 7:16:26 PM] [ERROR] Handler error: [string "MGT2:campaign/scripts/npcs_main.lua"]:75: attempt to call field 'setArmourVisible' (a nil value)
===========
I am also seeing an empty box between the stat and roll fields on the NPC record which you can see below:
-
Today, 03:22 #1587Warrior-Priest
- Join Date
- Mar 2020
- Location
- Tasmania
- Posts
- 56
Stargrove the middle box is for equipment modifiers. When I get back home I’ll check my mod to see if the error is my fault.
-
Today, 05:08 #1588
-
Today, 07:39 #1589Zealot
- Join Date
- Apr 2020
- Posts
- 95
The UI layout is the best I could do while following the existing pattern, which unfortunately results in some overlap until it is resized. The error you are seeing should be resolved - please update Fantasy Grounds. I've tested with and without the UPP mod.
-
Today, 08:28 #1590Zealot
- Join Date
- Apr 2020
- Posts
- 95
Following a suggestion from Conspiracy, I've increased the minimumn width of the npc control and its looking better. I'll push the update next week.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote



Bookmarks