|
Page 1 of 1
|
[ 12 posts ] |
|
| Author |
Message |
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3151 Location: USA
|
 Question about a bug
I just tracked down and fixed a bug that appears to have been around since the late 90s. This bug caused some odd behavior related to displays. For example, it might cause a display to fail to show as if you pressed space to abort the output. In some cases, it would hang the game, but you could break out of the hang by pressing any key, so it wasn't a hard lock. There are other potential problems related to the bug. Basically, what was happening was when the player input buffer wrapped around, any peeks into the buffer would return the character from the previous buffer pass if no new character was available. Obviously a bad thing, and the side-effects would be fairly random. Like if the left-over character that's next in the buffer happens to be a SPACE while you're displaying a screen, that screen would abort.
I was wondering if anyone here has experienced any bugs that might be related to this. I haven't had any reports of the kind of behavior I've seen with this, but the code that caused the bug is VERY old, predating TWGS. I suppose it's possible that some new change caused the bug to surface, but it sure seems like something that's been around for awhile.
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
| Thu Sep 16, 2010 5:26 pm |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Question about a bug
I don't recall having ever seen anything like what you are describing, either recently, or back in the BBS days. But then again, I'm just 1 out of ############# players... 
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Thu Sep 16, 2010 11:20 pm |
|
 |
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3151 Location: USA
|
 Re: Question about a bug
I needed a sanity check on this one, so I installed the last public release, TWGS10300, and tried to reproduce this bug. That version has been out since 2004. After flying around manually from sector to sector long enough to wrap the 256 byte input buffer, I locked it up as expected. Here's a screen cap.  I'm surprised if nobody has run across this bug. I think it's likely many people have, but never saw a pattern or could reproduce it. It's an elusive bug. I was lucky to spot it myself.
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
| Fri Sep 17, 2010 1:47 am |
|
 |
|
Cruncher
Ambassador
Joined: Fri Feb 23, 2001 3:00 am Posts: 4016 Location: USA
|
 Re: Question about a bug
John Pritchett wrote: I needed a sanity check on this one, so I installed the last public release, TWGS10300, and tried to reproduce this bug. That version has been out since 2004. After flying around manually from sector to sector long enough to wrap the 256 byte input buffer, I locked it up as expected. Here's a screen cap.  I'm surprised if nobody has run across this bug. I think it's likely many people have, but never saw a pattern or could reproduce it. It's an elusive bug. I was lucky to spot it myself. Good catch John! I think I've seen this before but just assumed it was pilot error. 
_________________
BOTE 1998 Champs: Team Fament HHT 2015 Champs: Cloud09 Big Game 2016 Champs: Draft team HHT 2018 Champs: Rock Stars Big Game 2019 Champs: Draft Team
Classic Style Games Here: telnet://crunchers-twgs.com:2002 Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm Blog with current server info: http://cruncherstw.blogspot.com Discord: https://discord.gg/4dja5Z8 E-mail: Cruncherstw@gmail.com FaceBook: http://www.facebook.com/CrunchersTW
|
| Fri Sep 17, 2010 7:06 am |
|
 |
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3151 Location: USA
|
 Re: Question about a bug
While researching this bug, I discovered another "abort display" related bug. When set to "all keys", if you enter a remote sector and press ENTER, TW will interpret that ENTER as an abort key and you won't see the warp path route, just the prompt to make the move. In general, this is true of any entry that is ended with an ENTER. Any display immediately following that entry will be aborted by the ENTER. If fixed, the expected output will display unless a second ENTER or any key is pressed to abort the display.
My question is, will fixing this bug effect script and helper behavior?
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
| Fri Sep 17, 2010 2:43 pm |
|
 |
|
Maniac
Lieutenant J.G.
Joined: Sun Mar 13, 2005 3:00 am Posts: 387 Location: USA
|
 Re: Question about a bug
John Pritchett wrote: While researching this bug, I discovered another "abort display" related bug. When set to "all keys", if you enter a remote sector and press ENTER, TW will interpret that ENTER as an abort key and you won't see the warp path route, just the prompt to make the move. In general, this is true of any entry that is ended with an ENTER. Any display immediately following that entry will be aborted by the ENTER. If fixed, the expected output will display unless a second ENTER or any key is pressed to abort the display.
My question is, will fixing this bug effect script and helper behavior? Is this anyway related to the "desired" * behavior of sectors under X amount of digits/or less than X do not require an enter? I can't remember the details but I am sure others know of this "desired"* behavior. * I will be nice tonight but this desired behavior has been around like forever.... well with the bug fixes we get from you it might just be from before the last release, but the time frame is the same ..... forever.
_________________ Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas
|
| Fri Sep 17, 2010 8:07 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: Question about a bug
John Pritchett wrote: While researching this bug, I discovered another "abort display" related bug. When set to "all keys", if you enter a remote sector and press ENTER, TW will interpret that ENTER as an abort key and you won't see the warp path route, just the prompt to make the move. In general, this is true of any entry that is ended with an ENTER. Any display immediately following that entry will be aborted by the ENTER. If fixed, the expected output will display unless a second ENTER or any key is pressed to abort the display.
My question is, will fixing this bug effect script and helper behavior? John, when it is a bug, just fix it, IMO. The game and the players will evolve. H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Fri Sep 17, 2010 9:23 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: Question about a bug
All Keys includes "enter"
Other than pack 2 scripts very few use this function as we scripters prefer to add spaces directly in the macro to avoid switching back and forth. Change or not it will have little effect outside of pack 2 scripts which are easily fixed if needed
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Fri Sep 17, 2010 9:42 pm |
|
 |
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3151 Location: USA
|
 Re: Question about a bug
The "desired" behavior of not requiring return after unambiguous sector numbers, which was designed behavior, not a bug, is now optional. There has always been mixed feedback on that, and it isn't used for games with > 5K sectors at all anyway. So now there's a setting under personal settings that allows you to turn that "smart" auto-return to off so you have to press enter after ANY sector number, for those who prefer that.
And yes, pretty much any bug in the game has been in there "forever". However, this bug has been in there since about 1997, which makes it as old as it can get without being a carry-over from Gary's original code.
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
| Sat Sep 18, 2010 3:41 am |
|
 |
|
Cruncher
Ambassador
Joined: Fri Feb 23, 2001 3:00 am Posts: 4016 Location: USA
|
 Re: Question about a bug
John Pritchett wrote: The "desired" behavior of not requiring return after unambiguous sector numbers, which was designed behavior, not a bug, is now optional. There has always been mixed feedback on that, and it isn't used for games with > 5K sectors at all anyway. So now there's a setting under personal settings that allows you to turn that "smart" auto-return to off so you have to press enter after ANY sector number, for those who prefer that.
And yes, pretty much any bug in the game has been in there "forever". However, this bug has been in there since about 1997, which makes it as old as it can get without being a carry-over from Gary's original code. I've been playing HVS MBBS TW recently and that "behavior" is there in the 5k universe. Sectors 1 - 500 require an enter after but sectors 501 - 5000 do not.
_________________
BOTE 1998 Champs: Team Fament HHT 2015 Champs: Cloud09 Big Game 2016 Champs: Draft team HHT 2018 Champs: Rock Stars Big Game 2019 Champs: Draft Team
Classic Style Games Here: telnet://crunchers-twgs.com:2002 Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm Blog with current server info: http://cruncherstw.blogspot.com Discord: https://discord.gg/4dja5Z8 E-mail: Cruncherstw@gmail.com FaceBook: http://www.facebook.com/CrunchersTW
|
| Sat Sep 18, 2010 9:49 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Question about a bug
Auto-complete.
Not sure why it's a big deal. You can just hit "M" before it and the problem goes away. All of my scripts do that, I'd imagine most do.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Sat Sep 18, 2010 10:10 am |
|
 |
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3151 Location: USA
|
 Re: Question about a bug
It's not a big deal, just some people have said they don't care for it so it's now an option.
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
| Sat Sep 18, 2010 12:01 pm |
|
 |
|
|
Page 1 of 1
|
[ 12 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 351 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|