The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2026, 01:24:08 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

  Show Posts
Pages: [1]
1  The Ur-Quan Masters Re-Release / Technical Issues / Re: Strange events with compilation under windows on: September 28, 2003, 02:57:45 pm
Thanks a lot for all your help, now all my problems are gone! And things work perfectly! You've been very helpfull!  Grin
2  The Ur-Quan Masters Re-Release / Technical Issues / Re: Strange events with compilation under windows on: September 27, 2003, 03:36:04 pm
Quote


The increased EXE size, requirement of MSVCRTD.DLL, and slower performance is because you compiled it for "debug," and not for "release."


Ok I see. So how can I compile for "release" mode? I've used the .dsw in src\msvc++

And thanks for the advice on the zlib issue!
3  The Ur-Quan Masters Re-Release / Technical Issues / Strange events with compilation under windows on: September 26, 2003, 06:24:41 pm
Hi there

I spent many days to find a way to successfully compile UQM3 under windows, following instructions in install text files. It wasn't working both on visual C++ and MinGW with differents issues for each one. For MinGW, here the results:

--> build.sh uqm config
Sed stream editor found.
tr found.
Make found.
GNU C compiler found.
windres found.
gcc.exe: no input files
Little-endian machine.
build/unix/build.config: sdl-config: command not found
build/unix/build.config: sdl-config: command not found
gcc.exe: no input files
Simple DirectMedia Layer not found.
------------

Results for visual C++:

(after a huge amount of warnings)
Linking...
zip.obj : error LNK2001: unresolved external symbol _inflate
zip.obj : error LNK2001: unresolved external symbol _inflateInit2_
zip.obj : error LNK2001: unresolved external symbol _inflateEnd
zip.obj : error LNK2001: unresolved external symbol _inflateReset
../../uqmdebug.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

uqmdebug.exe - 5 error(s), 655 warning(s)
------------
Before to see these results, there was a lack of several libs no mentionned in the install files (install files talk about headers files and DLL files, and apparently visual C++ need some .lib files too included in the packages of zlib, oggvorbis etc). Anyway after adding required files, there is the result, some problems with zip stuff. Finally, I've found a way to bypass this. I've modified 2 files:

zip.c in src\sc2code\libs\uio\zip by emptying the file entirely.
defaultfs.c in src\sc2code\libs\uio (because of the empty zip.c) changing this:
------------
extern uio_FileSystemHandler stdio_fileSystemHandler;
#ifdef HAVE_ZIP
extern uio_FileSystemHandler zip_fileSystemHandler;
#endif

const uio_DefaultFileSystemSetup defaultFileSystems[] = {
     { uio_FSTYPE_STDIO, "stdio", &stdio_fileSystemHandler },
#ifdef HAVE_ZIP
     { uio_FSTYPE_ZIP, "zip", &zip_fileSystemHandler },
#endif
};
------------
into this:
------------
extern uio_FileSystemHandler stdio_fileSystemHandler;
extern uio_FileSystemHandler zip_fileSystemHandler;

const uio_DefaultFileSystemSetup defaultFileSystems[] = {
     { uio_FSTYPE_STDIO, "stdio", &stdio_fileSystemHandler },
};
------------
It's probally not too good for some reasons, but compilation worked fine this time! No errors. However, the EXE takes +425Ko than the original EXE (we don't care, but it's usual?) and it needs MSVCRTD.DLL to run (I guess it's a visual C++ library?). When I use the EXE, all is working fine, but there is a lag in the graphics (not too much but not negligible), especially in battles. It's not lagging with the original EXE. I was wondering...it cannot be associated with my modifs in the 2 files of the zip stuff? I suppose no...there is no link with lag in graphics and the zip stuff. I'm playing with files unzipped anyway. Could it be usual for compilations with visual C++ to lag like this? If I could compile with MinGW, the results shall be differents? What do you think?
4  The Ur-Quan Masters Re-Release / Technical Issues / Re: Can't hear the voices (UQM3) on: September 15, 2003, 11:12:32 am
I've downloaded the packages individualy without the installer. I finally realized that when I've extracted voices from zip, the dir "comm" has been put in the primary dir of the game. It must be in content/comm. I moved the files to the right place and now all is working  Grin

For others who have the same problem: extract zips content and music in the same primary dir except the zip for the voices. This zip must be extracted in primary_dir\content\
5  The Ur-Quan Masters Re-Release / Technical Issues / Can't hear the voices (UQM3) on: September 14, 2003, 08:05:08 pm
Hi

All is working exept voices. Can someone help me?

SpliceTrack(): loading comm/urquan/urqua027.ogg
SpliceTrack(): no voice ogg available so setting speech volume to zero
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
Switching to stream comm/urquan/urqua027.ogg at pos 0
StreamDecoderTaskFunc(): finished playing comm/urquan/urqua027.ogg, source 6

Why the ogg voice is not available?
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!