Jump to content




[question] Am I right in thinking...


  • You cannot reply to this topic
7 replies to this topic

#1 sancarn

  • New Members
  • 11 posts

Posted 16 August 2012 - 05:53 PM

Am I right in thinking that you cannot edit the help program in game because it is part of the ROM?

if so, is there anything I can do such that help works with my program? If I write a program called help which accepts program names as arguments could I redirect programs to the help program written in the ROM if the word is unknown?

#2 BigSHinyToys

  • Members
  • 1,001 posts

Posted 16 August 2012 - 06:15 PM

There is this api but I haven't used it so i cant explain usage.
Spoiler


#3 sancarn

  • New Members
  • 11 posts

Posted 16 August 2012 - 06:56 PM

View PostBigSHinyToys, on 16 August 2012 - 06:15 PM, said:

There is this api but I haven't used it so i cant explain usage.

I see. I shall wiki it... Hmm... The path of help is rom/help/ so maybe fs.copy("<program name>","rom/help/<programname>") would work?

Edit: Nope - Error: lua:43: Access Denied - shame...

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 16 August 2012 - 07:30 PM

Anything within ROM is write protected, so anything you do would have to be done by adding the files manually in you gamesave folders.

#5 Ponder

  • New Members
  • 49 posts

Posted 16 August 2012 - 09:13 PM

You can change the path, from which the API draws its information apparently via help.setPath (<path>). No Idea how those files have look like, though.

#6 BigSHinyToys

  • Members
  • 1,001 posts

Posted 16 August 2012 - 09:33 PM

here is an example of a help file they are just text in a file the file is located in rom/help
Spoiler


#7 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 16 August 2012 - 10:47 PM

Just make a new help? "Edit help"

#8 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 17 August 2012 - 12:39 AM

View Postmarumaru, on 17 August 2012 - 12:29 AM, said:

lol, make a new help and if you want to edit the api do
os.unloadAPI("help")
os.loadAPI("help")
Its in the ROM(Read Only) Unloading the API will not allow you to edit it. You need to do it from outside the game.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users