Edit Terrain Type -> Help Button Crashes #553
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
The help button in the top right causes a crash:
I don't know a way to search the repo history for a
ter-type-help.txtthat may have been deleted. There's no files similar to that which look like the right information.I noticed the same bug myself a couple of days ago. I'm pretty sure the file has never existed, and the intent was to add a file with a basic summary of how the dialog works. I did a few checks, but I can't find any evidence in git that the file ever existed.
In the Mac classic version of the Scenario Editor (1.0.4), there is no help button on that screen. It is referring to the old docs "Section 6 - Editing Terrain Types", which is found in the
doc/editor/Terrain.htmlfile.I can't even remember why I added a help button there. Based on the code, the referenced strings file was supposed to contain a few paragraphs that are shown in the 6-string style of dialog with an OK button, but I don't quite remember what I intended to put there. We can either remove the button or add the file with some useful content.
EDIT: It already existed when the dialog file was first added in 78cd2139720394ceeec799c31610ce388e5d2e80… which makes it even more of a mystery as to where it came from.
Alternately I wouldn't mind if we set a precedent for editor help buttons linking to the relevant section in the docs (are the docs packaged as offline html as part of the build? Would we also have to add anchor elements?)
Because there will always be a conflict inherent in keeping help windows DRY and consistent with the actual documentation.
Ohh, that might actually be a better idea! The game is set up to show local docs if they're packaged, otherwise link to the docs on openboe.com (which haven't been updated for a bit though). So we can easily decide to package them or not (I think we probably should). I'm not sure if the scons script currently packages them.
I think all the headers on each page of the documentation already have an ID, and in some places (most notably the special nodes) things that aren't headers also have IDs. So I don't think there'd be much need to add more IDs. Still, we totally could if needed. (Not anchors, that's like HTML3 and obsolete.)
Here's the game making that check for packaged docs:
a5d3780c5c/src/game/boe.main.cpp (L1313-L1315)And here's the scenario editor doing it too:
a5d3780c5c/src/scenedit/scen.main.cpp (L740-L743)I'll make this DRY and have the Terrain Help button do it, too.
Scons isn't packaging the docs for me on Mac.