[1.1.55] Can't change artillery wagon's force

This subforum contains all the issues which we already resolved.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[1.1.55] Can't change artillery wagon's force

Post by Muppet9010 »

You can't change an artillery wagons force via Lua API script. It accepts the request, but the force doesn't change.

1: Load save:
arty wagon force test.zip
(1.12 MiB) Downloaded 113 times
2: script to change the force of the player selected entity:

Code: Select all

/c
local carriage = game.player.selected
game.print("pre: " .. carriage.force.name)
carriage.force = game.forces.enemy
game.print("post: " .. carriage.force.name)
3: Hover over the locomotive and cargo wagon and run the above script in console. The force will change as expected.
4: Hover over the artillery wagon and run the above script in console. The force of the artillery wagon won't change, but no error occurs either.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14248
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.55] Can't change artillery wagon's force

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”