Page 2 of 2

Posted: 26 Sep 2007, 19:13
by Mr.Frumious
rattle wrote:The problem is that it has to be rendered to the map texture. You know, clipping errors, even on completely flat ground, aren't nice. Second approach would be to model them but uh no. Unit's can't cross them then.
Isn't it possible to make intangible features that units walk through? And make features with a ground-texture?

Posted: 26 Sep 2007, 19:40
by FLOZi
You could use LUA to redraw the ground texture anyway

Posted: 26 Sep 2007, 21:31
by TechnoTone
rattle wrote:I'd need regrowing resources though, or rather random spice blooms which appear every now and then and they explode into fields. That's a bit much probably.
It's not that difficult - I done a similar thing once with a different project of mine. In my environment food would auto spawn at random locations to maintain a minimum level (to prevent it dying out completely). In additional food could also reproduce at a nearby location. This way, food would gradually grow into larger, more densely populated fields as time went on.

Posted: 26 Sep 2007, 23:29
by rattle
I know it isn't exactly difficult (though I wouldn't know how to render somethign to the maptexture).

However, can you access the terrain definition for a location? You wouldn't want to spawn a tree on a piece of metal but on the ground. It would be nice if you could access the matrix the pathfinder uses, if it held ground information that is, specifically in ratios (i.e. X5, Y10 => metal=0.15, grass=0.85). So filtering out useless positions is kinda easy then as well as you don't have go through it pixel by pixel or what ever else method. So I'd basically filter out all which aren't 100% grass and have my array of locations where to spawn trees.

Posted: 27 Sep 2007, 01:16
by Pressure Line
Mr.Frumious wrote:Isn't it possible to make intangible features that units walk through? And make features with a ground-texture?
yes, you can have non-blocking features (this can be done with units using the openyard yardmap + scripts). might get a bit humorous when you build something on top of it and end up with a harvester trying to harvest through the building.

Re: LUA driven peon harvesters!

Posted: 20 Dec 2009, 23:45
by Regret
I HEREBY DEMAND PROGRESS RELEASED.

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 02:32
by Argh
2+ Years later?

This really isn't something difficult, man- it's easier than building a UI. I've already released most of the source you need to do this.

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 10:22
by Regret
Argh wrote:2+ Years later?

This really isn't something difficult, man- it's easier than building a UI. I've already released most of the source you need to do this.
You sound like a broken video of a mac advertisement.

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 10:23
by KDR_11k
Regret wrote:
Argh wrote:2+ Years later?

This really isn't something difficult, man- it's easier than building a UI. I've already released most of the source you need to do this.
You sound like a broken video of a mac advertisement.
There's an Argh for that.

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 19:18
by Argh
Let's try another tack. I've tried explaining how to do this- it's very simple (well, I think so anyhow), the only hard part's the graphics side. Where are you getting stuck?

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 19:48
by Regret
Argh wrote:Let's try another tack. I've tried explaining how to do this- it's very simple (well, I think so anyhow), the only hard part's the graphics side. Where are you getting stuck?
I'm not actually trying to make this, just someone in lobby asked for a similar thing so I bumped this in case the OP already made what the guy in lobby requested.

Re: LUA driven peon harvesters!

Posted: 21 Dec 2009, 19:57
by Argh
The OP's been gone for over a year, and like most of his projects, the source was never released. If you want to see this, you need to write it.

Re: LUA driven peon harvesters!

Posted: 01 Jan 2010, 01:57
by Tribulex
Zpock is still my god. I believe that someday he will return. When he releases his lua, I will release mine, and then there will be a lua revolution!!!!!!

HEIL!!!!!