News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Source code for Stunts tools by The NAILWOOD Company

Started by Mark Nailwood, June 02, 2021, 02:23:43 AM

Previous topic - Next topic

Mark Nailwood

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.

Cas

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

Quote from: Mark Nailwood 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.
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)

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?

Mark Nailwood

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

Quote from: Mark Nailwood on June 02, 2021, 09:55:23 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

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

Quote from: Mark Nailwood 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.

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

Mark Nailwood

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

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

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

Somebody should interview Mark Nailwood as Stunts pipsqueak legend and tool programmer. He's right here. Let's take the chance! :)

Mark Nailwood

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

Quote from: Mark Nailwood on June 06, 2021, 10:20:43 PM
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

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

friendly reminder to find some turbo pascal units while polishing you backups :)