Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 7, 2017, 10:44   #121
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 602
Gwarl is on a distinguished road
Quote:
Originally Posted by takkaria View Post
So the numbers are derived from the order in which they appear in the object.txt file. If you add one book at the end of the list, that should be #9. After that there isn't anything at present, but I can modify it so that 0 will follow 9.

I think it's true that Angband should be for variants, but there are tradeoffs. This particular change is there to allow the vast majority of people to play without having to set up inscriptions and auto-inscriptions on books if they don't want to accidentally cast the wrong spell occasionally. I will modify it so that after the first 10 it reverts to letters.
Can't you achieve the same thing by using autoinscriptions though? Even having the books autoinscribed by default. I just think that anything that can be changed inside editable files should be, and hard coding should be a last resort.

In fact I'm probably going to be autoinscribing books 1-8 with a-h now.
Gwarl is offline   Reply With Quote
Old June 7, 2017, 13:13   #122
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,417
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Nick View Post
Yes, it would. One of the first things (caveat: there are a few first things) I will be doing post-4.1 is re-doing how magic realms are handled. There will be a number of details to thrash out, but I'm at least looking at the potential for a class to have books from more than one realm (if realm is even the correct concept).
I was waiting for this for a long time. Currently, Angband only has 2 sets of books. My variant has 9. And many spells like Call Light or Detect Traps are duplicated in all the books. Would be great to reorganize the spells into schools like what's done in the ToME variants (Mana, Fire, Conveyance, Divination...) and then assign differents schools to classes.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old June 7, 2017, 13:54   #123
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Ingwe Ingweron View Post
I didn't think it would be too hard, but apparently it is. I'm guessing it breaks down in the Number of spell realms used in the "book:" line of class.txt but that's just a guess.
Funnily enough, realm number is vestigial and isn't used for anything. The real problem is that there is a hard-coded translation between object bases and the symbols used for referring to the bases in the code. This would be hard to remove, because the code actually needs to know about aspects of how books behave as distinct from other objects.

I do have the aim of allowing classes to take books from more than one realm; the main obstacle to be overcome (which you mentioned) is that calculations of mana, number of spells, fail rate, etc currently assume a single realm.

This thread has now been thoroughly derailed, and I have not fixed any bugs today because I've been thinking about how magic realms work
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old June 7, 2017, 14:28   #124
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
Quote:
Originally Posted by PowerWyrm View Post
I was waiting for this for a long time. Currently, Angband only has 2 sets of books. My variant has 9. And many spells like Call Light or Detect Traps are duplicated in all the books. Would be great to reorganize the spells into schools like what's done in the ToME variants (Mana, Fire, Conveyance, Divination...) and then assign differents schools to classes.
Maybe schools could have a fixed number and spells be lettered across all books in that school, rather than individually by book? e.g., the first book contains spells lettered a-f, second book contains spells lettered g-k, third book l-q, etc. Then a spell would always be at the exact same 'address' regardless of how many books you are or aren't carrying. So if, say, escape spells are school 2 and Teleport is in slot h in the second book, you will always type m2h to cast Teleport, regardless of whether you're carrying just that particular book with teleport in or another number of others from the same or different schools.

If you restrict each school to 23 spells, slots a-w like the inventory, then they'll all fit on a single screen and you can have a nice combined interface that shows you all currently available spells from that school in one long list rather than needing to remember which individual book you want. Ten schools of magic (if you use 0 as a number as well) would give you 230 spells to play with. In fact, if it's going to be fixed schools rather than books that move around in the inventory, no reason you can't use letters and have 26 (or 52!) schools if you need more than 10 for variants.

Anyway, here's the thread where we were kicking around ideas for magic systems a while back, so we should probably take this discussion over there if it's going to be ongoing.

Oh, one more point, though - if we're going to expand the number of books, might I suggest an "Auto-ignore all non-aligned spellbooks" menu option rather than making poor warriors in particular manually squelch each individual book every game?
Nomad is offline   Reply With Quote
Old June 7, 2017, 14:44   #125
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
Wait, I've remembered the bug I actually came into this thread to post about!

Torches no longer disappear when they run out of fuel in the latest nightly; you're now just left with a Wooden Torch (0 turns).
Nomad is offline   Reply With Quote
Old June 7, 2017, 14:47   #126
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Ingwe Ingweron View Post
In the penultimate nightly (I didn't realize you'd just uploaded a new version while I was playing), @ descended stairs and used a mapping stave, with the result depicted in the attached. Namely, @ surrounded by walls in a single cell off to the left, and the entire dungeon (guessing it's a special room or vault) completely separated from @. Too far to phase door and no recall leave the @ stranded.

Attachment 1541

Edit: In fact, attempting either Phase Door or Teleport Self results in the game locking-up and eventually crashing.
This is clearly bad; I'll file it as a bug, but I am not terribly hopeful of either reproducing it or working out what went wrong without reproducing it.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old June 7, 2017, 18:22   #127
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,859
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
Can't you achieve the same thing by using autoinscriptions though? Even having the books autoinscribed by default. I just think that anything that can be changed inside editable files should be, and hard coding should be a last resort.

In fact I'm probably going to be autoinscribing books 1-8 with a-h now.
I think using autoinscriptions for this is an unnecessary workaround to a bad UI, so I'd rather just fix the UI. It's fine for people who already know the game but it's just added complexity for new players. I will work out how to allow both letters and numbers when selecting a spell, though.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old June 7, 2017, 19:30   #128
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 1,656
Ingwe Ingweron is on a distinguished road
Quote:
Originally Posted by Nick View Post
Funnily enough, realm number is vestigial and isn't used for anything.
I found a workaround for my strange hybrid class experiment, though it does nothing for the larger other realms issues. I just changed the classes "new" prayer book into a "magic" book in object.txt and class.txt, although kept it as realm "2". Now, the book appears as red in the inventory (green on the ground) and @ can cast spells as usual even with Takkaria's new system.

Sorry, to have derailed the bug squashing with all this. Though, in my defense, it is a bug, just one that is being delayed until next time. I hope all your thought about realms will still prove useful in the end, so your time will not have been wasted.
__________________
“We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see.”
― Tom Stoppard, Rosencrantz and Guildenstern are Dead
Ingwe Ingweron is offline   Reply With Quote
Old June 7, 2017, 22:52   #129
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,213
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Ingwe Ingweron View Post
Sorry, to have derailed the bug squashing with all this. Though, in my defense, it is a bug, just one that is being delayed until next time. I hope all your thought about realms will still prove useful in the end, so your time will not have been wasted.
No need to apologise - as you say, it was thought that needed to be had at some point, and my inability to stay focused is my problem, not anyone else's
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old June 8, 2017, 03:05   #130
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
Quote:
Originally Posted by Nomad View Post
Torches no longer disappear when they run out of fuel in the latest nightly; you're now just left with a Wooden Torch (0 turns).
Some related oddities - you no longer seem to get the warning messages to tell you when the light level is running low, and instead of the "your light has gone out" message when it completely runs out, you get "Your Wooden Torch has recharged."
Nomad 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
4.1 pre-release Nick Vanilla 16 April 2, 2017 17:29
Bugfix release for 3.2? Timo Pietilš Development 69 April 14, 2011 21:59
3.2 release candidate is upon us! d_m Vanilla 147 January 19, 2011 11:10
reactions to changes in new V release will_asher Vanilla 50 April 9, 2008 19:47
UnAngband interim release in preparation; please help! Bandobras Variants 13 December 21, 2007 17:01


All times are GMT +1. The time now is 12:37.


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