1

Topic: how to create a mod server game type

Hello, today i compiled first time server_release of teeworlds 0.5.2 ...... just a try
but if I want to edit source code to generate a custom gametype (example: Ball, ifreeze ...)
which file i must edit? there are a lot of source file in folder \src
can someone help me?

2 (edited by erd 2010-08-23 11:24:22)

Re: how to create a mod server game type

src/game/server/gamemodes/*
You can start by copy the "mod" gametype and change it to your needs, don't forget to include your new file in src/game/server/hooks.cpp (gamecontext.cpp in 0.5 trunk).

Note that teeworlds 0.6 is in development, I suggest you to use teeworlds 0.5 trunk from github (just search for matricks repo)

3

Re: how to create a mod server game type

to understand gibhut is complicated, i no found to download its source in a single archive.zip or .rar

4

Re: how to create a mod server game type

https://github.com/matricks/teeworlds
right top youll find the "Download" Button

5 (edited by CarmineZ 2010-08-23 18:45:34)

Re: how to create a mod server game type

thanks, i did no see, because there are many singles in folders like a ftp wiev

6

Re: how to create a mod server game type

I'm at begin of understand source code of teeworlds, today I read some part of c++file, but i no found where i can set this variables:
to change the duration of ninja, to add more seconds.
this is simple for an expert of teeworlds code..
in which file can i found and set that value?

7 (edited by Deleted User 2010-08-24 20:02:39)

Re: how to create a mod server game type

I think you should first learn how to effectively search for things. I have no problems to find anything in an unknown project with Notepad++ and his extended search function.

For example: You can search all files for related words like "ninja". You should look the results if there are any conspicuous things. I found somewhere the word duration that brings me nearer to my goal. At the end I found the struct  Weapon_Ninja in a python file with the variable self.duration which was the solution.

I needed a few minutes for this and in my opinion my search wasn't optimized but with logical thinking it's easy to find things like this simple variable manipulation.

8

Re: how to create a mod server game type

thanks for suggestion

9

Re: how to create a mod server game type

i use RScite text editor to elaborate mod, is a good text editor!

10

Re: how to create a mod server game type

i dont undestand nothin tongue and the download gives in the last topic is not found

If you want a perfect map for your own server you can PM me to make you one ^^

Please also try play nodes you may download it here!. And as always.Have a nice day