[Space] DIV/0 error in starsystem generation sequence
In the the starsystem generation sequence in GURPS Space it is possible for a star system to have an age of 0. Since the unit of measure is billions of years, and the table entries go to one decimal place (with a '5', sometimes, in the second decimal place), this is fair enough. Age = 0 represents systems younger than about 250 million years.
However, in the rules for generating the level of volcanic activity (Step 31, on p.119) you divide surface gravity by age. This can produce a divide-by-zero error. |
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
You could assume an arbitrary age of, say, 50 million years (0.05 billion). But I would suggest an even simpler approach. If the modified roll for volcanic activity is 71 or higher, you get extreme vulcanism. Infinity is greater than 71. So just treat it as "increases without limit" and as automatically greater than 71—that is, every world in such a system has extreme vulcanism. Save the dice roll entirely. Bill Stoddard |
Re: [Space] DIV/0 error in starsystem generation sequence
Is this a problem with a spreadsheet? I don't find it to be a problem in in principle because an age 0 star would presumably not have any planets anyway, just coagulating clouds of dust.
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
Quote:
Exception testing before any division is routine for professional programmers. But I didn't think that it was a bad idea not to give the many amateurs who are having a go at this project a 'heads up' about a potential run-time error. |
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
Re: [Space] DIV/0 error in starsystem generation sequence
Quote:
|
| All times are GMT -6. The time now is 05:36 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.