Server stalled when saving the map. I was still getting messages when people leave, though.
http://imgur.com/a/OWvN7
Attached is the log
[Rseding91] Game stalls when saving map
[Rseding91] Game stalls when saving map
- Attachments
-
- factorio-current.log
- (3 MiB) Downloaded 85 times
Re: Game stalls when saving map
Thanks for the report. The log file shows that the server errored due to a script error in the "dangOreus.lua" file and at that point it stopped processing the game.
The bug appears to be it didn't kick everyone out of the game at that point.
The bug appears to be it didn't kick everyone out of the game at that point.
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] Game stalls when saving map
The script uses try/catch logic to prevent errors from halting the game so that should not have been a problem.
The event in question is on_chunk_generated, so for some reason it's passing a 0 size area (event.area.left_top == event.area.bottom_right) which I did not account for.
The event in question is on_chunk_generated, so for some reason it's passing a 0 size area (event.area.left_top == event.area.bottom_right) which I did not account for.
Re: [Rseding91] Game stalls when saving map
Curious: why pcall everything in your mod? Surely it's better to crash and be notified that the mod is broken than for it to silently write errors to the console and just not work for random people.Mylon wrote:The script uses try/catch logic to prevent errors from halting the game so that should not have been a problem.
The event in question is on_chunk_generated, so for some reason it's passing a 0 size area (event.area.left_top == event.area.bottom_right) which I did not account for.
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] Game stalls when saving map
When running a server with 20 people using code from multiple authors, it's better that 1-2 functions error than the whole server is brought down.
These mods can be difficult to test, and in many cases they result in non-critical errors.
For example, dangOreus destroys most entities when placed on ore, then autofill checks those entities to see if it's a gun turret and if so insert ammo. As the entity is already destroyed, this causes an error. But not inserting ammo into a dead entity has no effect on the game. (I fixed it anyway to keep the log clean)
The other error involves changing map generation. I was not expecting it to be passed a chunk with 0 area, and when this happens it causes an error but it appears to be non-critical.
These mods can be difficult to test, and in many cases they result in non-critical errors.
For example, dangOreus destroys most entities when placed on ore, then autofill checks those entities to see if it's a gun turret and if so insert ammo. As the entity is already destroyed, this causes an error. But not inserting ammo into a dead entity has no effect on the game. (I fixed it anyway to keep the log clean)
The other error involves changing map generation. I was not expecting it to be passed a chunk with 0 area, and when this happens it causes an error but it appears to be non-critical.
Last edited by Mylon on Thu Jun 29, 2017 1:04 pm, edited 1 time in total.
Re: [Rseding91] Game stalls when saving map
The game never passes a chunk with a zero-area size. That must be some other mod calling the event manually or there's some serous error happening.Mylon wrote:The other error involves changing map generation. I was not expecting it to be passed a chunk with 0 area, and when this happens it causes an error but it appears to be non-critical.
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] Game stalls when saving map
Rereading the code, the bug was when placing an entity with 0 bounding-box size, not during map genertion. I'll fix that one. Thanks for your help.
(Again, non critical error so it has no effect on the game)
(Again, non critical error so it has no effect on the game)
Re: [Rseding91] Game stalls when saving map
This should be fixed in 0.16. If it happens again once it's released let us know.
If you want to get ahold of me I'm almost always on Discord.