View unanswered posts | View active topics It is currently Sun Apr 28, 2024 12:43 am



Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
 My units stop auto-mining gold 
Author Message

Joined: Thu Oct 04, 2012 3:11 am
Posts: 5
Reply with quote
Post Re: My units stop auto-mining gold
Neat - this does seem like it works a lot better now (at the least my units go brain-dead while mining a lot less often). Going to play with this some more, appreciate the updated files.


Sun Oct 07, 2012 1:35 am
Profile

Joined: Sun Feb 15, 2009 4:59 pm
Posts: 52
Reply with quote
Post Re: My units stop auto-mining gold
It sounds like (and I've observed this, too) when there are more than one Gold Dig AI actor mining in close proximity, they're all trying to path to the most easily-accessible gold, which is the exact same bit, due to them being close together. One actor mines that bit of gold out, and the other two begin scanning again, finding the bit that the active miner is just about to hit. This is why spacing them out over a few screens avoids that issue. Any time I attack, I establish separate mining pits apart from my Brain's foxhole.


Tue Oct 09, 2012 4:25 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: My units stop auto-mining gold
Good catch Mirefrost, I will add a bit of randomness to the gold selection and see if that helps.


Tue Oct 09, 2012 7:29 pm
Profile

Joined: Sat Oct 06, 2012 11:30 pm
Posts: 12
Reply with quote
Post Re: My units stop auto-mining gold
Direct mining is just as buggy, half the time they will try to go around to the surface to mine down, and then cancel. I would like to suggest that if a unit that is given a ‘go to’ and currently hold a mining gun It should move directly to the objective without avoiding obstacles.
also ive noticed it is impossible to order a unit to mine through cement, this may have something to do with the mineing defect.


Wed Oct 10, 2012 2:43 am
Profile

Joined: Fri Jul 06, 2012 7:20 am
Posts: 44
Reply with quote
Post Re: My units stop auto-mining gold
A possible thought to help: Leave the Go-to AI as is, and make the diggers add a new pie menu option that makes them just move in the proper direction digging, totally ignoring obstacles. I'm not sure how viable that would be since I don't know what the limits of pie menu functionality are.


Wed Oct 10, 2012 8:40 am
Profile

Joined: Wed Oct 10, 2012 6:48 pm
Posts: 3
Reply with quote
Post Re: My units stop auto-mining gold
I've been using the HumanBehaviors.lua and HumanAI.lua files that were posted and they work very well. My miners are now mining like crazy which is excellent since before they did no mining whatsoever.

A side effect of this is that I now massively outmine the AI as the AI only tends to mine with their brainbot and never mines at all once they have a bunker constructed. This makes the AI easy to defeat once you survive their first couple waves of troops. This could potentially be an easy fix of just telling the AI to build a couple dedicated miners.

Another side effect is that my miners tend to continue mining even when the next day when I'm designing my bunker (not in a battle). I'm building my bunker and they are mining away all the gold from the map.

Excellent game though. I look forward to the many improvements that are sure to come.


Wed Oct 10, 2012 7:01 pm
Profile

Joined: Mon Oct 08, 2012 4:27 am
Posts: 6
Reply with quote
Post Re: My units stop auto-mining gold
When I first saw this I thought: the AI can't handle a bot with no weapon. I give the bots a sidearm and they mined fine.

Another similar issue: if the bots have a scanner, they use it like a digger and just sit there scanning as if they were digging. You have to make them drop it.


Thu Oct 11, 2012 3:32 am
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: My units stop auto-mining gold
This is old. You can download the latest fix here

Human AI experimental fix 2

First, thanks for all reports and suggestions. Very helpful.

The gold dig behavior now circumvent the path finding and just go in a straight line for the gold. This will probably cause some other problem but since the path finding is done in the game engine this is the best I can do. The bug that cause the AI to mistake tools for diggers is also an issue with the game engine, so it is not fixed. This fix include patches to targeting and alarm events and affect all actor types, not just humanoids.

Again I might have broken something else in the process so any help you can provide with play-testing is much appreciated. Please consider reporting your experience in this thread if you test it.

Back up the old files and copy the all new files to Base.rte/Actors/AI/


Attachments:
HumanAI.lua [17.08 KiB]
Downloaded 641 times
TurretAI.lua [7.72 KiB]
Downloaded 571 times
CrabAI.lua [9.12 KiB]
Downloaded 558 times
HumanBehaviors.lua [83.91 KiB]
Downloaded 588 times


Last edited by Abdul Alhazred on Tue Nov 13, 2012 10:39 pm, edited 1 time in total.

Thu Oct 11, 2012 9:16 am
Profile

Joined: Sat Oct 06, 2012 11:30 pm
Posts: 12
Reply with quote
Post Re: My units stop auto-mining gold
Wow thanks! Much better mining AI, no more micro mange required.


Fri Oct 12, 2012 11:51 pm
Profile

Joined: Tue Oct 09, 2012 12:10 am
Posts: 2
Reply with quote
Post Re: My units stop auto-mining gold
Going to try this right away, thanks!

eagle


Sat Oct 13, 2012 12:56 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: My units stop auto-mining gold
Gold dig now quite effective. I've noticed just a single flaw so far, sometimes (not always) when unit digs somewhere and then fall below that point it stucks holding his digger above his head digging the air and probably tries to dig that point which became unreachable. Everything get's back to normal if you select that unit, it just starts digging elsewhere.


Sun Oct 14, 2012 1:53 am
Profile
User avatar

Joined: Sun Jul 06, 2008 3:26 am
Posts: 29
Reply with quote
Post Re: My units stop auto-mining gold
I wonder, has there been any more work on this?


Thu Oct 25, 2012 9:09 am
Profile

Joined: Tue Sep 25, 2012 4:16 pm
Posts: 26
Reply with quote
Post Re: My units stop auto-mining gold
Are these experimental fixes part of the A.I mod thats doing the rounds? Will it conflict with that?


Thu Oct 25, 2012 12:39 pm
Profile

Joined: Fri Oct 05, 2012 5:06 am
Posts: 48
Reply with quote
Post Re: My units stop auto-mining gold
The guy who made the AI fix to make the AI actually shoot at range and to fire back when fired upon has declared he isn't working on his any more. Would it be possible to get the firing upgrades meshed in with the gold mining upgrades from here, since they are static now? It would be amazing if the AI could both mine to call down more units, and then actually be able to use those units.


Sat Oct 27, 2012 8:46 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: My units stop auto-mining gold
Human AI experimental fix 3


Thanks for the feedback weegee. It looks like that particular problem is gone now, so I'm uploading it here in case there are any other problems. Remember to back up the old files before installing.


Attachments:
experimental_ai_fix_3.zip [44.58 KiB]
Downloaded 433 times
Tue Nov 13, 2012 10:37 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 30 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.087s | 16 Queries | GZIP : Off ]