Scenedit Quality of life: be helpful when scrolling past boundaries #543
Reference in New Issue
Block a user
No description provided.
Delete Branch "editor-bounds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've implemented 2 features here:
I did this because I need to be able to find town entrances in the built-in scenarios so I can debug things.
@@ -440,33 +440,27 @@ static void handle_scenario_args() {}No need. If there are multiple entrances, the town should already be set up to properly handle them – if they are in different outdoor sections, there would be a "change outdoor location" special node near each viable exit, for example. And if they're using the "set town exits in town settings" feature, that should also correctly reposition them when they leave town.
So, this code only really matters if there is just one town entrance… though it certainly doesn't hurt to take the first if there are multiple, just in case.
Couldn't this also take into account the exit location settings in the town settings?
Oh, yes it could. And those could be added to the string choice dialog
Although it couldn't guarantee that it put you at the exit coordinate in the right outdoor section, if a multi-entrance town changes the section before you leave via special node. It could provide choices between the different sections that contain entrances? But still that might not cover all possibilities if an exit might be in a totally different section set by a special node.
@CelticMinstrel Given those considerations I don't think the Town Exits feature would be very reliable/good if I did implement it.
I guess in the most basic case of only having entrances in one section, it would be nice....
I think the Town Exits feature should be thought of as a "shortcut" for when all the exits are in the same section. You shouldn't use it when there are exits in multiple sections.
Furthermore, in the most typical use-cases, there will be a town at the location of the Town Exit point, so generally those exits will be found by your normal search.
But that said, it's not necessary for a town to exist at the Town Exit point. The second fort in Exile II is a good example of a town that would probably (if implemented in Blades of Exile) use the Town Exits feature to point to a location in the outdoors that's not itself a town.
So, I think a reasonable conclusion can be: if all the town locations you found are in the same outdoor section, check the Town Exit location for the direction you're exiting in and add it if it isn't already in the list.
By the way, what happens here if there are no entrances to the town?
That makes sense for the exits.
When there are no entrances, nothing happens. I didn’t add a message for it
or anything.
On Wed, Jan 22, 2025 at 6:54 PM Celtic Minstrel @.***>
wrote:
It just stops scrolling?
Yes.
On Wed, Jan 22, 2025 at 9:24 PM Celtic Minstrel @.***>
wrote: