26

Re: [HELP] Coding

ok here goes again for bout the 3rd time "i I WAAAAAAAAANNNNNNTTTTTT TTTTTOOOOOOOOOOOO DDDDDOOOOOOO IIIITTTTTT!!!!!!!!!!!!!" i am motivated i just want to know how to do it how many times do i have to god damn write the same thing!!!!???

27

Re: [HELP] Coding

Kay, then do it. You've got the links ;)

Not Luck, Just Magic.

28

Re: [HELP] Coding

andy.c: first congratulation to tripple post.
second C and C++ is not like latin and english... its more like british english and american english. Its different but they understand each other.
Well this is not 100% true since only C++ understands C and not vice versa.
What we try to tell u. C is 100% integrated into C++. Even though tw is completely written in C++ with classes everywhere some functions use C and without some basic C knowledge u wont be able to understand some of the code.
It might be possible that u learn some of the basic stuff while learning C++ but it could be left out, too. Also u might learn C++ stuff which is not used in tw like references.

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

29 (edited by El/SkRiLLeX\ 2011-09-01 13:31:36)

Re: [HELP] Coding

omg stop trying to impress m!nus just so u can be support staff. it annoys me that members trying there best to impress m!nus. no1 cares about a triple post. and btw i have 1 link which is a pdf but do i need adobe reader to read it then? still after about 8 posts no1 has given me anything useful yet!!! just chat about what u can do with C++ and "ur not motivated enough" well if i wasnt why would i make this topic!!!!!!?

30

Re: [HELP] Coding

1st... i dont care about moderator status at all... im not even looking in all categories wink
2nd... where did u read that i said u are not motivated? i never said it wink

im just telling u what u need to do to understand the whole code. Its up to u if u take our advice or not... i really dont care if u do wink


3rd... adobe reader is a good start i guess big_smile big_smile

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

31

Re: [HELP] Coding

u could try this one:
http://www.lib.ru.ac.th/download/e-books/TIC2Vone.pdf

Well u also need Adobe Reader

32

Re: [HELP] Coding

i didnt say u had told be i wasnt motivated Sushi Tee its dune.

33

Re: [HELP] Coding

This is no flamewar-forum, pls try to be more kind :\

And when Dune says you need much motivation, then he is worried that you might underestimate it.

But when you are that motivated, you should buy a C/C++ book explaining both, it would be the best.

34

Re: [HELP] Coding

ok sry but i dont think i will could buy a book man smile

35

Re: [HELP] Coding

The youth of today...
no money for educational books, but for tons of computer games sad

36

Re: [HELP] Coding

haha yeah thats right wink xD

37

Re: [HELP] Coding

You shouldn't learn C first in order to learn C++, unless you want to put much effort in learning to program in C++ properly afterwards.

38

Re: [HELP] Coding

Now look guys, I am also currently learning C++ and I bought a C++ book for 20£ (which is f*** loads for a book). It says that it is for absolute beginners, but it still isn't too easy to understand, even though I have a bit experience with other languages. I don't force myself to learn it in extreme time, but just read and learn and test whenever I am in the mood to do so. If you force yourself, then you just aren't concentrated enough. With my C++ skills until now I already understand wide parts of the code of Teeworlds. So, if you don't think that it's worth it for you to learn the stuff, or you're just too lazy, then don't do it. In fact coding can be very, very boring, for example when coding in Shell. It might not be what you expect of it.

Good luck smile

39

Re: [HELP] Coding

Look andy, coding isnt as easy as you problably think, it's not like you type "set grenadelauncher level 5" "set account system", it's WAAAAAY more harder then that, you should also read one of the
smartest words that you'll ever hear ... today:

Genius wrote:

Now look guys, I am also currently learning C++ and I bought a C++ book for 20£ (which is f*** loads for a book). It says that it is for absolute beginners, but it still isn't too easy to understand, even though I have a bit experience with other languages. I don't force myself to learn it in extreme time, but just read and learn and test whenever I am in the mood to do so. If you force yourself, then you just aren't concentrated enough. With my C++ skills until now I already understand wide parts of the code of Teeworlds. So, if you don't think that it's worth it for you to learn the stuff, or you're just too lazy, then don't do it. In fact coding can be very, very boring, for example when coding in Shell. It might not be what you expect of it.
Good luck

The funny about this signature is that you
don't realize until now that it's a useless signature
but it's too late to stop reading.

40

Re: [HELP] Coding

GBKing wrote:

Now look guys, I am also currently learning C++ and I bought a C++ book for 20£ (which is f*** loads for a book). It says that it is for absolute beginners, but it still isn't too easy to understand, even though I have a bit experience with other languages. I don't force myself to learn it in extreme time, but just read and learn and test whenever I am in the mood to do so. If you force yourself, then you just aren't concentrated enough.

I can't agree more with you. You should not force yourself to learn or to code when you're not in the mood for it, it's definitely going to be more of a pain than anything else in the end. Also, there is a large difference between understanding the Teeworlds code and being able to produce good modifications. It's like reading and writing English, you can read it well and suck at speaking.

Not Luck, Just Magic.

41 (edited by Mo2 2011-09-01 19:17:11)

Re: [HELP] Coding

andy.c wrote:

i have 1 link which is a pdf but do i need adobe reader to read it then?

Hmmm... maybe there is even a book below 20£ that answers that mystery? big_smile - I'm afraid you would not get far if you don't change your mind in some important things.

Bad: Waiting to get pushed to your result cause you really, really want it
Good: Read lots of fucking manuals and before you are going to ask others to early try to hunt answers yourself via searching, reading and trial and error

If you think it's too much effort to find out how to read your manuals do you think reading the manuals afterwards would be easier? Or to tell in other words: Currently it seems symbolically for me that you wanna really, really, really be a master in atom splitting but you are not able to split up an orange cause you are still asking us which knife you have to use for that.

42

Re: [HELP] Coding

i just need have some useful links ok every1 has told me like a million times about how hard it is but knows actually helped me yet!

43

Re: [HELP] Coding

andy.c wrote:

i just need have some useful links ok every1 has told me like a million times about how hard it is but knows actually helped me yet!

We gave you book references and pdf files, what you need more?

Not Luck, Just Magic.

44 (edited by CarmineZ 2011-09-02 12:54:29)

Re: [HELP] Coding

After you have learned the programmation language, you can compare the patch file of a Mod that you have played, so you can familiarize on "how to edit" teeworlds source & find quickly "where" you must edit something,
...because first times, the entire source appears giant

45

Re: [HELP] Coding

CarmineZ wrote:

After you have learned the programmation language, you can compare the patch file of a Mod that you have played, so you can familiarize on "how to edit" teeworlds source & find quickly "where" you must edit something,
...because first times, the entire source appears giant

He's not at this step yet.

Not Luck, Just Magic.

46 (edited by CarmineZ 2011-09-02 17:03:54)

Re: [HELP] Coding

but he always ask to know more, Yes, can't skip first step..... so goto read & read && read, no others ways

47

Re: [HELP] Coding

CarmineZ wrote:

but he always ask to know more, Yes, can't skip first step..... so goto read & read && read, no more help people can give you

Before looking in the Teeworlds code, he'll have to get the basics of the programming. I admit you can learn a lot of things by trying, modifying, and understanding, but you still need some basics before that.

Not Luck, Just Magic.

48

Re: [HELP] Coding

yes with "read" i mean the C++ book

49

Re: [HELP] Coding

Your problably think it's easier then it is.

The funny about this signature is that you
don't realize until now that it's a useless signature
but it's too late to stop reading.

50 (edited by zweistecken 2011-09-11 00:08:45)

Re: [HELP] Coding

I can't believe i actually registered just for this topic. Anyways, i did.

So, guys/girls(ontheinternet?) give this kid a break.
He obviously doesn't know what to expect, but instead of trying to be all "you can't, it's hard, you have, ... blabla",
why not go all in and let him on his self get frustrated (oh, you will, sooner or later) and give him some damn links.
Here, I'll start:

The teeworlds source
cplusplus.com: A somewhat nice c++ tutorial (they also host a complete documentation)
Lazyfoo's SDL Tutorials
(skimmed thru the teewars sources, as i'm not familiar with it, but i think i saw some sdl include, sooo, maybe sdl is used.)
The Gameprogramming Wiki (lots of tuts and language agnostic stuff)
Code::Blocks (its a IDE, very good one. For the illiterate: write code with it, it helps you along the way [autocompletion, w00t])
Also, the pdf you got, "The C Programming Language", is THE standart book for learning C, so, if you're serious, read it, do the excersizes, and you'll learn lots of stuff. (Use FoxitReader)

Aw, damn, as the follow up post made me aware of, lua is not really used, only for a configure script for building.
So, now, since i belive all you want to do is mod a few things, and while looking through the teeworld source, i saw lua is used (presumably for stuff like weapon, player, level scripting n shit) why not get down on lua. Its not as heavy as c++ is, since its "only" a scripting language, and i think you can get ALOT done by modding the lua scripts.
Programming in Lua (great tut and introduction to lua. btw, since i think you've heard of world of warcraft (oh lord, how i hate that shit), lua is heavily used for the gui and plugins etc in WoW).

Aw, damn, as the follow up post made me aware of, lua is not really used, only for a configure script for building.

BUT there seems a lot of python going on (AHA!).
Lets see if i can dig up any thing on python, should be no problem, its widely used.
Of course, official, in the documentation included, tutorials. Perfect big_smile
One for python3
One for python2
and of course the documentation

Last but not least, the path of least resistance: (this is most likely up your alley)
You probably only want to have some fun with tweaking physics n guns n stuff, so a really easy way is to just set up
a teeworlds server. Read this on howto set one up.
Then, you can either just tweak in the server shell, or by modifying the config file. Look, im even so helpful to have made a example cfg with ALL server settings and parameters already in it, only uncomment and tweak smile
Download it here. (if its not working, copy paste from this)

For example, wanna play in (almost) zero gravity?
No problemo, just do this in the shell or in the config file:
"tune gravity 0.1"

voila, done.  Same goes for weapon settings and other things.

And just for the mood:
http://img801.imageshack.us/img801/272/hahahaohwowx.jpg
can't hold my self back.... i have to just.... AAArrrrggggg .... penis