Jump to content

ComputerCraft lua packs

utility help

2 replies to this topic

#1 Games_Arsenal96

  • Members
  • 4 posts
  • LocationSlidell, Louisianna

Posted 18 June 2017 - 03:05 AM

I have been working with CC Lua packs and have noticed something with the autorun folders?
Is there a way to only autorun certain codes on certain devices like putting an autorun code for turning off a CommandComputer on startup or would I have to code it in the program itself?

Like is there a way to do: "packName/assets/computercraft/lua/rom/autorun/deviceName/program"

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 18 June 2017 - 03:25 AM

I doubt it. It's easy to code into the program though, just check for the commands table.

#3 Exerro

  • Members
  • 801 posts

Posted 18 June 2017 - 12:56 PM

Alternatively, I'm not sure if programs in sub-folders are run, but if not, you could do exactly what you said and have a single file in /autorun that checks the device type and runs programs in the respective folders.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users