1 (edited by nohack2win555 2020-05-18 00:37:31)

Topic: Compiling Help

deleted

2

Re: Compiling Help

You are saying that you have downloaded Visual Studio and MinGW, but in your error Message we can see clearly that bam uses Visual Studio for compiling and not MinGW.
If you wanto to change that, open the config.lua and change 'cl' to 'gcc'.

Wich version of bam are you using?

If these problems still occur after that, redownload the source: https://downloads.teeworlds.com/teeworlds-0.6.3-src.zip

There are three kinds of lies: lies, damned lies, and benchmarks.

3

Re: Compiling Help

These errors sound like the generating of files with Python failed. Can you check whether src/game/generated/protocol.h exists and contains source code?

4

Re: Compiling Help

Is python set as default application to open *.py files ? Once my default app to open them was a text-editor and this resulted in bam opening all python-files with that texteditor instead of executing them.

Luck is allowed

5

Re: Compiling Help

I have a similar problem when compiling teeworlds. I don't know anymore what I checked (or un-checked) during the installation of python but now it only works when I replace the "Script"-function in bam.lua with

-- data compiler
function Script(name)
    --[[if family == "windows" then
        return str_replace(name, "/", "\\")
    end]]--
    return "python " .. name
end

Maybe it's worth a try.

6

Re: Compiling Help

Haha i followed what TT <3 did and i put my python file location in my environment variables and it worked lol. Thanks everybody