This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
krzys_h's profile picture

guihelp - GUI Help Viewer

Started by krzys_h, 02 January 2015 - 05:43 PM
krzys_h #1
Posted 02 January 2015 - 06:43 PM
This program is an alternative of the builtin "help" tool. It's easier to use, and shows content from ComputerCraft wiki instead of text files from /rom/help (but it uses them as a fallback if HTTP API is not available).
This is a beta version, so some stuff may not work as excpected.

Main features:
  • Loading content from ComputerCraft wiki
  • Clickable links
  • Automatic link detection in local help files
  • History, home and reload buttons
Usage:
Starting browser on main page:
guihelp
Starting on a given page:
guihelp "Page name"
Force offline mode (load help files from /rom/help even if http api is available):
guihelp - offline
Buttons:
[X] - quit
[H] - home page
[<] - previously opened page
[R] - reload this page
[>] - next page

Screenshots:
SpoilerContent loaded from wiki:

Using standard help files as fallback if http api is disabled:

Known issues:
  • Tables don't work yet
Installation:
pastebin get KvBi078w guihelp
View code on Pastebin
Geforce Fan #2
Posted 10 January 2015 - 07:33 PM
Why isn't this included in computercraft?
10/10 for good idea and implementation
but you might want to fix the flickering, I think computercraft's default window API would help you. Not sure, I've never actually worked with it :3
also maybe a search if possible?
Edited on 10 January 2015 - 06:36 PM
safetyscissors #3
Posted 14 January 2015 - 08:50 AM
Lol. That 5x7 monitor wiki is both pretty awesome and rediculous. I appreciate the detail put into error handling and fail conditions. It might be nice to have something tracking the version of the ccwiki so we'll know if its broken by a site redesign or unexpected api changes in the future.
SquidDev #4
Posted 14 January 2015 - 09:19 AM
Wow, that is pretty impressive. Just one bug I found:

When rendering http://www.computerc...bust_Turtle_API at the travelling section. It encounters <i>[amount]</i> is optional and everything goes blue instead. I'm guessing there is something breaking with the HTML parsing, though I haven't read the code.
Edited on 14 January 2015 - 08:20 AM
comp500 #5
Posted 28 February 2015 - 10:01 AM
For some reason it says 404 not found, when viewing any page apart from home