Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Patch V2 #2566

Merged
merged 6 commits into from
Sep 14, 2018
Merged

AI Patch V2 #2566

merged 6 commits into from
Sep 14, 2018

Commits on Aug 6, 2018

  1. Configuration menu
    Copy the full SHA
    622a54b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cde15a9 View commit details
    Browse the repository at this point in the history
  3. cleanup

    Uveso committed Aug 6, 2018
    Configuration menu
    Copy the full SHA
    68b72b5 View commit details
    Browse the repository at this point in the history
  4. Finished patch II

    AIEconomicBuilders.lua
    
    Added AssisteeType to Builder `T1 Engineer Find Unfinished`
    
    ------------------------------------------------------------------------------------
    
    AILandAttackBuilders.lua
    
    function LandAttackCondition()
    -Fix: Added check for missing locationmanager
    
    ------------------------------------------------------------------------------------
    
    AISeaAttackBuilders.lua
    
    function SeaAttackCondition()
    -Fix: Added check for missing locationmanager
    
    ------------------------------------------------------------------------------------
    
    SorianEconomicBuilders.lua
    
    -Fix: Added AssisteeType to several Builders
    
    ------------------------------------------------------------------------------------
    
    aiutilities.lua
    
    function AIGetSortedMassWithEnemy()
    -Fix: Adjusted masspoint location check for map border
    
    function AIGetSortedMassLocations()
    -Fix: Added masspoint location check for map border
    
    ------------------------------------------------------------------------------------
    
    AttackManager.lua
    
    function FormAttackPlatoon()
    -Fix: Better error mesage in case of invalid location manager
    
    ------------------------------------------------------------------------------------
    
    sorianutilities.lua
    
    function GetTemplateReplacement()
    -Fix: In case we don't have an default ingame unit squad use the modded squad to 100%.
    
    ------------------------------------------------------------------------------------
    
    defaultantiprojectile.lua
    
    unitstate RedirectingState()
    -Fix: Added failsafe in case of missing enemy position
    
    ------------------------------------------------------------------------------------
    
    SorianBuildConditions.lua
    
    function CanBuildOnHydroLessThanDistance()
    -Fix: Better error mesage in case of invalid location manager
    
    ------------------------------------------------------------------------------------
    
    EffectUtilities.lua
    
    function SpawnBuildBots()
    -Fix: Added failsafe in case a unit is destoyed while building
    
    ------------------------------------------------------------------------------------
    
    platoon.lua
    
    function OnDestroy()
    -Fix: removed PlatoonDisband() function (added by Duncan).
    
    function PlatoonDisband()
    -Fix: Unneded values will now removed from any unit while the platoon is disbanding
    -Fix: Destroying AIThread if present, before the platoon is disbanding
    
    function RepairAI()
    -Fix: optimized Do-Until loop
    
    function ManagerEngineerFindUnfinished()
    -Fix: Added proper loop until the unit is finished.
    
    function ManagerEngineerAssistAI()
    -Fix: Added proper loop to check if the enginner is still assisting
    -New: Added check for new builder condition `AssistUntilFinished` for engineers
    
    function EconAssistBody()
    -Fix: Added failsafe in case a engineer is missing/destroyed
    -Fix: Better error mesage in case of invalid or missing AssistLocatio or AssisteeType
    -New: Added `AssistClosestUnit`. Unit will asssit the nearest building, not the one with least assisters
    
    function EngineerBuildAI()
    -Fix: Unitreplacement is no longer using non existing global squads if an modded unit exist.
    
    function UnitUpgradeAI()
    -New: Added builder conditon `OverideUpgradeBlueprint` so we can upgrade to supportfactories
    
    function EconUnfinishedBody()
    -Fix: Added UnitBeingAssist for the assist wait loop
    
    function ProcessBuildCommand()
    -Fix: Added check for assisting units
    
    ------------------------------------------------------------------------------------
    
    Builder.lua
    
    function StoreHandle()
    -Fix: Removed forked thread that was waiting 1 second before a platoonhandle was deleted.
    
    ------------------------------------------------------------------------------------
    
    EngineerManager.lua
    
    function AssignEngineerTask()
    -Fix: Added check for assisting and building engineers to prevent new orders while still working
    
    ------------------------------------------------------------------------------------
    
    FactoryBuilderManager.lua
    
    function GetFactoryTemplate()
    -Fix: reworked sorian unitreplacement (customunits) for factories. Now using all available units.
    
    ------------------------------------------------------------------------------------
    
    Unit.lua
    
    function OnWorkBegin()
    -Fix: Better error message in case a ACU enhancment fails
    
    ------------------------------------------------------------------------------------
    
    ThreatBuildConditions.lua
    
    function EnemyThreatGreaterThanValueAtBase()
    -Fix: Added check for missing locationmanager
    
    function EnemyThreatLessThanValueAtBase()
    -Fix: Added check for missing locationmanager
    
    function HaveLessThreatThanNearby()
    -Fix: Added check for missing locationmanager
    
    ------------------------------------------------------------------------------------
    
    MarkerBuildConditions.lua
    
    function CanBuildOnMassLessThanDistance()
    -Fix: Added check for missing locationmanager
    
    ------------------------------------------------------------------------------------
    
    SorianBuildConditions.lua
    
    function EnemyThreatLessThanValueAtBase()
    -Fix: Added check for missing locationmanager
    
    function CanBuildOnHydroLessThanDistance()
    -Fix: Added check for missing locationmanager
    
    ------------------------------------------------------------------------------------
    
    UnitCountBuildConditions.lua
    
    Added new function CheckBuildPlattonDelay(aiBrain, PlatoonName)
    Uveso committed Aug 6, 2018
    Configuration menu
    Copy the full SHA
    54f7ced View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2018

  1. Fix Sonar Upgradetemplates

    Uveso committed Aug 16, 2018
    Configuration menu
    Copy the full SHA
    f26f509 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2018

  1. AutoSandbox

    This fix is for skirmish singleplayer launch
    in case the game victory setting is not sandbox.
    You can now start the game and sandbox is set automatically.
    Uveso committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    c48ad7e View commit details
    Browse the repository at this point in the history