Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 25, 2020, 15:52   #141
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,846
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
That code isn't even right. It will favor the first objects enormously.

You want to count down with probability, with P= 1/N for object 1 and p = 1 for object N. Even better, count the list without the quest artifacts, pick a random number between 1 an N, and count off til you get that object. As written, there are excessive calls to random.
Code works perfectly.

First object: 100% chance to pick (100% obj1)
Second object: 1/2 chance to pick, 1/2 chance to keep old one -> 1/2 chance for first 2
Third object: 1/3 chance to pick, 2/3 chance to keep old one -> 1/3 chance on all first 3 (1/2*2/3)
Fourth object: 1/4 chance to pick, 3/4 chance to keep old one -> 1/4 chance on all first 4 (1/3*3/4)
...
Nth object: 1/n chance to pick, n-1/n chance to keep old one, and all up to (n-1) have equal 1/(n-1) probability -> 1/n-1 * n-1/n = 1/n chance on all n objects
__________________
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 November 25, 2020, 17:21   #142
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,189
Donated: $40
Pete Mack is on a distinguished road
Got it. I misread it the first time.
Pete Mack is offline   Reply With Quote
Old November 25, 2020, 19:26   #143
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,756
Donated: $60
Nick will become famous soon enough
Thanks. Efficient and clear; I particularly like the way you don't let quest artifacts mess with the counting and probabilities.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old December 3, 2020, 21:08   #144
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,756
Donated: $60
Nick will become famous soon enough
As far as I know there are two possibly outstanding bugs - duplicate uniques and duplicate artifacts - and I have been unable to pin them down despite much searching. So I think we're close to releasing 4.2.2. Let me know if there's anything I'm missing.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old December 3, 2020, 23:00   #145
Sphara
Swordsman
 
Sphara's Avatar
 
Join Date: Oct 2016
Location: Finland
Posts: 424
Sphara is on a distinguished road
Awesome.

Are there any other ways of reaching Gwarl than waiting him to appear in angband.live chat?

I've sent a personal message weeks ago. He finally addressed me in angband.live that he has sent my bug report further regarding to my vanilla save file. He just never removed the save file. He even apologized me for having a long absence. I have specifically stated that a save file of 'SPHARAGAIN' in angband.live is corrupted. But it is still there. I'm forced to play 4.2.1. Not a bad thing as such, but I want to be a part of new development. As far as playtesting goes.

So, unless there is not a string of misunderstandings, just remove spharagain vanilla nightly save file. And if there is another person who can do this, please inform me.

Loving f'***ing everyone, Sphara
Sphara is offline   Reply With Quote
Old December 4, 2020, 07:55   #146
Rune
Rookie
 
Join Date: Dec 2020
Posts: 3
Rune is on a distinguished road
I was looking in the source code and it looks like damage for the mage spell "Thrust away" is bugged.

Code:
spell:Thrust Away:40:12:90:40
effect:SHORT_BEAM:FORCE:1:10
dice:$Dd8
expr:D:PLAYER_LEVEL:+ 0
desc:Fires a short range beam of force.
Why would the damage be player level '+ 0' d8?
Rune is offline   Reply With Quote
Old December 4, 2020, 08:02   #147
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,756
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Rune View Post
I was looking in the source code and it looks like damage for the mage spell "Thrust away" is bugged.

Code:
spell:Thrust Away:40:12:90:40
effect:SHORT_BEAM:FORCE:1:10
dice:$Dd8
expr:D:PLAYER_LEVEL:+ 0
desc:Fires a short range beam of force.
Why would the damage be player level '+ 0' d8?
Because the syntax of the expr line requires three fields. We want (player level)d8 as the damage, but we need to add the '+0' for the file to parse correctly.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old December 4, 2020, 13:22   #148
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,460
wobbly will become famous soon enough
Quote:
Originally Posted by Sphara View Post
Are there any other ways of reaching Gwarl than waiting him to appear in angband.live chat?
You could try the angband.live forum, though whether it'll work I'm not sure. I tried just then and got an error.
wobbly is offline   Reply With Quote
Old December 5, 2020, 00:14   #149
DavidMedley
Knight
 
Join Date: Oct 2019
Posts: 964
DavidMedley is on a distinguished road
What is the order of classes on the creation screen?
a) Warrior
b) Mage
...
f) Paladin
g) Rogue
... etc

More precisely: how is the order chosen?
DavidMedley is offline   Reply With Quote
Old December 5, 2020, 00:56   #150
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,756
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by DavidMedley View Post
What is the order of classes on the creation screen?
a) Warrior
b) Mage
...
f) Paladin
g) Rogue
... etc

More precisely: how is the order chosen?
By their order in class.txt.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   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
Current master post 4.2.0 Nick Vanilla 463 June 5, 2020 03:31
Current master post-4.1.3 Nick Vanilla 505 June 16, 2019 00:26
Suggestion for Rangers (repost from master-post thread) Thraalbee Vanilla 1 April 13, 2019 18:08
Issues on current master Nick Vanilla 277 June 18, 2017 22:30
Bugs and complaints on current master Nick Vanilla 588 April 27, 2017 22:54


All times are GMT +1. The time now is 23:13.


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