The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
April 21, 2021, 07:56:16 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Dumb linux question...
« previous next »
Pages: 1 [2] 3 Print
Author Topic: Dumb linux question...  (Read 7660 times)
Culture20
Enlightened
*****
Offline Offline

Posts: 917


Thraddash Flower Child


View Profile
Re: Dumb linux question...
« Reply #15 on: December 02, 2006, 07:52:54 pm »

Even if you're switching distros and want a clean install, keeping your home directory is a great way to keep working from where you left off.
Eventually though, it's a good idea to copy over the latest greatest config files for your desktop.  Until recently, my gnome experience was being driven by config files that I had set up on a RH 8 box years ago.  I finally decided to get used to what the default has become.  Wink
Logged
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #16 on: December 02, 2006, 08:49:42 pm »

another issue, I can't get the ship spins nor any of the FMV's to work with my "mod".
If none of the FMVs work, you've probably just put them in the wrong directory and/or disabled them by selecting PC intro/ending in the setup menu. Check the debug output for details.

Also, reformatting Linux partitions and reinstalling is kind of pointless (unless you're actually repartitioning your hard disk or changing filesystems). Even if you're switching distros and want a clean install, keeping your home directory is a great way to keep working from where you left off. My main PC actually uses a SuSE Linux installation that has been upgraded several times since I copied the entire partition contents from my previous computer (a trick that usually fails utterly with Windows) three years ago. The Windows partitions have, of course been reformatted since then.


well i have the 'slides' folder in the 'content' folder and i have the content folder defined in a script as "/usr/games/urquan/content" and i have the movies turned on in the options.

can't see what i'm doing wrong here.

Oh and I reformatted because my Winblows XP installation cd thought it'd be funny to format the linux drive instead of the the main drive which i was reinstalling xp to. So i ended up reinstalling both.
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #17 on: December 02, 2006, 09:28:09 pm »

well i have the 'slides' folder in the 'content' folder and i have the content folder defined in a script as "/usr/games/urquan/content" and i have the movies turned on in the options.
OK, the intro should be in slides/intro/intro.duk (and so on as in the FAQ) in the content directory. Are you sure that this is the exact name (i.e. same case and everything)? Is there anything relevant in the debug output?

Quote
Oh and I reformatted because my Winblows XP installation cd thought it'd be funny to format the linux drive instead of the the main drive which i was reinstalling xp to. So i ended up reinstalling both.
Interesting. Last time I installed XP, it didn't reformat anything except the partition I'd left for it (on the second hard disk, no less).
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #18 on: December 03, 2006, 03:28:54 am »

well i have the 'slides' folder in the 'content' folder and i have the content folder defined in a script as "/usr/games/urquan/content" and i have the movies turned on in the options.
OK, the intro should be in slides/intro/intro.duk (and so on as in the FAQ) in the content directory. Are you sure that this is the exact name (i.e. same case and everything)? Is there anything relevant in the debug output?

Quote
Oh and I reformatted because my Winblows XP installation cd thought it'd be funny to format the linux drive instead of the the main drive which i was reinstalling xp to. So i ended up reinstalling both.
Interesting. Last time I installed XP, it didn't reformat anything except the partition I'd left for it (on the second hard disk, no less).

i'm pretty sure, it's in "/urquan/content/slides/intro/intro.duk" and the content is defined as above.
Right now i'm in windows so i'll just reboot and see if it says anything in the output.

And about the reinstallation, i used my factory cd that came with the computer so what it did was just repartition my hard drive into 1 main drive instead of the 4 i had before (NTFS for Win, Fat32 for Sharing, ext3 for Linux and the swap partition) i guess i hit the wrong key cause otherwise i know it wouldn't have done that.


.:: Edit

it says this when it trys to load the intro:
Code:
VideoDecoder_Load: 'DukVid' decoder did not load slides/intro/intro.duk, code 0
        'slides/intro/intro.txt' -- 8300 bytes
and this when it trys to load the ship spins:
Code:
VideoDecoder_Load: 'DukVid' decoder did not load slides/spins/ship11.duk, code 0
« Last Edit: December 03, 2006, 03:35:34 am by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #19 on: December 03, 2006, 01:57:31 pm »

Hmm... Isn't 0 supposed to mean success? I think the error code is being written to the wrong field in the decoder status (last_error instead of error). Anyhow, the open call only has one failure code, so that number wouldn't be any use.

Basically, this failure occurs if the .duk file can't be opened or the .hdr, .tbl or .frm files can not be opened or are invalid. Check that all four files are in the right place with the right names, you have read access to them and they contain the right data.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #20 on: December 03, 2006, 10:00:06 pm »

Hmm... Isn't 0 supposed to mean success? I think the error code is being written to the wrong field in the decoder status (last_error instead of error). Anyhow, the open call only has one failure code, so that number wouldn't be any use.

Basically, this failure occurs if the .duk file can't be opened or the .hdr, .tbl or .frm files can not be opened or are invalid. Check that all four files are in the right place with the right names, you have read access to them and they contain the right data.


AH read access, the ole file permission problem bites again lol.
Again I never thought of it, me being of course a windows user and have only dealt with file permissions on my website (which i need to fix anyways).


UPDATE ::.
changing the file permissions didn't work, and I know my duk files work cause i use the same ones for my windows binary.


maybe it's an Ubuntu problem
« Last Edit: December 04, 2006, 10:52:10 pm by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #21 on: December 06, 2006, 09:46:54 am »

Try this (highly unofficial and hacked together in a few minutes) patch; it should improve error reporting in the DUK player enough to figure out what's wrong.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #22 on: December 06, 2006, 11:52:14 am »

Try this (highly unofficial and hacked together in a few minutes) patch; it should improve error reporting in the DUK player enough to figure out what's wrong.

I gotta ask you a question real quick here,
How do you make .diff's, i thought i knew how but i've been getting it wrong every time.

Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #23 on: December 06, 2006, 01:11:17 pm »

I gotta ask you a question real quick here,
How do you make .diff's, i thought i knew how but i've been getting it wrong every time.
I'm usually comparing against CVS, so I do something like:
Code:
cvs diff -u file-or-directory > patch
Without CVS, you probably want something like:
Code:
diff -ur old-dir new-dir > patch
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #24 on: December 06, 2006, 10:58:26 pm »

I gotta ask you a question real quick here,
How do you make .diff's, i thought i knew how but i've been getting it wrong every time.
I'm usually comparing against CVS, so I do something like:
Code:
cvs diff -u file-or-directory > patch
Without CVS, you probably want something like:
Code:
diff -ur old-dir new-dir > patch

cool thanks, I'll probably give your  patch a try today and see whatsd goin on.

how did you get your patch file to look like it did, for example your first few lines look like:
Code:
Index: src/sc2code/libs/video/dukvid.c
===================================================================
RCS file: /cvsroot/sc2/sc2/src/sc2code/libs/video/dukvid.c,v
retrieving revision 1.6
diff -u -r1.6 dukvid.c
--- src/sc2code/libs/video/dukvid.c 3 May 2006 23:32:34 -0000 1.6
+++ src/sc2code/libs/video/dukvid.c 6 Dec 2006 08:45:14 -0000
@@ -22,8 +22,19 @@
 #include "video.h"

where as mine looks like this:
Code:
diff -ur uqm-0.5.0/build/unix/build.config uqm-0.5.0-fmv/build/unix/build.config
--- uqm-0.5.0/build/unix/build.config 2006-01-19 11:13:38.000000000 -0800
+++ uqm-0.5.0-fmv/build/unix/build.config 2006-02-07 10:45:34.000000000 -0800
@@ -128,14 +128,14 @@
  CHOICE_graphics_OPTION_pure_TITLE="Don't include OpenGL graphics support"

« Last Edit: December 07, 2006, 03:10:39 am by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #25 on: December 07, 2006, 04:26:52 am »

Well here is the new results for the duk vids, now they can't be found Roll Eyes

Code:
Failed to open slides/intro/intro.duk in : No such file or directory
VideoDecoder_Load: 'DukVid' decoder did not load slides/intro/intro.duk, code -2
the vids go into /content/slides/ right?

if so then now i really dont know what the problem is
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #26 on: December 07, 2006, 12:32:05 pm »

Right, let's take a look at the directory structure, then.

First of all, find the content directory you're really using by checking the debug output; the relevant line should be something like:
Code:
Using '/home/novus/uqm/sc2/content' as base content dir.

Next, cd into that directory and execute:
Code:
ls -lR slides > filelist
The resulting file list should give me enough information to check that everything is correctly installed.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #27 on: December 08, 2006, 12:52:04 am »

here is the filelist: filelist

did exactly as you say, content dir was 'usr/games/urquan/content/'
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #28 on: December 08, 2006, 01:16:58 am »

As I suspected all along, the filenames are wrong; INTRO.DUK should be intro.duk and so on in lower case. Apparently I wasn't clear enough about the "same case" thing. Most Linux filesystems are case sensitive, so a program looking for intro.duk won't open INTRO.DUK.

The fix is simple: convert all the DUK filenames to lower case. If you have mmv, you can do (in the slides directory):

Code:
mmv ";*" "#1#l2"
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1344



View Profile WWW
Re: Dumb linux question...
« Reply #29 on: December 08, 2006, 02:10:01 am »

 Shocked Well, it was a simple solution the whole time   Smiley

thanks for the help Novus.


Well the mods work perfectly, and the FMV mod works very smoothly, and if I remember correctly, by default the Duk vids are all capitilized in name so maybe that should change in the code too just to make it easier for the end-user.
« Last Edit: December 08, 2006, 04:05:04 am by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Pages: 1 [2] 3 Print 
« previous next »
Jump to:  


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!