Shaosil / LethalCompanyMods-GeneralImprovements

A general improvements mod for Lethal Company
https://thunderstore.io/c/lethal-company/p/ShaosilGaming/GeneralImprovements/changelog/
8 stars 7 forks source link

[Bug] Unable to sell scrap #211

Closed broken-usb closed 1 month ago

broken-usb commented 1 month ago

Unable to sell anything when SellCounterItemLimit is set to 999

v1.3.5 added the option to increase the ammount of stuff that can be placed at once on the Company's counter to a maximum of 999, the issue is that setting it to 999 prevents you from placing anything in the counter.

https://github.com/user-attachments/assets/4d78cb0e-06bf-4474-b272-3e30f639b775 (Sorry for the black screen at the start, my OBS settings are kinda scuffed atm, video plays normaly after 0:08)

It could be an issue with another mod i have installed but the issue only started happening after the recent update (v1.3.5)

Profile code: 0190f15a-212d-57b0-d34e-7a6ec78fc192 Log: LogOutput.log (The log is pretty extensive since i did play for a while before going to sell the scrap, line 4772 is when i pull the lever to land on Gordion)

Shaosil commented 1 month ago

Hmm that's an annoying one, sorry if that's mine. I don't see any errors in the log and the code looks ok at a glance so I'll have to test this one. It works if you set it to something like 998, or 100, or 12?

Shaosil commented 1 month ago

Nevermind I figured it out... the IL opcode only goes up to 127, so I'll have that fixed in the next update. Setting it from 1-127 should work :)

broken-usb commented 1 month ago

Hmm that's an annoying one, sorry if that's mine. I don't see any errors in the log and the code looks ok at a glance so I'll have to test this one. It works if you set it to something like 998, or 100, or 12?

I tested with 12 and it works fine.

Shaosil commented 1 month ago

Fixed in v1.3.6