copying to a local variable, then replacing worked for me. thanks!
do you know what event is triggered when the players logistic request/auto trash slots are modified?
There is none.
So if I want to do something when that happens, I would need to use on_tick and then somehow check if the slots ...
Search found 5 matches
- Tue Jun 06, 2017 7:32 am
- Forum: Modding help
- Topic: Having trouble modifying player.auto_trash_filters
- Replies: 5
- Views: 2407
- Mon Jun 05, 2017 10:54 pm
- Forum: Modding help
- Topic: Having trouble modifying player.auto_trash_filters
- Replies: 5
- Views: 2407
Re: Having trouble modifying player.auto_trash_filters
copying to a local variable, then replacing worked for me. thanks!
do you know what event is triggered when the players logistic request/auto trash slots are modified?
do you know what event is triggered when the players logistic request/auto trash slots are modified?
- Mon Jun 05, 2017 9:04 pm
- Forum: Modding help
- Topic: Having trouble modifying player.auto_trash_filters
- Replies: 5
- Views: 2407
Having trouble modifying player.auto_trash_filters
the example from the API works as intended, fully replaces the current auto trash with what is in the new table.
game.player.auto_trash_filters = {["iron-plate"] = 20, ["copper-cable"] = 42}
But I can't seem to modify the existing table, only replace it.
game.player.auto_trash_filters["iron ...
game.player.auto_trash_filters = {["iron-plate"] = 20, ["copper-cable"] = 42}
But I can't seem to modify the existing table, only replace it.
game.player.auto_trash_filters["iron ...
- Tue Nov 18, 2014 6:52 am
- Forum: Resolved Problems and Bugs
- Topic: [0.11.3] Multiplayer game crashes when anyone takes damage.
- Replies: 4
- Views: 3236
Re: [0.11.3] Multiplayer game crashes when anyone takes dama
So deleting everything from my %appdata% folder fixed the problem.
I'd guess I had some files from an older version or something.
EDIT:
Actually this was only a temporary fix, after a few days, the problem arose again, and I had to do a fresh install. So it looks like that's a workaround, but it ...
I'd guess I had some files from an older version or something.
EDIT:
Actually this was only a temporary fix, after a few days, the problem arose again, and I had to do a fresh install. So it looks like that's a workaround, but it ...
- Sun Nov 16, 2014 5:54 am
- Forum: Resolved Problems and Bugs
- Topic: [0.11.3] Multiplayer game crashes when anyone takes damage.
- Replies: 4
- Views: 3236
[0.11.3] Multiplayer game crashes when anyone takes damage.
Me and my friends are trying to get an online game going, and I'm running into this strange problem.
Only my client will crash when someone takes damage and then stops (it crashes after they are done taking damage).
It happens regardless of who is hosting, or what map we are on. If I am playing ...
Only my client will crash when someone takes damage and then stops (it crashes after they are done taking damage).
It happens regardless of who is hosting, or what map we are on. If I am playing ...