1

Topic: Teeworlds server on freebsd

I have shell account and i want run teeworlds server. I was do that:

$ fetch http://teeworlds.com/files/bam.zip
$ unzip bam.zip
$ rm bam.zip
$ fetch http://teeworlds.com/files/teeworlds-VERSION-src.zip
$ unzip teeworlds-VERSION-src.zip
$ rm teeworlds-VERSION-src.zip

Compiling bam

$ cd bam
$ ./make_unix.sh
$ cd ..

Compiling teeworlds

$ cd teeworlds-VERSION-src

$ ../bam/src/bam release

for server only,

$ ../bam/src/bam debug

But here i had some problems so i Remove

-fstack-protector -fstack-protector-all

from default.bam in Teeworlds root directory and then run

../bam/src/bam -c all



Whats now ?

2 (edited by datag 2008-09-09 21:12:33)

Re: Teeworlds server on freebsd

About the -fstack-protector -fstack-protector-all flags:

wikipedia wrote:

By default, stack-smashing protection can be attained by adding the -fstack-protector flag for string protection, or -fstack-protector-all for protection of all types. On some systems, as under OpenBSD, ProPolice is enabled by default, and the -fno-stack-protector flag disables it.

filed here: http://www.teeworlds.com/?page=docs& … Everything

You now have to do a

bam server_release

to compile the release version of the server.

After that run it with ./teeworlds_srv -f your_config.cfg

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

3

Re: Teeworlds server on freebsd

If i write "bam server_release" connsole show me :

bam: no project named 'default.bam'

whats now ?

4

Re: Teeworlds server on freebsd

jaki wrote:

If i write "bam server_release" connsole show me :

bam: no project named 'default.bam'

whats now ?

Change into the teeworlds-0.4.x-src directory first, where the default.bam is located. Execute bam from there.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

5 (edited by Chi11y 2008-09-11 17:08:38)

Re: Teeworlds server on freebsd

sad now i have other problem

[jonek @ hekko ]$ ./bam server_release
bam: [string "internal base"]:289: attempt to call a nil value
strack traceback:
        [C](-1): errorfunc
        [string "internal base"](289): CollectAdv
                directory=0x8075910 (function)
                pattern=0x80d64a0 (function)
                d=nil
                f=0x0 (no value)
                (for generator)=0x0 (no value)
                (for state)=0x0 (no value)
                i=0x0 (no value)
                v=0x0 (no value)
        [string "internal base"](275): Collect
                arg=0x8075910 (function)
                f=0x80d64a0 (function)
                (for generator)=0x80d6480 (function)
                (for state)={...}
                i=0x0 (no value)
                what=0x0 (no value)
        default.bam(253): build
                settings=0x8075910 (function)
        default.bam(394): (null)
bam: error during build

somebody know what i  should do ?

Moderator edit: don't bump, especially not after 2 minutes.

6

Re: Teeworlds server on freebsd

This issue is still present. I'm currently trying to compile teeworlds for Mac/PPC, but this is what I see:
$~/teeworlds-0.4.3-src$ ./../bam/src/bam release
bam: [string "internal base"]:289: attempt to call a nil value
strack traceback:
        [C](-1): errorfunc
        [string "internal base"](289): CollectAdv
                directory=0x5031a0 (function)
                pattern=0x506470 (function)
                d=nil
                f=0x0 (no value)
                (for generator)=0x0 (no value)
                (for state)=0x0 (no value)
                i=0x0 (no value)
                v=0x0 (no value)
        [string "internal base"](275): Collect
                arg=0x5031a0 (function)
                f=0x506470 (function)
                (for generator)=0x506160 (function)
                (for state)={...}
                i=0x0 (no value)
                what=0x0 (no value)
        default.bam(253): build
                settings=0x5031a0 (function)
        default.bam(394): (null)
bam: error during build

7

Re: Teeworlds server on freebsd

I guess your setup is a bit broken. And don't use 0.4.x on PPC since it won't work smile
You might have unpacked your teeworlds source the wrong way which would make some directories and files disappear.

Languages shapes the way we think, or don't.

8

Re: Teeworlds server on freebsd

I have a problem with FreeBSD 7.1 RELEASE

cod# ./make_unix.sh
/var/tmp//ccms0c96.o(.text+0x4c): In function `os_tmpname':
: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
cod# bam
bam: Command not found.
cod# rehash
cod# bam
bam: Command not found.
cod#

9

Re: Teeworlds server on freebsd

cod# src/bam

10

Re: Teeworlds server on freebsd

dont understand

11

Re: Teeworlds server on freebsd

The bam binary is located in the folder src, so in order to run bam, you have to use "src/bam".

12

Re: Teeworlds server on freebsd

10x. its work.