PDA

View Full Version : Change Attack Type Error



Mike Serfass
March 7th, 2024, 16:46
I'm using the SWADE ruleset, no extensions.
When changing an attack type of a weapon on the Combat tab, I get
[string "SavageWorlds:campaign/scripts/attack.lua"]:21: attempt to index global 'main' (a nil value)

This also happens for powers when changing the linked arcane background.
The log is attached.

Let me know if you need any more information. I can go through the SWADE code to debug, if you like.

Moon Wizard
March 7th, 2024, 21:11
Just pushed a hot fix for this issue.

Regards,
JPG

Mike Serfass
March 8th, 2024, 00:55
That didn't do it. :(
I made sure
I'll send a new log file after game.

I don't envy you the long day you're having.

Moon Wizard
March 8th, 2024, 02:06
Yeah, send me the log file. That should have fixed the original one, but there might be others.

Thanks,
JPG

Mike Serfass
March 8th, 2024, 15:40
Here's the log file.
Interesting clues:
If I leave the attack window open then restart the campaign, changing the attack type does not throw the nil error.
If I close that attack, reopen it, then change the attack type, it still does not throw the error.
Opening a different attack still does throw the error.
If I close the first attack window, restart the campaign, open that attack, it goes back to throwing the error.
If I have open the main attack window (using the far right button), and have open the attack info sub window (using the right click option), both pointing to the same attack, changing the attack type in one window does not update the other window. Maybe a missing listener is the culprit?

If that's not clear enough I'll do screen shots.

Thanks!

Moon Wizard
March 9th, 2024, 02:35
Okay, just pushed another hot fix for this new error. Please run a new Check for Updates.

Regards,
JPG

Mike Serfass
March 9th, 2024, 18:16
That resolved the error. I tested attacks and powers. Thank you!