1

Topic: [HELP] Coding

hey communtity smile, i was wondering if someone could tell me or give me USEFUL downloadlinks on how to code, as i would like to make a server where u can log into ur account.... thx smile

2

Re: [HELP] Coding

The best way would be to buy a c++ book smile

3

Re: [HELP] Coding

im sry no i said links

4

Re: [HELP] Coding

Here you go: http://net.pku.edu.cn/~course/cs101/200 … nguage.pdf

In fact this is a book, but it's in form of a pdf.

5

Re: [HELP] Coding

Well, it takes much time to write stuff including everything of a complicated programming-language.
Therefore I doubt any free downloadable document is as good as a good c++ book.

Especially without any knowledge about programming a more profound book might lead to better results.


Btw @Ghost: Your link is about c and not c++, isnt it?

6

Re: [HELP] Coding

ok thx but what program do i open it with???

7

Re: [HELP] Coding

andy.c wrote:

ok thx but what program do i open it with???

Start with learning on how to code, they will explain you.

Not Luck, Just Magic.

8

Re: [HELP] Coding

Youtube big_smile
(Hey, Books... Hum... Copyright...)

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

9

Re: [HELP] Coding

@ Slayer: did he ask for c++? I don't think so. Also this book is good for learning the very basics. C++ is an addition to C (C++ compilers will compile almost any C code). So learning the C basics is a very good start.

10

Re: [HELP] Coding

ghost wrote:

@ Slayer: did he ask for c++? I don't think so. Also this book is good for learning the very basics. C++ is an addition to C (C++ compilers will compile almost any C code). So learning the C basics is a very good start.

He was asking in a teeworlds (a game coded in c++) forum for help to learn coding, with the purpose to modify something.

Therefore i thought he wants to modify teeworlds, and he should learn c++ for it.
But if he doesn't want to learn c++, he should tell us which language (maybe it isn't C either? oO)


andy.c wrote:

ok thx but what program do i open it with???

Do you want to know how to open the online pdf file?

11 (edited by El/SkRiLLeX\ 2011-08-31 20:09:40)

Re: [HELP] Coding

ermm... thx guys i want whatever c thats makes u upgrade weapons and log into accounts. no i dont know how to open pdf or whatever online. i have no-idea bout coding myself, but i hope to learn so yeah the best is probs to start at the basic's thx guys smile i am 100% english guys and yeah slayer ur correct i do want to modify tw so if ur right it will be c++ that i need. thx smile

12

Re: [HELP] Coding

andy.c wrote:

ermm... thx guys i want whatever c thats makes u upgrade weapons and log into accounts. no i dont know how to open pdf or whatever online. i have no-idea bout coding myself, but i hope to learn so yeah the best is probs to start at the basic's thx guys smile i am 100% english guys and yeah slayer ur correct i do want to modify tw so if ur right it will be c++ that i need. thx smile

It's not something you learn in 5 hours. It takes a lot of time (months), so if you want to invest yourself into this, you need to be motivated.

Not Luck, Just Magic.

13

Re: [HELP] Coding

andy.c wrote:

no i dont know how to open pdf or whatever online

Are you serious? You never heard regarding Adobe Reader or something like that?


to start at the basic's

Would even mean that it would be hard to code on TW without previous basic knowledge. I even think it's no bad idea to start with C so you should have already some clue wtf "static" or "char" should mean. If you still would do something regarding TW then you can maybe try your luck with the Nodes fork (mod) as base. Cause major parts are still in C since it's 0.5.2 based and it's even not fully dead (at least I hope so wink). It even looks like it would not move to C++ too fast big_smile. Motivation is really important and if you code on something you like it's better then to just study synthetic stuff.


Greetings,
Mo(2)

14

Re: [HELP] Coding

Mo2 wrote:

Would even mean that it would be hard to code on TW without previous basic knowledge. I even think it's no bad idea to start with C so you should have already some clue wtf "static" or "char" should mean. If you still would do something regarding TW then you can maybe try your luck with the Nodes fork (mod) as base. Cause major parts are still in C since it's 0.5.2 based and it's even not fully dead (at least I hope so wink). It even looks like it would not move to C++ too fast big_smile. Motivation is really important and if you code on something you like it's better then to just study synthetic stuff.

1. 0.5.2 was written in C++ AND C, so he has to learn both to modify this version
2. 0.6 is fully written in C++. C++ IS NOT C (who excepted this?). Why the heck should he waste time learning a language he doesnt need?
Example: You want to learn english, so you start learning latin to learn some basics? Srsly....

15

Re: [HELP] Coding

in 0.6 are much things which are very C... like using malloc and free. Also the C casts. So knowing about all the C low level crap is important to understand teeworlds

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 ^^

16

Re: [HELP] Coding

Slayer *gV* wrote:

0.5.2 was written in C++ AND C

Yes. But as I wrote: Major parts are in C.

In Nodes:
74 files are cpp (38 files of it are for the client)
131 files are c (46 files are for the client).


so he has to learn both to modify this version

Depends on what he like to modify. And before he can modify something he had to understand what's going on there and know some basics anyway. If he learn for months just some synthetic stuff and don't get a clue how to touch the real stuff in the TW code I'm pretty sure he would give up before he had done something usefull first.


Greetings,
Mo(2)

17

Re: [HELP] Coding

Mo2 wrote:
Slayer *gV* wrote:

0.5.2 was written in C++ AND C

Yes. But as I wrote: Major parts are in C.

In Nodes:
74 files are cpp (38 files of it are for the client)
131 files are c (46 files are for the client).

And Nodes is based on 0.5. In 0.6, the whole code is now written in C++, no C anymore. Although, I have to agree with Sushi on this point:

Sushi wrote:

in 0.6 are much things which are very C... like using malloc and free.

Not Luck, Just Magic.

18

Re: [HELP] Coding

Dune wrote:

In 0.6, the whole code is now written in C++, no C anymore.

Yes. But I'm not sure if it really makes sense to take a C++ handbook, start with hello world and try modifying straight ahead without some coding experience besides that. You already wrote that it would took months. And I agree. I would even write it would took many months. TW is already grown - and you have to read into somebody else code (without too much // at all). So there would be many months without result and I'm pretty sure motivation would decrease. I think it's easier to play with C to get some first results, motivation and as a nice side-effect some basic knowledge.

19

Re: [HELP] Coding

Mo2 wrote:
Dune wrote:

In 0.6, the whole code is now written in C++, no C anymore.

Yes. But I'm not sure if it really makes sense to take a C++ handbook, start with hello world and try modifying straight ahead without some coding experience besides that. You already wrote that it would took months. And I agree. I would even write it would took many months. TW is already grown - and you have to read into somebody else code (without too much // at all). So there would be many months without result and I'm pretty sure motivation would decrease. I think it's easier to play with C to get some first results, motivation and as a nice side-effect some basic knowledge.

I totally agree with that, but what are you gonna tell him? "You will not learn to code because you're not motivated enough?" He doesn't realize the time it will take him to learn programming.

Not Luck, Just Magic.

20

Re: [HELP] Coding

Example: You want to learn english, so you start learning latin to learn some basics? Srsly....

omg ur absoultly right about this slayer why the fuck would i need to learn latin or somethin if im english??? wtf man?? And yes i want to mod 0.6 so i do need to have c++ not C. 0.5.2 was awesome but its in the past now guys, develpoment moves on!!! hardly any1 plays 0.5.2, and i certaintly dont because for me the graphics are (dare i say it) shite. and all srv's hosted have like 150 ping, its bad!!! i need C++ for 0.6.

21 (edited by El/SkRiLLeX\ 2011-09-01 10:55:36)

Re: [HELP] Coding

I'm pretty sure he would give up before he had done something usefull first.

omg stop sayiny that i will give up, do u not understand, i want to learn how to fuckin code??? why would i go through all the and not even do anything im sticking with the coding until i finally modify tw!!! stop putting me down!!! thats not support and certaintly dune needs to stop too, his title is "Support staff" so dune do urself a decent job and "support" people with there problems!!!! thumbsup to slayer thats what i call "support Staff"!!!!

22

Re: [HELP] Coding

I totally agree with that, but what are you gonna tell him? "You will not learn to code because you're not motivated enough?" He doesn't realize the time it will take him to learn programming.
!!!!!!!!!!!!!!!!!!!

23

Re: [HELP] Coding

andy.c wrote:

Example: You want to learn english, so you start learning latin to learn some basics? Srsly....

omg ur absoultly right about this slayer why the fuck would i need to learn latin or somethin if im english??? wtf man?? And yes i want to mod 0.6 so i do need to have c++ not C. 0.5.2 was awesome but its in the past now guys, develpoment moves on!!! hardly any1 plays 0.5.2, and i certaintly dont because for me the graphics are (dare i say it) shite. and all srv's hosted have like 150 ping, its bad!!! i need C++ for 0.6.

How can you argue with that when you don't know anything about what you're talking. C is not the latin for C++, and there is not that much difference between both. It would still take you many months to master C++, like half a year, especially when you got no other experience with coding.
You do not know yet if you'll like coding or not, you seem to only aim some kind of title, but you need to LIKE programming, because you would have to spend a lot of time doing that, as a hobby.

Once you know C, there is a very little step to C++ in my opinion, at least for what you need for modding 0.6. So one time more: listen to our advices, C++ isn't very different from C.

Not Luck, Just Magic.

24

Re: [HELP] Coding

OMG how do u not understand i dont care if i wont like it i want to learn how to do it!!!!! jesus christ how many times srsly do i have to tell you?

25

Re: [HELP] Coding

andy.c wrote:

OMG how do u not understand i dont care if i wont like it i want to learn how to do it!!!!! jesus christ how many times srsly do i have to tell you?

If you tell me I wanna be able to play the four seasons perfectly at piano, I answer you it's gonna take you some years of learning, and that you should be motivated for it. It's not a matter of wanting to be able to, it's also a matter of liking to play piano. If you haven't got this love for playing piano, you're gonna suffer a lot learning.

Not Luck, Just Magic.