Topic: [3.60 beta] Controlling how much cord/rope we make in a recipe  (Read 1017 times)


Brygun

« on: September 17, 2019, 12:48:56 AM »
In the revised tying equipment system for our own make a cord/string/rope how do we set the length produced?

does [patch:#] mean we make # feet of the tying equipment?

If it is some multiple of that, like patch:5 means 15 ft, please restore a 1-1 ratio by making the vanilla recipes patch:15  as when we are modding/debugging its easy for someone to forget the ratio exists


Vanilla 3.60 beta recipes below

.Cord.   [effort:1] [phys:hands,one-armed] *COMMON*   [patch:5]  /30/ %50% |-2|
{Cloth} #0.5# [remove] [patchwise]
{Knife}

.Leather rope. [effort:1] [phys:arms,one-armed]   *COMMON*  [assist:1]      /60/   %50% |-1| [patch:5]
{Leather} #1# [remove] [patchwise]
{Knife}
{Water} #1# [remove] [patchwise]      

.Birch-bark rope. [effort:1] [phys:arms,one-armed]  [assist:1]   *CARPENTRY*      /2h/   %30%  |-1| [patch:3]
{Birch-bark strip}   =80=    [remove] [patchwise]
{Knife} <Small knife>                   
{Water} #1# [remove] [patchwise]

Brygun

« Reply #1 on: September 17, 2019, 12:53:39 AM »
Found the code for modders to use...

... Still don't know the base length of a rope made. (a sample test might reveal)

>>>>>>>>>>>

- modding add: [LENGTH:] item property tag

This tag is used to specify item length. It's usage is intended for specifying length for
modded ropes and cords so be sure to use it within proper item type context. Results for
other than tool type items can be unpredictable.

[LENGTH:] - length in feet

For example:
[LENGTH:4] - the item is 4 feet long

PALU

« Reply #2 on: September 17, 2019, 02:26:12 PM »
If you look at the recipes in the vanilla files you'll find the answer (and I believe Sami has mentioned it somewhere, as well). The crucial part is "=X=" where X is an integer value (no fractions he said, but I wouldn't be surprised if the value was limited to 127 or 255 (if so, it might be too little for e.g. a fishing net).

Thus, you'll find entries looking something like this:
"{Cord} =5= [remove]" (copied from the Shortbow recipe in diy_glossary.txt).
As you've probably seen elsewhere when reading this, Sami has confirmed that the standard typing equipment length is 15 ft.

Brygun

« Reply #3 on: September 17, 2019, 08:39:22 PM »
@PALU I'm talking about the other side of the situation. Where we >make< a cord, rope or similiar not when we use it (as in the code snippet you sited).

How do I set how much length of a "string" is made be a mod recipe?

« Last Edit: September 17, 2019, 08:47:22 PM by Brygun »

Brygun

« Reply #4 on: September 17, 2019, 08:49:53 PM »
... Still don't know the base length of a rope made. (a sample test might reveal)

Answered by Saami elsewhere is 15 feet is the default

 

anything