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 12-25-2002, 09:02 AM   #1
Lon Matero
Win32 ROTT
I can confirm that the icculus.org ROTT port is now working under Windows, Santa's hat and all! I downloaded SDL and SDLMixer libraries, the current CVS code, and changed to SHAREWARE 0 SUPERROTT 1 in delvop.h; then compiled succesfully in Visual Studio .NET. After copying SDL.dll, SDL_mixer.dll, and the new rott.exe into my full version ROTT directory, the game worked natively under Win32. Gameplay is also at the correct speed in WinXP unlike the DOS version. Looks like the biggest thing missing currently is the sound.

- Lon Matero
Lon Matero is offline  
Old 12-25-2002, 01:45 PM   #2
Joe Siegler
3D Realms Staff

Joe Siegler's Avatar
Re: Win32 ROTT
And other email from them:

Quote:
Not to flood your inbox, but we got ROTT running on win32, too. Both
Cygwin and Visual Studio.NET will build it, you'll need the SDL libs and
headers, and will probably need to tweak the project files to point to
the right directories (this Windows development thing is pretty foreign
to me. [img]images/icons/smile.gif[/img] ).

The changes are in icculus.org's CVS. We accept patches, but don't send
us bug reports for win32; it was just done to show it could be done quickly.

A prebuilt version is here:
http://icculus.org/rott/rott-win32-test.zip

Install the DOS shareware version, and unzip that archive over the
installation (it'll put a win32 rott.exe and the SDL DLLs in
there)...and run it.

That makes three major platforms this thing runs on in less than a week.
If we get bored over the holidays, we'll probably do MacOS 9 and BeOS,
too. [img]images/icons/smile.gif[/img]

Have fun, and Merry Christmas!

--ryan.
<font size="2" face="Verdana, Arial">
__________________
Apogee / 3D Realms Employee: Dec 14, 1992 - May 22, 2009, Oct 23, 2014 - current

"Lifting up the Cross to the waiting lost" - Petra | John 3:16
Joe Siegler is offline  
Old 12-25-2002, 02:30 PM   #3
jimbob

jimbob's Avatar
Re: Win32 ROTT
yeey \o/ _o .o. o_ _o .o. o_ <--- happy dance
__________________
"Check out the polygons on jimbob's girlfriend!" killerbyte
"Jimbob, you're a god-damned genius" rollingbrass
"You are a god among men" Water12356
jimbob is offline  
Old 12-25-2002, 02:35 PM   #4
Kev_Hectic

Kev_Hectic's Avatar
Re: Win32 ROTT
Now I have to wonder if someone could port ROTT to the Dreamcast ?. the same way Doom and Quake was ported [img]images/icons/grin.gif[/img]
__________________
RIP: 3D REALMS 1987 - 2009, you're still dead to me
Kev_Hectic is offline  
Old 12-25-2002, 02:47 PM   #5
Crezzy_man

Crezzy_man's Avatar
Re: Win32 ROTT
This works great. Although it's only the shareware episode and my sound and music don't work (is it just me or is it just not supposed to work?) but it's a great start. Seriously.

Did anybody else notice that if you use EKG mode with ludicrous gibs, they all blow up in an un-random, dome sort of way? It's pretty cool....
__________________
And then the blind man saw, and the deaf man heard, and the man with no legs got up and walked away

I kick arse for the lord! - Priest on Dead Alive
Crezzy_man is offline  
Old 12-25-2002, 07:33 PM   #6
IwantMORE

IwantMORE's Avatar
Re: Win32 ROTT
Didn't work on my XP machine, said I was missing some file, I'll track down the missing file tomorrow and try again...
IwantMORE is offline  
Old 12-25-2002, 07:45 PM   #7
IceColdDuke
Re: Win32 ROTT
The damn thing, opens then closes for me =(.
IceColdDuke is offline  
Old 12-25-2002, 07:54 PM   #8
The Stinger
Guest
Re: Win32 ROTT
Quote:
Originally posted by IceColdDuke:
The damn thing, opens then closes for me =(.
<font size="2" face="Verdana, Arial">you'll need the shareware episode [img]images/icons/smile.gif[/img]
I had the same problem
 
Old 12-25-2002, 08:14 PM   #9
PigeonRat
Re: Win32 ROTT
Lol, says I need MSVCR70.dll [img]images/icons/grin.gif[/img] Anyone got a link to it [img]images/icons/rolleyes.gif[/img]
PigeonRat is offline  
Old 12-25-2002, 08:18 PM   #10
PigeonRat
Re: Win32 ROTT
Don't worry, I found it online.
PigeonRat is offline  
Old 12-25-2002, 08:49 PM   #11
PigeonRat
Re: Win32 ROTT
Haha, this rocks [img]images/icons/grin.gif[/img]
PigeonRat is offline  
Old 12-28-2002, 03:57 PM   #12
rdc
Re: Win32 ROTT
It runs great on my Win2000 machine. Can't wait for the sound. [img]images/icons/smile.gif[/img]
rdc is offline  
Old 12-28-2002, 11:13 PM   #13
TeamKill
Re: Win32 ROTT
This works awesome! My only complaint is that it keeps turning off autorun whenever the map switches, I go back to the menu, or I Alt-Tab it. Glad to finally play Rott on my laptop!
TeamKill is offline  
Old 12-29-2002, 02:42 AM   #14
Makasin
Re: Win32 ROTT
damn this is sweet!!!
now all we need is some 3d or some higher rez graphics.


is it legal to download the full version? after all, the source was released
__________________
"hahaha" -Me
Makasin is offline  
Old 12-29-2002, 03:41 AM   #15
Night Hacker

Night Hacker's Avatar
Re: Win32 ROTT
Quote:
Originally posted by makdude101:
damn this is sweet!!!
now all we need is some 3d or some higher rez graphics.


is it legal to download the full version? after all, the source was released
<font size="2" face="Verdana, Arial">No. the source code was released, that is all. None of the data was released. If you want to play it, you can play the shareware version or buy the full version (they still sell it at 3DRealms here).

You might even find it in a bargain bin somewhere, Electronics Boutique is great for selling used games as well and might have it if you have one of thier stores in your area.
__________________
"My general feeling is that computers are doing more harm than good." - Jay Miner ("father" of the Amiga)
Night Hacker is offline  
Old 12-30-2002, 07:46 PM   #16
Zach
Re: Win32 ROTT
Is there another way to get the source code that was used for the VS.NET build? (e.g. in one zip file - can somebody host it?)
Or am I just missing the link? Frankly, it's a pain in the rear to download 250 small files one at a time.
Zach is offline  
Old 12-30-2002, 10:36 PM   #17
Java the Hutt
 

Java the Hutt's Avatar
Re: Win32 ROTT
Getting the sound to work with this build of the Win32 rott.exe

You need to edit the sound.rot file and add these values:

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">;Rise of the Triad Sound File
; (c) 1995

Version 14

;
; Music Modes
; 0 - Off
; 1 - UltraSound
; 2 - Sound Blaster
; 3 - Sound Man 16
; 4 - Pro Audio Spectrum
; 5 - Awe32
; 6 - SoundScape
; 7 - Wave Blaster
; 8 - General Midi
; 9 - Sound Canvas
; 10 - Adlib
MusicMode 6

;
; FX Modes
; 0 - Off
; 1 - UltraSound
; 2 - Sound Blaster
; 3 - Sound Man 16
; 4 - Pro Audio Spectrum
; 5 - Awe32
; 6 - SoundScape
; 7 - Adlib
; 8 - Disney Sound Source
; 9 - Tandy Sound Source
; 10 - PC Speaker
FXMode 6

;
; Music Volume
; (low) 0 - 255 (high)
MusicVolume 254

;
; FX Volume
; (low) 0 - 255 (high)
FXVolume 254

;
; Number of Voices
; 1 - 8
NumVoices 8

;
; Stereo or Mono
; 1 - Mono
; 2 - Stereo
NumChannels 2

;
; Resolution
; 8 bit
; 16 bit
NumBits 16

;
; Midi Addresses
; $300
; $310
; $320
; $330
; $340
; $350
; $360
; $370
; $380
MidiAddress $330

;
; ReverseStereo
; 0 no reversal
; 1 reverse stereo
StereoReverse 0

;
; Sound Blaster Settings
SBType 6
SBPort $220
SBIrq 9
SBDma8 1
SBDma16 5
SBMidi $330
SBEmu $220[/code]</blockquote><font size="2" face="Verdana, Arial">The sound effects are a little rough. Some of the effects produce scratchy sounds. Sadly, the music does not work in this build [img]images/icons/frown.gif[/img]

I have looked at the latest code on their cvs server, and it looks like they added music support. I do not have Visual Studio .NET, so I cannot compile their code. [img]images/icons/mad.gif[/img]

All I have is Visual Studio 6.0. If I am bored, I might try to compile their code with that compiler.
Java the Hutt is offline  
Old 12-31-2002, 12:46 AM   #18
relnev
Re: Win32 ROTT
Quote:
Originally posted by Java the Hut:
The sound effects are a little rough. Some of the effects produce scratchy sounds. Sadly, the music does not work in this build
<font size="2" face="Verdana, Arial">The sounds in that build are screwed up because of a bug in SDL_mixer.dll, if you want to try compiling a newer version, download the current CVS version from http://www.libsdl.org/projects/SDL_mixer/
relnev is offline  
Old 12-31-2002, 01:07 PM   #19
Rott King
 

Rott King's Avatar
Re: Win32 ROTT
Surprisingly, all i had to do to get ROTT to run on my comp was: 1. Download CPU Killer 2. Run Install 3. Turn off CPU Killer 4. Play ROTT. Sound works, music works, it's a miracle! [img]images/icons/grin.gif[/img]
Rott King is offline  
Old 12-31-2002, 08:30 PM   #20
Java the Hutt
 

Java the Hutt's Avatar
Re: Win32 ROTT
Another way to set up the SOUND.ROT file is to start rott.exe with the SOUNDSETUP parameter. i.e.:

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">ROTT.EXE SOUNDSETUP[/code]</blockquote><font size="2" face="Verdana, Arial">Pick the SoundScape option for both sound f/x's and music.

I have Win2K, so I have to use the Win32 version of Rott. I am not sure how usefull this is for the DOS rott under Win95/98/ME.


I downloaded the latest code from icculus and created a Win32 version with Visual Studio 6.

The music and sound f/x's now work with their port. I still see tons of compiler warnings. [img]images/icons/confused.gif[/img]
Now I remember why C/C++ cross-platform delvelopment gave me so much grief in previous jobs. [img]images/icons/wink.gif[/img]
Java the Hutt is offline  
Old 12-31-2002, 11:43 PM   #21
Crezzy_man

Crezzy_man's Avatar
Re: Win32 ROTT
Man, I'm using a Turtle Beach Santa Cruz with my Windows XP. There's probably no chance of me getting my Midi to work (unless somebody intergrated it with Directsound?)
__________________
And then the blind man saw, and the deaf man heard, and the man with no legs got up and walked away

I kick arse for the lord! - Priest on Dead Alive
Crezzy_man is offline  
Old 01-01-2003, 08:50 AM   #22
The Stinger
Guest
Re: Win32 ROTT
Quote:
Originally posted by Java the Hut:
Another way to set up the SOUND.ROT file is to start rott.exe with the SOUNDSETUP parameter. i.e.:

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">ROTT.EXE SOUNDSETUP[/code]</blockquote><font size="2" face="Verdana, Arial">
<font size="2" face="Verdana, Arial">thx, that worked for me. sound works in the dos version on my comp but when ever I try to select a music card the snd crashes. I do the same thing with the windows version and it works great with music and sound. Too bad this windows rott.exe only works on the shareware.
 
Old 01-01-2003, 10:44 PM   #23
Java the Hutt
 

Java the Hutt's Avatar
Re: Win32 ROTT
I found a missing feature in the SDL_mixer library. The volume control does not work for the native Win32 midi feature.

The void native_midi_setvolume(int volume) function in the native_midi_win32.c file has no code, so changing the music volume does nothing.

This code adds volume control for the midi music in the Win32 ROTT. You will have to download the SDL_mixer code and compile it yourself.


</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">void native_midi_setvolume(int volume)
{
int calcVolume = volume << 1;
if(calcVolume > 255)
{
calcVolume = 255;
}
else if calcVolume < 0)
{
calcVolume = 0;
}
midiOutSetVolume((HMIDIOUT)hMidiStream, MAKEWORD(calcVolume , calcVolume));
}[/code]</blockquote><font size="2" face="Verdana, Arial">It is kind of cool to have a working Win32 ROTT with sound and music. [img]images/icons/cool.gif[/img]
Java the Hutt is offline  
Old 01-05-2003, 04:34 AM   #24
Mr. Person
Guest
Re: Win32 ROTT
Nice.
 
Old 01-05-2003, 11:19 AM   #25
Dave2
Re: Win32 ROTT
That code doesn't work for me [img]images/icons/frown.gif[/img]
Dave2 is offline  
 

Bookmarks


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:20 PM.

Page generated in 0.17796206 seconds (100.00% PHP - 0% MySQL) with 16 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.