Jump to content

Photo

OREGON TRAIL for Extended BASIC and updated version for TI BASIC


16 replies to this topic

#1 majestyx OFFLINE  

majestyx

    Chopper Commander

  • 147 posts
  • Location:Port Carbon, Pennsylvania

Posted Thu Oct 19, 2017 11:15 AM

Okay, so, after the fiasco of what happened to my original TI BASIC version of Oregon Trail I had posted here: http://atariage.com/...-994/?p=3822181 with... well, I don't know what to say about the multiple versions that did nothing that I could notice to improve or enhance it, as well as versions that won't work on a stock TI... but anyway... and after seeing what could be done by Jim Gerrie on the TRS-80 MC-10: http://atariage.com/...-994/?p=3822550 , I figured I'd redo this in Extended BASIC. Of course my OCD made me decide to tighten up the TI BASIC version as well by fixing a few things I messed up logically as well as implementing some more efficient code thanks to suggestions by other members of the TI community here at AA.
 
While I personally feel it's nothing to really get excited about (it wasn't a game I ever really played back in the 1980s when I had an Apple //c - I was more interested in Ultima, Wizardry, Bard's Tale and text/graphic adventures), I believe it's a more polished product, at least in the XB version. This was my first program ever in XB and since I wrote a TI BASIC version of it, I figured I'd ease my way into XB by working with something for which I had some familiarity.
 
So for this version, I made pretty decent use of the DISPLAY/ACCEPT AT commands, implemented a simple ox & wagon graphic similar to what Jim Gerrie did, changed screen color, put in two simple tunes - a "charge" fanfare and a "creepy" four note stinger - as well as putting the instructions back in, made slightly more descriptive events, and added a bit more character that was, and still is, missing from the TI BASIC version.
 
I did a decent amount of testing, but I surely could have missed something, particularly when it comes to losing or messing up on the trail, as I mainly played to win.
 
While I was disappointed with what another member here did with my initial version, I still have to thank him for getting me to program it in the first place, and then giving me motivation, albeit not purposely, to create a better version of it. Also, a big thanks to carlsson, chue, and Casey (the 3 Cs - how 'bout that?) for suggestions on improving and optimizing the code, to JamesD for suggesting a look at Jim Gerrie's MC-10 version (as well as other ports he's done for that computer) and Tursi for Classic99. As much as I'd have liked to have used Rich's RXB, I figure I should do baby steps until I'm used to the good ol' standard XB. Plus it's cool to see what I could have done back in the day, if only I had the tools then.
 
All credit for OREGON TRAIL goes to Dan Rawitsch and Bill Heinemann who developed the very first version of this back in 1971 and MECC for commercializing it. The version I used for reference is the one published in the May/June 1978 issue of Creative Computing, pages 132-139, for the CDC Cyber 70/73-26 in BASIC 3.1: https://archive.org/...mputing-1978-05 with additional material sourced from David Ahl's Westward Ho 1847 http://www.atariarch..._WestwardHo.php
 
Note that I do not have any TI hardware so this was developed and tested on Classic99 only.
 
The attached ZIP contains both the Extended BASIC version called OREGONTEB and the newly revised TI BASC version called OREGONTR which can be placed in whatever DSKx folder you'd like in Classic99.

Attached Files


Edited by majestyx, Thu Oct 19, 2017 12:57 PM.


#2 OLD CS1 OFFLINE  

OLD CS1

    River Patroller

  • 3,933 posts
  • Technology Samurai
  • Location:Tallahassee, FL

Posted Thu Oct 19, 2017 12:29 PM

Wow.  The original code from 1978 is... so, like, totally un-optimized.  Like, OMG, that must have been, like, totally the Dark Ages, and stuff.

 

Gah!

 

:)



#3 majestyx OFFLINE  

majestyx

    Chopper Commander

  • Topic Starter
  • 147 posts
  • Location:Port Carbon, Pennsylvania

Posted Thu Oct 19, 2017 12:48 PM

Just noticed that I forgot to remove a debugging DISPLAY AT I used for timing the shooting routine in the version I uploaded. Fixed in attached download.

 

EDIT: Didn't realize I could still edit my previous post. I could swear in the past there was a time limit of around an hour to do so. Anyway, either post has the corrected XB version.

Attached Files


Edited by majestyx, Thu Oct 19, 2017 12:58 PM.


#4 ramidavis ONLINE  

ramidavis

    Star Raider

  • 55 posts

Posted Thu Oct 19, 2017 9:17 PM

:) Nice. After the original thread died out, i was not expecting yet another version.

Very nice.



#5 --- Ω --- OFFLINE  

--- Ω ---

    TI-Runner

  • 10,600 posts

Posted Fri Oct 20, 2017 3:36 AM

So when is this gonna be converted into a FR99/FG99 .BIN?  :evil:



#6 digdugnate OFFLINE  

digdugnate

    Dragonstomper

  • 640 posts
  • Location:SW Missouri

Posted Fri Oct 20, 2017 5:35 AM

So when is this gonna be converted into a FR99/FG99 .BIN?  :evil:

I don't remember which thread.. but there was a whole discussion about converting TI Basic programs to .bins on one of the finalgrom threads :)  (im sick and my atari age-fu is not great right now, haha)

 

i commented that once i had a little time to mess with it I'd see if i could convert some of my dad's TI Basic demos to run on my finalgrom- seems like the EB ones did something different where they didn't behave the same as regular Basic.



#7 LASooner OFFLINE  

LASooner

    Chopper Commander

  • 152 posts

Posted Fri Oct 20, 2017 12:38 PM

It's well done. I did find an error though, when stopping at a fort if I hit enter without entering a value for items to be purchased it breaks. It should either prompt you again or register no data as $0



#8 oddemann OFFLINE  

oddemann

    Space Invader

  • 16 posts

Posted Fri Oct 20, 2017 4:06 PM

Nice!  :thumbsup:



#9 JamesD OFFLINE  

JamesD

    Quadrunner

  • 7,732 posts
  • Location:Flyover State

Posted Fri Oct 20, 2017 4:19 PM

End of life!  No further updates!   :D



#10 carlsson OFFLINE  

carlsson

    Quadrunner

  • 5,021 posts
  • Location:Västerås, Sweden

Posted Fri Oct 20, 2017 4:39 PM

Yeah, I was a little interested in continue the improvements of the original listing myself, but I've got more important things to do so good thing someone else took up the task and moved to a more comprehensive programming language with actual room for improvements.

 

Perhaps one day I'll try to port some of the other games I pointed our eager tweenie to, but so far haven't surfaced.



#11 majestyx OFFLINE  

majestyx

    Chopper Commander

  • Topic Starter
  • 147 posts
  • Location:Port Carbon, Pennsylvania

Posted Fri Oct 20, 2017 8:01 PM

It's well done. I did find an error though, when stopping at a fort if I hit enter without entering a value for items to be purchased it breaks. It should either prompt you again or register no data as $0

 

Thanks for noticing that. I'm guessing you mean the XB version? While it doesn't stop for me (it gives a warning but re-prompts to input the amount again), I really should have put in validity checking for blank. I've fixed that in both the initial purchase phase (which uses INPUTs) and in the fort routine (which uses ACCEPT ATs). I'll wait a little bit to see if anyone finds any other issues before posting an updated version. Unfortunately there's no room in the TI BASIC version to add this, but the program doesn't stop but gives the WARNING: INPUT ERROR IN line# so that will have to suffice.



#12 majestyx OFFLINE  

majestyx

    Chopper Commander

  • Topic Starter
  • 147 posts
  • Location:Port Carbon, Pennsylvania

Posted Fri Oct 20, 2017 8:15 PM

End of life!  No further updates!   :D

 

Silly me! Looks like I didn't get the memo! :-o  ;)



#13 LASooner OFFLINE  

LASooner

    Chopper Commander

  • 152 posts

Posted Fri Oct 20, 2017 11:45 PM

 

Thanks for noticing that. I'm guessing you mean the XB version? While it doesn't stop for me (it gives a warning but re-prompts to input the amount again), I really should have put in validity checking for blank. I've fixed that in both the initial purchase phase (which uses INPUTs) and in the fort routine (which uses ACCEPT ATs). I'll wait a little bit to see if anyone finds any other issues before posting an updated version. Unfortunately there's no room in the TI BASIC version to add this, but the program doesn't stop but gives the WARNING: INPUT ERROR IN line# so that will have to suffice.

Yes, it was the EB version I should have specified.



#14 majestyx OFFLINE  

majestyx

    Chopper Commander

  • Topic Starter
  • 147 posts
  • Location:Port Carbon, Pennsylvania

Posted Sat Oct 21, 2017 6:26 AM

I found a few more things I needed to fix in the XB version so I've attached the latest bug fix here. Just the Extended BASIC version this time.

Attached Files



#15 Vorticon OFFLINE  

Vorticon

    River Patroller

  • 2,805 posts
  • Location:Eagan, MN, USA

Posted Sat Oct 21, 2017 7:41 AM

Nicely done. The graphics really make a big difference in the presentation. 



#16 TheTIGuy OFFLINE  

TheTIGuy

    Moonsweeper

  • 367 posts
  • Sit. I said sit! Bad fish!
  • Location:Springfield (Any/All of them)

Posted Tue Oct 31, 2017 11:09 PM

 

Silly me! Looks like I didn't get the memo! :-o  ;)

haha. :P

...

Sorry about the bogus updates, my word processor was set to discard everything but name changes...

I added the first few lines in a different WP.



#17 TheTIGuy OFFLINE  

TheTIGuy

    Moonsweeper

  • 367 posts
  • Sit. I said sit! Bad fish!
  • Location:Springfield (Any/All of them)

Posted Tue Oct 31, 2017 11:14 PM

Perhaps one day I'll try to port some of the other games I pointed our eager tweenie to, but so far haven't surfaced.

Ohhh... that...

I haven't had a lot of time on my hands... (hence my nearly-week-@-a-time-abscesses!)

And the graphics...

It makes my head spin!

Ohhh... and by the way... I have been trying to get The Oregon Trail to work on a modern PC without an emulator...

I did something similar with an old compiler years ago...

just don't remember how :/






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users