Peppe

Peppe

Joined Member # 2427603
0 Posts 0 Replies 23,160 Reputation

Had to rush that G release out this morning before leaving for the thanksgiving festivities. I did not get to test the portal re-capturing section or let you know what changed. I normally run a few full games for release, but did not for g, so hopefully no major issues. To detail the changes in G: First I found very odd behavior trying to mod the capture action that comes with the game. Almost like the modded version wasn't overwritting the existing function.

110 Replies 29,884 Views

G: http://www.filefront.com/17559261/Skirmish_AI_v25g.zip One flag capping action. Has some randomness to it. And should go after portals first anytime their balance gets out of wack. I flipped shopping back to a distance check. It will start a shopping quest whenever it gets near the health stone and has items to buy. AI should spend 90% of the game cap

110 Replies 29,884 Views

No one sticks around the HP flag becuase they are probably all unhurt, so all get the capture points as thier master goal. They all then run the same capture action function that selects the nearest flag as the capture target. I might be able to add some randomness to this so even if they are all in the same spot they can make different choices. The shopping issues is probably a distance thing. I'll have to test the overrides on the other

110 Replies 29,884 Views

Closes up for a couple hours. If i recall Validate.CanPickUpgrade checks everything, so if its already purchased it will return false to let the AI move onto a later goal. I checked before i used it, but don't recall the details now. The AI has all sorts of weights for different flags. I believe these would be compared to kill, move, or other action weights to help the AI land on Capturing that flag as its master g

110 Replies 29,884 Views

Changes in E More conditional overrides for master goals to keep the AI on task. Some builds updated or added. Oak shield use changed. Old function was to use it whenever any enemy unit was near. New function oak must be below 50% health and an enemy hero has to be near. Version F posted. AI's announce artifact purchases. Capture points is the mastergoal as long as the enemy has flags and the demig

110 Replies 29,884 Views

Attack and citadel defense conditions were added with version e. Version before that if the AI had map control it would do whatever it thought is best (generally select not good things, follow squads or stand around). The capture flags check is higher in the list than the final if healthy attack check. Capture flags is the primary action until the AI has +3 flag advantage over the enemy. Instead of letting the AI choose its next best ac

110 Replies 29,884 Views

Updated. There is other stuff in the release. Pretty sure everything else i had updated on my local copy was complete. The game time actually starts a few seconds before the player's camera spin start, so i did a little higher wait and added some randomness. Actual code: [code="xml"] local waitTime = math.random(8,16) ForkThread(function() WaitSeconds(waitTime); AIUtils.AIChat(unit, announcement) end)[/code] <

110 Replies 29,884 Views

It was cuased by the built in AI chat functions. miriyaka told me what to fix, so the replay observer mode won't error out. New games on version d above should be viewable as replays. I tested offline with a 30 minute game and it ran from start to finish without issue. My mod, Uber fix 1.03 rc4, an

110 Replies 29,884 Views

Hah came to post my fix for the experience and you had posted you already fixed it. I don't know if this will work in mod form, but i just updated the buffs to match the upgrade name. I don't believe there are any citadel upgrades without buffs. I haven't looked at UberFix yet. Should i look to combine the changes in there into the AI mod?

54 Replies 151,976 Views

Function is FindBestBaseItem(...) In lua\sim\ai\AIshopUtilities It derives the shop types from the item: First it gets a list of all item priorities from the brain. And loops over each item to find the best item to buy. for _,itemData in asset.ItemPriorities do ... # Store out each shop only once; this way we don't have to find shops more like crazy &nbsp

54 Replies 151,976 Views

Found where it is marked 1750. Wonder if this could be the cause of some of the AI's shopping woes rather than how fast it shops. Just doing a quick look at the boots file and 3 of them have the wrong price. This isn't a major issue when the price is marked higher, but if an item is marked lower in these files, so the AI thinks it can afford it, but is actually more expensive it could cause unexpected behavior. For anyone curios, File is dgdata\u

54 Replies 151,976 Views

Getting closer. Logged every step of the function. The AI thinks the boots cost 1750, so won't buy them at start (where i have capped the purchase at 1500 to get it to buy more items with its 4k. I'll see if i can find why it thinks an item that costs 1500 is 1750.

54 Replies 151,976 Views