Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@NHTangles
Copy link
Contributor

This is my current work on HTML dump logs, for your consideration. This code is live on the hardfought servers. (sample: https://au.hardfought.org/userdata/T/Tangles/nethack/dumplog/1580642779.nh.html)
Please let me know if I can do anything to help you get it merged.
Thanks
Tangles.

Initial HTML Dumplog implementation.
This extends the dumplog 'windowport' paradigm, and dumps text and
HTML dumplogs in parallel (though it is possible to configure just
one or the other via sysconf, or by enabling DUMPLOG/DUMPHTML
macros independently at compile time).

This commit incorporates contributions by:
- Tangles (most of the code and logic)
- K2 and bhaak (various formatting and CSS improvements)
Original concept (and CSS) from UnNetHack.
also add html dumplogs to Guidebook.tex. Did not modify other
guidebooks yet.
@NHTangles NHTangles changed the title Net hack 3.7 htmldump Nethack 3.7 htmldump Feb 12, 2020
@NHTangles NHTangles changed the title Nethack 3.7 htmldump NetHack 3.7 htmldump Feb 12, 2020
@NHTangles
Copy link
Contributor Author

This feature adds a lot of extra code to windows.c that doesn't really belong there. I was considering moving all the dump code to a new file (dump.c?), but this would be difficult to maintain separately if it does not get merged (since it would also move a lot of existing code). I'd definitely be prepared to do that work and PR it if this one gets merged.

@nhcopier nhcopier deleted the branch NetHack:NetHack-3.7 January 27, 2022 16:20
@nhcopier nhcopier closed this Jan 27, 2022
@nhmall nhmall reopened this Jan 27, 2022
nhcopier pushed a commit that referenced this pull request Mar 30, 2024
This doesn't directly affect nethack, but it should prevent HTML
dumplog for variants that include that from showing T-shirt and
apron slogan text in tooltips for the 'gameover' map.  And it makes
end-of-game attribute disclosure slightly less susceptible to being
unintentionally reverted.

Code in pull request #300 shows that it uses do_screen_description()
for tooltips and do_screen_description() uses distant_name() for
objects so that's where I added this change that will trigger the
code from commit c699277.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.