Factorio 0.16.0: Scripting

Factorio 0.16.0: Scripting

- in Factorio News
298
0

Factorio is a great game about building and creating automated factories to manufacture items in an infinite 2d world while trying to fend off aggressive local creatures. There are a lot of improvements to your selected game. Aside from bug fixes, changes, and other parts, you should not ignore Factorio Scripting which also gives out important enhancements.

Scripting

Scripting

  • Fixed LuaSurface::get_trains() that would not run for trains with no locomotives
  • Fixed inverting tech effects in various orders than they in which researched could result in a non-zero number
  • Fixed surface_index that was turned off by 1 for on_player_built_tile and on_player_mined_tile incidents
  • Fixed possible desync that transporting instantly underground belt ghosts and pipes to ground ones
  • Modified robot_built and player_built events to move the stack chosen to carry out the building instead of the name and tags
  • Switched “on_preplayer_mined_item” into “on_pre_player_mined_item”
  • LuaEntity::get_recipe() and LuaEntity::set_recipe() will replace LuaEntity::recipe
  • Made LuaSurface::regenerate_decorative/regenerate_entity different, it will be able to receive zero fights and produce everything again
  • Changed the root custom GUI containers in Factorio download game so as to get the appropriate title
  • The data from script.raise_event has been intervened to include mod_name
  • LuaFluidBox fluid is amended from {type=”…”, amount=…} to {name=”…”, amount=…}
  • The name of the table’s colspan parameter is turned into column_count
  • LuaItemPrototype::group_filters and sub_gorup_filters is now item_group_filters and item_subgroup_filters, they will fit the prototype values
  • LuaEntity::set_recipe() will return objects deleted from the entity after setting another recipe
  • Transferred Mod-GUI button flow to gui.top
  • Got rid of LuaEntity::passenger read/write
  • style::width/height will appear to establish maximal/minimal value at once
  • style::align will be visibe to build up the align of inner factors
  • Added style::stretchable / squashable
  • Get LuaEntity::get_driver(), set_driver(), get_passenger(), and set_passenger().
  • Have LuaGuiElement::hovered_sprite and clicked_sprite read/write ways for the Sprite button
  • Added the assistance to provide the difference for the daytime length and brightness on each surface basis
  • The GameViewSettings show_rail_block_visualisation property will make the visualization in the Factorio multiplayer game be consistently active.
  • LuaItemStack::export_stack and LuaItemStack::import_stack is joined to export/import supported items to/from strings
  • LuaEntity::tree_color_index read/write access together with LuaEntityPrototype::tree_color_count read access
  • There will be LuaEntity::selection_box and secondary_selection_box read with LuaBootstrap::mod_name read and LuaControl::in_combat read.
  • You can experience LuaTile::order_deconstruction() and cancel_deconstruction() when playing game.
  • LuaEntity::die() will consist of both optional cause and force.
  • There is an on_player_used_capsule event.
  • Besides, you can spot on_player_promoted and on_player_demoted happenings.
  • Furthermore, you can check the cool on_player_changed_position occurrence.
  • LuaEntityPrototype::alert_when_attacking read and LuaEntityPrototype::alert_when_damaged read will exist in Factorio game.
  • LuaEntity::power_switch_state read/write is inset.
  • on_combat_robot_expired event is supplemented.
  • LuaEntity::relative_turret_orientation read/write for means and turrets are engaged.
  • We will have the LuaEntityPrototype::color read and LuaTrain::passengers.
  • The LuaEntityPrototype::collision_mask_collides_with_self read has been present in Factorio steam
  • Fluid and Recipe types are sent to the custom GUI element.
  • Added LuaGuiElement::locked read/write – when true the given choose-elem-button can just be modified through the script
  • An elective parameter will pop up in LuaSurface::drop_item_stack to attach to drooped objects which can be used to construct

Scripting (Cont.)

  • Factorio download game will offer LuaForce::cancel_charting(…) and LuaSurface::force_generate_chunk_requests().
  • Give a helping hand to constitute a LuaGuiElement as the unlocked GUI for a character causing it to shut with the odinary close-GUI steps
  • Have on_gui_opened and on_gui_closed and on_player_muted/unmuted and on_player_cheat_mode_enabled/disabled events
  • LuaItemStack read properties will show you if an item is a specific kind
  • LuaAutoplaceControlPrototype, LuaNoiseLayerPrototype, LuaModSettingPrototype, and LuaCustomInputPrototype
  • Updated Factorio with LuaGameScript autoplace_control_prototypes, noise_layer_prototypes, mod_setting_prototypes, and custom_input_prototypes read
  • You can spot many additions such as LuaForce::reset_evolution(), LuaSurface::create_trivial_smoke(), LuaPlayer::enable_recipe_groups() and enable_recipe_subgroups().
  • However, that does not stop when there is the appearance of LuaItemStack::rocket_launch_products read with LuaItemPrototype::can_be_mod_opened read.
  • The on_mod_item_opened event is quite interesting.
  • The item stack index will be available in Factorio mac It acts as the next return value to LuaInventory::find_item_stack.
  • LuaItemStack::transfer_stack() and LuaGuiElement type “slider”
  • on_gui_value_changed event – fired is active if a slider value is renovated.
  • The color field will be provided to Factorio as the second parameter to four print functions.
  • Changing the LuaSurface::map_gen_settings runtime will be assisted.
  • LuaEntityPrototype::allowed_effects read will be revealed.
  • LuaEntity::effects read is incorporated.
  • LuaPlayer::can_place_entity(), can_build_from_cursor(), and build_from_cursor() will make your task easier.
  • Supplied LuaSurface::play_sound(), LuaForce::play_sound(), LuaGameScript::play_sound() and is_valid_sound_path(), and LuaPlayer::play_sound()
  • Teleporting train stops, rail signals, gates, entities, and walls or fluidboxes will be encouraged.
  • Factorio game will have LuaEntity::rotate(), LuaEntity::get_infinity_filter() and set_infinity_filter(), with LuaEntity::infinity_filters and remove_unfiltered_items read/write.
  • LuaEntityPrototype::rocket_parts_required read and LuaEntityPrototype::fixed_recipe read are appended.
  • Owns LuaGameScript::kick_player(), ban_player(), unban_player(), purge_player(), mute_player(), and unmute_player()
  • There will be the LuaPlayer::admin write support.
  • LuaGuiElement::focus() will be managed in Factorio.
  • There are several exciting affairs such as on_character_corpse_expired, on_pre_ghost_deconstructed, or on_player_pipette.
  • LuaEntity::character_corpse_player_index, character_corpse_tick_of_death, and character_corpse_death_cause read/write will be located in Factorio ps4.
  • LuaSurface::get_tile_properties() and LuaSurface::can_fast_replace() will be exposed in the game.
  • Some people will be supported when they combine with characters who are logged off or on with a specific person but are not guided directly by you.
  • LuaEntity::associated_player read/write and LuaPlayer::ticks_to_respawn read/write are counted.
  • Your game will be offered with LuaPlayer::get_associated_characters(), associate_character(), and disassociate_character().
  • The old_state to the on_train_changed_state event should be paid attention to.
  • LuaRecipe::catalysts read has been put up.
  • Do not ignore LuaRecipe::hide_from_flow_stats read/write and LuaRecipePrototype::hidden_from_flow_stats read!
  • LuaEntity::tick_of_last_attack and tick_of_last_damage read are added for the player’s entity.
  • LuaLogisticNetwork::passive_provider_points and active_provider_points read will improve the performance of Factorio game.
  • LuaPlayer::display_resolution read is carried out.
  • The on_player_display_resolution_changed is one of the remarkable facts.
  • LuaPlayer::display_scale read and LuaTrain::weight and riding_state read are active in Factorio.
  • An enchanting on_player_display_scale_changed event
  • LuaEntity::products_finished write is saved.
  • The optional surface to game.take_screenshot(…) is thrown in your Factorio download
  • LuaEntityPrototype::construction_range and logistics_range read are valid.
  • LuaGuiElement::index read is accomplished.
  • LuaForce::max_successful_attemps_per_tick_per_construction_queue and max_failed_attempts_per_tick_per_construction_queue read/write + technology modifiers will bring surprises to gamers.
  • LuaGuiElement::mouse_button_filter read/write for buttons and sprite-buttons will be at hand.
  • LuaSurface::find_tiles_filtered() and count_tiles_filtered() are able to be used.
  • We will be given LuaEntity::get_train_stop_trains() and LuaLogisticNetwork::force read.
  • Finally, LuaItemStack::item_number read will be in Factorio game. It is also the particular ID of the object if it possesses one.

Leave a Reply

Your email address will not be published. Required fields are marked *