Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > Hero Lab Discussion
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old March 19th, 2012, 07:10 AM
Wacky dice roller total.

A player in my game used the HL dice roller to roll 1(D20-2) and ended with a score of 4294967295.

Settings used:- Roll 1d20. Accumulate totals. Add to each die -2.

Odd :/
Attached Images
File Type: jpg D20 roll.JPG (168.4 KB, 7 views)

Dormio Forte Somnio


Community Created Resources :
Data Package Repositories :
d20pfsrd
Custom Character Sheets
Community Server Setup (Packs)

Hero Lab Help- Video Tutorials and Pathfinder FAQ

Created by the community for the community

Last edited by bodrin; March 19th, 2012 at 04:33 PM. Reason: Added screen shot!
bodrin is offline   #1 Reply With Quote
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old March 19th, 2012, 09:14 AM
Quote:
Originally Posted by bodrin View Post
Wacky dice roller total.

A player in my game used the HL dice roller to roll 1(D20-2) and ended with a score of 4294967295.

Settings used:- Roll 1d20. Accumulate totals. Add to each die -2.

Odd :/
Ah... it's a signed unsigned 32 bit int. His roll was less than 2, so it wrapped around... at least, that would fit. Interesting, because I'm pretty sure I've generated negative numbers before...

Last edited by Unseelie; March 19th, 2012 at 04:21 PM.
Unseelie is offline   #2 Reply With Quote
mirtos
Senior Member
 
Join Date: Oct 2011
Posts: 865

Old March 19th, 2012, 11:53 AM
Quote:
Originally Posted by Unseelie View Post
Ah... it's a signed 32 bit variable. His roll was less than 2, so it wrapped around... at least, that would fit. Interesting, because I'm pretty sure I've generated negative numbers before...
actually, its an unsigned int.

Last edited by mirtos; March 19th, 2012 at 11:57 AM.
mirtos is offline   #3 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old March 19th, 2012, 12:44 PM
I don't know if it would be relevant, but which game system? And which operating system? And is it replicable on his computer or on yours? Just things that support will be able to latch onto to find out where the bug is.
Duggan is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 19th, 2012, 12:47 PM
Duggan, I moved this out of the Pathfinder bug reports thread because the die roller is independant of any game system.
Mathias is offline   #5 Reply With Quote
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old March 19th, 2012, 04:04 PM
Quote:
Originally Posted by mirtos View Post
actually, its an unsigned int.
Sorry, typed that wrong. You're correct, unsigned...

In any case, it's not handling a negative number correctly it seems as 1-2 shouldn't equal 2^32-1.
Unseelie is offline   #6 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old March 19th, 2012, 04:35 PM
Quote:
Originally Posted by Mathias View Post
Duggan, I moved this out of the Pathfinder bug reports thread because the die roller is independant of any game system.
Blame me for posting in the wrong forum, I was browsing the Pathfinder bug reports and just posted this quirk.

Sorry!

Dormio Forte Somnio


Community Created Resources :
Data Package Repositories :
d20pfsrd
Custom Character Sheets
Community Server Setup (Packs)

Hero Lab Help- Video Tutorials and Pathfinder FAQ

Created by the community for the community
bodrin is offline   #7 Reply With Quote
Reply


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


All times are GMT -8. The time now is 04:35 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.