View unanswered posts | View active topics It is currently Fri May 22, 2026 5:07 pm



Reply to topic  [ 5 posts ] 
 Old Code 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Old Code
I came across a site tonight that I visited a long time ago. The below is part of the code from a program they have:

Code:
350 PRINT
360 PRINT "     THE DATE IS JAN 1, 2070 AND INTERSTELLAR FLIGHT"
370 PRINT "HAS EXISTED FOR 70 YEARS.  THERE ARE SEVERAL STAR"
380 PRINT "SYSTEMS THAT HAVE BEEN COLONIZED.  SOME ARE ONLY"
390 PRINT "FRONTIER SYSTEMS, OTHERS ARE OLDER AND MORE DEVELOPED."
400 PRINT
410 PRINT "     EACH OF YOU IS THE CAPTAIN OF TWO INTERSTELLAR"
420 PRINT "TRADING SHIPS.  YOU WILL TRAVEL FROM STAR SYSTEM TO"
430 PRINT "STAR SYSTEM, BUYING AND SELLING MERCHANDISE.  IF YOU"
440 PRINT "DRIVE A GOOD BARGAIN YOU CAN MAKE LARGE PROFITS."
450 PRINT
460 PRINT "     AS TIME GOES ON, EACH STAR SYSTEM WILL SLOWLY"
470 PRINT "GROW, AND ITS NEEDS WILL CHANGE.  A STAR SYSTEM THAT"
480 PRINT "HOW IS SELLING MUCH URANIUM AND RAW METALS CHEAPLY"
490 PRINT "MAY NOT HAVE ENOUGH FOR EXPORT IN A FEW YEARS."
500 PRINT
510 PRINT "     YOUR SHIPS CAN TRAVEL ABOUT TWO LIGHTYEARS IN A"
520 PRINT "WEEK AND CAN CARRY UP TO";W;" TONS OF CARGO.  ONLY"
530 PRINT "CLASS I AND CLASS II STAR SYSTEMS HAVE BANKS ON THEM."
540 PRINT "THEY PAY 5% INTEREST AND ANY MONEY YOU DEPOSIT ON ONE"
550 PRINT "PLANET IS AVAILABLE ON ANOTHER - PROVIDED THERE'S A LOCAL"
560 PRINT "BANK."


.... and another that is a bit more recent - hold transfer - interesting, that would rock the boat:

Code:
overlay procedure holdxfer;

begin
if userr.fo <> 0 then
  begin
    cls;
    ttn := userr.fo;
    welldone := FALSE;
    repeat
      readin(ttn,userz);
      prompt('Exchange with '+userz.fa+' (Y/N) [N]? ');
      if yn then
        if ((userr.fr = userz.fr) and (userr.fr<>0)) then
        begin
          welldone := TRUE;
          prompt('Transfer To or From '+userz.fa+' (T/F) [T]? ');
          input(choices,1);
          if choices = '' then choices := 'T';
          print('You have '+cstr(userr.fh)+' holds, and '+userz.fa+' has '+cstr(userz.fh));
          if choices = 'T' then ij := 1 else ij := (-1);
          prompt('How many to transfer? ');

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Aug 15, 2011 2:12 am
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: Old Code
The first code snippet comes from:

Star Traders
The initial inspiration for all of the Trade Wars games. From Hewlett-Packard's "The People's Book of Computer Games"


The second, file stamped 1988, is suposed to be:

Trade Wars 2001

The original version of Trade Wars by Gary and Mary Ann Martin, aka Martech


The full code to the above is available including several versions of TW and Yankee Trader by Alan Davenport (don't know about the source).

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Aug 15, 2011 12:34 pm
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: Old Code (TW and more)
... and even expanders, mods:

The Mad Hatter's TW2002 Universe Expander V0.88
A utility for the Trade Wars 2002 BBS door game. The unregistered version allows you to hook 2 universes together giving a total of 2000 sectors for your players to use. The registered version allows for up to 20,000 sectors, and the Intra-Universal Stardock.
Shareware


The link for anyone wanting to see some of the history regarding code and add-ons that were once available is:

http://www.tmcbbs.com/twvariants.html

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Aug 15, 2011 12:52 pm
Profile ICQ
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: Old Code
Very nice! JP needs to snatch that up for the TW Wiki!

_________________

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


Mon Aug 15, 2011 2:09 pm
Profile ICQ WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3151
Location: USA
Unread post Re: Old Code
Hopefully that's all included in the TW Museum, but if there's something missing, I'd like to add it.

http://wiki.classictw.com/index.php?tit ... plications

The TW 2001 code was distributed without Martech's permission, however.

_________________
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.


Mon Aug 15, 2011 5:32 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 149 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.