I found this github project through the OpenComputers forums that converts and displays custom images in Minecraft. I've got the converter working, but the LUA code returns an error when I execute it on my OpenOS computer.
In accordance with the github readme I set CPU architecture to LUA 5.3. I used 'wget' to download ctif-oc.lua directly from the github page. In the original forum thread someone mentioned that the location of the image needed to be inserted in the args table as a string in the code. On line 1 I see "local args = {...}" which I assume is the location they are talking about. The problem is I don't know what it means to insert the location of my image as a string. Is this all I need to do to get this program to function? If so could someone provide an example of what that section of the code looks like after you have done it?
I tried copying my image into bin and inserting the name of the image ('miku.ctif' in this case), but it returned an 'attempt to index a nil value' error. I also tried inserting '/bin/miku.ctif' which returned an 'unexpected symbol' error for '/'. Clearly I need to do something more than just insert the path to the file, I just don't know what that is.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I found this github project through the OpenComputers forums that converts and displays custom images in Minecraft. I've got the converter working, but the LUA code returns an error when I execute it on my OpenOS computer.
In accordance with the github readme I set CPU architecture to LUA 5.3. I used 'wget' to download ctif-oc.lua directly from the github page. In the original forum thread someone mentioned that the location of the image needed to be inserted in the args table as a string in the code. On line 1 I see "local args = {...}" which I assume is the location they are talking about. The problem is I don't know what it means to insert the location of my image as a string. Is this all I need to do to get this program to function? If so could someone provide an example of what that section of the code looks like after you have done it?
I tried copying my image into bin and inserting the name of the image ('miku.ctif' in this case), but it returned an 'attempt to index a nil value' error. I also tried inserting '/bin/miku.ctif' which returned an 'unexpected symbol' error for '/'. Clearly I need to do something more than just insert the path to the file, I just don't know what that is.
github page: https://github.com/ChenThread/ctif
original forum post:
Link to post
Share on other sites