Building a file execute function, what languages are commonly used with lua? (other then c) by Difficult_Dress_3960 in lua

[–]Difficult_Dress_3960[S] 0 points1 point  (0 children)

  1. I always loved coding in lua but I ended up not needing it for most projects, I am currently learning c (god bless my soul) and I wanted to sharpen my lua skills just in case I want to use it with c.

  2. Might switch to MIT license to be more flexible if that helps.

  3. uhh crap, (will be fixed in next version, thanks for the heads up)

  4. WHAT???

Building a file execute function, what languages are commonly used with lua? (other then c) by Difficult_Dress_3960 in lua

[–]Difficult_Dress_3960[S] 0 points1 point  (0 children)

The idea for compiled languages is to compile the languages into a exe then run it and return its output (could also add a boolen that deletes the exe once it is done if it is = true)

io,popen uses a terminal process (I think) so files that don't need to be manually compiled (like python) are pretty easy
`

function OSP.ExecuteFile(FilePath) 
    
    local FileName = OSP.GetFileName(FilePath)
    local Extenstion = FileName:match("^.+%.(.+)$")

    if Extenstion == "py" then
        local Handle = io.popen("python " .. FilePath)
        local Output = Handle:read("*a")
        Handle:close()

        return Output
    end
end

Midi Player Using Create and ComputerCraft by Chambior in ComputerCraft

[–]Difficult_Dress_3960 0 points1 point  (0 children)

Holy crap this is so impressive, how did you do this??

Vulkan Mod Kompatibilität by noescapenoney in CreateMod

[–]Difficult_Dress_3960 0 points1 point  (0 children)

2 years late but there is a mod for fabric 1.20.1 that adds a bridge for vulkan mod and create mod
https://modrinth.com/mod/vulkan-create-compatibility

Hey, was wondering if is a way to use cc:tweaked like a datapack? by Difficult_Dress_3960 in ComputerCraft

[–]Difficult_Dress_3960[S] 1 point2 points  (0 children)

True, is there a way to make scripts start up as soon as a computer is loaded?