i also ported from Borland Make to a recent gnu make version
please test if everything is still working/playing as expected
please test if everything is still working/playing as expected
Herr Otto Partz says you're all nothing but pipsqueaks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteI guess "calvin" forgot to pack his cl.exe in the tools.
Quote...problem in the makefile...
cd ..
cd repldump
if exist makefile make /DTARGET=original
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc /c /u- /mm /v /nbuild\original /DRESTUNTS_DOS /DRESTUNTS_ORIGINAL -I../c repldump.c
Borland C++ 5.2 Copyright (c) 1987, 1997 Borland International
Mar 19 1997 17:29:40
repldump.c:
Warning repldump.c 122: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 125: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 131: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 134: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 143: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 146: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 149: Suspicious pointer conversion in function init_trackdata
Warning repldump.c 204: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 208: Call to function 'init_main' with no prototype in function stuntsmain
Warning repldump.c 209: Call to function 'init_div0' with no prototype in function stuntsmain
Warning repldump.c 212: Call to function 'file_load_resfile' with no prototype in function stuntsmain
Warning repldump.c 212: Nonportable pointer conversion in function stuntsmain
Warning repldump.c 214: Call to function 'file_load_resource' with no prototype in function stuntsmain
Warning repldump.c 214: Nonportable pointer conversion in function stuntsmain
Warning repldump.c 215: Call to function 'file_load_resource' with no prototype in function stuntsmain
Warning repldump.c 215: Nonportable pointer conversion in function stuntsmain
Warning repldump.c 222: Call to function 'init_unknown' with no prototype in function stuntsmain
Warning repldump.c 224: Call to function 'init_kevinrandom' with no prototype in function stuntsmain
Warning repldump.c 226: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 227: Call to function 'file_load_replay' with no prototype in function stuntsmain
Warning repldump.c 228: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 231: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 233: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 242: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 244: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 245: Call to function 'track_setup' with no prototype in function stuntsmain
Warning repldump.c 246: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 248: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 250: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 252: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 253: Call to function 'init_game_state' with no prototype in function stuntsmain
Warning repldump.c 254: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 258: Call to function 'get_kevinrandom' with no prototype in function stuntsmain
Warning repldump.c 266: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 267: Call to function 'setup_player_cars' with no prototype in function stuntsmain
Warning repldump.c 284: Call to function 'restore_gamestate' with no prototype in function stuntsmain
Warning repldump.c 285: Call to function 'restore_gamestate' with no prototype in function stuntsmain
Warning repldump.c 286: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 295: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 299: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 302: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 306: Call to function '_printf' with no prototype in function stuntsmain
Warning repldump.c 310: Call to function 'update_gamestate' with no prototype in function stuntsmain
Warning repldump.c 315: Call to function '_printf' with no prototype in function stuntsmain
Fatal: '..\c\build\dos\fileio.obj' does not exist - don't know how to make it
** error 1 ** deleting repldump-original
S:\src\restunts>make restunts-sdl
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd sdl
if exist makefile make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cl /MD /c /EHsc /Is:\src\sdl\include /I../c /DRESTUNTS_SDL /Zi /Fobuild\main.obj main.cpp
Microsoft (R) C/C++-Optimierungscompiler Version 19.43.34808 für x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
main.cpp
S:\src\restunts\c\math.h(56): error C2143: Syntaxfehler: Es fehlt "," vor "*"
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(24): error C2039: "fabs" ist kein Member von "`global namespace'".
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(24): error C3861: "fabs": Bezeichner wurde nicht gefunden.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(28): error C2039: "fabsf" ist kein Member von "`global namespace'".
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(28): error C3861: "fabsf": Bezeichner wurde nicht gefunden.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(32): error C2039: "fabsl" ist kein Member von "`global namespace'".
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\cstdlib(32): error C3861: "fabsl": Bezeichner wurde nicht gefunden.
S:\src\restunts\c\shape3d.h(42): error C2732: Bindungsangaben widersprechen vorheriger Angabe für "polarAngle"
S:\src\restunts\c\shape3d.h(42): note: Siehe Deklaration von "polarAngle"
main.cpp(192): warning C4838: Konvertierung von "unsigned int" zu "long" erfordert eine einschränkende Konvertierung
main.cpp(221): warning C4838: Konvertierung von "int" zu "char" erfordert eine einschränkende Konvertierung
main.cpp(222): warning C4838: Konvertierung von "int" zu "char" erfordert eine einschränkende Konvertierung
main.cpp(377): warning C4838: Konvertierung von "int" zu "short" erfordert eine einschränkende Konvertierung
** error 2 ** deleting build\main.obj
** error 1 ** deleting restunts-sdl
S:\src\restunts>
Quote from: HerrNove on February 03, 2025, 02:19:37 PMSince I got the attention of the experts, let's try to squeeze some of their knowledge...
Last weekend I wasted a couple of hours by trying to alleviate the memory problems of my program. My plan was
* modify dseg.asm create an extra data segment, called fseg
* move the big containers for the runtime graphics data (polyinfoptr and co.) there
* add an `assume fs:fseg` directive so that the linker can keep using 16-bit pointers. Put some assembly at program start to load the FS register with the fseg segment address
The plan failed, but I think it's because I am not expert enough in assembly programming. In particular, when I put in a C file the assembly fragment to set FS, the Borland compiler complained that FS is not a valid name (this despite me adding the -3 option, that should compile for 386 processors). The linker also complained about "fixup errors"; changing the model to `huge` alleviated that but I think this is wrong since we should be able to keep working with 16-bit pointers.
Ideas are welcome.
Quote* modify dseg.asm create an extra data segment, called fseg
Quote* move the big containers for the runtime graphics data (polyinfoptr and co.) there
Quote from: HerrNove on February 02, 2025, 03:07:42 PMQuote from: llm on February 01, 2025, 03:10:00 PMproblem with IDA is: we used the commercial version of IDA in the beginning and everyone needs to have the same IDA version user with older or freeware versions are not able to open the IDA file
I am a beginner with Ghidra and not so willing to (pirate and) learn a different debugger, so I will be pragmatical: after I cleanup the code I will submit my labelings made with search-and-replace. This will put the .asms out of sync with the IDA database, but one can always adjust that at a later time.
Quote from: HerrNove on January 27, 2025, 11:17:58 PM* The renames of the global variables must be performed on the asm code too. I could do it easily with a search-and-replace but it is my understanding that the asm files are somehow generated by IDA Pro, so the clean thing to do would be to update the IDA database. Do you know how the process works?
Quote from: Daniel3D on November 07, 2023, 03:31:34 PMhttp://anders-e.com/code/browser/restunts/trunk/restunts
Quote from: Daniel3D on November 07, 2023, 06:59:33 AMI know nothing about clvn. So impossible to tell for me if he maintains a copy..
Quote from: dreadnaut on November 05, 2023, 12:50:14 PMI know @dstien put stunpack online, not sure if restunts also exists somewhere.
Quote from: dstien on July 12, 2023, 01:16:17 PMBrøderbund Stunts 1.0 support
Quote from: mrdries on June 02, 2023, 04:01:21 PMI'm using Stressed 0.2.1 now, which is very cool. Though I'm not sure I'm losing a lot of functionality or not.
QuoteI found the source in the Github. But then I'd have to compile it myself. I'll give that a try.