Jump to content




[Solved] Help With Shell.resolve()

help lua utility

3 replies to this topic

#1 Dayrider10

  • Members
  • 32 posts

Posted 10 May 2014 - 02: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 by Dayrider10, 10 May 2014 - 02:44 PM.


#2 Lignum

  • Members
  • 558 posts

Posted 10 May 2014 - 02:38 PM

You would need to do shell.resolve("") .. "/[file]" but you could just do shell.resolve("[file]").

Edited by Lignum, 10 May 2014 - 02:50 PM.


#3 Dayrider10

  • Members
  • 32 posts

Posted 10 May 2014 - 02:43 PM

Thank you it worked a lot better now! Thanks for your help!

#4 Lignum

  • Members
  • 558 posts

Posted 10 May 2014 - 02:46 PM

 Dayrider10, on 10 May 2014 - 02:43 PM, said:

Thank you it worked a lot better now! Thanks for your help!
You're welcome!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users