View unanswered posts | View active topics It is currently Fri Dec 27, 2024 12:52 pm



Reply to topic  [ 7 posts ] 
 [Lua] Check Material Density + Remote Gold Harvesting 
Author Message
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post [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
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post Re: [Lua] Determine Material Density
Allright, awesome, those ought to work.


Thu Mar 18, 2010 5:52 pm
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.035s | 13 Queries | GZIP : Off ]