EDIT maybe remove topic like suggested below
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
[1.6] help.addTopic and help.removeTopic
Started by superaxander, 08 April 2013 - 07:46 PMPosted 08 April 2013 - 09:46 PM
Now you have to copy all topics from /rom/help and then add the topic file in the folder you copied to and do help.setPath. But with help.addTopic(path) you could manually add a file to the help (database?)
EDIT maybe remove topic like suggested below
EDIT maybe remove topic like suggested below
Posted 08 April 2013 - 09:58 PM
Awesome idea! Would help for my OS and other programs…
Also, you should be able to remove topics (that you've added).
Also, you should be able to remove topics (that you've added).
Posted 08 April 2013 - 10:04 PM
I will add that to the opAwesome idea! Would help for my OS and other programs…
Also, you should be able to remove topics (that you've added).
Posted 08 April 2013 - 11:57 PM
Or you can just add your topic to the folder?
Posted 08 April 2013 - 11:58 PM
We can't put files using cc in /rom/help
EDIT: as a program of course. I can when I am the owner of a server but you still need to let the user do it after downloading a program
EDIT: as a program of course. I can when I am the owner of a server but you still need to let the user do it after downloading a program
Posted 09 April 2013 - 01:43 AM
help.setPath("/rom/help/:somehelpfolder/")
Notice the colon. That will do so that you can add the files to somehelpfolder/, and it will be registered.
Posted 09 April 2013 - 02:42 AM
I think even persistence with the help api would be nice. that way on install/first run of a program you could register the help file, and then on uninstall you could unregister it, instead of having to register it each time the computer is restarted (which is what it does, unless I'm doing it wrong).
Posted 09 April 2013 - 04:32 AM
Just make your own help. You can write a program labelled help, and it should use that before the one in ROM.
Posted 09 April 2013 - 04:36 AM
but then what if they want to access those help topics?
Posted 09 April 2013 - 04:42 AM
Then you can simply copy the existing one. Copy it, then add to it. It's not really that hard to do.
Posted 09 April 2013 - 05:36 AM
While I understand why people want this, I would make it so that my program prints the help file when a user enters "<name of program> help" / "<name of program> -h" / "<name of program> –help". Seems simpler and more intuitive to me, anyway. And that way we don't have to ask dan to do anything.
Posted 09 April 2013 - 05:49 AM
help.setPath("/rom/help/:somehelpfolder/")
Notice the colon. That will do so that you can add the files to somehelpfolder/, and it will be registered.
Does this not work?
Posted 09 April 2013 - 10:06 PM
I'll try thathelp.setPath("/rom/help/:somehelpfolder/")
Notice the colon. That will do so that you can add the files to somehelpfolder/, and it will be registered.
Does this not work?