1

Topic: [HELP] Compiling a clean source

I downloaded Python, Visual C++, the source and bam. Then I installed bam and compiled a mod's source. That worked.

But, when I tried to compile a pure Teeworlds source I got this:
http://cdn.solidfiles.net/i/oh2j.png

I am using Windows 7 64-bit. Someone who knows what the problem is?

2

Re: [HELP] Compiling a clean source

Yeah it's because you use 64-bit. I had the same problem with Windows Vista 64-bit some months ago. I found the solution in the forum here but now I don't find the thread^^

I'm not sure but I think the only thing you have to change is to replace in the default.bam file following lines:

function Script(name)
    if family == "windows" then
--        return str_replace(name, "/", "\\")    <--- this was the old line 
        return "C:\\Python26\\python.exe " .. str_replace(name, "/", "\\") 
    end
    return "python " .. name
end

Then it should work.

3

Re: [HELP] Compiling a clean source

I think this is not a matter of using 64 bit, but of using windows, it is a bug in default.bam. When you are on windows, this function actually returns name of python script in win format, and it should return command that can be run.
unlimreal: your version isn't okay too, it should be

function Script(name)
    if family == "windows" then
--        return str_replace(name, "/", "\\")    <--- this was the old line 
        return "python" .. str_replace(name, "/", "\\") 
    end
    return "python " .. name
end

and you should have python in your path. This is mainly portability issue, f.e. is someone has different version of python or on different installation location, yours script won't work.

Drowning dwarves lately

4

Re: [HELP] Compiling a clean source

unlimreal: Your code work.
Jamp: Your code did not work.

Thanks smile

5

Re: [HELP] Compiling a clean source

One should read twice before posting...

function Script(name)
    if family == "windows" then
--        return str_replace(name, "/", "\\")    <--- this was the old line 
        return "python " .. str_replace(name, "/", "\\") 
    end
    return "python " .. name
end
Drowning dwarves lately

6

Re: [HELP] Compiling a clean source

I think this should be Stickied or something thanks a lot Jamp

if you are looking for support for DDRace, please go to http://DDRace.info.