Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Other Apogee/3D Realms Games > Rise of the Triad (1995) Source Code
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 03-25-2004, 11:17 PM   #41
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
According to your pic, it seems the linker can't find sdl.lib, either compile the sdl code to generate the lib, or you can go back to the sdl site and probably download pre-compiled ones for win32...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-26-2004, 03:55 PM   #42
JR Ewing

JR Ewing's Avatar
Re: Birgers/JB\'s WinRott Port
Could you possibly send the SDL lib file to me. I still can't find it on that website. If you go there and go to Libraries it has a long list of different SDL things to choose from. But they just contain SDL.dll which isn't what I'm looking for...
__________________
JR Ewing
"Always keep your friends close, but your enemies closer."
"No I don't give a damn about your happiness!"
"Never tell the truth when a good lie'll do!"

"I was told that dust is a killer for motherboards, so I ran mine through the dishwasher. Now it won't start." - Drazula
JR Ewing is offline  
Old 03-26-2004, 06:57 PM   #43
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Here's the sdl.lib file (release version)...

jbailey
Attached Files
File Type: zip 508150-sdl.ZIP (6.0 KB, 71 views)
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-26-2004, 08:17 PM   #44
JR Ewing

JR Ewing's Avatar
Re: Birgers/JB\'s WinRott Port
Hmmm....That didn't do a thing. I still get the exact same error. When I reinstalled cygwin I installed EVERYTHING on that very long list in the installation window. And everything in the makefile says what it should, and the correct files are in the correct places, until it gets to that error. Just reading it, that last part says "cannot find -lSDL_mixer. Obviously now we know that the SDL.lib file is not the issue in this particular instance.
__________________
JR Ewing
"Always keep your friends close, but your enemies closer."
"No I don't give a damn about your happiness!"
"Never tell the truth when a good lie'll do!"

"I was told that dust is a killer for motherboards, so I ran mine through the dishwasher. Now it won't start." - Drazula
JR Ewing is offline  
Old 03-26-2004, 11:06 PM   #45
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Actually, you may have made progress, it got past the last
error, and this is a new error, I'm attaching the sdl_mixer lib.

jbailey
Attached Files
File Type: zip 508366-sdlmix.ZIP (2.6 KB, 61 views)
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-27-2004, 12:56 AM   #46
JR Ewing

JR Ewing's Avatar
Re: Birgers/JB\'s WinRott Port
Thanks a ton!!! That last lib file did the trick. So now I've got the compiled ROTT.EXE and I copied it to the ROTT folder. I ran it and it needed cygwin1.dll. I copied that file to the ROTT folder. Ran ROTT.EXE again. I got a problem but I think it might be an error in the source code. I could be wrong however. Here's what I got

<font color="yellow">
Rise of the Triad Startup Version 1.4
Shareware Version
Z_INIT: 8950000 bytes
IN_Startup: Mouse Present
Adding remote1.rts.
W_Wad: Wad Manager Started NUMLUMPS=12
W_GetNumForName: tables not found! Episode = 0
Area = 1
</font>
Then it terminated itself. One other thing I see wrong with that. I'm not using the Shareware version, I'm using the ROTT v1.3 registered CD version.
__________________
JR Ewing
"Always keep your friends close, but your enemies closer."
"No I don't give a damn about your happiness!"
"Never tell the truth when a good lie'll do!"

"I was told that dust is a killer for motherboards, so I ran mine through the dishwasher. Now it won't start." - Drazula
JR Ewing is offline  
Old 03-27-2004, 07:49 AM   #47
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
You need to edit a header hile called 'develop.h', it probably has some flags set that make the source code compile the shareware version. Edit your develop.h file and check what you have got against what I'm putting up here, and change anything required and save than recompile:

#define NOMEMCHECK
#define DEBUG 0
#define DEVELOPMENT 0
#define BETA 0
#define SOUNDTEST 0
#define PRECACHETEST 0
#define ELEVATORTEST 0
#define TEAMTEST 0
#define LOADSAVETEST 0
#define WEAPONCHEAT 1
#define MEMORYCORRUPTIONTEST 0
#define SYNCCHECK 1
#define DATACORRUPTIONTEST 0
#define BATTLECHECK 0 // This should be turned off for release, on for beta
#define BATTLEINFO 0 // This should be turned off for release

#define DELUXE 0
#define LOWCOST 0

// Make sure only one of the following are on at one time
#define SHAREWARE 0 <--- you probably have a '1' here
#define SUPERROTT 1 <--- you need a '1' here
#define SITELICENSE 0


jbailey
.
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-27-2004, 12:06 PM   #48
JR Ewing

JR Ewing's Avatar
Re: Birgers/JB\'s WinRott Port
Fixing that error in the develop.h allowed me to get into the game. Everything runs pretty smoothly, although the screen is a little small. One other problem is the sound, there is no music but the sounds were already turned on, but they are really scratchy. But I think you already told me that would be a problem. Maybe soon they'll get that all fixed.

Well thanks a lot for all your help and especially your patience to work with me on this. This is one area in computers where I suck terribly. So thanks again.
__________________
JR Ewing
"Always keep your friends close, but your enemies closer."
"No I don't give a damn about your happiness!"
"Never tell the truth when a good lie'll do!"

"I was told that dust is a killer for motherboards, so I ran mine through the dishwasher. Now it won't start." - Drazula
JR Ewing is offline  
Old 03-27-2004, 03:55 PM   #49
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
No problem.. Glad to help!
I'll be looking into the small screen/no music problems off and on, if I figure it out, I'll post here...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-28-2004, 12:01 AM   #50
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Ok, I've got some information about getting fullscreen mode with the cygwin version of rott, right click my computer icon, select properties, select advanced, and in the top environment variables window click 'new' and type in the following:

SDL_VIDEODRIVER in the variable name space
and in the 'value' space type in 'windib'

click ok on both windows, run rott, once it starts running
hit Alt+Enter to toggle fullscreen, this setup runs fine on my system. Still haven't got full audio running yet. And on a different note, I seem to remember some time back, someone on this forum asked how to dump audio output to a diskfile instead of having the game play it normally, go to this link:

ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars

and read up on how to do this (it's easy!).

There is also a SDL_AUDIODRIVER environment variable too, I have tried all applicable values, and so far at least, that hasn't fixed the audio playback problem. Also note the variable names are in capital.


jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-02-2004, 12:25 PM   #51
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Just a quick update to the sdl audio problem, things I have
found out so far are:

for the SDL_AUDIODRIVER variable, the best one so far seems
to be 'dsound', if I set it to anything else, rott starts up
in its setup menu instead of the main game menu, so the
game at least thinks it sees something.
Also, I have tried the latest SDL code (1.27), and it didn't
seem to make any difference, sound effects still play ok,
just not music. There has to be some reason this problem
is occuring, the game seems fine itself at the moment
though. I have subscribed to a couple of sdl related groups
and a mailing list to try and get more information.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-08-2004, 10:38 PM   #52
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Another update, I ran accross this fix while trying to track
down the no music problem(still working on that one),
I got the small window that opens up when you run the
cywin version of rott fixed.

Open up modexlib.c and go down to line 421 (or do a
search for 'win32') and modify the line that is already there
by adding: (PLATFORM_UNIX) to the line leaving everything
else intact. You should now have fullscreen on startup. Recompile and enjoy! This works perfectly on
my system, if it doesn't for you let me know...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-10-2004, 07:15 PM   #53
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Yet another update, I have some unsettling news about
the no music problem, I have done numerous net searches
while trying to fix this problem, and I ran accross some
information that stated that current versions of sdl_mixer
will not play midi music on unix platforms, since I've been
compiling the cvs version of the rott sources under cygwin
gcc 3.4.0 - which is unix'ish to a degree at least, then that
is why there is no music, and also why there IS music under
win32, I have posted about the sdl_mixer problem to the
sdl mailing lists, and hopefully someone will have a 'beta'
or 'development' version of sdl_mixer that will support
midi music under unix, if not, then we will probably have
to wait until the official developers put that support in..

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-23-2004, 04:24 PM   #54
maraz
Re: Birgers/JB\'s WinRott Port
I have a working cygwin binary (except no music ) using directx as the display driver and dsound as the sound driver. The only problem seems to be the refresh rate, as my screen goes all jagged (i.e. tries to use too high a refresh rate), any idea where I can lower it without affecting other applications or desktop use?
__________________
Member n:o 60, instant ego boost.
maraz is offline  
Old 05-24-2004, 12:57 AM   #55
The Phenomenon
Re: Birgers/JB\'s WinRott Port
Quote:
The hardesst thing about porting anything is the ASM code. I can't remember if there was any in rott...but there was a s*hit load in Duke....
A lot of the rendering code will prolly be Assembly, to get the best performance.
__________________
The Nice Streak is next to the Nasty Streak
The Phenomenon is offline  
Old 05-24-2004, 05:05 PM   #56
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I have my environment variable 'SDL_VIDEODRIVER' set to 'windib', you could try that setting, also, you could try adjusting your vertical sync settings under your video bd settings. As for the music problem, I have been researching
this for awhile now, and ran across some information
that suggests that sdl_mixer code will not support midi
/music playback under linux, and since cygwin gcc is a
'linuxish' compiler running in a shell under windows, that
is probably why there is no music. But I'm not saying that
this problem is impossible to fix, I'm sure there is a solution,
it's just a matter of figuring it out...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-25-2004, 04:04 AM   #57
maraz
Re: Birgers/JB\'s WinRott Port
I tried to hack together something for the midi, as the SDL_mixer has native midi support for macosx and win32... so, running under cygwin, I gathered what IF I made a copy of the win32 one and renamed it (and some variables) to _UNIX, would it work... Well, after hacking, hacking, hacking and makefile-hacking, I was still without music. But I think this native_midi-stuff would be keystone for getting midi music to work.

The other alternative for MIDI is of course a separate midi player using specific samples (which is of course much slower and worse), but I haven't been able to figure this out - just something found on Google.
__________________
Member n:o 60, instant ego boost.
maraz is offline  
Old 05-25-2004, 05:42 AM   #58
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
If I understand things properly, the way rott plays music
basically involves the game writing a file called 'tmpsong.mid'
to the drive in a specified location, (usually in the same location as rott) and then sdl_mixer reads the midi file back
in to play the music. After some more code tracing, the code
that we need to have working here is in the file 'dukemusc.c'
around line 414 (or do a search for 'tmpsong.mid'). the code
is only active if you have a '-DDUKE3D' defined in gcc's
commandline, I tried this recently and there are numerous
errors, but the good news is that nearly all of the errors
are 'previous definition' errors and are easily corrected. But
there is 1 error that I'm not sure how to correct, it involves
the function 'SafeOpenWrite', the error was 'to few arguments to function'. As far as I know if you do a win32
compile using say msvc 7.0, it compiles a different file,
fx_man.c', if you compare both of these files to eachother,
they are nearly identical in some cases. If we can either
get the code in dukemusc.c active & compiling under the
#ifdef duke3d spec, or come up with alternate code that
does the same thing as the original code, then we might
just get music out of this game when compiled under cygwin. Another possibility would be converting the midi
songs already in the game to some other format (say ogg for example), and see if that works any better. Right now
the main problem is that cygwin rott never writes a file
out to be played back through sdl_mixer in the first place
and therefore there is no music, just leaving a tmpsong.mid file in the directory from a win32 version
does not work either since the code required to play it back is not active to begin with. Please note that if the
game is ran with the 'soundsetup' option and
you soecify 'soundscape' as the music board, the game
finds that ok, it's just there is no music data being
generated to playback.
Thoughts?

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-25-2004, 09:12 AM   #59
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Here's some code I found on internet that might be usable in relation to the music problem with cygwin rott, Note -- I did not write this code:

================
Q_filelength
================
*/
int Q_filelength (FILE *f)
{
int pos;
int end;

pos = ftell (f);
fseek (f, 0, SEEK_END);
end = ftell (f);
fseek (f, pos, SEEK_SET);

return end;
}


FILE *SafeOpenWrite (char *filename)
{
FILE *f;

f = fopen(filename, "wb");

if (!f)
Error ("Error opening %s: %s",filename,strerror(errno));

return f;
}

FILE *SafeOpenRead (char *filename)
{
FILE *f;

f = fopen(filename, "rb");

if (!f)
Error ("Error opening %s: %s",filename,strerror(errno));

return f;
}


void SafeRead (FILE *f, void *buffer, int count)
{
if ( fread (buffer, 1, count, f) != (size_t)count)
Error ("File read failure");
}


void SafeWrite (FILE *f, void *buffer, int count)
{
if (fwrite (buffer, 1, count, f) != (size_t)count)
Error ("File write failure");
}


/*
==============
FileExists
==============
*/
qboolean FileExists (char *filename)
{
FILE *f;

f = fopen (filename, "r");
if (!f)
return false;
fclose (f);
return true;
}

/*
==============
LoadFile
==============
*/
int LoadFile (char *filename, void **bufferptr)
{
FILE *f;
int length;
void *buffer;

f = SafeOpenRead (filename);
length = Q_filelength (f);
buffer = malloc (length+1);
((char *)buffer)[length] = 0;
SafeRead (f, buffer, length);
fclose (f);

*bufferptr = buffer;
return length;
}


/*
==============
TryLoadFile

Allows failure
==============
*/
int TryLoadFile (char *filename, void **bufferptr)
{
FILE *f;
int length;
void *buffer;

*bufferptr = NULL;

f = fopen (filename, "rb");
if (!f)
return -1;
length = Q_filelength (f);
buffer = malloc (length+1);
((char *)buffer)[length] = 0;
SafeRead (f, buffer, length);
fclose (f);

*bufferptr = buffer;
return length;
}


/*
==============
SaveFile
==============
*/
void SaveFile (char *filename, void *buffer, int count)
{
FILE *f;

f = SafeOpenWrite (filename);
SafeWrite (f, buffer, count);
fclose (f);
}



void DefaultExtension (char *path, char *extension)
{
char *src;
//
// if path doesnt have a .EXT, append extension
// (extension should include the .)
//
src = path + strlen(path) - 1;

while (*src != PATHSEPERATOR && src != path)
{
if (*src == '.')
return; // it has an extension
src--;
}

strcat (path, extension);
}


void DefaultPath (char *path, char *basepath)
{
char temp[128];

if (path[0] == PATHSEPERATOR)
return; // absolute path location
strcpy (temp,path);
strcpy (path,basepath);
strcat (path,temp);
}


void StripFilename (char *path)
{
int length;

length = strlen(path)-1;
while (length > 0 && path[length] != PATHSEPERATOR)
length--;
path[length] = 0;
}

void StripExtension (char *path)
{
int length;

length = strlen(path)-1;
while (length > 0 && path[length] != '.')
{
length--;
if (path[length] == '/')
return; // no extension
}
if (length)
path[length] = 0;
}

-------------------------------------

This code could maybe be modified to work in cygwin rott.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-25-2004, 10:28 AM   #60
Psykomanius

Psykomanius's Avatar
Re: Birgers/JB\'s WinRott Port
Will ther ever been a new version of the WinRott ?
I like the windows port of it.

Like HiRes Tex

Ther some bugs in game in this version i got from:
http://www.apogeegames.com/rott

Like the sky, and the startup screen is small.
And have to max the screen out to play in full screen.

Ther are some problems in the hud, when you max the screen out. Ther are no hud

All in all, i like the windows port


(Sorry my bad english)
__________________
Life can only be understood in reverse. But must be lived forward.
Psykomanius is offline  
Old 05-25-2004, 05:36 PM   #61
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I did a coding session with sdl_mixer today and I think I
got nearly all of the stutter out of the sound effects(but not
100%). I've tried this dll on cygwin compiled versions
of both shareware & registered versions of rott, if you
want to try this dll with other stuff, go ahead, but no
guarantees. See attached file and recompile sdl_mixer. I
can't attach the dll itself due to file size restrictions(even compressed). So I'm including the changed source file.

jbailey
Attached Files
File Type: zip 554615-wavestream.ZIP (4.4 KB, 47 views)
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-25-2004, 06:50 PM   #62
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I'm trying to fine tune the audio buffers now, if I leave the
size too small, you get stutter, if I make it too big, you will
get latency/delay in playback.....

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-27-2004, 06:42 AM   #63
maraz
Re: Birgers/JB\'s WinRott Port
Yay, the win32 registered version works like a charm (WITH MUSIC! SUPER-YAY!), except for the slight stutter. The 640x480 and 1024x768 modes don't work, it seems the graphics buffer isn't working (it doesn't overlay the different items into one screen but displays them separately).

The only OTHER problem is that my windows xp explorer crashes every single time I exit a fullscreen game and moves all my application windows to the other screen. Might be related to the fact I'm running a dual display setup on relatively old drivers. I will try disabling the other monitor (a.k.a. television) while playing, I don't need it there anyway. And, naturally, newer drivers for my speedy R7500

Now if I only manage to get that stutter out... my girlfriend will probably kill me (and you, if she finds out) sounds like this summer will be spent indoors...

I'll have to take a look at jbaileys' SDL_mixer stuff later today, now I'm off for a little skateboarding...
__________________
Member n:o 60, instant ego boost.
maraz is offline  
Old 05-27-2004, 09:16 AM   #64
maraz
Re: Birgers/JB\'s WinRott Port
Well, I ran into problems right away. <g> How can I compile SDL and SDL_mixer under Windows, as the Cygwin DLL's do not seem to work with the win32 executables?

Also, the win32 registered ROTT executable does not seem to be able to load saved games. What a disappointment. Having to resort to using cheats to resume playing isn't fun.
__________________
Member n:o 60, instant ego boost.
maraz is offline  
Old 05-27-2004, 04:58 PM   #65
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
If your getting a error something likeL

'cygwin1.dll not found, please re-install the application'

just copy the cygwin1.dll from c:\cygwin\bin to the same
directory as your rott executable, or put it somewhere on the path. If this is not your error, please specify. Also I
compile my sdl stuff with msvc 7.0...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-27-2004, 10:51 PM   #66
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I was doing a debug/trace session with the visual c version
of rott (msvc 7.0) trying to track down the extreme reverb.
I ran accross this while tracing:


----------------------------------------------------------------------

[I] Starting Purify'd vcshrwr.exe at 05/28/2004 00:41:31
[I] MAF: Memory allocation failure of 128 bytes in malloc {2 occurrences}
[I] MAF: Memory allocation failure of 128 bytes in malloc {1 occurrence}
[I] Starting main
[I] Starting thread 0x6c4: timeGetTime
[E] ABR: Array bounds read in memcpy {16 occurrences}
[E] IPR: Invalid pointer read in memcpy {1825 occurrences}
Reading 1 byte from 0x046668e0 (1 byte at 0x046668e0 illegal)
Address 0x046668e0 points into a HeapAlloc'd block in unallocated region of heap 0x01620000
Thread ID: 0xe30
Error location
memcpy [SDL.dll]
mem_read [SDL_rwops.c:119]
if ( (context->hidden.mem.here + (num*size)) > context->hidden.mem.stop ) {
num = (context->hidden.mem.stop-context->hidden.mem.here)/size;
}
=> memcpy(ptr,context->hidden.mem.here, num*size);
context->hidden.mem.here += num*size;
return(num);
}
[I] Summary of all memory leaks... {153529 bytes, 360 blocks}
[E] FIM: Freeing invalid memory in LocalFree {36 occurrences}
[I] Exiting with code 1 (0x00000001)
[I] Program terminated at 05/28/2004 00:42:28

-------------------------------------------------------------------

Music plays fine in this version, but the sound effects
are VERY iffy, sometines they play but sound terrible,
and sometimes, the program crashes when the first
sound effect tries to play. Find the arrow on the
left hand side for the reported line. There seems to
be a bad pointer. I've tried a few things, but no luck
so far...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 05-28-2004, 09:18 PM   #67
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Here's a far more detailed trace of the same code (sdl.dll):

--------------------------------------------------------------------------


[I] Starting Purify'd vcshrwr.exe at 05/28/2004 22:01:16
Instrumented executable: C:\Program Files\Rational\PurifyPlus\cache\vcshrwr$Purify_T_r ott.exe
Working directory: T:\rott
Command line arguments: <none>
Process ID: 0xc78
Thread ID: 0xef8
[I] MAF: Memory allocation failure of 128 bytes in malloc {2 occurrences}
Allocation location
malloc [MSVCRT.dll]
LdrLoadDll [NTDLL.dll]
GetDriveTypeW [kernel32.dll]
ReleaseCapture [USER32.dll]
SetForegroundWindow [USER32.dll]
[I] MAF: Memory allocation failure of 128 bytes in malloc {1 occurrence}
Allocation location
malloc [MSVCRT.dll]
LdrLoadDll [NTDLL.dll]
lstrcpyW [kernel32.dll]
SetForegroundWindow [USER32.dll]
[I] Starting main
[I] Starting thread 0xf50: timeGetTime
Call location
midiOutGetDevCapsW [WINMM.dll]
??? [vcshrwr.exe ip=0x0059a059]
[E] ABR: Array bounds read in memcpy {16 occurrences}
Reading 1 byte from 0x046768cc (1 byte at 0x046768cc illegal)
Address 0x046768cc is 1 byte past the end of a 8677500 byte block at 0x03e30050
Address 0x046768cc points to a malloc'd block in heap 0x01620000
Thread ID: 0xef8
Error location
memcpy [SDL.dll]
mem_read [SDL_rwops.c:119]
if ( (context->hidden.mem.here + (num*size)) > context->hidden.mem.stop ) {
num = (context->hidden.mem.stop-context->hidden.mem.here)/size;
}
=> memcpy(ptr, context->hidden.mem.here, num*size);
context->hidden.mem.here += num*size;
return(num);
}
Allocation location
malloc [dbgheap.c:138]
_CRTIMP void * __cdecl malloc (
size_t nSize
)
=> {
void *res = _nh_malloc_dbg(nSize, _newmode, _NORMAL_BLOCK, NULL, 0);

RTCCALLBACK(_RTC_Allocate_hook, (res, nSize, 0));
??? [vcshrwr.exe ip=0x0050d43d]
??? [vcshrwr.exe ip=0x0050d593]
??? [vcshrwr.exe ip=0x004b6dd1]
??? [vcshrwr.exe ip=0x005110cb]
??? [vcshrwr.exe ip=0x00511b1e]
??? [vcshrwr.exe ip=0x0050fa14]
??? [vcshrwr.exe ip=0x0059a059]
[E] IPR: Invalid pointer read in memcpy {1825 occurrences}
Reading 1 byte from 0x046768e0 (1 byte at 0x046768e0 illegal)
Address 0x046768e0 points into a HeapAlloc'd block in unallocated region of heap 0x01620000
Thread ID: 0xef8
Error location
memcpy [SDL.dll]
mem_read [SDL_rwops.c:119]
[I] Summary of all memory leaks... {153795 bytes, 364 blocks}
[E] FIM: Freeing invalid memory in LocalFree {36 occurrences}
Address 0x00154848 points into a HeapAlloc'd block in unallocated region of the default heap
Location of free attempt
LocalFree [KERNEL32.dll]
GetTimeZoneInformation [kernel32.dll]
_crtExitProcess [crt0dat.c:451]
* Just call ExitProcess.
*/

=> ExitProcess(status);
}


doexit [crt0dat.c:402]

_C_Exit_Done = TRUE;

=> __crtExitProcess(code);
}

/***
exit [crt0dat.c:294]
int code
)
{
=> doexit(code, 0, 0); /* full term, kill process */
}


XcptFilter [winxfltr.c:366]
* user-supplied handler
*/
pxcptact->XcptAction = SIG_DFL;
=> (*phandler)(pxcptact->SigNum);
}

/*
except_handler3 [exsup3.obj]
mem_read [SDL_rwops.c:119]
if ( (context->hidden.mem.here + (num*size)) > context->hidden.mem.stop ) {
num = (context->hidden.mem.stop-context->hidden.mem.here)/size;
}
=> memcpy(ptr, context->hidden.mem.here, num*size);
context->hidden.mem.here += num*size;
return(num);
}
[I] Exiting with code 1 (0x00000001)
Process time: 41655 milliseconds
[I] Program terminated at 05/28/2004 22:02:14



------------------------------------------------------------------------

The 'vcshrwr.exe' stands for 'Visual C shareware' of the
rott execuatable.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-15-2004, 07:54 PM   #68
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
Any know where I could maybe get a precompiled binary for win32? I had this working in Linux but I want to try in windows...and I don't really want to install a compiler.

Thanks in advance.
avatar_58 is offline  
Old 06-16-2004, 06:34 PM   #69
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I'm currently taking a break from rott coding at the moment,
but I could attach here some of my compiled stuff. Note that
you will already need to have the data files for the
registered version of rott available, or you can download
the shareware version of rott off of this site if you want
to go with shareware. I have MSVC 7.0 versions of rott
both registered and shareware, and I also have the
same versions compiled with cygnus gcc (gcc 3.4.0).
If your interested, which version(s) do you want? I'll
probably have to re-compile everything because I have
debug/traceing stuff compiled in to a lot of my rott stuff...

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-16-2004, 08:19 PM   #70
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
Hy thanks. I have the registered version of Rott.
avatar_58 is offline  
Old 06-16-2004, 10:51 PM   #71
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I created a zip with some rott files in it. There are 2
executables - 1 is built with gcc 3.4.0 (cygwin), the
other is built with openwatcom 1.2.

There are 3 dll's cygwin1.dll (required for cygrott)
sdl.dll and sdl_mixer.dll, latest versions.

1 readme - read this file before running anything.

Unfortunatly, due to file size restrictions, I can't attach
the zip here. I can either post the zip in a newsgroup
of your choice, or send it to a email address that you
specify. The zip file size is approximatly 1.6 megs.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-17-2004, 07:21 AM   #72
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
Let's try email. Send it to [email protected] and see if it works. I only say "if" because of sympatico's recent romp with hotmail *shudder*.

Once again, thanks man.
avatar_58 is offline  
Old 06-17-2004, 02:38 PM   #73
Another Duke Fan

Another Duke Fan's Avatar
Re: Birgers/JB\'s WinRott Port
Jbailey, thank you for sending me the binaries! I can`t make it work thou.... It says libmmd.dll not found and asks for reinstall.... I have ROTT registered. Thank you!
__________________
アーティスト
Another Duke Fan is offline  
Old 06-17-2004, 04:58 PM   #74
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Sorry for that, I used a secondary compiler (icl) for that, it
was active in the msvc 7.0 ide and I didn't check which
compiler was active. I'm sending the dll's to your email now.
If you have any further problems, let me know. We will get
that game running eventually.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-17-2004, 10:04 PM   #75
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
I tried sending the files to your specified email, but it
got returned to me because of 'over quota' errors.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-18-2004, 06:09 AM   #76
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
I'm not even going to go into that...do you know a better way? I've never used a newsgroup before..but apprently thunderbird has that feature. Tell me what to do and we can try it that way if you like.

If you have msn or something like that we could also do it that way.
avatar_58 is offline  
Old 06-18-2004, 05:59 PM   #77
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Ok, I can post this zip to 'alt.binaries.games' the subject
line will be: 'rotfiles.zip - yenc - Experimental Rott Files'.
There is only 1 part to the entire post. To get this you will
need a newsreader, set it up to access the 'alt.binaries'
groups and subscribe to 'alt.binaries.games', download the
headers for that group, do a search for the above described
subject, and select download. Please note your newsreader
will have to beable to handle Yenc encoded files.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-19-2004, 09:11 AM   #78
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
Sadly I don't think Thunderbird supports yEnc....I found the zip but I couldn't save it as something useable...
avatar_58 is offline  
Old 06-19-2004, 02:44 PM   #79
jbailey

jbailey's Avatar
Re: Birgers/JB\'s WinRott Port
Go to this link:

http://www.wmhsoft.com/NewsShark/

and download news shark....

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 06-19-2004, 07:05 PM   #80
avatar_58

avatar_58's Avatar
Re: Birgers/JB\'s WinRott Port
I did, and once again I just get an unuseable text file. Am I doing something wrong or what?
avatar_58 is offline  
 

Bookmarks

Tags
port, winrott


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:13 PM.

Page generated in 0.15696096 seconds (100.00% PHP - 0% MySQL) with 17 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.