Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > The real world > Idle chatter

Reply
 
Thread Tools Display Modes
Old December 19, 2007, 08:31   #1
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
will_asher is on a distinguished road
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.
will_asher is offline   Reply With Quote
Old December 19, 2007, 17:27   #2
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Quote:
Originally Posted by will_asher View Post
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.
1) If you can install a version control server, undoing changes correctly becomes a matter of self-discipline. (I've paid the learning curve for SVN. Just about anything that intentionally improves on CVS is both better than nothing, and should give a good first experience with source code control.)

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.
zaimoni is offline   Reply With Quote
Old February 13, 2008, 19:35   #3
Marvel@ourden.org
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.
  Reply With Quote
Old February 13, 2008, 20:15   #4
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
will_asher is on a distinguished road
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...)
will_asher is offline   Reply With Quote
Old February 13, 2008, 20:25   #5
Antoine
Ironband/Quickband Maintainer
 
Join Date: Nov 2007
Posts: 1,010
Antoine is on a distinguished road
Quote:
Originally Posted by will_asher View Post
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.
I think your next goal should be to get your best changes into V (and/or other variants).

A.
__________________
Ironband - http://angband.oook.cz/ironband/
Antoine is offline   Reply With Quote
Old February 13, 2008, 21:18   #6
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
will_asher is on a distinguished road
Quote:
Originally Posted by Antoine View Post
I think your next goal should be to get your best changes into V (and/or other variants).
how would this happen except that someone plays my game (or at least reads the change list), likes an idea, and puts it in their variant? Doesn't sound like it's something that I do, that's up to other people if they feel like it.

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...)
will_asher is offline   Reply With Quote
Old February 13, 2008, 22:27   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,801
Donated: $40
Pete Mack will become famous soon enough
Quote:
Originally Posted by will_asher View Post
how would this happen except that someone plays my game (or at least reads the change list), likes an idea, and puts it in their variant? Doesn't sound like it's something that I do, that's up to other people if they feel like it.

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?
It can't, if you added it to preexisting values. If you changed any existing values, you may have changed something like FA into Fear (eg.)
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.
Pete Mack is offline   Reply With Quote
Old February 14, 2008, 05:11   #8
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
will_asher is on a distinguished road
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.
will_asher is offline   Reply With Quote
Old February 26, 2008, 19:23   #9
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 1,124
Donated: $10
will_asher is on a distinguished road
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...)
will_asher is offline   Reply With Quote
Old February 26, 2008, 20:10   #10
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 43
Posts: 792
pav is on a distinguished road
Send a message via ICQ to pav
You started a new character? I'd worry you broke the savefile format.
__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.