Page 1 of 1

[0.17.76] No cap for materials inside crafting machines using manual right click insertion

Posted: Fri Jul 26, 2019 9:46 pm
by Filter62
You can put much more materials than intended into crafting machines (assemblers, chemical plants, anything with recipe that has items)
20190727003609_1.jpg
20190727003609_1.jpg (762.27 KiB) Viewed 3600 times
To reproduce: Put materials manually with right click, holding same items, and suddenly there is no cap to how much you can put inside. As in screenshot, just using right click at this moment produces this bug adding 1 more item ignoring cap.

Re: [0.17.59] No cap for materials inside crafting machines using manual right click insertion

Posted: Sun Jul 28, 2019 2:46 pm
by Rseding91
Thanks for the report however that's not a bug. It is capped but it's a higher value than the default amount.

Re: [0.17.76] No cap for materials inside crafting machines using manual right click insertion

Posted: Sun Nov 10, 2019 7:10 pm
by Filter62
Where is this cap exactly?
20191110220616_1.jpg
20191110220616_1.jpg (32.61 KiB) Viewed 3451 times

Re: [0.17.76] No cap for materials inside crafting machines using manual right click insertion

Posted: Sun Nov 10, 2019 8:00 pm
by TruePikachu
I just tested it myself; the cap is ignored if you use RMB to place items in one at a time.

This is, in fact, a bug.

Re: [0.17.76] No cap for materials inside crafting machines using manual right click insertion

Posted: Sun Nov 10, 2019 8:19 pm
by TruePikachu
Capture.PNG
Capture.PNG (38.65 KiB) Viewed 3439 times
This is the result of:
  • Starting the game, without mods
  • Loading the Sandbox scenario with cheat mode
  • Creating an AM1
  • Filling the player inventory with magazines
  • Assigning the magazines to quickbar slot 1
  • Running the GlovePIE script listed below (AutoHotkey might also work, but it was faster for me to code it with GlovePIE)
  • Pressing "1" to put a stack of 200 magazines on the cursor
  • Pressing backslash to "enable" the script
The script, in a nutshell, just presses the right mouse button 200 times, followed by pressing the one key on the keyboard, then going back to spamming the RMB. The script was only used to automate this demonstration while I got up to heat up some food, as well as to save on mouse wear+tear.

Code: Select all

if pressed(Key.Backslash) then
 var.clik = not var.clik
 var.count = 0
 mouse.rightbutton = 0
 keyboard.One = 0
endif

if var.clik then
  if var.count == 200 then
    keyboard.One = not keyboard.One
    if keyboard.One == 0 then
      var.count = 0
    endif
  else
    mouse.RightButton = not mouse.RightButton
    if mouse.RightButton == 0 then
      var.count = var.count + 1
    endif
  endif
endif

Re: [0.17.76] No cap for materials inside crafting machines using manual right click insertion

Posted: Mon Nov 11, 2019 12:12 am
by Rseding91
Thanks for the steps to reproduce. It's now fixed for the next version of 0.17.