Log in

View Full Version : Kingdoms & Warfare



grandslayer
February 11th, 2022, 16:32
Not sure if this is the correct place to report, If not , feel free to delete.

I've just purchased the Kingdoms & Warfare Module from Steam and when I fired it up I noticed that there's no information for units traits and other things, also some features are not available as per screenshot attached below ( No button for Units, Traits, etc ) Maybe I'm missing a mod?

Thanks for the help!

51440

51441

Zacchaeus
February 11th, 2022, 17:44
I'll alert the developers.

grandslayer
February 11th, 2022, 18:01
I'll alert the developers.

Thanks for the quick reply :)

MeAndUnique
February 11th, 2022, 21:19
Hello, and sorry for the confusion. This is a result of the extension for the module not being loaded. The extension ought to be included and updated automatically alongside the module, however there is presently an error preventing it on the store that is being investigated. I will update this thread once that has been resolved, however in the mean time it is possible to get the extension manually from this location: https://github.com/MCDMFG/KingdomsAndWarfare/wiki

MeAndUnique
February 11th, 2022, 21:32
In fact, the issue has been resolved and the extension will automatically be downloaded the next time Check For Updates is run. The above link is still a useful resource for providing insight on everything the extension provides.

grandslayer
February 11th, 2022, 23:24
In fact, the issue has been resolved and the extension will automatically be downloaded the next time Check For Updates is run. The above link is still a useful resource for providing insight on everything the extension provides.

Rock On! Now it's working! Thanks for your quick solution!

jowenconnorton
May 4th, 2022, 23:16
Anyone else experiencing an issue with the Character Wizard when running the Kingdoms & Warfare extension? I'm getting this error code:

[ERROR] Script execution error: [string "charwizard/scripts/charwizard.lua"]:1074: attempt to index field '?' (a nil value)

It causes nothing from the character wizard except stats and name to be added to the character sheet when commit is pressed.

johncawks
May 23rd, 2022, 08:19
Bumping this because there's still issues with this product. The Regenerate trait seems to be activating twice per round. I've had it activate once before the unit's turn and then upon activation. Other times I've had it activate on the commanders turn, and then activate again on the next turn. https://i.imgur.com/Dk43qWS.gif here is a gif of the latter. You can see the CAS section increments twice in the same round.

Oh, and the character wizard was still broken as of last week when I tested it. And I can't add icons to new fortifications I build. I have to fiddle around with it by dragging already used icons from the pre-built fortifications (like stone fences) onto the new fortification, and then drag and drop the new icon into the slot to replace it.

There's also one more issue I've remembered: tokens don't seem to work at all. They'll apply their Effect and then immediately go away once the unit is activated, but don't actually deal the associated damage. Additionally, the latest version of K&W was updated to change tokens to a DC 12 Power Test at the end of the unit's activation to remove the token. Now I have no problem doing this this manually. But the incorrect automation is actually a hindrance when I've got a nearly a dozen units to keep track of and need to remember which units were hit with fire tokens and which weren't, and which ones took damage and which ones saved.

EDIT: I've done some more testing; so the tokens do apply damage, but they aren't written properly. It just applies the effect 'Fire'. Changing it to 'FIRE: 1' made it work. But that still leaves out the Power Test, and auto removes the tokens on Activation :(. Unfortunately I don't think this is something that's fixable on my side, as I believe this is the parser is reading 'adds fire token' to apply the 'Fire' effect, instead of 'FIRE: 1' effect.

Zacchaeus
May 23rd, 2022, 09:13
I'll alert the developers.

johncawks
May 23rd, 2022, 09:49
I'll alert the developers.

I appreciate it, thank you!

MeAndUnique
May 23rd, 2022, 18:54
Hey folks, my deepest apologies for not responding sooner, for some reason I was not receiving email updates to this thread.

Regarding the Character Wizard, unfortunately the Character Wizard itself is in a preview state and does not really work with third party content. However, we are aware of the error and are looking to at least prevent it from popping up.

Unit Regeneration and Fortification Tokens both appear to be working as intended when I test in a clean campaign that has only the Kingdoms and Warfare extension loaded. Perhaps there is a conflict with another extension, or there is a nuance to the interaction that is causing the problems that have been seen. With more information to produce the problems in a clean campaign we would be happy to look at solving these.

For tokens, indeed the Power Test addition from the latest revision to the book is failing for my tests and will be looked in to.

johncawks
May 26th, 2022, 06:10
Hmm, I don't even know where to begin with what could potentially be causing the Regeneration issue, or really the Fortification token issues. I'll do some more testing and find out.

EDIT
Actually I figured out exactly what it was with one restart. Turns out the Plugin Builder for 5e (https://forge.fantasygrounds.com/shop/items/457/view) was the culprit for the Regen bug. Very strange. I'll just turn it off then, no biggie.

NelsonDerLord
June 1st, 2022, 21:53
Hello, i hope this is the right place for this.

In my Fantasy Grounds Kingdom and Warfare version the Battle tracker jumps from unit to unit and not from commander to commander. It wouldn't be that bad, if the units it jumps to wouldn't be completely wrong. even jumping backwards in initiative. Is there a way to control this behavior and stop it from occuring?

MeAndUnique
June 4th, 2022, 10:47
Hello, i hope this is the right place for this.

In my Fantasy Grounds Kingdom and Warfare version the Battle tracker jumps from unit to unit and not from commander to commander. It wouldn't be that bad, if the units it jumps to wouldn't be completely wrong. even jumping backwards in initiative. Is there a way to control this behavior and stop it from occuring?

Hmm, my first thought on that is that it sounds like a conflict with another extension. Are you experiencing this with only the Kingdoms and Warfare extension loaded?

MeAndUnique
June 4th, 2022, 10:48
Hmm, I don't even know where to begin with what could potentially be causing the Regeneration issue, or really the Fortification token issues. I'll do some more testing and find out.

EDIT
Actually I figured out exactly what it was with one restart. Turns out the Plugin Builder for 5e (https://forge.fantasygrounds.com/shop/items/457/view) was the culprit for the Regen bug. Very strange. I'll just turn it off then, no biggie.

Huh, that is quite strange indeed. I'll take a look at getting the conflict resolved. Thank you for reporting back.

MeAndUnique
June 4th, 2022, 10:49
Compatibility with the Character Wizard has been fixed and submitted. It should be released in next Tuesday's updates.

skerbgs2
July 15th, 2022, 05:20
Just updated FGU and now the Kingdom and Warfare module breaks the Combat Tracker. When I try and drop an NPC onto the tracker I get the message:

[ERROR] Script execution error: [string "scripts/manager combat kw.lua"]179: attempt to call upvalue 'fAddNPC' (a nil value)

Tested with only K&W module loaded. Without module loaded - Combat Tracker works.

Saagael
July 15th, 2022, 15:18
Just updated FGU and now the Kingdom and Warfare module breaks the Combat Tracker. When I try and drop an NPC onto the tracker I get the message:

[ERROR] Script execution error: [string "scripts/manager combat kw.lua"]179: attempt to call upvalue 'fAddNPC' (a nil value)

Tested with only K&W module loaded. Without module loaded - Combat Tracker works.

I just submitted a hotfix for this. Let me know if you find any other issues

Moon Wizard
July 15th, 2022, 18:06
I just pushed the hot fix to the patch system.

Regards,
JPG

ChefboyArdy
October 12th, 2022, 20:32
Just got the module and I run into an issue when attempting to select a unit and it is placed in the new 'battle tracker', I get an error and a gui glitch. as shown below.

54673

54674

I have removes all other Features from it and all other 3rd party modules, ran continue to receive this error. Please help.

ChefboyArdy
October 12th, 2022, 20:44
I created my own post on the forum but it may be better if I go here. Every time I try and bring up a unit in the 'battle tracker' I get the "[ERROR] window: Control (divider3) anchoring to an undefined control (traits) in wincowclass (battletracker_unitsummary)"

and the trait is smushed and overlapping at the top of the window in the battle tracker window.

MOD: Merged with this thread. It now shows up as Post #20 in this thread.

Moon Wizard
October 12th, 2022, 20:48
I've forwarded your thread to the external developers who made this extension to take a look.

Regards,
JPG

Saagael
October 12th, 2022, 20:56
I created my own post on the forum but it may be better if I go here. Every time I try and bring up a unit in the 'battle tracker' I get the "[ERROR] window: Control (divider3) anchoring to an undefined control (traits) in wincowclass (battletracker_unitsummary)"

and the trait is smushed and overlapping at the top of the window in the battle tracker window.

Thanks for the report. Unfortunately I'm not able to reproduce this locally. A few questions that will help narrow down the issue:

Have you updated recently? If not, try updating and see if it still happens.
Did you get the product from the FG store or from Github?
Do you have any other extensions loaded?
Do you know when the last time this worked was?

ChefboyArdy
October 12th, 2022, 21:05
Thanks for the report. Unfortunately I'm not able to reproduce this locally. A few questions that will help narrow down the issue:

Have you updated recently? If not, try updating and see if it still happens.
Did you get the product from the FG store or from Github?
Do you have any other extensions loaded?
Do you know when the last time this worked was?

I have removed all extensions, ran updates multiple times, removed all other extensions and modules from the campaign. I had the unofficial version at one point not sure if I grabbed it from github or forge but I just got the official version from the FG Store and this is my first time really getting into it to prep for a session. I am pretty sure I deleted the extension of the unofficial from the store. Should I try and delete the Kingdoms and warfare extension and get it to reload with update? can I do that with the 5e extension as well?

thank you for a quick reply.

Saagael
October 12th, 2022, 21:10
I have removed all extensions, ran updates multiple times, removed all other extensions and modules from the campaign. I had the unofficial version at one point not sure if I grabbed it from github or forge but I just got the official version from the FG Store and this is my first time really getting into it to prep for a session. I am pretty sure I deleted the extension of the unofficial from the store. Should I try and delete the Kingdoms and warfare extension and get it to reload with update?

thank you for a quick reply.

If you were using the Github version before, I would recommend deleting it from your Extensions folder. In my experience FG tends to prefer extensions in that folder first, so it might be loading an older, out of date version from github.


can I do that with the 5e extension as well?

I'm not sure I understand the question. Could you elaborate?

MeAndUnique
October 12th, 2022, 21:16
Just got the module and I run into an issue when attempting to select a unit and it is placed in the new 'battle tracker', I get an error and a gui glitch. as shown below.

54673

54674

I have removes all other Features from it and all other 3rd party modules, ran continue to receive this error. Please help.

Edit: late to the punch, disregard :D

ChefboyArdy
October 12th, 2022, 21:56
Hey, that worked! I went through and made sure to delete all kingdom and warfare modules and extensions I could find and reupdated and now it is working. thanks alot!

Saagael
October 12th, 2022, 21:57
Hey, that worked! I went through and made sure to delete all kingdom and warfare modules and extensions I could find and reupdated and now it is working. thanks alot!

Glad to know it worked! :D

PolarBear70
November 6th, 2022, 05:12
Hi. Love the extension. I've run into a weird bug with it, though.

Whenever one of my players or I try to use the Level Up option in the character sheet, we run through the panels to do the level up, and then when we hit Commit, it keeps the character at the same level (unchanged) and it creates a NEW character with no level or class and just the attributes copied from the original character.

Screenshots below.

I've tried clearing my vault and restoring everything, and enabling and disabling the extension, and it's definitely only occurring if the extension is enabled.

55014
55015
55016
55017
55018

PolarBear70
November 6th, 2022, 05:13
55019
55020
55021

PolarBear70
November 6th, 2022, 05:35
More evidence of weirdness...

If I use the Character Wizard to create a new character and I have to pick a racial modifier to increase, I get these as options:

55022

The unit attributes are appearing as options for me to increase as stats. Not sure if that's supposed to happen or not.

Saagael
November 6th, 2022, 16:11
Hi. Love the extension. I've run into a weird bug with it, though.

Whenever one of my players or I try to use the Level Up option in the character sheet, we run through the panels to do the level up, and then when we hit Commit, it keeps the character at the same level (unchanged) and it creates a NEW character with no level or class and just the attributes copied from the original character.

Screenshots below.

I've tried clearing my vault and restoring everything, and enabling and disabling the extension, and it's definitely only occurring if the extension is enabled.

Thanks for the feedback! Do you have any other extensions enabled, or is it only K&W?

Also, did you get this from FG store, or github?

PolarBear70
November 6th, 2022, 16:24
My list of active extensions (besides K&W) is:

Feature: Aura Effects (v1.16-hotfix.2)
Feature: D&D - Official Language Font
Feature: Friend Zone (v1.2.1)
Theme: Hearth (Sir Motte's Magnificent Darkness, version Beta 2.9.13 - Philosophical Berserk)

I have other, unactivated ones. I am assuming that they shouldn't affect anything (but let me know if they might, and I can provide a list of those as well...)

Thanks for the quick reply!

edit: added "(besides K&W)" for clarity. :)

Saagael
November 6th, 2022, 16:43
My list of active extensions (besides K&W) is:

Feature: Aura Effects (v1.16-hotfix.2)
Feature: D&D - Official Language Font
Feature: Friend Zone (v1.2.1)
Theme: Hearth (Sir Motte's Magnificent Darkness, version Beta 2.9.13 - Philosophical Berserk)

I have other, unactivated ones. I am assuming that they shouldn't affect anything (but let me know if they might, and I can provide a list of those as well...)

Thanks for the quick reply!

edit: added "(besides K&W)" for clarity. :)

We're taking a look at this. The character wizard code is exceptionally complex and every update to it is likely to break K&W. In the meantime, I recommend disabling K&W while you level up, then enabling it afterwards.

PolarBear70
November 6th, 2022, 17:10
We're taking a look at this. The character wizard code is exceptionally complex and every update to it is likely to break K&W. In the meantime, I recommend disabling K&W while you level up, then enabling it afterwards.

Awesome, thank you. And yes, this was my thought for a workaround as well.

If you need any help with testing, please let me know.

MeAndUnique
November 6th, 2022, 19:00
Regarding the duplication of character entries, our investigation has shown that this is a result of recent changes to the ruleset and/or Fantasy Grounds itself as a platform. As such, it is beyond our ability to directly correct the situation and we will need assistance from @Moon Wizard. Specifically, on line 804 of charwizard.lua the current check for
if import == 1 then needs to be changed to
if self.import == 1 then. It is probable that a similar change should be made to all uses of script-level variables, given that if they are manipulated externally that value will be hidden by the simple presence of a merged addition in any extension.

Moon Wizard
November 6th, 2022, 21:47
I just pushed an update to the 5E ruleset to adjust the character wizard scripts to make indirect calls. The code was not written by myself, so I was scanning anything that looked similar to what you asked.

It's currently only available in the beta Test channel until v4.3.1 released.

Regards,
JPG

PolarBear70
November 7th, 2022, 16:39
Confirmed with a test on TEST channel this morning that this fix works. Levelling up characters and using the character wizard works with K&W now.

Thank you for all your help, everyone!