Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
1,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. Modding:
  2. - Ambient sounds are specified as prototypes so they can be extended and modified by mods.
  3. Scripting:
  4. - Changed all the identifiers/methods/events/parameters. Underscores are used as word delimiter (findentities -> find_entities).
  5. - Changed glob to global.
  6. - New object LuaSurface, accessible from player/entity as read property surface.
  7. - Some commands moved from LuaGame to LuaSurface: get_pollution, can_place_entity, find_entity, find_entities, find_entities_filtered,
  8. find_non_colliding_position, find_enemy_units, find_nearest_enemy, set_multi_command, create_entity, create_unit_group, build_enemy_base,
  9. get_tile, get_tileproperties, set_tiles, pollute, get_chunks, is_chunk_generated
  10. - Added LuaFluidPrototype - similar to LuaItemPrototype but for fluids.
  11. - math.random can now accept negative values for ranges eg x + math.random(-10, 10)
  12. - Added LuaRecipe::hidden and energy read.
  13. - New object LuaGroup, accessible from LuaEntityPrototype as read property group/subgroup.
  14. LuaGroup contains: name, type, inventory_order, group, subgroups
  15. - Added several new options to LuaEntityPrototype: mineable_properties, items_to_place_this, collision_box, selection_box, order,
  16. group, subgroup, healing_per_tick, emissions_per_tick, corpses, selectable_in_game, weight, resistances, fast_replaceable_group,
  17. loot, repair_speed_modifier
  18. - LuaItemPrototype::group now returns the new LuaGroup object.
  19. - Added LuaEntity::is_crafting() - returns true/false if the assembling machine or furnace is currently crafting a recipe.
  20. - Added LuaEntity::crafting_progress/bonus_progress - a percent of 1: the current crafting progress or bonus progress.
  21. - Added the ability to compare LuaObjects using "==" as in: "if game.player == game.players[1]" for all LuaObjects.
  22. - Removed all LuaObject::equals(): the == operator can be used in its place.
  23. - Added new blend modes for sprites using "blend_mode" property. Possible values: "normal", "additive", "multiplicative".
  24. - Added on_player_driving_changed_state event - passes the player_index who's driving state changed.
  25. - Added LuaEntity::belt_to_ground_type - returns the type "input"/"output" of the transport-belt-to-ground.
  26. - Added several methods for manipulating gates: is_opened, is_opening, is_closed, is_closing, request_to_open, request_to_close.
  27. - Changed LuaEntity::neighbours:
  28. For electric poles: the wire connections: {copper={}, red={}, green={}}
  29. For transport-belt-to-ground: the input/output entity it's connected to (or none)
  30. For entities with fluid - the entities the fluid connections connect to indexed by the fluid connection
  31. - #entity.fluidbox can now be read from any entity and will return the number of fluidboxes the entity has (0 for non-fluid handling entities).
  32. - Added the ability to specify map colors for all entities: map_color, friendly_map_color, and enemy_map_color
  33. - Added the ability to disable drawing the station name for train-stop type entities: chart_name = "false" in the prototype.
  34. - LuaEntity::backer_name can now be read/written for all entities that support backer names (furnace, assembling machine, lab, locomotive, radar, roboport, trainstop).
  35. - LuaEntity::recipe can now be set to nil to remove the recipe from an assembling machine.
  36. - Added LuaItemPrototype default_request_amount, resistances, item_to_clear.
  37. - Added LuaChart::chart_all (charts all the generated parts of the map).
  38. - Expanded LuaEntity::get_item_count and LuaEntity::clear to work with all transport belt entities.
  39. - New object LuaTransportLine, accessible from entity as read method get_transport_line(index) - an interface to the items on transport belts.
  40. - Added LuaSurface::count_entities_filtered - the same as find_entities_filtered but simply returns a count. The benefits being: it's much faster
  41. than find_entities_filtered when the entity references aren't desired.
  42. - Added LuaForce::enable_research() - enables research for the force if it was disabled.
  43. - Added LuaSurface::spill_item_stack() - takes a item_stack and position and drops the items on the ground item bomb style.
  44. - Changed LuaEntity::stack, LuaEntity::held_stack and LuaPlayer::cursor_stack to return LuaItemStack objects.
  45. - Changed LuaItemStack to allow reading any inventory slot even when the item in the slot is invalid. LuaItemStack::valid_for_read should be used
  46. before accessing the normal properties/methods for a given LuaItemStack.
  47. - Removed LuaEntity::clear_circuit_condition() - LuaEntity::set_circuit_condition(index, nil) can be used instead.
  48. - Added "force" option to LuaSurface::find_entities_filtered/count_entities_filtered.
  49. - ItemStack counts can be excluded and defaults to 1, ItemStacks can be strings and default to a full stack.
  50. - Added LuaItemStack::count write support.
  51. - Added LuaItemStack::can_set_stack(), set_stack(), clear() - write support to a specific item stack.
  52. - Removed LuaEntity::stack, held_stack write support - LuaItemStack::set_stack() can be used.
  53. - Removed LuaPlayer::cursor_stack write support - LuaItemStack::set_stack() can be used.
  54. - Added LuaTrain::cargo_wagons read - returns only the cargo wagons for the given train.
  55. - Added LuaEntity::remove_market_item - takes an index to remove from a Market entity offer list.
  56. - Added LuaEntity::get_market_items - returns a table of offers the Market entity offers.
  57. - Added LuaForce::research_progress read/write - a percent of 1 - the current research progress (0 if no research).
  58. - Added LuaEntityPrototype::turret_range read - the range of a given turret entity prototype.
  59. - Added player_index to the on_put_item event.
  60. - Added ghosts from manual building and blueprints to the on_built_entity event.
  61. - Added LuaPlayer::enable_flashlight() - counterpart to disable_flashlight().
  62. - Replaced LuaGameScript::kill_all_enemies() by LuaForce::kill_all_units().
  63. - Changed on_researched events to return the relaed LuaTechnology object.
  64. - Added LuaTechnology::force read - the LuaForce the technology belongs to.
  65. - Added LuaGame::create_surface - takes a string name and optionally a table of map gen settings and creates a new surface.
  66. - Changed LuaPlayer::teleport to allow optionally a surface name, index or object to teleport the player to. The surface must exist.
  67. - Added LuaSurface::request_to_generate_chunks - takes a position and radius and requests to generate those chunks - will not generate chunks outside the map bounds.
  68. - Added LuaSurface::map_gen_settings - the current map gen settings for the surface.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement