When using /swap-players undo queues are now also swapped.
Improve performance of querying if an entity is registered for deconstruction from O(N) to O(1).
Adjusted default music volume.
Bugfixes
Fixed that if biters took damage from a forest fire, they would path toward the player who started it, no matter the distance. more
Fixed that replacing a tile between a colliding hidden tile (with check_collision_with_entities set to true) and an entity would not yield an item.
Fixed that LuaGameScript::ban_player would incorrectly use reason as a player name when given player was never in game. more
Fixed that the saving progress bar and other popups were placed behind the transparent pause overlay. more
Fixed a scenario could be created with temporary-state trains which were not properly deleted. more
Fixed a crash when using --map-settings while loading a multiplayer map. more
Fixed that trying to manually mine a resource that needs a mining fluid would sometimes produce sound of mining. more
Fixed script rendered arcs could be considered invisible when they were visible. more
Fixed that LuaEntity::belt_neighbours would return LuaEntity based on EntityGhost's inner entity, not the EntityGhost itself. more
Fixed fish preventing tiles building with check_collision_with_entities enabled.
Fixed that trains would not account for the train stop snap distance when already at the train stop with the back of a train. more
Fixed the intro music volume being set incorrectly.
Fixed that --start-server-load-latest when given an empty saves folder wouldn't work correctly. more
Fixed missing efficiency tooltip and incorrect fuel consumption tooltip value in generator equipment with burner energy source.
Fixed ghost electric poles connecting to ghost electric poles of other forces. Neutral force is exempt from this change. more
Fixed that biters would sometimes prefer running away over choosing another target. more
Fixed trains pathfinder would crash when a train is in a loop next to segment end and was requested to go to rail target in the middle of a loop. more
Fixed multi-level technologies showing the same saved progress in technology GUI. more
Fixed an icon of recipe notification on item group would show even if there are no recipes visible in a given context. more
Fixed a crash when defining too many icon variations. more
Fixed changing station name with rich text tags could crash when moving cursor by words. more
Fixed LuaBurner::inventory did not work correctly for some burner-energy-source entities. more
Fixed a crash caused by undoing an entity deconstruction which another player already cancelled. more
Modding
Added EntityPrototype::protected_from_tile_building, true by default. If set to false - entity won't block tile mining/building (with `TilePrototype::check_collision_with_entities` enabled).
Added LandMinePrototype::trigger_collision_mask.
Added EntityWithOwnerPrototype.
Added EntityWithOwnerPrototype::is_military_target and allow_run_time_change_of_is_military_target.
SimpleEntityWithForce now inherits from SimpleEntityWithOwner.
SpiderEnginePrototype::military_target is no longer used. If anything is provided it will make related SpiderVehiclePrototype to become a military target instead.
Added LuaEntity::is_military_target read. This deprecates LuaEntity::is_entity_with_force.
Added LuaEntityPrototype::is_entity_with_owner, is_military_target and allow_run_time_change_of_is_military_target read.
Added LuaEntity::get_spider_legs().
Added LuaEntity::neighbours read for cliffs.
Version 1.1.50 released
Minor Features
The permissions list in the permissions GUI can now be localised.
Removed feature where reactor collision box would increase when connected to neighbouring reactor (character can now walk in-between connected reactors)
Bugfixes
Fixed that biters could get stuck trying to attack an entity they were standing on. more
Fixed issue regarding placing an electric pole over a ghost of an electric pole connected to an enabled power switch. more
Fixed a crash related to units and mod events. more
Fixed ghost entities of other forces being considered valid drop targets. more
Fixed ghost electric poles connecting to electric poles of other forces. Neutral force is exempt from this fix, it can connect to everything. more
Fixed that LuaEntity::disconnect_neighbour was unable to disconnect specified pair of electric poles when they were on different surfaces.
Fixed that on_game_created_from_scenario event didn't fire after pressing "Save and Play" from map editor. more
Modding
Added LuaTilePrototype::check_collision_with_entities, false by default. If set to true - checks for collisions with entities before building or unearthing the tile.
Fixed that units could get stuck close to their goal. more
Fixed that the small research bar in a technology slot wouldn't show for the technology currently in research. more
Fixed a crash which was caused by early garbage collection of LuaObject because LuaObject method closures didn't hold a back reference to the object. more
Fixed barelling recipe icons having incorrect tint with index-based fluid color definitions. more
Fixed barelling recipe icons having incorrect alpha with fluid color definitions in 0-255 range.
Scripting
LuaObjects are now saved using binary format instead of previous format with intermediate Lua table. This speeds up general handling of LuaObjects and makes saving and loading with a lot of them noticable faster.
LuaObject::isluaobject now returns true instead of a magic string.
Implemented new website for Lua API documentation.
Version 1.1.48 released as stable
Bugfixes
Added tip about power pole coverage when drag-building.
Fixed that the distance between first and second pole in the dragging electric poles tutorial was 6 tiles instead of 7.
Fixed LuaGameScript::save_atlas() function would crash the headless server. more
Fixed possibility for the victory screen to be hidden behind other GUIs under specific circumstances more
Fixed generator and fluid energy source tooltip showing 0 fluid consumption if burning fluids with 0 fuel value or consuming fluids with temperature close to the default. more
Fixed the inserter "hand stack size" tooltip missing if the research-based bonus value was 1. Now it is shown if the value is greater than 0. more
Reworked table saving and loading to be non-recursive. This allows to have extreme table nesting inside of `global` variable.
Version 1.1.46 released as stable
Changes
Reduced multiplayer latency on very good connections by up to 66ms(4 ticks). more
Changed multiplayer latency calculation to be smoother. This should reduce multiplayer stutter on bad connections.
Changed default network send rate from 30 to 60 packets per second and added an option to configure the rate in server-settings.json.
Bugfixes
Add a 70% damage bonus to discharge defenses with Energy Weapons Damage 6 and 7. more
Fixed flamethrower turrets not reporting the correct damage bonuses
Fixed gun turret tooltips showing the ammo in the middle of the other stats
Fixed artillery wagon and artillery turret tooltips not showing the damage of the loaded ammo
Fixed drawing wall filler when hovering mouse over ghosts. more
Fixed crash when trying to connect wire after wire type in cursor stack was changed by script. more
Fixed roboport would not output signals for 1 tick when electric pole was mined while having circuit wire from same circuit network. more
Fixed that the pole drag building skip trigger didn't work, so the tip was always shown even when the player used drag building.
Fixed LuaItemStack::get_tile_filter would incorrectly return entity filters. more
Fixed mining drill GUI not being openable if the drill didn't have module slots or energy source with GUI. more
Fixed a crash when using 0-length debug names in Lua bytecode. more
Fixed that setting the scale parameter to zero in a spidertron leg definition would cause a "double value not in range for fixed point number" error. more
Fixed crash when destroying a vehicle on the same frame a tooltip is created for the vehicle's weapon and ammo bar. more
Fixed that building an entity over other forces' ghosts and undoing would transfer ownership of those ghosts to the undoer's force.
Fixed a crash when setting inserters to require no power when rotating/extending. more
Fixed "create-trivial-smoke" triggers being interpreted as "create-entity" triggers in the prototype explorer which could cause a crash. more
Added migration for saves with inserters that have NaN hand height or hand length.