Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old February 3, 2008, 23:11   #1
CunningGabe
Swordsman
 
Join Date: Feb 2008
Location: Boston, MA
Posts: 250
CunningGabe is on a distinguished road
Interesting *Slay Animal* sword...

On DL6 I just picked up a Sabre of *Slay Animal* (1d7) (+1,-9565) (+1). In addition to hitting monsters for large negative amounts of damage (haha), it increases my intelligence by 1 and slows my metabolism.

I have to imagine that the huge negative to-dam is a bug. I'm playing the most recent nightly build. Would any other information be useful to track this down?
CunningGabe is offline   Reply With Quote
Old February 4, 2008, 09:01   #2
Daven_26d1
Adept
 
Daven_26d1's Avatar
 
Join Date: Jun 2007
Location: North of England.
Posts: 211
Daven_26d1 is on a distinguished road
This looks like what's known as integer overflow; if you can't reproduce it consistently, or at least find more common evidence of it occurring, then I wouldn't worry about it too much. TBH its hard to consistently reproduce "random" events unless you happened to make a copy of your savefile just before you generated the floor, playing out the exact same moves would then allow someone to debug the event properly.

This sort of thing can occasionally happen because of a few wrong bits in memory or the savefile, which can potentially happen from time-to-time even with bug-free code - if there was such a thing! You are playing the nightlies though, so a subtle bug may well have been introduced very recently.

I forget exactly how bonuses are generated in Angband, but it might also be possible to generate a sword with such a huge bonus that it actually becomes a negative number; this is pretty unlikely seeming, because it would take a +55970 sword to give that magnitude of overflow; unless you are also a lottery winner?
__________________
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...".
Daven_26d1 is offline   Reply With Quote
Old February 4, 2008, 10:50   #3
Dragonboneman
Adept
 
Join Date: Aug 2007
Posts: 182
Dragonboneman is on a distinguished road
What actually happens if you hit something with that sword?
Does it do normal damage?
Or "negative damage" - ie healing?
Or does it simply cause the space-time continuum to implode?
Dragonboneman is offline   Reply With Quote
Old February 4, 2008, 12:52   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,850
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by CunningGabe View Post
On DL6 I just picked up a Sabre of *Slay Animal* (1d7) (+1,-9565) (+1). In addition to hitting monsters for large negative amounts of damage (haha), it increases my intelligence by 1 and slows my metabolism.

I have to imagine that the huge negative to-dam is a bug. I'm playing the most recent nightly build. Would any other information be useful to track this down?
Thanks! I have been tweaking that area of code recently so I'll have to take a look at what I messed up.
takkaria is offline   Reply With Quote
Old February 5, 2008, 08:12   #5
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,850
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by CunningGabe View Post
On DL6 I just picked up a Sabre of *Slay Animal* (1d7) (+1,-9565) (+1). In addition to hitting monsters for large negative amounts of damage (haha), it increases my intelligence by 1 and slows my metabolism.

I have to imagine that the huge negative to-dam is a bug. I'm playing the most recent nightly build. Would any other information be useful to track this down?
I just found a (blessed) Mace with (+2,+22656) in the Temple, selling for a cool $2.7m. I really have no idea where I've gone wrong on this one.
takkaria 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
interesting monsters (reply to Takkaria and Andrew's message in Icey's thread) will_asher Vanilla 16 September 23, 2007 10:30
a couple interesting comments about my current game will_asher AAR 4 June 8, 2007 17:22
Vanilla Naming: *slay evil* vs slay evil Mondkalb Vanilla 1 May 2, 2007 17:42


All times are GMT +1. The time now is 08:06.


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