|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 7 posts ] |
|
[Lua] Check Material Density + Remote Gold Harvesting
Author |
Message |
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
[Lua] Check Material Density + Remote Gold Harvesting
Allright, I have this neat concept and (again) no way to realize it without some serious helping hands. I'll outline what I want to do, you tell me if it's doable; I've done some searching with the wiki and forums (and existing mods) but have not found anything really relevant.
I'd like to choose an area, either a box or circle work, a circle would be better accuracy-wise. In this area, I want to know how much of some terrain material there is, gold for example.
The goal is to be able to do scans of a section of terrain and then make a rough guess about what the gold is worth.
Alternatively, some way to collect gold without appearing to touch it with an actor (obliterating terrain is fine).
I hope I was clear, it's become morning unbidden, and I'm passing out. Thanks for whatever you can aid with.
Last edited by PhantomAGN on Sat Mar 20, 2010 7:12 am, edited 2 times in total.
|
Thu Mar 18, 2010 9:55 am |
|
|
Abdul Alhazred
DRL Developer
Joined: Tue Aug 11, 2009 5:09 am Posts: 395
|
Re: [Lua] Determine Material Density
Kyred did a mining ai that scans a piece of terrain for gold.
|
Thu Mar 18, 2010 10:08 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: [Lua] Determine Material Density
There's no easy way to determine material density, though you could get a rough estimate with some strengthrays into the ground.
To collect it, just have a bunch of single-pixel Actors pop in, EraseFromTerrain, and then delete themselves.
|
Thu Mar 18, 2010 3:19 pm |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: [Lua] Determine Material Density
Allright, awesome, those ought to work.
|
Thu Mar 18, 2010 5:52 pm |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: [Lua] Determine Material Density
Bump for new information.
Ok, I've created a tiny actor based on code from the Distraction Device and I can emit them to use as one might use a digger. They each have a script that constantly (each update) that uses EraseFromTerrain. They're not collecting any gold, though their team is set to 0 and they're alive. Is there another step I've missed?
|
Sat Mar 20, 2010 7:11 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: [Lua] Check Material Density + Remote Gold Harvesting
Actually, I believe I spoke too soon. Thinking about it more, gold to be collected has to be dislodged first, then hit by an actor.
Try having your single pixel actors have attached emitters emitting negative mass mopixels.
|
Sat Mar 20, 2010 4:22 pm |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: [Lua] Check Material Density + Remote Gold Harvesting
Allright, I've made an emitter emit actors, and the actors have attached emitters that emit negative-mass particles. This is not working either, but if more eyes make this bug shallower, here's what I have for the actor and it's aura of emissions. http://pastebin.com/q36TLqAH
|
Sun Mar 21, 2010 9:34 am |
|
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|