[Solved] Question about Inserter hand_size

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 120
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[Solved] Question about Inserter hand_size

Post by Schallfalke » Tue Apr 23, 2019 5:52 pm

Hi all,

I am trying to make a new mod about inserters, so I have looked into the inserter prototype.
I found the "long-handed-inserter" has an unique line of:

Code: Select all

hand_size = 1.5
What does it do exactly? Such property line only exists for "long-handed-inserter", so I assume all the others are using the default value.
By searching, all I can find is the prototype definition page. Here is what it described:
hand_size
Type: Types/double
Default: 0.75
Surprising, there are no queries at all on what it does. May I know what it does exactly?
(If saying about the length of arm, then long-handed inserter should be exactly 1 tile longer, so should be 1.75 instead?)
(If saying about the size of the clamp, actually long-handed inserter has the same size as the starting inserters. Only the stack inserters and its filter variant use a larger clamp, according to the sprite sheets.)

If I want to add a even longer inserter than long-handed inserter (say range of 3 tiles), what value of hand_size should I use?

Best regards,
Schall
Last edited by Schallfalke on Wed Apr 24, 2019 5:07 pm, edited 1 time in total.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 6834
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Question about Inserter hand_size

Post by bobingabout » Wed Apr 24, 2019 1:31 pm

it increases the physical size of the 2 arm pieces of the inserter.

you'll notice (if you use a mod to set the positions to the same place) that the long handed inserter will then be bent over more.

this changes the arm extension calculations, as they can reach further with less extension effort, and therefore move laterally faster if they have a higher hand_size value.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Schallfalke
Fast Inserter
Fast Inserter
Posts: 120
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Re: Question about Inserter hand_size

Post by Schallfalke » Wed Apr 24, 2019 3:16 pm

Thanks for the explanation! :P
Just tested with doubling the hand_size, the arms become very long and angled up like a fishing rod.

(Although some exact description from devs would be nice. Now I can only empirically find out what value "looks best" by testing.)

Bilka
Factorio Staff
Factorio Staff
Posts: 2220
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Question about Inserter hand_size

Post by Bilka » Wed Apr 24, 2019 3:30 pm

The hand_size is cosmetic only and does not affect movement. The math in the code to do the drawing with the hand size goes a bit over my head, but the base game is using the hand size "reach * 0.75" (if you think about the numbers a bit) so that might also work for you.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.


Post Reply

Return to “Modding discussion”

Who is online

Users browsing this forum: No registered users