1 (edited by WrX 2012-06-10 14:33:51)

Topic: Compiler can't find generated files

Hello world ^^

I downloaded clear 0.6.1 sources and can't compile them...
- windows 7 x32 prof
- python 2.7.3 \ 3.7.3 (tryed both; x86)
- bam 0-4-0
- VC++ 2010 express

Deleted all generated files (bam -c) and deleted folder "objs" and file "config.lua".

Also i edited bam.lua (i had over9k errors before):
return str_replace(name, "/", "\\") -> name = str_replace(name, "/", "\\")
return "C:\\Python27\\python.exe" .. name <- Its correct link.

Screen:
http://img3.picload.org/image/rpwoaow/screen.png
Looks like compiler still can't find the python...

File's associaton is correct:
http://img3.picload.org/image/rpwoaid/screen2.png

How to fix these errors?

2

Re: Compiler can't find generated files

Might not fix it, but you should try removing the objs/ subfolder from your teeworlds folder.

Not Luck, Just Magic.

3 (edited by WrX 2012-06-11 18:06:32)

Re: Compiler can't find generated files

Problem fixed.
---------------------------
How to fix:

Open bam.lua and delete the lines (in function "Script"):

if family == "windows" then
name = str_replace(name, "/", "\\")
end

Also you should to change in all calls of "Script" function ways:
from

Script("scripts/cmd5.py")

to

Script("scripts\\cmd5.py")

etc.

Hope it will help to someone
Have nice day smile