Log in

View Full Version : Error during Ship Combat using NPC as Gunner



jrawly
July 25th, 2022, 00:08
Summary:
When using an NPC as a gunner, any attempt at an attack roll causes an error to occur, and no attack.

The error is "Script execution error: [string "scripts/manager_action_shipattack.lua"]:107: attempt to concatenate a nil value"
This is reproducible after restarting FGU.


Ruleset(s):
StarFinder

Extensions/Themes:
None

Modules Loaded:
"Dead Suns, Part 1, Incident at Absalom Station"
"Dead Suns, Part 1, Incident at Absalom Station, Player's Resources"
"Dead Suns, Part 2, Temple of the Twelve"
"Dead Suns, Part 2, Temple of the Twelve, Player's Resources"
"Dead Suns, Part 3, Splintered Worlds"
"Dead Suns, Part 3, Splintered Worlds, Player's Resources"
"Dead Suns, Part 4, The Ruined Clouds"
"Dead Suns, Part 4, The Ruined Clouds, Player's Resources"
"Dead Suns, Part 5, The Thirteenth Gate"
"Dead Suns, Part 5, The Thirteenth Gate, Player's Resources"
"Dead Suns, Part 6, Empire of Bones, Player's Resources"
"Starfinder Core Rulebook"
"Starfinder Tech Revolution"

Operating System / Language Setting:
Windows 10 / English UK

Steps to Reproduce:
Have any NPC, this can be an NPC from the loaded modules, or a custom one. I have attached the custom NPC as a mod for reference.

Prepare ships for your players, and associate the NPC to the ship on the Ships tab in the party sheet.
Open the "Crew Actions" for the NPC, and select the Gunner as the role.
Choose the weapon to shoot, with or without an arc ( I found on replication, the arc not being selected did not matter ) and click the dice icon to roll the attack.

Note that the console opens with the error.

ANY action that uses a weapon, including the Snap Shot, causes this error.

----

Additionally, I think that the stats from the NPC are not pulled across correctly for the combat actions - for example, ALL the combat actions for the NPC were showing a 7 as the roll, when this is not correct.
----

FGU: v4.2.2 Ultimate (2022-06-07)

superteddy57
July 25th, 2022, 00:52
I would need to know the ship the NPC was on or a sample of the ship to test against.

jrawly
July 25th, 2022, 01:07
Any ship.
But in my current game, the ship is the Hippocampus, from the module "Dead Suns, Part 1, Incident at Absalom Station"

superteddy57
July 25th, 2022, 04:51
Thanks, I'll have a look.