![]() |
#1 |
Scout
Join Date: May 2007
Posts: 42
![]() |
C Language
I am not a programmer and have no experience. What is the easiest way to get into hacking the code. I understand how to change the edit files, but not the exe or source code
|
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
It's best to have some game feature in mind when you start. Then if you search the source files for messages related to that, you can find where the relevant section of code is and start focusing on that. You will have to learn a bit of C at some point, but that will be easier if you have goals to understand specific bits of the game code.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 |
Scout
Join Date: May 2007
Posts: 42
![]() |
I guess what I really need to know is what program to open the source.
|
![]() |
![]() |
![]() |
#4 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
If you look at the first post in this thread, it has reasonably thorough (and mildly humorous) instructions for how to set up a compile environment, download source and compile in Windows. If you use Windows, this is probably what you want. If you use linux, you can just open stuff in your favorite text editor. I'm not sure about OSX, but something called xcode rings a bell.
Hope this helps; I (and other people) can give more info as you need it.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#5 |
Sangband 1.x Maintainer
Join Date: Apr 2007
Posts: 523
![]() |
C source code files are stored as ascii text. You can open them in wordpad or notepad, but a programming editor would be vastly better suited, as they have lots of nice features for programming (including automatic coloring and/or indenting).
Another source for learning how to compile the angband source can be found here: http://www.thangorodrim.net/compiling.html
__________________
a chunk of Bronze {These look tastier than they are. !E} 3 blank Parchments (Vellum) {No french novels please.} |
![]() |
![]() |
![]() |
#6 |
Adept
Join Date: Jun 2007
Location: North of England.
Posts: 211
![]() |
When I used to program on Windows, I was fond of a text editor called Editplus 2.
It did all those neat tricks like syntax highlighting, function folding and control structure auto-completion, that us modern programmers feel naked without. I found it very easy to use, and the features didn't get in my way until I wanted to learn to use them. Beyond all this, it loaded in about 1/10 of the time that Word did. Looking about the internet, a shareware version still appears to be available for download. As for C programming advice, a very popular beginners guide can be found here: http://beej.us/guide/bgc/ Not my cup of tea, personally; I'd rate it as OKish, but then I wasn't a beginner when I looked at it. Too many of my peers (who did read it when they started out with C) have raved about its value for me to ignore its potential use to you. To reiterate Nick's point - have a goal in mind when you start reading the sources.
__________________
You sold a Broken Sword (1d2) (-2,-4) {average} (j) for 1 gold. The shopkeeper howls in agony! You say "Dude, the clue is in the name...". |
![]() |
![]() |
![]() |
#7 | |
Rookie
Join Date: Jan 2008
Posts: 13
![]() |
Quote:
Step two: learn how to program. Step three: hack Angband. |
|
![]() |
![]() |
![]() |
#8 |
Rookie
Join Date: Feb 2008
Posts: 5
![]() |
I have no experience in the c language . i heard this language is one of the greatest computer languages. Its very powerful, simple to use and works lightning fast.C is an High level Programming language.
|
![]() |
![]() |
![]() |
#9 |
Apprentice
Join Date: Jan 2008
Posts: 96
![]() |
The angband source is a good place to start hacking C. The code is pretty clean, and doesn't use a lot of fancy hand waving tricks.
|
![]() |
![]() |
![]() |
#10 |
Apprentice
Join Date: May 2007
Posts: 56
![]() |
Does it need to? lol
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|