Metal Map

Metal Map

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
mGehring
Posts: 5
Joined: 10 Dec 2006, 13:14

Metal Map

Post by mGehring »

Hi there

here I am again

I have a question about the interface method

IAICallback#getMetalMap()

(from Spring-Source 0.74b1 rts/ExternalAI)

Are there any plans to kick this method or to change the return value in his sematic or type?

I have some nice ideas to figure out the good positions for building extractors. However it is much work to make them real so I want to ask for any changes before I go ahead.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I'm not sure exactly what you mean, but this map is essentialyl what you see when you press f4. Metal in sprign is not the same as in TA as in TA you had mapper defiend markers signifyign a mex spot and tis related image. In spring you have a metal disribution. Go play small divide or brazillian battlefields to see.

However, I suggest you look at krogoths Metal class, it is particularly fast and gives good results on a lot of maps, altho it leaves a lot to be desired on maps such as brazillian battlefields despite some improvements made.
User avatar
mGehring
Posts: 5
Joined: 10 Dec 2006, 13:14

Post by mGehring »

Thx for your answer :-)
I'm not sure exactly what you mean
I use this method to get the informations I need to tell my ai where the metal is. That a lot of work (and fun) so I want to know if this method to get the Metal-Map change in the next time, before I start the work. However, I don´t believe that somebody change such an important mehtod.
I suggest you look at krogoths Metal class
Thanks for the hint. Some helpful suggestions are always welcome!
If you or somebody else is interested I will show my concept to get
the (hopefully) best postitions for extractors. It is derived from
some concepts used in digital image processing
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Sounds interesting. :) Also you don't have to worry about getMetalMap() being removed, the core AI interface hasn't changed in a very long time and isn't likely going to either.
User avatar
mGehring
Posts: 5
Joined: 10 Dec 2006, 13:14

Post by mGehring »

Also you don't have to worry about getMetalMap()
Cool, thats good to know ...
Sounds interesting. :)
If my concept works fine and is different from other concepts I find here, e.g. the Matel class written by krogoths or something else I can post a brief overview in the Development->AI-Forum.
If somebody want more details I have no problem to upload the hole concept or/and source in detail. But it´s written in c# :wink:
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

There's a port of krogs metal class to C# in CSAI, however it uses xml to save data rather than the usual method, and its not the latest version either.
Post Reply

Return to “Engine”