[Rseding] [1.1.36] gui_type.bonus not actualized when changing Force bonuses

Post Reply
Hanakocz
Inserter
Inserter
Posts: 39
Joined: Sun Jun 24, 2018 7:06 pm
Contact:

[Rseding] [1.1.36] gui_type.bonus not actualized when changing Force bonuses

Post by Hanakocz »

Hello,
If you have Bonuses Gui opened and bonuses for your force change their values, the Gui won't get updated to new values.
Currently the update of values happens only when research changes (research finished or unresearched, including changes via command), or when closing and reopening the Gui. Changing Surfaces also updates the Gui, as that closes and reopens it.
Tried methods of changing values:
- Editor interface to change properties of force
- Commands or script to change properties (e.q. /c game.forces.player.set_ammo_damage_modifier('bullet', 1) )
- force.reset_technology_effects()


Proposed fix: call update function on this gui when command successfully changes the values of shown bonuses, or when values gets saved in Editor interface, so they actualize same as when research finishes.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding] [1.1.36] gui_type.bonus not actualized when changing Force bonuses

Post by Rseding91 »

Thanks for the report. This is now fixed for 2.0.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Fixed for 2.0”