Avorion

Avorion

Arsenal Extension - Helix Cannon
7 Comments
KnifeHeart  [author] 23 Jan, 2024 @ 12:32pm 
Issue w/ Alliances should be fixed. Please let me know if it's not.
KnifeHeart  [author] 17 Jan, 2024 @ 11:27pm 
I guess you can tell I don't use alliances much, lol. Thanks for pointing me to the specific line.
KnifeHeart  [author] 17 Jan, 2024 @ 11:20pm 
I'll take a look at it sometime later this week.
[uRxP]DrChocolate 17 Jan, 2024 @ 10:33pm 
Hi @KnifeHeart, @Bugget! is right - you have an issue in your code:

data\scripts\entity\merchants\fighterfactory.lua line 8:

local turret = Player():getInventory():find(idx)

If the turret is actually in the inventory of an alliance, instead of the player, this will be nil. It then passes the nil object down the chain to other consumers of the function, which causes an error.

This means that no player can build fighters from an alliance ship/inventory, clicking the button will silently fail.
Bubbet! 27 Dec, 2023 @ 9:18pm 
You need to account for alliances in your fighter factory hook, it throws with nil value on line 9 because it cant find the turret.
KnifeHeart  [author] 1 Aug, 2021 @ 5:31pm 
This mod is now 2.0 compatible.
TESLA 6 Jul, 2021 @ 1:43pm 
Cool stuff!