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

[1.6] help.addTopic and help.removeTopic

Started by superaxander, 08 April 2013 - 07:46 PM
superaxander #1
Posted 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
Shnupbups #2
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).
superaxander #3
Posted 08 April 2013 - 10:04 PM
Awesome idea! Would help for my OS and other programs…

Also, you should be able to remove topics (that you've added).
I will add that to the op
Cloudy #4
Posted 08 April 2013 - 11:57 PM
Or you can just add your topic to the folder?
superaxander #5
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
Mads #6
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.
theoriginalbit #7
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).
Cranium #8
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.
theoriginalbit #9
Posted 09 April 2013 - 04:36 AM
but then what if they want to access those help topics?
Cranium #10
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.
SadKingBilly #11
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.
Cloudy #12
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?
superaxander #13
Posted 09 April 2013 - 10:06 PM

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?
I'll try that