|
Post by shirish on Oct 10, 2013 23:28:07 GMT
Hi all, First of all there doesn't seem to be any notes on compiling or any info. on what dependencies in the hg clone.
I was able to compile the game but while running I see this :-
$ ./opentyrian
Welcome to... >> OpenTyrian 5d058cfef07d default <<
Copyright (C) 2007-2013 The OpenTyrian Development Team
This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file GPL.txt for details.
warning: failed to open 'tyrian.cfg': No such file or directory
Invalid or missing TYRIAN.CFG! Continuing using defaults.
warning: failed to open 'opentyrian.conf': No such file or directory warning: failed to open 'tyrian.sav': No such file or directory initialized video: 640x400x32 windowed no joysticks detected assuming mouse detected error: failed to open 'palette.dat': No such file or directory error: One or more of the required Tyrian 2.1 data files could not be found. Please read the README file.
I did download the Tyrian 2.1 data files and downloaded them and installed them in a tyrian directory.
None of the files asked above are in the data files nor are they in the google-code hg repo.
Looking forward to some clarification.
|
|
|
Post by Mindless on Oct 11, 2013 1:08:06 GMT
"tyrian.cfg", "opentyrian.conf", and "tyrian.sav" are expected to be missing the first time you run OpenTyrian, so that's no matter.
The names of the Tyrian 2.1 files must be lowercase. They may be in the working directory, in the "data/" directory, or in the "/usr/share/opentyrian/data/" directory.
"palette.dat" should be included with Tyrian 2.1 -- if not, you may need grab the copy of Tyrian 2.1 listed on the project page.
|
|
|
Post by shirish on Oct 11, 2013 12:15:53 GMT
used this worked out okish :-
Linux
Debian/Debian based distros
sudo apt-get install build-essential mercurial libsdl1.2debian libsdl-net1.2 libsdl1.2-dev libsdl-net1.2-dev
hg clone https://code.google.com/p/opentyrian/
cd opentyrian/
make release
wget -c http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip
unzip -j tyrian21.zip -d data
./opentyrian
The above is the comment shared on the Downloads page code.google.com/p/opentyrian/wiki/DownloadsAnyways, I was disappointed that it did only two resolutions either 640x480 or full screen, nothing in-between. Anyways, here's the bunch of warnings I wanted to share yesterday :- src/mainint.c: In function ‘JE_playerMovement’: src/mainint.c:3665:8: warning: ‘ship_banking’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (ship_banking != 0) // NortSparks
src/opl.c: In function ‘adlib_write’: src/opl.c:653:30: warning: array subscript is above array bounds [-Warray-bounds] Bitu modop = regbase2modop[second_set?(base+22):base]; ^ src/opl.c:683:30: warning: array subscript is above array bounds [-Warray-bounds] Bitu modop = regbase2modop[second_set?(base+22):base];
src/shots.c: In function ‘player_shot_create’: src/shots.c:498:2: warning: ‘shot_id’ may be used uninitialized in this function [-Wmaybe-uninitialized] return shot_id;
src/tyrian2.c: In function ‘JE_eventSystem’: src/tyrian2.c:4372:7: warning: ‘all_enemies’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (all_enemies || enemy[i].linknum == eventRec[eventLoc-1].eventdat4) ^ src/tyrian2.c:4370:3: warning: ‘max_i’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (int i = initial_i; i < max_i; i++) ^ src/tyrian2.c:4370:39: warning: ‘initial_i’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (int i = initial_i; i < max_i; i++)
|
|
|
Post by yuriks on Oct 12, 2013 4:52:56 GMT
It supports more resolution if you change the scaling mode: 320x200, 640x400, 960x600, 1280x800 (for 1x, 2x, 3x and 4x, respectively.)
You could also try out the SDL2 branch in mercurial. It needs SDL2 (obviously) but allows arbitrary resolutions (uses the desktop resolution for fullscreen), scaling the game screen to fill the window. It's not heavily tested at the moment but it worked fine for the most part for me.
|
|