Topic: [Fixed - 3.85b] Blunt arrows - axe or sturdy carving knife isn't autoselected  (Read 466 times)


Plotinus

« on: November 17, 2024, 10:15:55 AM »
When I try to make blunt arrows, if all my items are dropped, it prompts me to select an Axe or sturdy carving knife from my inventory.

If I pick them up my knives and axes, it wants me to decide which one to use.


When I try to make a javelin, it automatically selects my masterwork handaxe from the ground.

Javelin:
Code: [Select]
{Axe or carving knife} [wearpct:30]

Blunt arrows:
Code: [Select]
{Axe or carving knife}  '+(for rough shaping)' [wearpct:20]
« Last Edit: November 20, 2024, 06:39:59 PM by Sami »

Sami

  • UnReal World creator
  • Administrator
  • Member
  • *****
  • Posts: 1270
  • Total likes: 3177
  • UnReal World creator
    • View Profile
    • UnReal World
« Reply #1 on: November 20, 2024, 06:39:27 PM »
Ah, this revealed a rather long-term issue - which is luckily fixed now.
See, as the number of required items is indicated within the parenthesis, ie. (num), here the game mistakenly tries to parse number of "axe or carving knife" required
from string within the only parenthesis found: (for rough shaping)
And in this case atoi() function naturally returns 0, which confuses the auto select mechanism.
This kind of cases must have existed here and there within craftable items, but they've been usually fixed with indicating the single item requirement manually, ie. (1).

Fixed - persists in 3.85beta.
- Sami | UnReal World creator