Search

Search found 22 matches

by SoftNum
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 ...
by SoftNum
22 Dec 2005, 02:34
Forum: AI
Topic: Threads
Replies: 7
Views: 1197

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...
by SoftNum
20 Dec 2005, 19:51
Forum: AI
Topic: IAICheats
Replies: 21
Views: 3240

The big Z indicated that you might need to allocate 10000, not 5000 into the int array.

Do you have the callback trace that your code generates? Is it and access violation, or an assertion error or?
by SoftNum
20 Dec 2005, 18:20
Forum: AI
Topic: IAICheats
Replies: 21
Views: 3240

.\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...
by SoftNum
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'...
by SoftNum
20 Dec 2005, 01:37
Forum: AI
Topic: Group AI and Global AI
Replies: 104
Views: 15266

So, K, is what you're asking for just an option to allow / disallow Group AIs in a game? That's a good idea.
by SoftNum
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...
by SoftNum
20 Dec 2005, 00:55
Forum: AI
Topic: AI developer count
Replies: 11
Views: 2391

Developing an AI called NatsuAI.
by SoftNum
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...
by SoftNum
16 Dec 2005, 20:12
Forum: AI
Topic: Speed comparisons
Replies: 30
Views: 5014

Just to be perverse and play the large numbers game.

188 billion operations only takes 188 seconds @ 1Ghz. That's 3 mins. Which means in a 1.5 hour game, you're AI can take up just 1/30th of the CPU and still run with no load.
by SoftNum
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...
by SoftNum
14 Dec 2005, 20:33
Forum: AI
Topic: omg dont let them see me!
Replies: 4
Views: 1257

I had this in my AI, it was related to bad GiveOrder() calls.

But, unfortunatly, without a stack dump or seeing the code, it's hard to say.
by SoftNum
14 Dec 2005, 20:13
Forum: AI
Topic: Passing containers to functions
Replies: 13
Views: 2100

Actually, technically both ways would work. But A's way is a bit more C++ friendly. Atleast, for the calling of the actual function. You would neet to use -> ... or the ponderous (*var).x -> is much better.
by SoftNum
12 Dec 2005, 03:01
Forum: AI
Topic: nested lists
Replies: 6
Views: 1541

Try

Code: Select all

all_lists->push_back(ground_factories); 
But, I would make all_lists not a pointer.
by SoftNum
11 Dec 2005, 16:05
Forum: AI
Topic: UnitDef Blank?
Replies: 9
Views: 1598

Plus with all the source-code floating around, it's not like we're not borrowing some of the bits. -_^

Of course, once I release I plan on giving credit where it's due, etc. :)
by SoftNum
11 Dec 2005, 08:04
Forum: AI
Topic: UnitDef Blank?
Replies: 9
Views: 1598

I figured it out.

Don't use Debugging Symbols when you compile FTW.
by SoftNum
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 ...
by SoftNum
11 Dec 2005, 02:54
Forum: News
Topic: New version, 0.67b2
Replies: 12
Views: 8540

Okay, I figured out the problem.

TASpring isn't loading the script from TASClient.

If I start spring and use 'GlobalAITest (AI)' ir runs fine.

But if I use TASClient, add bots, and run, it says 'Loading Script Commanders' and then the AIs don't run.
by SoftNum
11 Dec 2005, 02:32
Forum: News
Topic: New version, 0.67b2
Replies: 12
Views: 8540

Still not working for me... Tried XTA 66SE and AA 1.25S

AAI and NTAI Don't do anything.

infolog.txt:

TA Spring 0.67b2
Using script Commanders
Player SoftNum joined as 0
Path cache hits 0 -1%
Path cache hits 0 -1%
by SoftNum
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?

Go to advanced search