![]() |
#1 |
DaJAngband Maintainer
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
![]() |
DaJAngband -I'm in over my head
Well, I've successfully done a few minor changes to the code, but whenever I think of something more major I'd like to change (like add a store or add a school of magic) I'm in over my head. I can't do it without knowing C. It kindof makes me want to learn C, but teaching myself a programming language without personally knowing anyone else who knows the language is extremely hard. I have a tutorial in pdf format which I download from somewhere.
I figured out how to make another building on the map in the generate.c file, but actually adding a new store or a school of magic seem to be very complicated (at least for someone who doesn't know C). Also, I made a change somewhere that made it crash, so I undid the change and it still crashed. Since I hadn't backed the source up after each change, I had to start over making my changes again to the original code. This time, I couldn't get it to put my new weapons in the shops even though it worked before and I'm doing it the same way. DaJAngband is still a decent semi-variant which I have fun playing with only the minor changes, but there was more I would've liked to do.
__________________
Will_Asher aka LibraryAdventurer My old variant DaJAngband: http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...) Last edited by will_asher; December 19, 2007 at 08:38. |
![]() |
![]() |
![]() |
#2 | |
Knight
Join Date: Apr 2007
Posts: 590
![]() |
Quote:
2) I really can't imagine doing savegame format changes without a series of readonly reference files. Recovering from file import bugs can be a real pain. |
|
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
The game is not downloadable from http://www.geocities.com/will_asher/...DaJAngband.htm. I wish you better hosting, and i can provide you space at http://rogue-life.ourden.org. I guess u can host files at Roguelike Temple or whereever you like, and it would be better than geocities.
Last edited by Marvel@ourden.org; February 13, 2008 at 19:40. |
![]() |
![]() |
#4 |
DaJAngband Maintainer
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
![]() |
Wow, DaJAngband is on a roguelike games website, thanks for posting it there! The download works now, it was just a slight mistake on my part in the html code. I'd like to get it downloadable from that rogue-life site too, how can I do that?
__________________
Will_Asher aka LibraryAdventurer My old variant DaJAngband: http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...) |
![]() |
![]() |
![]() |
#5 | |
Ironband/Quickband Maintainer
Join Date: Nov 2007
Posts: 1,010
![]() |
Quote:
A.
__________________
Ironband - http://angband.oook.cz/ironband/ |
|
![]() |
![]() |
![]() |
#6 | |
DaJAngband Maintainer
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
![]() |
Quote:
BTW, the text you quoted/replied to is kindof out of date EDIT: On the original topic of this old thread: I just made a change in the code which added an item flag which makes the item prevent hp regeneration (for certain cursed artifacts like the One Ring -I always thought it should have more of a drawback). Then I compiled and loaded my saved game. Suddenly my character was not attacking monsters. I moved into a monster and it didn't attack. How could this happen when the code change I made had nothing to do with attacking?
__________________
Will_Asher aka LibraryAdventurer My old variant DaJAngband: http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...) |
|
![]() |
![]() |
![]() |
#7 | |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,801
Donated: $40
![]() |
Quote:
In any case, this is where version control would help a lot. svn or cvs would show you your changes vs your previous accepted work. svn. |
|
![]() |
![]() |
![]() |
#8 |
DaJAngband Maintainer
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
![]() |
I had it backed up so undoing the changes is no problem (I learned from last time). I just wondered how something like that could happen.
Which pre-existing values are you talking about? What I did was search everywhere DRAIN_EXP was in the code, and added the equivelent for NOREGEN (excepting the part that actually drained hps). Where there was an "XXX4" next to the bad flags, I used that spot when I added NOREGEN. isn't something like "XXX4" just a placeholder for something to be added later? and I found out that DRAIN_EXP was connected to "p_ptr->exp_drain" so I did the same thing for that, then I made it so that the player would not regenerate if "p_ptr->noregen" was true. None of it had anything to do with attacking, and in the game, it didn't say I was afraid or anything.
__________________
Will_Asher aka LibraryAdventurer My old variant DaJAngband: http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...) Last edited by will_asher; February 14, 2008 at 06:21. |
![]() |
![]() |
![]() |
#9 |
DaJAngband Maintainer
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
![]() |
I just tried to add a player state that would be caused by a monster or potion and have certain effects.
Other player states are in struct player_type in types.h, so I added them there, as "s16b slime; /* DAJ: slimed state */" just like the other player states are. And I made the nessesary additions in save.c and load.c, and thats all I changed before I compiled just to see if it would run right with that changed. When I ran the game, the display was completely messed up. How in the world would that change mess up the display? The thing I changed had nothing to do with the display. I just don't get it, maybe it's time I gave up on trying to do new things by hacking the code. I just don't have the time to learn to understand all the C code, and I'd be more motivatied to learn it if things made sense.
__________________
Will_Asher aka LibraryAdventurer My old variant DaJAngband: http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...) |
![]() |
![]() |
![]() |
#10 |
Administrator
|
You started a new character? I'd worry you broke the savefile format.
__________________
See the elves and everything! http://angband.oook.cz |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Semi-Variant DaJAngband Announcement | will_asher | Variants | 8 | December 13, 2007 08:51 |
DaJAngband: new object question | will_asher | Variants | 4 | December 13, 2007 03:18 |