Author Topic: Source code for Stunts tools by The NAILWOOD Company  (Read 1010 times)

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Source code for Stunts tools by The NAILWOOD Company
« on: June 02, 2021, 02:23:43 AM »
Due to popular request in this forum I decided to publish the source code of my Stunts tools.

This archive contains the code for the latest versions:

TrackBlaster Pro 5.3
ScoreBlaster 7.2b
ScoreViewer 1.2
CarBlaster 3.2

Everyone may use, modify and redistribute the code and the graphics generated by the executables for any non-commercial use.
This code is provided as is, without any guarantee that it will perform in the desired way, and without any warranty against data loss or hardware destruction. ;)

To be honest, I think that any attempt to understand the logic may lead to severe despair. ::)
- Edit: Also for me, after almost 25 years.  ;D
So please try at your own risk, I will try to assist whenever my time permits.
« Last Edit: June 03, 2021, 01:00:38 PM by Mark Nailwood »

Cas

  • Straight Specialist
  • ***
  • Posts: 1100
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #1 on: June 02, 2021, 04:50:31 AM »
Ah!  This is treasure!  Thank you so much for sharing it!  It's beautiful DOS-era code. I miss those times!
Earth is my country. Science is my religion.

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #2 on: June 02, 2021, 08:17:36 AM »
Due to popular request in this forum I decided to publish the source code of my Stunts tools.
I will try to assist whenever my time permits.

try to build with Turbo Pascal 7.01 - im 30 years older then the last time i've used turbo pascal :)

4 units missing

BGIDRIV.tpu
BGIFONT.tpu
pice.tpu
saygete.tpu

the BGI tpus are built by using the make file in C:\TP\EXAMPLES\BGI
(make info in C:\TP\EXAMPLES\BGI\BGILINK.PAS)

Code: [Select]
cd C:\TP\EXAMPLES\BGI
make -fBGIlink.mak

and then add the C:\TP\EXAMPLES\BGI folder to the unit-search path

but i can't find these two in the given source nor on the internet

pice.tpu
saygete.tpu

any idea?
« Last Edit: June 02, 2021, 08:37:00 AM by llm »

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #3 on: June 02, 2021, 09:55:23 AM »
Well, as far as I remember the sayget*.tpu (with "e" suffix for english) is responsible for generating the dialog elements of the user interface, and the pic*.tpu could be somehow connected to graphics. They were included in the installation that I used for my study works, maybe as an optional package after installation. Unfortunately they are not on the hard drive where I found the source code, so I will take some time to dig them out from some other backup media. First I have to find this backup media in my collection of hard drives, DVDs, CDs and maybe also floppy discs. ::)

But have a look at this page: http://www.dcee.net/Files/Programm/Pascal/

At least you can find a sayget.arj file there, and the pic unit may be included in some other archive.

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #4 on: June 02, 2021, 10:45:29 AM »
At least you can find a sayget.arj file there, and the pic unit may be included in some other archive.

i've already tried that one but the unit does not export any function that you use in your code

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #5 on: June 02, 2021, 02:43:52 PM »
Ok, can you please give me an example of a function you are missing?
I could then search in my Turbo Pascal archive - as soon as I have found it.

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #6 on: June 02, 2021, 03:25:01 PM »
Ok, can you please give me an example of a function you are missing?
I could then search in my Turbo Pascal archive - as soon as I have found it.

these and more missing

[procedure] set_pickwindow_to(5 integer and a string parameter)
function pickfile(string parameter) string-result
[procedure] Set_Color_to(4 integer parameter)
[procedure] box(5 integer and a string parameter)
[procedure] Picture(string parameter)
[procedure] SayGet(some integer, some strings)

procedure/function is not 100% clear - could be all functions

search for
-ASCII (Pascal source code can't contain Unicode)
-case-insensitive (pascal does not differ between lower and upper case)
in *.pas and *.tpu (maybe your missing the source)

Tip: grepWin is a fast tool for searching
https://tools.stefankueng.com/grepWin.html
« Last Edit: June 02, 2021, 03:29:21 PM by llm »

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #7 on: June 02, 2021, 09:55:39 PM »
I remember we had to add a package called "Topaz" to our Turbo Pascal installation, and there was something like "sayget4", but I also could not find any download so far.
Currently, I am away from home and cannot look into my backups. Will try to search again next week, unless you manage to find it until then.

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #8 on: June 02, 2021, 11:06:46 PM »
Topaz is a dbase database file access lib, i can hardly think of a need for that in your stunts tools, but maybe

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #9 on: June 03, 2021, 12:49:12 PM »
Well, the tools didn't use db functions, but I think Topaz also provided some UI routines for text input/output.
Will have a look at it when I'm back home...

alanrotoi

  • Lives on Stunts
  • ******
  • Posts: 4266
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #10 on: June 05, 2021, 05:37:15 AM »
Somebody should interview Mark Nailwood as Stunts pipsqueak legend and tool programmer. He's right here. Let's take the chance! :)

Mark Nailwood

  • Stunts Fan
  • *
  • Posts: 11
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #11 on: June 06, 2021, 10:20:43 PM »
Of course, I take "pipsqueak legend" as a compliment! ;)

Well, it has been a very long time since I took part in contests, and when I tried to race on the default track some days ago (2 decades after my last official races), I saw that now even with replay handling I don't have any chance against current contestants without replay handling (according to the comments in the "Default" thread). ::)
But I am really planning to return to the contest race tracks - just for fun, and don't expect my times to be really challenging for you. ;)

At least it will be much easier for me to talk about my Stunts history than to return to my racing performance of the past - so feel free to ask. 8)

alanrotoi

  • Lives on Stunts
  • ******
  • Posts: 4266
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #12 on: June 07, 2021, 12:28:18 AM »
Of course, I take "pipsqueak legend" as a compliment! ;)

Oh! Haha The forum changes atomatically the word "r a c e r" to "pipsqueak". As far as I remember is a word used by an opponent in the game ;D

Cas

  • Straight Specialist
  • ***
  • Posts: 1100
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #13 on: June 07, 2021, 04:16:20 AM »
It would be great to see you in Race For Kicks too, in case you'd like some OWOOT!
Earth is my country. Science is my religion.

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: Source code for Stunts tools by The NAILWOOD Company
« Reply #14 on: June 20, 2021, 08:43:43 PM »
friendly reminder to find some turbo pascal units while polishing you backups :)