Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Digging without picks, chopping trees without axes.  (Read 1476 times)

DoctorMonch

  • Bay Watcher
  • Dabbling Vivisectionist
    • View Profile
    • History Of Bowmined
Digging without picks, chopping trees without axes.
« on: July 24, 2011, 02:36:15 pm »

I'm currently attempting to mod in a race that has a very dense exoskeleton, and decided to not give them the ability to use armor or weapons.

As such, they can't cut trees or mine... at all.

So, is there a tag I can input in place of [DIGGER:ITEM_WEAPON_PICK] to make it so they don't need anything to dig?
Logged
You lock MonkeyHead's right upper arm with your left hand!
Don't make me Shift-A>Enter>a>Enter>Enter.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Digging without picks, chopping trees without axes.
« Reply #1 on: July 24, 2011, 02:38:17 pm »

Try supplementing it with the hand code. I have yet to unzip my DF to look XD.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

LordSlowpoke

  • Bay Watcher
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #2 on: July 24, 2011, 02:40:50 pm »

Pure guess here, but can't you turn it into [DIGGER:SOME JOINT]? If I look at it the right way, it'll make the specified joint dig. Or you may end up cutting them away selectively to retrieve pickaxes. Both should work.
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Digging without picks, chopping trees without axes.
« Reply #3 on: July 24, 2011, 02:47:13 pm »

Pure guess here, but can't you turn it into [DIGGER:SOME JOINT]? If I look at it the right way, it'll make the specified joint dig. Or you may end up cutting them away selectively to retrieve pickaxes. Both should work.

I was thinking along the lines of DIGGER:HAND or something similar. Maybe if you add an arm for piercing and are able to specify the point of the arm, that'd probably work.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

G-Flex

  • Bay Watcher
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #4 on: July 24, 2011, 02:50:15 pm »

How would a race that can't use tools make any use of wood or stone, anyhow?
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #5 on: July 24, 2011, 03:23:22 pm »

You could replace picks with some kind of "digging claw" I suppose. There isn't a way, otherwise.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

DoctorMonch

  • Bay Watcher
  • Dabbling Vivisectionist
    • View Profile
    • History Of Bowmined
Re: Digging without picks, chopping trees without axes.
« Reply #6 on: July 24, 2011, 07:08:36 pm »

You could replace picks with some kind of "digging claw" I suppose. There isn't a way, otherwise.

Alright... how about this?

I put a new body part on them called "DIGGER" or something, which is attached to their body, but somehow unreachable.
They can equip a digging tool to that body part, and they can lay the tool like an egg in nest boxes.

It's not quite what I had in mind, but would it work?
Logged
You lock MonkeyHead's right upper arm with your left hand!
Don't make me Shift-A>Enter>a>Enter>Enter.

G-Flex

  • Bay Watcher
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #7 on: July 24, 2011, 10:23:55 pm »

"Somehow unreachable"? The only way to get that body part to hold a tool is to make it a grasping part, in which case they can hold other things as well with it... but they probably already have a GRASP body part, so why bother? And unless it IS the only grasping part, they could end up holding the tool in one of their other grasping parts instead. And if it IS their only grasping part, they'll hold everything they have to pick up in it. And if they have no grasping parts at all, then they won't work as a usable race for plenty of reasons, since they wouldn't really be able to work with anything, ever.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #8 on: July 25, 2011, 03:59:53 am »

You can only use digging tools with a grasping bodypart, which also means you can't make them dig through rocks by default without digging tools, as there's no tag that allows you to use a bodypart to dig, and you can't transplant that part of the code over there in the creature raws.

Making a hidden grasper part is kind of counter-intuitive, because as someone already pointed out here, the grasper is going to be used to hold swords, axes, spears and other stuff that involves a hand.
« Last Edit: July 25, 2011, 04:05:03 am by New Guy »
Logged
Thank you for all the fish. It was a good run.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Digging without picks, chopping trees without axes.
« Reply #9 on: July 25, 2011, 08:12:16 am »

Pure guess here, but can't you turn it into [DIGGER:SOME JOINT]? If I look at it the right way, it'll make the specified joint dig. Or you may end up cutting them away selectively to retrieve pickaxes. Both should work.
The DIGGER entity token does not work that way - it only accepts a weapon ID. In fact, nearly every raw token is like this - they may be plain text, but if you fill them with anything other than the expected type of value then it'll just reject the token entirely with an error message (in errorlog.txt).
« Last Edit: July 25, 2011, 08:13:48 am by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

drilltooth

  • Bay Watcher
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #10 on: July 25, 2011, 01:19:10 pm »

I had a similar idea.. and my question is, can you set weapon allowances at the caste level?
Logged
Pinkie pie cancels cook: taken by mood.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #11 on: July 25, 2011, 08:35:09 pm »

I had a similar idea.. and my question is, can you set weapon allowances at the caste level?

I think that weapons are more of an entity thing than a caste thing

Person

  • Bay Watcher
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #12 on: July 25, 2011, 08:49:17 pm »

You could make it so that only your "digger" or "cutter" caste gains exp in those skills.
Logged
Please don't let textbooks invade Bay12.
The Conquistadors only have the faintest idea of what the modern world is like when they are greeted by two hostile WWI Veterans riding on a giant potato; Welcome to 2016.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Digging without picks, chopping trees without axes.
« Reply #13 on: July 26, 2011, 09:38:47 am »

Yeah but that's about it, weapon and tool usage is completely an entity thing and the rest of this is pretty much hardcoded unfortunately. The best workaround that most people choose is just to go with naming their picks "digging claws" or something like that. Elsewise there isn't much else that can be done.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.