Author Topic: Beta Branch Patch 0.20 Patchnotes - AI & Map Commands  (Read 680 times)

Qui_Sum

  • Developer
  • *
  • Status:
    Offline
    Posts:
    23
    • View Profile
on: December 04, 2018, 12:40:45 PM
Patch 0.20

Date: December 4th, 2018

Beta Branch Note: These changes are currently available on the beta branch. The beta branch is for testing experimental changes and for finding and fixing errors.

This is how you get access to the beta branch (USE AT YOUR OWN RISK):
Right-Click on Avorion in your Steam list, Properties -> Betas -> Select branch 'beta'.

Map Commands

"You will now be able to order your ships over the galaxy map now. You can give commands, enchain multiple commands and even loop them. Ships can now also buy and sell goods for you to stations and others."
  • Added sending orders to your ships via the Galaxy Map
  • You can tell your ships to:
    • Jump to a certain sector
    • Buy goods for a specific price margin X% until they have Y on board
    • Sell goods for a specific price margin X% until they have Y left
    • Attack Enemies
    • Patrol a sector
    • Mine Asteroids
    • Salvage Wreckages
    • Loop with other commands
  • These commands can be enqueued by holding Shift so your ships can move over large distances
  • Routes for crafts will be rendered to the Galaxy Map
  • Indicators for alliance crafts are now rendered on map
  • Added switching to sector into a specific craft or drone
  • Alliance ships are now listed in sector tooltips on the galaxy map
  • Added checkbox to galaxy map to hide alliance information
  • Added little dots for commandable ships in a sector
General AI Improvements

"We improved the flight behavior and AI of ships, they are now much faster and a lot more dangerous since they will get to players a lot faster."
  • Improved flight behavior of AI ships
  • AI ships can now use boost
  • AI ships can now drift to change their flight direction
    • Instead of braking, standing still, turning, accelerating
  • Improved pathfinding behavior of AI ships
    • AI ships won't get stuck as easily
    • AI ships will now fly a lot better through asteroid fields
  • Docking AI now flies near the target station while no dock is currently free yet
  • Fighters on attack order who don't have a target any more are now set to defend the mothership
  • Stations with docks now push away lifeless obstacles to keep docking areas free
  • Stations with docks now push away objects that can move on their own after they have blocked a dock for over 5 minutes
  • Repair fighters now heal the mothership when set to defend
  • TurretAI now shoots down torpedoes that are targeting friends, if none are targeting the mothership
Harvest AI

"We added a completely new harvest state to the AI that is a big improvement for automatic mining and salvaging. It makes use of the new pathfinding algorithm to maneuver around asteroid and wreckage fields quickly and safely. Bigger wreckages are now favored over smaller ones. The ship will now stay stationary as long as its lasers are in range. If a turret is facing the wrong way the ship will roll around its longitudinal axis to always face the target. This means it is best to place all turrets on the same side of the ship. We also added a detection if ships get stuck, in which case they change position or try the next target. You might not notice all these details but harvesting will work a lot more smoothly now."
  • Added a new Harvesting AI specifically for mining and salvaging
    • Harvest AI now rolls so that the turret can hit the target
    • Harvest AI picks a new waypoint if the current one cannot be reached
    • Harvest AI turns in place if weapons are out of range but firing long enough
    • Harvest AI now picks the target's closest block
    • Harvest AI now uses the appropriate turrets and sets independent turrets to autofire
  • Salvage AI now prefers big wreckages over small ones that are close by
  • Salvage AI now ignores tiny wreckages
Player Fleet Window

"It was about time to rework the old, dusty UI of the fleet window and give it a new design and more features, such as renaming your ships."
  • Improved layout of Player Fleet Window
  • Ships now have a preview image
  • Ships now have their cargo displayed in full detail
  • Ships now have their status what they're currently doing listed
  • Ships can be shown on the map
  • Ships can be renamed
Gameplay

"From now on you'll be able to communicate with stations without actually docking to them, a feature that a lot of players have requested. We also improved map managing of alliances."
  • Newly founded alliances now have their founder's current sector as home sector coordinates
  • Added new alliance privilege: Edit Map
    • Players with this privilege can edit the alliance map just like their own, players without just edit their own
  • Alliance map note is now shown if it is different than the player's note
  • Switching between crafts is now allowed no matter the distance
    • Exception: From drones or fighters to other crafts
  • Added a new Transporter Block
    • Transporter blocks are available in Xanion and upwards
    • Transporters will allow players to interact with stations over distances as if docked
    • Transporters require a system upgrade "Transporter Software" to function
  • Added a new System Upgrade "Transporter Software" required for long-distance transports
    • Only works in combination with a transporter block
  • Implemented auto-reloading of torpedoes to shafts
    • Note: Only works for newly bought torpedoes
Balancing
  • When boosting is stopped, maximum velocity of ships drops by 200 m/s per second, instead of a percentage falloff
  • Salvaging and mining laser range now scales more with size
  • "The AI" (the boss) now has bad relations to AI factions by default
  • Added a minimum directional thrust to ships to ease AI steering
  • Added low inertia braking to AI ships to ease AI steering
Scripting API

"VERY IMPORTANT INFORMATION FOR MODDERS: We've added extra security for calling functions remotely, this *will* break your mods if you're using remote invocations. Also, those changes listed here are probably not complete, there should be more."
  • IMPORTANT: Implemented "callable" tag for remote invocations
    • Functions that are to be callable from remote clients must have been tagged as callable!
    • Example: callable(namespace, "functionName")
    • See existing scripts for more details
    • For compatibility reasons, this behavior can be disabled in the server settings (HIGHLY DISCOURAGED): Flag "ExplicitCallables"
  • Added a ControlUnit class
  • Added several new callbacks to client Player class for Galaxy Map
  • Galaxy Map can now be used to create UI via scripts
  • Added order infos for crafts representing their current orders
  • Added functionality for calling functions of scripts in another sector
  • Added functionality for executing lua code in another sector (server to server only)
  • Added functionality for calling functions remotely in another sector
  • Added a new AI state: HarvestState, explicitly for collecting resources from Asteroids and Wreckages
  • Added script functions to Entity: jumpPossible(), get/setHyperspaceJumpReach()
  • BlockPlan can now force a material transformation where higher blocks are transformed into hull blocks
  • Added functionality to Galaxy to load sectors and keep them in memory
  • Added a property to get data folder of Server
  • Added several status properties to Server
  • Added a "onChatMessage" callback for Player and Server whenever a chat message is received from a player
  • Added ControlActionBit enum
  • Added a CraftPortrait class which renders a circle with a ship in it
  • Added an ArrowLine class which renders a line with arrows
  • Added a MapArrowLine class which is the ArrowLine for the Galaxy Map
  • Added a MouseButton enum for mouse buttons
  • Added a KeyboardKey enum for keyboard keys
    • Keyboard now accepts both string keynames as well as KeyboardKey codes
  • Added reading of ship hyperspace reach in Player and Alliance
  • Added reading of ship cargo in Player and Alliance
  • Added reading of ship status in Player and Alliance
  • Added lots and lots of callbacks to Alliance and Player on client
  • Added counting of registered functions to a callback
  • Fixed "userdata" being wrongly given as a bad type for parameters when invoking c++ functions
  • Sector:getEntity() now accepts both strings representing a uuid and Uuids
  • Added an isStuck property to ShipAI
    • Works only while the state is set to Flying
  • Added new callbacks "onCraftSeatEntered" and "onCraftSeatLeft" for Entity and Sector
  • Invocation of functions on scripts by index instead of name works correctly now
  • Added a Label property "shortenText" to enable shortening of texts with "..."
  • Added a Slider property "showMaxValue" to show the max value in its caption
  • Removed displayName/displayPlural/translatableName/translatablePlural/translatableDescription properties from TradingGood
  • Added displayName(amount) to TradingGood which returns the translated name in correct numerus
  • Added displayPlural(amount) to TradingGood which returns a userdata object that can be sent and translated on the client
UI
  • Changed Anti-Grav to Antigrav to make it consistent throughout Avorion
  • Added a "friends" tab to Serverbrowser
  • Free and occupied weapon slots are now listed in the ship tab
  • Improved showing and hiding of hints, depending on what the player is doing
  • Building mode tooltips now don't get rendered when occluded by a window
  • Removed redundant noble metal mines from Found Station Window
  • Hyperspace cooldown and HP are now shown for alliance ships as well
  • Improved displaying of tooltips so they don't block existing UI as much
  • Building state shows a notification for hotkeys upon opening
  • Increased size of building hotkeys window
  • BuildingUtilities have a text hinting towards F1 for showing building hotkeys
  • Added a warning when transporting problematic goods with and without licenses
  • Increased brightness of the indicators in explore sector mission
  • Improved game settings layout
  • Improved graphics settings layout
  • Alliance crafts now have their own indicator color
  • Improved tackiness of several icons
  • Removed "Tagged" line from galaxy map sector tooltip
  • New script-based menus in the top right corner are now highlighted
  • Added hint for accepting missions at bulletin boards
  • Added input box to Hire Crew menu
    • When hiring crewmembers the other rows are no longer reset
Misc
  • Fixed wrong year in script documentation copyright
  • Fixed wrong company designation in script documenation
  • Changing control style is only possible while flying, no longer while building etc.
  • Added anonymous game statistics sending to make better decisions about balancing and feature priorities
    • This can be disabled in the settings.ini file
  • Implemented correct conversion in documentation for bitsets and VectorTableCopy
  • Several smaller performance improvements
  • Added PointDefenseLaser and AntiFighter to turretfactory
  • Added several new bugs
  • Added merging of hangar & edge blocks
  • Added tons of more correct plural translations
Bugfixes

"Fixes marked with [UBR] were brought to us by the community. Thank you very much and keep up the good work!"
  • Fixed several crashes in scripts
  • [UBR] Fixed bad beam and muzzle colors when custom shot colors are used
  • [UBR] Fixed an issue in shield recharge tooltip
  • [UBR] Fixed an issue in turret factory that allows people to create turrets with higher rarities than expected
  • [UBR] Fixed hyperspace price and energy being calculated wrongly
  • Fixed an issue where scaling turret parts didn't work
  • Fixed several instances where scripts were wrongly added to objects multiple times
  • [UBR] Fixed MAD science lab dropping extreme turrets
  • Fixed an issue where the title of a mine's trade window was translated incorrectly
  • Fixed an issue where blocks of invincible entities could be destroyed by collisions
  • [UBR] Fixed an issue where sometimes the wrong station was founded
  • Fixed an issue where the color wasn't applied when modifying the whole turret part
  • Fixed several spelling mistakes
  • [UBR] Fixed issues with marking last line of inventory as favorite/trash
  • [UBR] Fixed inventories being too far scrolled down to see contents
  • [UBR] Fixed zooming out causing the ship to rotate
  • [UBR] Fixed a few crashes in Group UI
  • [UBR] Fixed color selection window not showing any colors when first opened with hotkey
  • [UBR] Energy Suppressors from alliances no longer spawn with non-iron materials
  • Fixed auto-selection no longer working after targeted object was destroyed
  • [UBR] Fixed an issue in mining system where other ships were wrongly detected as the player's ship
  • [UBR] Fixed several issues where uncritical errors were falsely logged when entities didn't exist
  • Fixed an issue where component script callbacks were not sent
  • Fixed an issue where muzzle positions of custom coaxial turrets were wrong
  • Fixed an issue where restoring the explore sector mission did not work
  • Fixed an issue where the handle of a ui slider could partially protrude over the side of the bounding rect
  • Fixed a crash in ShipSystem when fetching an upgrade from a slot that doesn't exist
  • [UBR] Fixed permanent upgrades disappearing from a ship when founding a station
  • Fixed an error where ships stopped after they were destroyed instead of their wreckage flying on
  • [UBR] Fixed reduction for pilots (via upgrades) not working with script functions
  • Fixed an issue where an expanded combobox's clickable area was only as wide as the box itself
Known issues

"These are smaller issues that will be fixed while the update is on the beta branch. They have been postponed because we thought releasing the update had priority."
  • We are currently still working on ordering ships to escort other ships over the map
  • We are aware that AI ships won't use transporter blocks yet, we're working on that
  • Some mission texts are not translated correctly


Hotfixes

Date: December 7th, 2018

  • Implemented correct localization of hyperspace cooldown error message
  • Cargo tab now uses the correct plural form
  • Transaction strings in Smuggler's Market are now translated correctly
  • Updated German Localization
  • Fixed dock AI crashing when no fly state is set and flyTarget is nil
  • Fixes error messages from remotely calling functions returning tables
  • Fixed map commands crashing when ordering differently than over the map
  • Fixed Trading System crashing when being from outside when it wasn't installed yet
  • Fixed a crash in new ShipUI for ships with large amounts of cargo
  • Fixed a crash when assigning orders to turret groups after the ship was destroyed or the sector was changed
  • Fixed errors in buy/sell order filter fields due to bad patterns
  • Resource shortage bulletins are now translated correctly
  • Delivery bulletins are now translated correctly
  • [UBR] Added check to prevent players from setting an empty craft name
  • [UBR] Changing a block now checks the maximum allowed volume
  • Improved handling of broken interaction between buy/sell goods ai and trading system
  • [UBR] Fixed ships boosting away or into things
  • [UBR] Fixed ships boosting for too long while following
  • [UBR] Fixed several graphical errors when undoing scaling the ship in build mode
« Last Edit: December 07, 2018, 02:31:00 PM by koonschi »



Ravien

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    229
    • View Profile
on: December 04, 2018, 01:12:37 PM
This is all amazing! AI using boost? Mining ships turning so all their turrets hit the asteroid? Wonderful changes and additions here!



Laserzwei

  • Sr. Member
  • ****
  • Status:
    Offline
    Posts:
    357
    • View Profile
on: December 04, 2018, 01:29:39 PM
These are the only important things in this update:
  • Ships can be renamed
  • Added several new bugs
;D

There are lots of cool new features to toy around with. Awesome work!



Ravien

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    229
    • View Profile
on: December 04, 2018, 01:46:40 PM
The new harvest AI works very well! I order my starting shuttle to mine and it boosts away at 493m/s towards the nearest asteroid, comes to a stop and faces the turrets at it and starts mining away very efficiently.

Combat should definitely be much more interesting. Saw some freighters going 1600m/s!



unbekannt1984

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    123
    • View Profile
on: December 04, 2018, 02:05:03 PM
Hi,

The new harvest AI works very well! I order my starting shuttle to mine and it boosts away at 493m/s towards the nearest asteroid, comes to a stop and faces the turrets at it and starts mining away very efficiently.
I'll have to modify my current miners... But I didn't update to the latest Beta yet and just killed the Guardian at 0:0 - need to wait for the old salvage-ai to finish clearing the sector...



unbekannt1984

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    123
    • View Profile
on: December 04, 2018, 04:16:42 PM

  • Improved flight behavior of AI ships
  • AI ships can now use boost
they are using boost too often now... Well, I just had a Miner-Ship crashing into me, the Miner-Ship lost 30% Hull. Do you think the script doesn't confuse boost and brake?!?



BlackGazebo

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    12
    • View Profile
on: December 04, 2018, 06:30:51 PM
Do the AI actually chase/catch up with you if you try to flee an encounter?  Because that's a game-changer.



Askirith

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    3
    • View Profile
on: December 04, 2018, 07:51:33 PM
Добрый день !!

Хотелось бы уже удивить реализацию Абордажа  Кораблей!
Я считаю что это внесет большое разнообразие в игре



unbekannt1984

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    123
    • View Profile
on: December 04, 2018, 08:07:11 PM
Do the AI actually chase/catch up with you if you try to flee an encounter?  Because that's a game-changer.
Well, the new AI changes the game a lot... May we call this update: "Xsotan on the run"?



BlackGazebo

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    12
    • View Profile
on: December 04, 2018, 08:38:20 PM
Ah cool, maybe this will make rail/lightning slightly less overpowered?



Wanderlust

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    11
    • View Profile
on: December 05, 2018, 03:22:31 PM
Unfortunately the AI is too stupid to handle the high speeds. 3 minutes into my first game I saw a cargo hauler ram into a group of asteroids without second thought.
All of these new features are amazing and add a lot to the game but I still think boosting needs to be changed/nerfed for players and AI alike.



GOForce3

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    25
    • View Profile
on: December 05, 2018, 07:51:49 PM
Are there any plans to fix a super annoying problem where my AI fleet ships attack Civil ships?  I didn't see they mentioned. That really sours the game for me. This will really be bad if you send your ships to attack enemies in another sector and while doing that, they also destroy civil ships and ruin your rep with friendly factions.  It happens a lot with some of my ships escorting me through friendly territory.



LoSboccacc

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    104
    • View Profile
on: December 07, 2018, 08:30:55 PM
usual jump issues: ai doesn't use jump gates to move, ai doesn't plot path using jumps (i.e. you need to queue sectors within jump range)



Kamo

  • Sr. Member
  • ****
  • Status:
    Offline
    Posts:
    346
  • Cuddles float better in space~
    • View Profile
on: December 07, 2018, 11:46:25 PM
Quote from: koonschi
  • Map Commands
  • Fighters on attack order who don't have a target any more are now set to defend the mothership
  • Repair fighters now heal the mothership when set to defend
  • TurretAI now shoots down torpedoes that are targeting friends, if none are targeting the mothership
  • Harvest AI
  • Ships can be shown on the map
  • Ships can be renamed
  • Changed Anti-Grav to Antigrav to make it consistent throughout Avorion
  • Improved showing and hiding of hints, depending on what the player is doing
  • Building mode tooltips now don't get rendered when occluded by a window
  • Removed redundant noble metal mines from Found Station Window
  • Hyperspace cooldown and HP are now shown for alliance ships as well
  • Improved displaying of tooltips so they don't block existing UI as much
  • Added a warning when transporting problematic goods with and without licenses
  • Increased brightness of the indicators in explore sector mission
  • Improved game settings layout
  • Improved graphics settings layout
  • Alliance crafts now have their own indicator color
  • Improved tackiness of several icons
  • New script-based menus in the top right corner are now highlighted
  • Added input box to Hire Crew menu
    • When hiring crewmembers the other rows are no longer reset
  • [UBR] Fixed bad beam and muzzle colors when custom shot colors are used
  • [UBR] Fixed hyperspace price and energy being calculated wrongly
  • Fixed an issue where scaling turret parts didn't work
  • [UBR] Fixed an issue where sometimes the wrong station was founded
  • Fixed an issue where the color wasn't applied when modifying the whole turret part
  • [UBR] Fixed issues with marking last line of inventory as favorite/trash
  • [UBR] Fixed inventories being too far scrolled down to see contents
  • Fixed an issue where component script callbacks were not sent
  • Fixed an issue where muzzle positions of custom coaxial turrets were wrong
  • Fixed an issue where restoring the explore sector mission did not work
  • Fixed an issue where the handle of a ui slider could partially protrude over the side of the bounding rect
  • Fixed a crash in ShipSystem when fetching an upgrade from a slot that doesn't exist
  • [UBR] Fixed permanent upgrades disappearing from a ship when founding a station
  • Fixed an error where ships stopped after they were destroyed instead of their wreckage flying on
  • [UBR] Fixed reduction for pilots (via upgrades) not working with script functions
  • Fixed an issue where an expanded combobox's clickable area was only as wide as the box itself
Wow, so many wonderful features and useful fixes ! It was definitely worth the wait :D !
Though I have a pet peeve... the map order ship selection direly needs infobubbles (captions) showing the ship beneath the pointer's name ! Right now I may use little flags or holoblocks to designate fleet leaders :P.

Edit: Cannot use flags or holoblocks because the icons do not update. There is also a serious missing texture bug, and also, ships do not plot jumping courses nor use gates (resulting in unfortunate energy-deprived jumping Bobs)...
Edit 2: Aww, Map command buy/sell orders' results aren't listed in the client log :-X.
« Last Edit: December 09, 2018, 12:43:40 AM by Kamo »
Colorize messages, with the colors of materials (from wiki) !
Ir #FFB380 Ti #FFFFFF Na #4DFF4D Tr #4D9AFF Xa #FFFF4D Og #FF8133 Av #FF2626



LoSboccacc

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    104
    • View Profile
on: December 09, 2018, 10:22:22 AM
mining fighters still do their silly 'attack run'

they also do almost no damage to asteroids.