What books or class can I use to learn better how to code?

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
MrDan
Peon
Peon
Posts: 34
Joined: Thu Jan 10, 2008 1:42 am
Location: Bay area , California

What books or class can I use to learn better how to code?

Post by MrDan » Mon Mar 24, 2008 6:04 am

If one was to want to study up on messing around with the source code for TMW, what type of material would one look for? ie: C++, VB, #.net, pearl, etc... I notice some similarities to vb and cpp but really just want to find book or something on coding for this stuff and understanding the source code. Does anyone have any reference material I can look for? Do i need cpp or vb or what type of language? I kind of can make some fuzzy sense of what is kind of going on when I look at some files. (but would like to know more.) what class or book or whatever. Am I redundant enough? :lol:
lost_soul
Peon
Peon
Posts: 30
Joined: Mon Dec 03, 2007 11:10 pm

Re: What books or class can I use to learn better how to code?

Post by lost_soul » Mon Mar 24, 2008 7:31 am

i know this isn't much help, but you should start with some references on C++ that is what the game is written in, the scripting language is Lua...(The code which defines how the players interact with NPC's....formally eathena...browsing the source code, you won't see much lua, since the game is in the process of being converted over, but that is what will be used in the future for primary game-play content alteration)(I have to admit I need help with some of the C++, but I've got a text book kicking around I refer to) unfortunately I can't offer much assistance with any reference material for C++ but, I can provide some links for some LUA related material.

a good site to look at for some nice basic and straight-forward examples:
http://lua-users.org/wiki/TutorialDirectory

a quick tutorial on integrating lua into C++:
http://csl.sublevel3.org/lua/

if you want to get down and dirty:(the lua manual)
http://www.lua.org/manual/5.1/
User avatar
Simeon
Peon
Peon
Posts: 33
Joined: Mon Feb 04, 2008 6:55 pm
Location: The Netherlands

Re: What books or class can I use to learn better how to code?

Post by Simeon » Mon Mar 24, 2008 2:08 pm

The internet also has plenty of information, see http://www.cplusplus.com/ for example for C++ tutorials.
MrDan
Peon
Peon
Posts: 34
Joined: Thu Jan 10, 2008 1:42 am
Location: Bay area , California

Re: What books or class can I use to learn better how to code?

Post by MrDan » Mon Mar 24, 2008 3:35 pm

thanks everyone! :D I have been working on learning cpp through ms visual studio pro. (don't ask why I have or how I got it) 8) :wink: and have been learning a lot and that is why looking through the code some of it makes some sense. I just wanted to know if I was on the right track. Now I have LUA to look for stuff on.


Thanks again! :D
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: What books or class can I use to learn better how to code?

Post by Crush » Mon Mar 24, 2008 5:57 pm

MrDan wrote:thanks everyone! :D I have been working on learning cpp through ms visual studio pro. (don't ask why I have or how I got it) 8) :wink:
I hope you didn't pay for it, because there are free IDEs and compilers available which are just as good. We recommend Code::Blocks for windows users. We also provide the compiled libraries for its compiler (MinGW). When you use the microsoft compiler you will have a quite hard time getting all the necessary libraries.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
MrDan
Peon
Peon
Posts: 34
Joined: Thu Jan 10, 2008 1:42 am
Location: Bay area , California

Re: What books or class can I use to learn better how to code?

Post by MrDan » Tue Mar 25, 2008 6:13 am

no I didn't pay much for it (35 dollars) I enjoy playing around with it and am learning a bit from it so it was worth every penny.

I would however tend to agree with you that code::blocks is much better as this is the only way I have had any success compiling SVN. Thank you so much for pointing me to that program. 8)
User avatar
trapdoor
Novice
Novice
Posts: 216
Joined: Sun Feb 18, 2007 1:36 pm

Re: What books or class can I use to learn better how to code?

Post by trapdoor » Tue Mar 25, 2008 4:39 pm

Visual C++ is a free download from the MS site, the only reason to get the Pro version is for advanced features that 99.99% of beginners (and most non-beginners) wont ever need. So yes, you did waste your money.

--
trapdoor
User avatar
Sertraline
Novice
Novice
Posts: 128
Joined: Sun Dec 02, 2007 4:29 am
Location: Austin, TX, USA

Re: What books or class can I use to learn better how to code?

Post by Sertraline » Tue Mar 25, 2008 5:27 pm

:roll: That's probably enough software elitism heaped upon a beginning programmer who is politely asking for help so that he can contribute to your game, don't you think?
MrDan
Peon
Peon
Posts: 34
Joined: Thu Jan 10, 2008 1:42 am
Location: Bay area , California

Re: What books or class can I use to learn better how to code?

Post by MrDan » Wed Mar 26, 2008 3:34 am

Sertraline wrote::roll: That's probably enough software elitism heaped upon a beginning programmer who is politely asking for help so that he can contribute to your game, don't you think?

Oh that is quite alright thanks. I really do appreciate the responses. I can sort through the back-handed remarks and down-looking and try to glean some useful info from it.

No money wasted because I wanted the "advanced" Stuff that I probably don't need. (I am just like that) :p I am a big boy and can decide for myself what I buy and what I just pirate :lol: :roll: (not that I am into that kind of thing.) :oops: :wink:
Post Reply