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

[Solved] Help With Shell.resolve()

Started by Dayrider10, 10 May 2014 - 01:29 PM
Dayrider10 #1
Posted 10 May 2014 - 03:29 PM
Hey Everyone!

I need to find a way where I can put a folder called Tanks anywhere like in a path a/b/c/d/Tanks and still be able to execute the games. I have tried shell.resolve() ,but I don't know if I am using it correctly. Please help. I want to execute files like custom and singleplayer that are in the same folder. Here is the code:


http://pastebin.com/ejqhjSJn

Am I using shell.resolve(".") correctly?
Edited on 10 May 2014 - 01:44 PM
Lignum #2
Posted 10 May 2014 - 03:38 PM
You would need to do shell.resolve("") .. "/[file]" but you could just do shell.resolve("[file]").
Edited on 10 May 2014 - 01:50 PM
Dayrider10 #3
Posted 10 May 2014 - 03:43 PM
Thank you it worked a lot better now! Thanks for your help!
Lignum #4
Posted 10 May 2014 - 03:46 PM
Thank you it worked a lot better now! Thanks for your help!
You're welcome!