Proposal: Add basic mapoptions to base content - Page 3

Proposal: Add basic mapoptions to base content

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

Moderator: Moderators

Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Proposal: Add basic mapoptions to base content

Post by Auswaschbar »

FLOZi wrote:
To make a dry map wet at least you need to know how wet it should be. There is no clear way to automatically decide this value, and to make it user settable doesn't make a lot of sense, frankly. (You need testing to find what water height works properly.)
I disagree, I think making it user settable makes perfect sense. The player knows what water depth is suitable for the game they are playing. The mapper, clearly, can not ever know that, unless they force their map to only play one game.
Erm, no, I don't think so. Even I don't know that.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Proposal: Add basic mapoptions to base content

Post by FLOZi »

1. You start a game, your units can't cross the shallows.
2. You restart game with a lower water setting.
3. ...
4. Profit!
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: Proposal: Add basic mapoptions to base content

Post by hunterw »

Tobi wrote: To make a wet map dry the mapoptions can simply increase maxHeight by -minHeight and set minHeight to 0.
don't do it like this please, set minheight at 100 to keep craters from opening up lakes in the bottom of "dry" maps
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Proposal: Add basic mapoptions to base content

Post by Nemo »

Given that most of the debate seems to be occurring around the 'wet' option, is there perhaps consensus on adding a 'dry' option to base content?

Making maps which have rivers set to very specific depths for particular games 'dry' would open them to various other games, which seems like a good thing to me (as a game dev), and would provide a mapper with a wider audience without having to release multiple versions of the map.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Proposal: Add basic mapoptions to base content

Post by Google_Frog »

I have actually tested raising/lowering water. On a 16x16 map I experienced less than a second freeze, the freeze was just a little blip but unfortunately I think it would be too noticeable for use ingame (some kind of superweapon).

To show how easy it is I just added it to CA.

Code: Select all

function gadget:Initialize()
	if modOptions.waterlevel and modOptions.waterlevel ~= 0 then
		Spring.AdjustHeightMap(0, 0, Game.mapSizeX, Game.mapSizeX, -modOptions.waterlevel )
	end
end
It really is just as simple as this.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Proposal: Add basic mapoptions to base content

Post by Tobi »

For a mapoption you want to do it in the SMD so you don't trigger full repathing while game is running. (and so you don't have the 1 sec spike)
Post Reply

Return to “Map Creation”