Search found 22 matches
- 22 Dec 2005, 16:25
- Forum: AI
- Topic: problems with giveorder()
- Replies: 9
- Views: 1682
There's a delay between the GIveOrder() command and the GetCurrentUnitCommands() call being populated. I tried to use this method as well, but I found that my unit was getting somewhere between 10-30 commands before GetCurrentUnitCommands() was populated. Don't know why. Now I just keep an internal ...
Threads arn't that bad, you just need to be careful. Threads arn't going to get you any more speed, it just allows you to parallel a lot of tasks. Basically in my AI I'm using them to make sure my Update() calls dont' back up the server. However, there are a lot of 'gotchas' in threading and such. B...
.\GlobalAI.cpp(143) : error C2664: 'int IAICheats::GetEnemyUnits(int *)' : cannot convert parameter 1 from 'std::set<_Kty>' to 'int *' with [ _Kty=int ] No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called This error would seem to indicate...
- 20 Dec 2005, 01:55
- Forum: AI
- Topic: Group AI and Global AI
- Replies: 104
- Views: 15266
Oh? I actually didn't. I figured that the GroupAI talked to the server machine, and not just to the client. My bad. Honestly, I'd like the challenge of making a good like, resource AI, or whatever. Or possible one that's good at fighting. I guess I don't see what the problem is. Algorythmic AIs can'...
- 20 Dec 2005, 01:37
- Forum: AI
- Topic: Group AI and Global AI
- Replies: 104
- Views: 15266
- 20 Dec 2005, 01:01
- Forum: AI
- Topic: Speed comparisons
- Replies: 30
- Views: 5014
So, how exactly do you think your Windows XP machine does all 10-20 odd things it does at once? Threads arn't 'Quick and dirty' they're a good idea for scalar programming. Dual Core, or Dual CPU computers don't actually benefit people unless the coder breaks the tasks up into threads that can be don...
- 20 Dec 2005, 00:55
- Forum: AI
- Topic: AI developer count
- Replies: 11
- Views: 2391
- 19 Dec 2005, 04:59
- Forum: AI
- Topic: Speed comparisons
- Replies: 30
- Views: 5014
Threads are basically an easier eay of doing what you mention on a single proc system. The thread can be spawned in Update(), and then you can check to see if the thread has completed each update till it's time to spawn a new thread. In fact, this is exactly what my AI does. The problem with threads...
- 16 Dec 2005, 20:12
- Forum: AI
- Topic: Speed comparisons
- Replies: 30
- Views: 5014
- 16 Dec 2005, 02:02
- Forum: AI
- Topic: Speed comparisons
- Replies: 30
- Views: 5014
Why are you so worried about speed, anyway? I'm writing a threaded AI, and it can do some pretty complex operations, and the thread will be done before the next frame. But, as to your question, The multiplication is slower then everything else, but not by an appreciable amount. If you're multiplying...
- 14 Dec 2005, 20:33
- Forum: AI
- Topic: omg dont let them see me!
- Replies: 4
- Views: 1257
- 14 Dec 2005, 20:13
- Forum: AI
- Topic: Passing containers to functions
- Replies: 13
- Views: 2100
- 12 Dec 2005, 03:01
- Forum: AI
- Topic: nested lists
- Replies: 6
- Views: 1541
Try
But, I would make all_lists not a pointer.
Code: Select all
all_lists->push_back(ground_factories);
- 11 Dec 2005, 16:05
- Forum: AI
- Topic: UnitDef Blank?
- Replies: 9
- Views: 1598
- 11 Dec 2005, 08:04
- Forum: AI
- Topic: UnitDef Blank?
- Replies: 9
- Views: 1598
- 11 Dec 2005, 05:56
- Forum: AI
- Topic: UnitDef Blank?
- Replies: 9
- Views: 1598
UnitDef Blank?
I seem to have a problem with my AI. numunit=mProc->aiCallback->GetNumUnitDefs(); unitList = new const UnitDef*[numunit]; mProc->aiCallback->GetUnitDefList(unitList); sprintf_s(logmes, 100, "This Many Units Inited: %d %s", numunit, unitList[1]->humanName.c_str()); Log->Log(logmes); Always ...
- 11 Dec 2005, 02:54
- Forum: News
- Topic: New version, 0.67b2
- Replies: 12
- Views: 8540
- 11 Dec 2005, 02:32
- Forum: News
- Topic: New version, 0.67b2
- Replies: 12
- Views: 8540
- 11 Dec 2005, 02:05
- Forum: News
- Topic: New version, 0.67b2
- Replies: 12
- Views: 8540
AI?
Since I updated to 67b2 none of the AIs seem to actually load. the GLOBAL_AI_INTERFACE_VERSION didn't change, and I get no errors.
What need to be fixed to make an AI start? Or am I just dumb?
What need to be fixed to make an AI start? Or am I just dumb?