Search

Search found 3591 matches

by abma
22 Sep 2009, 13:54
Forum: AI
Topic: New c++ interface: GetResourceMapSpotsPositions() broken?
Replies: 2
Views: 988

Re: New c++ interface: GetResourceMapSpotsPositions() broken?

I've tested it, the function seems to have a bug. My ai also tries to build at non-metal spots.

Other ai's often use their own function to get metal spots...

I've filled a bug report: http://springrts.com/mantis/view.php?id=1656

It seems to be fixed in git.
by abma
22 Sep 2009, 13:17
Forum: AI
Topic: Techtree from Spring - Balanced Annihilation 7.01
Replies: 3
Views: 1628

Techtree from Spring - Balanced Annihilation 7.01

I've created a techtree for spring:
http://abma.de/sites/files/techtree.pdf

I don't know if it is useful for someone, if so: feedback is welcome :-)

For more infos:
http://abma.de/blog/2009/302
by abma
22 Sep 2009, 11:38
Forum: AI
Topic: AI Ladder, 0.5
Replies: 336
Views: 18404

Re: Idea for someone enterprising: create an AI ladder

It's a bit off-topic:

Read about this?

http://botprize.org/

The bots are tested for the turing test. It's for UnrealTournement, but spring would be interesting too... :-)
by abma
21 Sep 2009, 01:57
Forum: AI
Topic: Positions for Geothermal Plants
Replies: 2
Views: 729

Re: Positions for Geothermal Plants

Found it myself:



(Pseudo-Code:)

Code: Select all

List<Feature> f=OOAICallback.getFeatures()
for (int i=0; i<f.size(); i++){ 
	if (f.get(i).getDef().isGeoThermal()){
            ...
	}
}
by abma
21 Sep 2009, 01:16
Forum: AI
Topic: Positions for Geothermal Plants
Replies: 2
Views: 729

Positions for Geothermal Plants

Hi!

How can i get locations for Geothermal plants through the Java-Interface?
Map.getResourceMapSpotsPositions(Resource=energy) doesn't work...

The only idea i had, was try and error...
by abma
26 Aug 2009, 14:48
Forum: AI
Topic: [JAVA-AI] How to get all energy producing Units?
Replies: 3
Views: 706

Re: How to get all energy producing Units?

yes, this was the function i searched thanks. In short this does what i searched: if (UnitDef.getUpkeep(redID) *-1 + UnitDef.getResourceMake(redID) + UnitDef.getWindResourceGenerator(redID) + UnitDef.getTidalResourceGenerator(redID)) > 0 ) { ... } i was confused about the negative energy usage of a ...
by abma
26 Aug 2009, 13:53
Forum: AI
Topic: [JAVA-AI] How to get all energy producing Units?
Replies: 3
Views: 706

[JAVA-AI] How to get all energy producing Units?

Hi, i'm trying to write an java-ai and i have a problem to find all units producing energy: getResourceMake works to find advanced fusion and so... and getUpkeep to find the solar-plants (in BA). But wich property makes a Windmill produce Energy? getMakesResource and getExtractsResource always retur...
by abma
26 Aug 2009, 13:44
Forum: AI
Topic: Using the resource maps
Replies: 24
Views: 3178

Re: Using the resource maps

i didn't read the whole thread.. but:

did you check OOAICallback.getMap().getResourceMapSpotsPositions()?

this function returns spots where to build resource extractors...
by abma
01 Jun 2009, 13:26
Forum: AI
Topic: Howto (Hello-World) Skirmish AI?
Replies: 8
Views: 2016

Re: Howto (Hello-World) Skirmish AI?

how do i use directly the c interface, or is the c-interface incomplete?
by abma
01 Jun 2009, 12:13
Forum: AI
Topic: Howto (Hello-World) Skirmish AI?
Replies: 8
Views: 2016

Re: Howto (Hello-World) Skirmish AI?

In http://github.com/imbaczek/baczek-kpai/ ... Export.cpp "LegacyCpp/AIGlobalAI.h" is included.

Will this file be deprecated in the future?
by abma
01 Jun 2009, 05:01
Forum: AI
Topic: Howto (Hello-World) Skirmish AI?
Replies: 8
Views: 2016

Howto (Hello-World) Skirmish AI?

Hi, i'm trying to write an ai, but i'm really unsure what functions i should use, there are to few docs for the new c/c++ interface. (Or i haven't found it?) This is, what i have: SpringAI.h EXPORT(int) handleEvent(int teamId, int topic, const void* data); EXPORT(int) init(int teamId, const struct S...

Go to advanced search

cron