Metalmap Free Mexes

Metalmap Free Mexes

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderators: Moderators, Moderators

Google_Frog
Moderator
Posts: 2445
Joined: 12 Oct 2007, 09:24

Metalmap Free Mexes

Post by Google_Frog »

I have just implemented a metalmap replacement for ZK. In other words the metalmap now has no use beyond metal spot generation. Game-side overrides and map configs have been included.

What does this mean for mappers?
  • Mappers can ignore the metalmap and instead include a config file.
  • Broken metal layout it can be fixed gameside.
  • Cloud metalmaps are even more unwanted.
I don't know if a standard was proposed when Evo included easymetal but in any case there doesn't appear to be anything in use. So I made one myself based on what was convenient.

Basically the config file looks like this, is called map_metal_layout.lua and should go in the base directory of the map. If that is a bad name or location it can go somewhere else but I would rather not change the return format. The metal variable is optional. If it is not present the metal value will be read from the metalmap and if that is 0 it will be set to a default value.

So, there it is if anyone wants to use it.
0 x

User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Metalmap Free Mexes

Post by SirArtturi »

What does mapper benefit from this? Besides the difficult way of configuring metal spots with coordinates.
0 x

User avatar
Beherith
Moderator
Posts: 4937
Joined: 26 Oct 2007, 16:21

Re: Metalmap Free Mexes

Post by Beherith »

Editing a text file is way more time consuming than clicking a spot in the metal map image.
I love how ZK labels everything they dont like as 'broken' (see wind, gravity, maxmetal).

I hope you realize this can result in samey and stale 'flat' gameplay on every map.
0 x

Google_Frog
Moderator
Posts: 2445
Joined: 12 Oct 2007, 09:24

Re: Metalmap Free Mexes

Post by Google_Frog »

So you're not interested, that's fine. Detection works with most of the current maps and aims to retain the metal distribution balance of a map. There are still super mexes.

As for placement you wouldn't edit a text file. You'd use an as yet unwritten widget to click on the map a few times to send properly formatted coordinates to a file.
0 x

User avatar
smoth
Posts: 22300
Joined: 13 Jan 2005, 00:46

Re: Metalmap Free Mexes

Post by smoth »

Beherith wrote:Editing a text file is way more time consuming than clicking a spot in the metal map image.
I love how ZK labels everything they dont like as 'broken' (see wind, gravity, maxmetal).

I hope you realize this can result in samey and stale 'flat' gameplay on every map.
would take me 1 hours to add support for metal spot placement in feature placer..
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Metalmap Free Mexes

Post by Forboding Angel »

Google_Frog wrote:I have just implemented a metalmap replacement for ZK. In other words the metalmap now has no use beyond metal spot generation. Game-side overrides and map configs have been included.

What does this mean for mappers?
  • Mappers can ignore the metalmap and instead include a config file.
  • Broken metal layout it can be fixed gameside.
  • Cloud metalmaps are even more unwanted.
I don't know if a standard was proposed when Evo included easymetal but in any case there doesn't appear to be anything in use. So I made one myself based on what was convenient.

Basically the config file looks like this, is called map_metal_layout.lua and should go in the base directory of the map. If that is a bad name or location it can go somewhere else but I would rather not change the return format. The metal variable is optional. If it is not present the metal value will be read from the metalmap and if that is 0 it will be set to a default value.

So, there it is if anyone wants to use it.

I want to have your children. As of my next map I will be using it. If there is already a metal map will the lua override it (this owuld be preferable)?
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Metalmap Free Mexes

Post by Forboding Angel »

smoth wrote: would take me 1 hours to add support for metal spot placement in feature placer..
Won't even take me that long. You knwo the metal spot feature in spring features? I'm going to start lying that feature, then strip it out of the dumped features txt and use it for mex spot configs.

Metal map creation in less than 1 minutes? Yes please.

Changing it later by editing a file? Yes please.

The epicly sexy part of this is that the game can change the layout on it's own. So different games could have different metal layouts of the same map.
0 x

User avatar
Jazcash
Posts: 5302
Joined: 08 Dec 2007, 17:39

Re: Metalmap Free Mexes

Post by Jazcash »

Does this create the potential for dynamic metal maps that can alter during a game?
0 x

User avatar
Beherith
Moderator
Posts: 4937
Joined: 26 Oct 2007, 16:21

Re: Metalmap Free Mexes

Post by Beherith »

The support for dynamic metal maps has been in since .83

Code: Select all

Spring.SetMetalAmount( number x, number z, number metalAmount)
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Metalmap Free Mexes

Post by knorke »

good idea.
Actually thought about that a while ago too:
http://springrts.com/phpbb/viewtopic.ph ... p&start=31

Since it would be possible to have different metalspot layouts in the same map, also come up with a standard for mapoptions for this?
---
Jazcash wrote:Does this create the potential for dynamic metal maps that can alter during a game?
Possible "since forever", in various ways. Spring gives complete enough controll about resources for that.
also play on mah maps.
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Metalmap Free Mexes

Post by CarRepairer »

This would be a good idea if googlefrog hadn't swapped out my easymetal algorithm for his new one. Instead of
Google_Frog wrote: What does this mean for mappers?
  • Mappers can ignore the metalmap and instead include a config file.
  • Broken metal layout it can be fixed gameside.
  • Cloud metalmaps are even more unwanted.
It would be

What does this mean for mappers?
  • Mappers can ignore the metalmap and instead include a config file.
  • Broken metal layout it can be fixed gameside.
  • Cloud metalmaps are instantly fixed
0 x

User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: Metalmap Free Mexes

Post by 1v0ry_k1ng »

Beherith wrote:Editing a text file is way more time consuming than clicking a spot in the metal map image.
I love how ZK labels everything they dont like as 'broken' (see wind, gravity, maxmetal).

I hope you realize this can result in samey and stale 'flat' gameplay on every map.
fixing the unpolished aspects of the engine doesn't really affect gameplay (unless you hold that 'bugs are features' mindset).. the only effect this really has is to give metal extractors a standardized radius and allow the snap-to-position mex placement (which is awesome).
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Metalmap Free Mexes

Post by Forboding Angel »

1v0ry_k1ng wrote:the only effect this really has is to give metal extractors a standardized radius and allow the snap-to-position mex placement (which is awesome).
I find it irritating that Evo has had this for over a year and no one bothers to notice, but zk adds it and it's a "Brand new feature to the engine omgomgomgomimgoingtocumimgoingtocumimgoingtocum!!!!111eleventyone1!"

:roll:
0 x

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Metalmap Free Mexes

Post by Licho »

To be fair CarReparirer made easy metal years ago for CA and CAK..
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6140
Joined: 29 Apr 2005, 01:14

Re: Metalmap Free Mexes

Post by FLOZi »

More interesting if modified to allow for multiple map-based resources (though without proper engine support for that it'll always fall short - For some game designs 'cloud' maps would be quite nice indeed)
0 x

User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Metalmap Free Mexes

Post by Pxtl »

Related: now that we're getting coordinates of the metal at start up, could we get a gameoption to add a graphical patch for maps that have invisible or poor-visibility metal patches? Many old maps have invisible metal.
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Metalmap Free Mexes

Post by CarRepairer »

Pxtl wrote:Related: now that we're getting coordinates of the metal at start up, could we get a gameoption to add a graphical patch for maps that have invisible or poor-visibility metal patches? Many old maps have invisible metal.
I believe there already is such a thing, ask forb.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Metalmap Free Mexes

Post by Forboding Angel »

Pxtl wrote:Related: now that we're getting coordinates of the metal at start up, could we get a gameoption to add a graphical patch for maps that have invisible or poor-visibility metal patches? Many old maps have invisible metal.
There is already a map widget that does it (and btw the way it does it is fucking retarded).

The only thing left to do is to have a widget that places geovent textures where geovents are, because we can now place geovents with lua.

I started on one, but I couldn't get any further with it due to lack of knowledge/experience working with lua. The sauce is in the lua forum.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Metalmap Free Mexes

Post by Forboding Angel »

Licho wrote:To be fair CarReparirer made easy metal years ago for CA and CAK..
Yeah, and you guys snubbed your noses at it. Your loss is my gain.
0 x

User avatar
det
Moderator
Posts: 737
Joined: 26 Nov 2005, 11:22

Re: Metalmap Free Mexes

Post by det »

There can only be 1 reason Car cares so much about cloud metal maps: Azure Rampart is his favorite map!
0 x

Post Reply

Return to “Map Creation”

cron