Mood is a thing for

Mood is a thing for

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

Moderator: Moderators

Post Reply
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Mood is a thing for

Post by zoggop »

cattle and loveplay,

http://springfiles.com/downloadmain/15741
http://springfiles.com/spring/spring-ma ... d-loveplay

Image

Image

not fighting!

Unfortunately I couldn't get the sand dunes to be bumpy enough to block building construction yet smooth enough to allow vehicle passage. (I opted for the latter over the former.)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Mood is a thing for

Post by Pxtl »

Oooh, so *that's* why you wanted terrain that blocked buildings.
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Mood is a thing for

Post by Cheesecan »

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

Re: Mood is a thing for

Post by Pxtl »

So if you didn't want players to construct buildings on the sand, how did you expect them to harvest those spice-patches that are out there?
User avatar
maackey
Posts: 490
Joined: 02 Jul 2008, 07:11

Re: Mood is a thing for

Post by maackey »

is it possible to have lua spawn giant worms that eat any buildings that are built upon the sand? :wink:
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Mood is a thing for

Post by Pxtl »

Right now zwszg is currently rummaging through his old files to find that one gif.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

Unfortunately I couldn't get the sand dunes to be bumpy enough to block building construction yet smooth enough to allow vehicle passage.
you could block by terrain height (blabla zK terraforming blabla)
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

knorke wrote:you could block by terrain height (blabla zK terraforming blabla)
Really? How does one do that?
is it possible to have lua spawn giant worms that eat any buildings that are built upon the sand?
Were someone to model a sandworm head, I would be tempted into making it eat things with Lua.

So if you didn't want players to construct buildings on the sand, how did you expect them to harvest those spice-patches that are out there?
Weell, I guess that's why slope seemed the only way--because "spice" extractors can be built on just about any steepness.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

you could block by terrain height (blabla zK terraforming blabla)
Really? How does one do that?

Code: Select all

AllowUnitCreation(unitDefID, builderID, builderTeam, x, y, z)
if y > maxHeight then return false else return true
end
(add some extra if's to always allow mex, terraforming or w/e)
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Making a gadget to block all buildings except for metal extractors on sand (using the typemap) was shockingly easy, thanks to knorke's examples.

Code: Select all

function gadget:AllowUnitCreation(unitDefID, builderID, builderTeam, x, y, z)
   if (not builderID) then return true end   --no builder -> morph or something like that
	if UnitDefs[unitDefID]["extractsMetal"] > 0 then return true end
	local groundType, _ = Spring.GetGroundInfo(x, z)
	if groundType == "Sand" then
		Spring.Echo("Only metal extractors can be built on sand.")
		return false
	end
   return true
end
Of course, poor AIs will be totally confused by this. Any other suggestions? If anyone wants a map package with this build-blocking gadget, I'll post it.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

Of course, poor AIs will be totally confused by this.
could use Spring.GetTeamInfo to allow AIs to build anywhere.
Maybe also always allow the creation of gaiea (neutral team) units as some games might use that for various things.

Please make a map with that, always wanted to make/play such map but do no like going heightmap/texturing.
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Have been fiddling with the gadget... I added an "if it's a building" test ("isBuilding" in UnitDefs), which in BA has the somewhat confusing consequence of being able to build nano turrets on the sand, and not being able to build mines on the sand. I could fix that by making specific name-based if statements, but that may not work for other games. Also I'm making it a map option.
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Before I put a bunch of changes into version 2... how do I get "receivetracks=0;" in the SMD to actually do anything? I've tried "recievetracks" as in http://springrts.com/wiki/Maps:SMD, and the correct spelling. Neither seem to do anything (it defaults to receiving tracks).
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Mood is a thing for

Post by knorke »

It is def. "receiveTracks" (so that wiki page is wrong)
https://github.com/spring/spring/blob/d ... o.cpp#L380

I suspected it is maybe loaded and never used but in GroundDecalHandler.cpp there is an if for that.
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Mood is a thing for

Post by SirArtturi »

These dunes look so awesome! I think nobody has made a 'real' desert yet, so this might be interesting map to play.

But for v2, please, redo the metal spots. They ruin your otherwise fantastic looking map! Could you do regular looking spot, subtle ones, so that they blend into your landscape?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Mood is a thing for

Post by Beherith »

If one cant build on dunes, how does one cap mexes in sand?
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Beherith wrote:If one cant build on dunes, how does one cap mexes in sand?
Units that extract metal are allowed:

Code: Select all

local isNotValid = {}
for uDefID, uDef in pairs(UnitDefs) do
	if (uDef.extractsMetal == 0) and (uDef.maxAcc < 0.01) then --if it's not a metal extractor and does not move, it is not valid
		if string.find(uDef.tooltip, " Mine") == nil then --if it's a mine, it is valid
			isNotValid[uDefID] = true
		end
	end
end
The code above defines the list of units that can't be built on the sand. Though it looks odd, I'm using maxAcc<0.01 as a test because nano turret is not isBuilding=true, and dragon's claw has some infintessimally small maxAcc. If there's a better way than string-searching to sort mines (the kind that blow up) out of the unit blacklist, let me know.

edit: On another note, I'm fiddling with moving invalid build commands to the nearest bit of rock, so that AIs are not totally broken. The code to find nearest rock works okay, but issuing new commands seems not to do anything. Does this need to be done with a widget instead of a gadget?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Mood is a thing for

Post by Forboding Angel »

Nm, this post was made in error. Nice map!
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Mood is a thing for

Post by zoggop »

Map options and gadgets and questionable texturing decisions, oh my!

http://springfiles.com/downloadmain/15749
http://springfiles.com/spring/spring-ma ... loveplay-0

Image
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Mood is a thing for

Post by zwzsg »

Pxtl wrote:Right now zwszg is currently rummaging through his old files to find that one gif.
Do I really have to? It's seven years old!
Post Reply

Return to “Map Creation”