1 (edited by Whitefire 2009-05-01 16:54:34)

Topic: Get started...

Hello everbody! Well, I want to create a mod myself, but for that I've got some questions.

But at first some infos about me: I can already programm in C (learned it in school) and have also a bit knowledge in Cpp (C++), now I have got 2 big books about Cpp of a schoolmate.

First question: Does it make sence if I start now to program my mod (I would always have to look in both books for Cpp) or should I wait until TW 0.6.x comes? I have seen Lua and it's really easy, I found a nice learning site for it already.

Second question, well now you could throw stones on me for this one... does someone know in what time 0.6.0 will come out? About 5 month or longer? (or better earlier?)

Ok, but if I would start now...

I found the controller.cpp in the source code of TW 0.5.1, I think it includes very important blogs of the game for making a mod. Am I right here? I know there are several other files which I will have to overwork... but this one is one of the main parts right?

Next question: How do I have to combine this files? I know that I have to compile a new teeworlds_srv.exe, but how do I have to do that?

Well maybe I'm complitely wrong, but would be nice if someone can help me or has some tipps for me... :X Also some learning sites would be great, the books are good enough but sometimes it is better to have a third opinion.

I don't found much help with the search function here, so plz do not throw the sentence "Use the search function" to me xD

Ps: Sry if you don't understand some sentences of my English, I'm German and still learning English in school :X

Edit: Forgot to say which operating system I use, I think thats important: At the moment I'm working on Windows XP...

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

2

Re: Get started...

First off:
to compile go here: How to compile
Next: Code for this version, 6.0 is a long way away
Also: forget about 6.0, focus about teeworlds now.

get the src and go to the folder src/game/server/
There you wil see the main files u must edit: hooks.cpp, gamecontroller.cpp, and player.cpp and in entities folder character.cpp. To learn more download existing mods srcs or patches and take a look at the files.

Bye.

3

Re: Get started...

At first thanks four your reply! smile The how to link helps me a lot, so like I can see in your post I should not wait for 0.6.0? ;D

Ok, so I thought right that the gamecontroller.cpp (sry if I wrote only controller.cpp) one of the important files is. Well ok, I will look on the source of some mods, hope that helps me ;D
Thank you a lot! But I actually don't know when I will start, maybe in a week, cause gotta do some work at the moment, but wanted to find some tipps before I start smile

Other question: Do I need something else then Cpp? Phyton or something, I read that somewhere in the forum :X

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

4

Re: Get started...

Yes, go back on the How to compile page and it shows all your needs. smile glad i could help.

Bye.

5

Re: Get started...

I've done some modding type stuff with Tee Worlds, it's not all that hard if you can already do some programming, just look through the source until you get the general idea of how it all works then try changing something and see what happens! smile

The dependencies are OK as they're all quite standard, although it made it easier using an Ubuntu Linux system as it has the package manager which helps for finding libraries quite a lot.

Have fun!

===I take pride in my insanity!===    |    Blender3D    |    What do you think of my post? Rate it!
Admin@SuperSiliconux128:~$quantumphysics --help -mtheory -standardmodel
[quantum_physics]: segmentation fault, core dumped

6

Re: Get started...

Hi smile Well sounds maybe now a bit stupid but I have already installed Ubuntu and Debian (I like Linux) just use Windows XP at the moment cause school *shame*

Yep my main problem now is, to see what is already there and what I can use for my ideas, I'll saw now the water mod source code, the gamecontroller.cpp is bigger, and there is a lot with "door" added now xD But that don't really helps me hmm

Actually I don't know which files I will need... I also need a permission from inherit for my mod (cause I want to use his doors) - one of the main things which I want to do is to make the flags to keys - to open the cell of my enemy - well my idea is a kind of prison (or jail). Well I made already a map and thought a lot about what I want to create into the mod... but I would also need a freeze mod oO And if I could use a freeze mod  than I've got the problem how to combine it with the door mod and my mod :X

Of course I would ask first all the owner of the mods and give credits, but do you think it's possible what I want?

Anyway thanks for your answer, I will reply if something new happens or a new question comes out *gg*

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

7

Re: Get started...

Yes its possible but hard. Get all the patches and you'll  have to look through them manually and change it line to line. Tricky Stuff.

Bye.

8

Re: Get started...

Ok so that will give me a bit hope, hm well now I need some permissions at first *gg*

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

9

Re: Get started...

You can just leave credits after you've made it. A word of advice: do not try to merge a two patches in one session, i actually feel sick from all the frustration. No joke.

Bye.

10

Re: Get started...

Hm well, I should tell you my idea...

I want to create a mod, there are two bases (blue and red team), every base has one or two jails. Now comes the door mod. All jails got a laserdoor - which can be opened (but only from the team in the base where you are, that means in the blue base are jails which only the blue team can open).

But what now? Well now the freeze mod would come, you have to freeze your enemy and drag her to a jail (otherwithe you fall into it when someone shooted at you, that would be also an idea), the team gets 10 points if all of the other team are in jail.

But now the way to bring teamwork out: You can open the door with the flag of the enemy (that works like capture the flag), if you brought the flag into your base to your flag, it works as a key, all doors of your enemy will be opened for 1 minute, the enemy can't close them that long. This is a break out chance. Capturing the flag brings also 10 points.

A really negativ point would be, that sometimes people would have a bit longer to come out and can't do anything in that time... :X

So what have I to do? I have to combine a freeze and door mod, and have to program myself that the flag works as a key... I don't really know if I'm able to do that or maybe the idea is a big crap? What do you think about it?

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

11

Re: Get started...

Very good idea but i dont think it'll be easy to make hmm

Bye.

12

Re: Get started...

Hm so I better should ask for help for this mod and should take something easier for my first mod?^^

Well I will ask inherit and sheng if they could do there something ;D

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

13

Re: Get started...

I suppose, but if your gonna do it yourself take it easy. Start with mods that dont use custom entities.

Bye.

14

Re: Get started...

Well ok, I will think about a new idea smile Hm, something should be missed in TW.

Got a new question: How is it about new images - a new ball or something, I never see mods with new stuff (the doors are lasers from the laserrifle), is there a blockade (don't know a better word) or why is that?

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

15

Re: Get started...

whats the website that teaches you lua?

16

Re: Get started...

You cant add any new images to the game, you must use a grenade or sword or something.

Bye.

17

Re: Get started...

use a moded client. like teestrike

18

Re: Get started...

Okay I think thats all I have to know at the moment smile

@Franchan123: I don't know if you speak German but it's a German site...
http://lua.gts-stolberg.de/Variablen.php

I'm sry if not sad

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]

19

Re: Get started...

smile
thanks
its for english too. theres a flag at the side for different languages

20

Re: Get started...

Ah yes, you're right...^^ I searched for some more sites, but I think this is one of the best ones to learn all of Lua?

Avatar by Crises
Tee-Project - Website coming soon... [http://project.tee-city.net]