ProjectStarlight / StarlightRiver

Starlight River mod
https://discord.gg/snWQ3QE
GNU General Public License v3.0
146 stars 43 forks source link

[Bug] Auto Select doesn't pull the right row of inventory #665

Closed SuchOptions closed 7 months ago

SuchOptions commented 11 months ago

Information dump: tmodloader: v2023.8.3.0 terraria: v1.4.4.9 Starlight River v0.2.6 OS: Windows 10 Pro Config Settings: Everything on Default Controls: No Starlight River specific controls were assigned; The only change from default is x = quick heal and mouse4 = smart cursor All issues were encountered in single player and testing was done there as well. I have not done any multiplayer testing. Date of testing: 02.10.2023 (= 2nd of October 2023)

Since the latest version (see above), the "auto select" feature of vanilla terraria has been acting weirdly when playing with Starlight River. I first noticed it when playing with a multitude of mods, but isolated it down to Starlight River. Specifically, when trying to use the auto select feature, the game will always try to use the item in the hotbar, even if the actual item is located outside of it. The hotbar slot used is in the same column as the expected item. If the item is in the hotbar, no unexpected behaviour will occur. Outside of this, which row the item is in does not affect the outcome. The preview of the item to be used is still accurate.

Additional testing: When holding down the auto select key, pointing the cursor at a spot where an item (for example a torch) would be placeable, then holding down the mouse button to place the item, the player character will appear to place the item, but the item will not be placed (also not consumed). If you now keep holding the auto select key, Mouse1 and then scroll down (similar too cycling through the hotbar) you will select the torch and be able to place it until you let go of Mouse1. This test was done with the torch outside of the hotbar.

Additionally, whilst the inventory is open, no unexpected behaviour occurs.

The Log of me going into a rather vanilla world and reproducing the issue (in this world no Starlight River worldgen was done): client.log

If there are any questions or additional information I can provide, feel free to message me on Discord. I can't guarantee when I will answer messages on GitHub, but I will most likely answer in seconds on Discord. (ID tag thingy: resisbence) (I am also on the Starlight River Discord)

Librv commented 10 months ago

Can confirm, and it is really annoying. Here is a quick and dirty (and very low quality) demonstration.

https://github.com/ProjectStarlight/StarlightRiver/assets/73041325/370090b4-a3e2-442e-936f-d7ffd7e87e51

Areorah commented 10 months ago

I am having the same issue as well. Holding shift to fast place torches/glowsticks will cause you to instead use the item in your normal hotbar. For instance, if you have torches in column 2 row 2, it will instead use the item from column 1 row 1.

Dragonisser commented 8 months ago

Same. Been driving me crazy.

TripleFate commented 7 months ago

fixed in #673