TEOS bug reddit / bbs ---------------------------------------------------------------------- dragnscalearmor · 2018-10-04 15:14 I finally did it. After playing for a long, long time, I finally hit a bug in Planets: TEOS v2. I have went above 2,000,000,000 space bucks, and it converted it all to negative. So, instead of having +2 billion, it shows as -2 billion. Quite a little bug, because I can't purchase anything, transfer any money to planets, store it in the galactic bank, etc. I'm quite literally stuck. Neat bug to find though. I emailed the sysop, so hopefully it'll be fixed soon. I've almost destroyed the Maraken entirely. Been a whole lot of fun! ---------------------------------------------------------------------- orexclusivo · 2018-10-04 16:08 yay 32-bit integers! I haven't played Planets TEOS since the 90s, lots of good memories there. ---------------------------------------------------------------------- Dobesov · 2018-10-04 16:47 Good pitches kids, I'm almost proud, but watch closely as grandpa topple an empire by changing a 1 to a -1. ---------------------------------------------------------------------- RolandMT32 · 2018-10-04 19:47 I believe I'm the sysop you contacted about this. ;) ---------------------------------------------------------------------- UnaClocker · 2018-10-05 02:01 Fun story. I used to write doorgames. Had my local friends bug testing on my board for me. I’d written a simple higher/lower card gambling game. Start with $20, get 10 or so cards per day. Anyways, second day I go to play and a friend has a score in the millions. Wtf?!? Turns out I didn’t check to see if he bet negative. So he gets a king, bets negative one million, and says the next card will be higher. Hahaha. Full of win. ---------------------------------------------------------------------- dragnscalearmor · 2018-10-05 11:07 Yep! Thanks for fixing it for me. Now I can continue to dominate the Galaxy, mwahahaha! ---------------------------------------------------------------------- dragnscalearmor · 2018-10-05 11:07 That's awesome lol ---------------------------------------------------------------------- Valdebrick · 2018-10-05 13:52 Odd that Seth Robinson used a signed integer to represent money, since there is no reason for it to ever drop below 0. Had he used an unsigned integer (a Cardinal in PASCAL) instead, you would have been able to get up to just over 4 billion, and then it would have simply wrapped back to 0. ---------------------------------------------------------------------- dragnscalearmor · 2018-10-05 14:42 I don't think it ever crossed his mind that the money would get that high. The sysop fixed it for me, and my planetary domination is now complete. ;) ---------------------------------------------------------------------- dragnscalearmor · 2018-10-05 14:44 Aha! I have managed to conquer all the planets except for one that's marked as Private, so I can't get to it at all, not even using a warp unit. I think it was from a player account that lapsed and was removed. Anyway, I have accomplished what I set out to do in TEOS. I own the galaxy. Thanks to /user/RolandMT32 for hosting it! ---------------------------------------------------------------------- Valdebrick · 2018-10-05 14:48 Oops, upon further investigation it seems that the older version of PASCAL, which TEOS was written in, did not have unsigned integers available. Mystery solved! ---------------------------------------------------------------------- RolandMT32 · 2018-10-06 00:23 I was thinking the same thing, but then I wondered if the game allowed negative money (for instance, if you owed a bunch of money or something). ---------------------------------------------------------------------- RolandMT32 · 2018-10-06 00:24 I don't really understand why there are programming languages that don't have unsigned integers. That has been a common complaint about Java. ---------------------------------------------------------------------- Kirkman14 · 2018-10-06 17:38 I think this was common in old door games. IIRC, there is a similar 2 billion credits limit in Solar Realms Elite, which was written in C++. But I don't think SRE has the same the overflow bug that the OP described. My recollection is that any excess over 2 billion is just lost. (No changing to negative) SRE has several places where you can keep money, though. You can have it on hand, in a savings account, or in galactic bonds (one bond per turn). Each of those places has a maximum of 2 billion, IIRC. So for a 5-turn game, that's a maximum of about 14 billion credits per player. ---------------------------------------------------------------------- Valdebrick · 2018-10-06 18:24 It's easy enough to prevent your values from wrapping into the negatives once you pass ~2 billion, even if you don't cast the containing variable as an unsigned integer. You have to be cognizant of it though, and check to make sure that any time you increase the value of the variable, it doesn't exceed the limit. ---------------------------------------------------------------------- dragnscalearmor · 2018-10-07 16:39 So, I've taken over all the Maraken planets, etc.. how do I actually WIN this game? With version 1, you had to defeat a specific NPC ship. With this version (2.x) I have no idea how to actually win. Anyone have any idea? Thanks.