java-devil / OCDheim

MIT License
4 stars 2 forks source link

Idea: Snap point and placement via keyboard #7

Open mikeabney opened 1 year ago

mikeabney commented 1 year ago

I haven't even used this mod yet, and I already love it! I used two mods for similar functionality before, but neither have been updated for a while and are broken in Mistlands. The mods were "Precise Piece Placement" and "Snap Points Made Easy". Would you be willing to consider keyboard binds for the following?

If so, another idea would be to then automatically start by locking the next piece to be built so it can be moved relative to where the last one was placed. I'm not sure if the code of the two mods I mentioned might help.

Snap Points Made Easy: GitHub Nexus Precise Piece Placement: GitHub of author Nexus

I couldn't find a GitHub link to the specific Precise Piece Placement code, but I believe the link does go to the author. I haven't (yet) asked, but they might be willing to share the source since they seem to have moved on from the mod.

Thanks for considering!

java-devil commented 1 year ago

Hey Man!

Disclaimer: The difficult problem in software development is which problems NOT to solve. Deciding where the line lies. OCDheim is not supposed to be "all things to all people". While one of my self-imposed restrictions is to be as non-invasive and as consistent with the Vanilla Valheim control experience as possible.

However, I'm not saying no, yet ;) Help me internalize the scenarios where these functionalities would be useful. For example: "I need the possibility to 'lock' a specific piece in order to snap to snap points covered up by another piece".

However-however, you probably should consider checking the mod before you respond ;) GRID MODE probably works more or less the way you think it "should". While OCDheim also adds so many additional snap points to existing pieces that cycling through them via button presses would become ridiculous (say a piece that previously had 4, now has 25).

Cheers! Adam

mikeabney commented 1 year ago

The difficult problem in software development is which problems NOT to solve.

Focus is key, no doubt! I used the mod a little last night and tonight (us/central). There is definitely less need for the requests I'm making with your mod in place, but some still seem useful. I'll know more after I experiment a little more. But here's at least a pitch for a couple.

locking + cycling through snap points

Have you ever been trying to place a corner roof piece and just not been able to get it to agree to the right snap point so that it lines up properly? How about when trying to build a "circular" roof? What about trying to place two stone blocks at a decorative angle like the image below only to have them always want to snap in a different way?

image

Some of those fall into the "snap points covered up by another piece" you mention, but that's not necessary for there to still be issues.

Building is the thing I love the most about Valheim, so I do it a lot. And it's fine if some of the things I'd like, especially the ones that are more QoL for speeding up building don't fit with what you're doing. Heck, it's fine if none of it does. I'm still thankful someone is thinking in this general area and helping us out. Maybe over the holidays I'll have the chance to dig in and mod a bit myself. (Probably not, but I can dream 😉)

java-devil commented 1 year ago

I'll add this to the "considered improvements" section. As one of the long-term priorities, but still likely up for implementation.

The first mod you linked seems to be working still in the Mistlands (or so would seem from the discussion on Nexus)? Nevertheless, it definitely doesn't work nicely with OCDheim ;)

If you are seriously considering modding yourself - why not join forces and contribute this functionality to OCDheim? I offer cookies and considerable help.