iBluDrop, on 29 July 2012 - 03:41 AM, said:
I Need Some Help Wolf, I wrote a code for doors to come unlocked using passwords and i want to add it to your mainMenu, It has 5 tries, So after you fail 5 times i want it to go back to the mainMenu, Or if you get it correctly. Help Is Greatly Appreciated! The Coding Works Fine, I Just Need A Way To Add It To Your Menu. And if you dont mind just put the code that will add it to the group so i can add games and stuff
/> Just tell me where it goes, Cheers.
It's been a little while since I've even worked with 1.3.3
/>, but moving the program file to the following directory will allow it to be loaded into the program menu:
//WOLF/programs/doorLock.prog/doorLock
It is
very important that you create a new dir inside //WOLF/programs/ with the name of your program
in camelCase format with '.prog' on the end. Inside the new directory, place your program file, and
give it the same name as the directory (without the '.prog').
Sorry for the complicated process, but I didn't add full support for custom programs in WolfOS 1.3.x, but there will be so in 1.4.0; meaning that you can install programs within WolfOS.
As for making the program return the the WolfOS menu, swap your
os.shutdown()
with
os.run({}, "/WOLF/programMenu")
You will also probably need to change the calling of the 'Time' program to
os.run({}, "/rom/programs/time"
Hope that's helpful
/>