Topic: [Not a bug] The name '+' command  (Read 8141 times)


Brygun

« on: November 03, 2020, 04:45:49 AM »

Thought it would say:

"Short quarter log For core wood"

from this recipe... so I need to fix it a different way... bother... or at least report it as a bug...

wasn't '+' supposed to keep the original name and then add to it, hence plus.

Cause if not there is a ton of work for me to fix.



.Axe haft. "Hunting horn" (4) [effort:2] [phys:arms,hands,stance]   *TIMBERCRAFT* %10% |-1| /120/ [patch:4]
{Short quarter log}       [remove] [patchwise]   '+For core wood'
{Axe}<Carving axe>       [noquality]
{Knife}<Small knife>
[MATERIAL:wood]
[WEIGHT:1]
[PRICE:0]
[TILEGFX:bc-axehaft]
//was 30 min for 1
//Now produces multiple with longer time
« Last Edit: December 27, 2020, 04:06:45 PM by Sami »

Brygun

« Reply #1 on: November 03, 2020, 04:52:32 AM »
Not a bug

reread modding

the + has to be ahead of the quotes not in it

 :(

Privateer

« Reply #2 on: November 03, 2020, 05:38:21 AM »
Not a bug

reread modding

the + has to be ahead of the quotes not in it

 :(

Looked and was about to say the same thing, '+' add additional text/description to ingredient
To help is it's own reward.
Mods:
https://www.unrealworld.fi/forums/index.php?action=profile;area=showposts;sa=attach;u=10 Player Quests, Arrow quiver, Bee hives honey & mead, Massive menus, Fish Farmer, Combat trainer, Player made markers, Weaving, Wood stacks, Chicken coop Fish cuts, string&bone.

Brygun

« Reply #3 on: November 03, 2020, 09:41:15 PM »
Here;s something a related


.North-west corner. [effort:4] *BUILDING* [GFX_X:0] [GFX_Y:0]   |+2|   [assist:3]   /320/
.Northern wall.       [effort:4] *BUILDING* [GFX_X:1] [GFX_Y:0]   |+2|   [assist:3]   /320/
.North-east corner. [effort:4] *BUILDING* [GFX_X:3] [GFX_Y:0]  |+2|     [assist:3]     /320/
.Western wall.        [effort:4] *BUILDING* [GFX_X:0] [GFX_Y:1]   |+2|   [assist:3]     /320/
{Log} (6) [remove] [ground]
{Axe} <Carving axe> '+for carving the logs'
{Axe} <Broad axe> '+for finishing the walls'


Will come up as "Axe for carving the logs"

So it appears that the + inside the single quotes is used as an additive while the + outside is a replacer

but

That isn't what went on in the:

{Short quarter log}       [remove] [patchwise]   '+For core wood'

case

Observation:

{Short quarter log} :
1) isn't a base game object
2) is a multi word object


Wondering whether 1 or 2 may show the difference from the biy Axe example

Privateer

« Reply #4 on: November 03, 2020, 10:18:30 PM »
 Have you checked the result of using it as 'used'?

Make
{Short quarter log}       [remove] [patchwise]   '+For core wood'

Into simply this to check the result?
{Short quarter log} '+For core wood'

I dropped it into a recipe and get this:
Spoiler: show


Might be an ordering problem given what you are doing.eg:

{Short quarter log}  '+For core wood' [remove] [patchwise]

I think there may also be a third (3) option. Due to the hardcoded nature of the building menu items some 'special' things may apply.
« Last Edit: November 03, 2020, 10:22:22 PM by Privateer »
To help is it's own reward.
Mods:
https://www.unrealworld.fi/forums/index.php?action=profile;area=showposts;sa=attach;u=10 Player Quests, Arrow quiver, Bee hives honey & mead, Massive menus, Fish Farmer, Combat trainer, Player made markers, Weaving, Wood stacks, Chicken coop Fish cuts, string&bone.

 

anything