1

Topic: [HELP] Compiling

I'm new and trying to compile Bam, I've read the FAQs and searched, but was unable to find help. I've run CMD, CD (Bam directory), make_win32_msvc.bat, it compiles, I'm now left with an EXE in my Bam folder, but it just opens and closes so I'm trying to figure out where I screwed up. I think I've followed the instructions perfectly, but obviously I missed something or I'm doing something wrong. I apologize for my ignorance, but I'm used to coding in C# with Visual C# so I've never had to compile like this before.

Thanks,
Ryan

Be there. Aloha.

2

Re: [HELP] Compiling

If you try to compile Teeworlds on windows, get bam 0.2.0, and read this.

lordskelethom - want to reach me quickly? https://discord.gg/teeworlds

3 (edited by Ryan Dale 2010-02-18 17:08:19)

Re: [HELP] Compiling

That's the guide I'm following, I think I'm using 2.3.2 of Bam, but I will try 0.2.0.

EDIT: Same result, but this time when I tried to compile Bam it doesn't create an EXE. Still not sure what I'm doing wrong.

EDIT 2.0: Here is my current issue, I've posted a screen so hopefully that will help:


http://i47.tinypic.com/16lijxv.jpg

Be there. Aloha.

4

Re: [HELP] Compiling

Check manually the path exists... maybe its not exactly the same.
Have you installed Visual C++ Express or Visual Studio?

Support Staff - ESL.eu Teeworlds Admin

5 (edited by Ryan Dale 2010-02-18 18:21:45)

Re: [HELP] Compiling

Lanta wrote:

Check manually the path exists... maybe its not exactly the same.
Have you installed Visual C++ Express or Visual Studio?

Yeah I installed Visual C++ 2008 Express Edition, I will check the location, thanks.

EDIT: I don't even have a VC file, I installed C++ though so I will have to work on that. Thanks for the help.

EDIT 2.0: The problem was I've got Windows 7 64 bit so some of the files are in a different folder. Thanks for all your help guys.

EDIT: OK I think that's working now, it said "Setting environment for using Microsoft Visual Studio 2008 x86 tools" I'm stuck at the next step though, in my Teeworlds src folder there isn't a Bam folder, I've looked through the whole thing, where is it?

Be there. Aloha.

6

Re: [HELP] Compiling

If you download and unzip bam 0.2.0 and follow that guide again, it'll work.
(when compiling bam it'll generate bam.exe at 'bam-0.2.0\src\bam' directory, after you can compile teeworlds)

lordskelethom wrote:

If you try to compile Teeworlds on windows, get bam 0.2.0, and read this.

check out these maps: infiltrate - choco - dustycloud

7

Re: [HELP] Compiling

Slinack wrote:

If you download and unzip bam 0.2.0 and follow that guide again, it'll work.
(when compiling bam it'll generate bam.exe at 'bam-0.2.0\src\bam' directory, after you can compile teeworlds)

lordskelethom wrote:

If you try to compile Teeworlds on windows, get bam 0.2.0, and read this.

OK thanks I did that, BUT the EXE when opened just shows the command prompt for a second and closes.

Be there. Aloha.

8 (edited by Lanta 2010-02-18 19:39:14)

Re: [HELP] Compiling

open cmd
go into the path of your teeworlds sources (mine are in c:\tw\)
do %comspec% etc ... It will say you "Setting environment for using Microsoft Visual Studio 2008 x86 tools"
execute from here the bam:
..\bam-0.2.0\src\bam release
where ..\bam-0.2.0\ must be replaced by your bam folder path. In the default configuration, bam is in the same folder as the teeworlds sources folder. that's why ..\bam\

EDIT: bam must be already compiled double clicking on the make_msvc batch file.

Support Staff - ESL.eu Teeworlds Admin

9

Re: [HELP] Compiling

Lanta wrote:

open cmd
go into the path of your teeworlds sources (mine are in c:\tw\)
do %comspec% etc ... It will say you "Setting environment for using Microsoft Visual Studio 2008 x86 tools"
execute from here the bam:
..\bam-0.2.0\src\bam release
where ..\bam-0.2.0\ must be replaced by your bam folder path. In the default configuration, bam is in the same folder as the teeworlds sources folder. that's why ..\bam\

OK I will try that way, thanks for your time and your patience.

Be there. Aloha.

10

Re: [HELP] Compiling

I get this error:

"bam: no project named 'default.bam'

Be there. Aloha.

11

Re: [HELP] Compiling

Ryan Dale wrote:

I get this error:

"bam: no project named 'default.bam'

1) Are you sure you are using version 0.2.0 and not the latest 0.3.x?
2) you must not run the bam.exe from the bam directory, but from the teeworlds sources directory

Support Staff - ESL.eu Teeworlds Admin

12

Re: [HELP] Compiling

Lanta wrote:
Ryan Dale wrote:

I get this error:

"bam: no project named 'default.bam'

1) Are you sure you are using version 0.2.0 and not the latest 0.3.x?
2) you must not run the bam.exe from the bam directory, but from the teeworlds sources directory

I'm using 0.2.0, I was using .0.3.2, but lordskelethom suggested I use 0.2.0 so I'm using that.

I'm running it in my main Teeworlds source directory (the folder with the default.bam, the readme, data, and the license to name a few of the files) and it still just opens up then shuts down.

Be there. Aloha.

13

Re: [HELP] Compiling

the bam folder must be 1 folder befor teeworlds-src example:

Directory>bam
Directory>Tw-Src

Directory = Directory (its the same)

..bam/src/bam..blabla

".." is for going one step back so you are now in Directory

"bam" than it goes in bam folder..

you have to rename bam-0.2.0 to bam or write

../bam-0.2.0/src/bam release


hope you understand what i mean!

-Stripe

14 (edited by buffer[] 2010-02-19 10:42:33)

Re: [HELP] Compiling

Reading all your post, it seems like you haven't understand the main thing about the compilation :
You have to enter every commands in a console, not just double-clicking the bam to compile teeworlds.

So you start a console (Windows+R, enter 'cmd'),
you go in your src folder (cd "my folder/and/do not forget quotes/ if u have spaces") and enter commands as everybody told you.

|ZPote| buffer[]'s posterous

15 (edited by Ryan Dale 2010-02-20 17:15:07)

Re: [HELP] Compiling

Stripe wrote:

the bam folder must be 1 folder befor teeworlds-src example:

Directory>bam
Directory>Tw-Src

Directory = Directory (its the same)

..bam/src/bam..blabla

".." is for going one step back so you are now in Directory

"bam" than it goes in bam folder..

you have to rename bam-0.2.0 to bam or write

../bam-0.2.0/src/bam release


hope you understand what i mean!

-Stripe

Thank you, that helped so much, exactly what I needed compiling it right now.

EDIT: I do get this error though:

http://i45.tinypic.com/dqm841.jpg

Be there. Aloha.

16

Re: [HELP] Compiling

What version of Python are you using? TeeWorlds compiling needs Python 2.6!

Goodbye all. Account inactive since March 2011.

17

Re: [HELP] Compiling

khubajsn wrote:

What version of Python are you using? TeeWorlds compiling needs Python 2.6!

Yeah I'm using 2.6 on Windows 7 Professional, 64 bit.

Be there. Aloha.

18 (edited by Lanta 2010-02-21 20:10:59)

Re: [HELP] Compiling

Omg... Windows 7 Pro, 64 bit. I had problem on compiling on this operating system, never solved.
I had your same error:
http://www.teeworlds.com/forum/viewtopic.php?id=5040
http://www.pctunerup.com/up/results/_200910/20091019164415_errors.jpg
I don't know if it can be solved, I know only I changed operatying system tongue

PS: by the way, you've not executed the line
%comspec% /k ""C:\...  "
before calling bam

Support Staff - ESL.eu Teeworlds Admin