The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Tony on January 11, 2004, 02:47:17 am



Title: Help with UQM, Mac Version
Post by: Tony on January 11, 2004, 02:47:17 am
I'm having some trouble with UQM on my Mac running OS 10.3.2. I haven't found much in the way of help here with Macs...but here it goes.

I have no trouble running the actual program, but when I go into "Show Package Contents" and (eventually) into the folder "packages", it won't allow me to add any of the new files/updates. Instead, a message comes up that reads, "The item ________ could not be moved because 'packages' cannot be modified." I've queried Mac Help several times, but it doesn't help, either.

Any and all help would be appreciated.

Thank you.


Title: Re: Help with UQM, Mac Version
Post by: Zeep-Eeep on January 11, 2004, 03:47:49 am
I'm not much of a hand with Macs, but I have a suggestion. The "blah cannot be modified" error messages sounds like the directory is write-protected. That bascially means that you're not allowed to change, delete, add-to the directroy/folder.
How do you fix this on a Mac? I dunno. But try looking through the help files for "Directroy (or folder) permissions" and "write protection".

Hope this helps.


Title: Re: Help with UQM, Mac Version
Post by: Death 999 on January 11, 2004, 06:45:10 am
Try to do it as an administrator and you should be OK.

If you know how to use the terminal, navigate into the application (it is a directory) and tell us what permissions it has, e.g.
-rwxr--r--
This can be determined with the command
ls -l


Title: Re: Help with UQM, Mac Version
Post by: Tony on January 11, 2004, 07:09:16 am
Okay, what I did was I went to the help and searched "folder permissions" (thanks, Zeep-Eeep!). That said that I should open the "Get Info" file for the UQM disk (yes, it's classifying and showing it as another hard disk...should it be) and then set UQM to ignore ownership. I tried that, and it still won't work. Currently, it says that the "Owner" is me and the "Group" is "unknown." When I try to change either of these to something else (like "admin" in the "Group" menu) the computer tells me that the operation couldn't be completed because of error code 195. Also, the access rights for the "Owner", "Group", and the "You Can" pulldown under "Ownership & Permission" are all grayed out, and I can't access them.

I hope that helps!

Thanks a bunch for helping me...I've been using a Mac forever, but I've only had OS X for two weeks.


Title: Re: Help with UQM, Mac Version
Post by: Nic. on January 11, 2004, 09:45:57 am
Ah, you're playing the game directly out of the disk image.  This will work, but the disk images are read-only, and as such you can't add any extra content unless you drag the game out of the image and onto your hard disk first.


Title: Agreed
Post by: Zeep-Eeep on January 11, 2004, 05:21:37 pm
I agree with Nic, disk images, CDs, etc are read-only and thus "write-protected". So, my suggestion is to copy the contents of your disk image into a directory on your hard drive. I think you can do this on your Mac by dragging/droping the files in the disk image to a new location.

With that done, bring up the file permissions for the new folder. Start right at the top at "Games/" or "UQM" or whatever it's called. In the permissions, set yourself as the owner and set the permissions so that you can write to the files. If there is an option for "Recursive" permissions, select that too, so all the sub folders/files are also made accessable for you.

On a last note, if you do use the command line, you can change file permissions for the entire directory (the new one, not the disk image) using this command:
chmod -R 755 directroy-name/*

Best of luck!


Title: Re: Help with UQM, Mac Version
Post by: ALdbeign on January 11, 2004, 05:50:16 pm
Tony, if you've only been using os X for 2 weeks (and don't have any experience with *nix) then do yourself a favor...stay out of the command line ;). while it sounds like you are running the game from the disk image, i,m curious, are you able to save your game?
no bearing on your question at all, just curious :)


Title: Re: Help with UQM, Mac Version
Post by: Nic. on January 11, 2004, 08:26:10 pm
Saved games are written to one's home directory, not the media from which the game was loaded.  Home directories are usually writable by the user who owns them, so I'd say loading/saving games will work correctly.  :)

(and since I put the OSX version together, I guess I can fancy myself an "expert" on the subject)


Title: Re: Agreed
Post by: Death 999 on January 11, 2004, 08:48:35 pm
Quote
On a last note, if you do use the command line, you can change file permissions for the entire directory (the new one, not the disk image) using this command:
chmod -R 755 directroy-name/*


DON'T EXECUTE THIS COMMAND!

This will make non-executable files executable, etc. This is Bad.

If you want to make the file just as public to everyone as it is to the owner except not writeable, then you should execute

chmod -R go=u-w *
which means recursively set the group and other bits to the same as the user bits, minus any writeability.

This is much safer.


Title: Re: Help with UQM, Mac Version
Post by: Tony on January 11, 2004, 09:52:40 pm
Thanks so much you guys!

What I ended up doing was creating a new folder in my hard drive and putting the contents of the UQM disk in there. I had tried doing that before, but just placing the whole disk in my hard drive...and all it did was make an alias to the UQM disk. But now everything works, and again...thanks to all of you to helping me with this problem!


Title: permission
Post by: Zeep-Eeep on January 12, 2004, 09:22:56 am
I have to agree and dis-agree with Death-999 on this. I agree that chmod -R 755 does make files executable, even if they are not normally executable files. Technically, this is a security problem.

However, the chance of this posing a problem is minimal. While it gives people the right to run any file in the UQM directroy, this isn't very dangerous. However, if you wish to tighten security, you can run
chmod -R 700 UQM/*
This will make sure that you (and only you) can access and run the UQM game.

Also, since some of the files in the directroy have to be executable to run (execute) the program, making them executable makes sense.

Sorry for the previous mistake. "700" is a safer, if anti-social method.


Title: Re: Help with UQM, Mac Version
Post by: Death 999 on January 12, 2004, 08:12:25 pm
But you're still making random text or image files executable. This is sloppy and potentially dangerous. Furthermore, if you ever do go through these directories trying to distinguish files, all that info will be lost.

Better to use the method I described, since it doesn't make anything executable that shouldn't be.


Title: chmod
Post by: Zeep-Eeep on January 12, 2004, 09:08:01 pm
The method you described, however, does not give the user/owner the ability to write to the files/directories in question. It simply made sure that other people couldn't write to the files either, which they couldn't in the first place.
Which is why I corrected myself and suggested using mode 700. Files with mode 700 can only be run by the owner and thus can't cause any problems...unless the owner attacks him/herself. Which seems pretty unlikely.


Title: Re: Help with UQM, Mac Version
Post by: Death 999 on January 13, 2004, 08:50:10 pm
well, if you want to give the owner read and write permission, use

chmod u+rw


Title: Re: Help with UQM, Mac Version
Post by: Tony on January 14, 2004, 07:07:11 am
Okay, it turns out there's a second part to this question...

UQM is working fine...I downloaded the updated music with no problem and it plays, I can save, etc, etc...The only thing is, now I can't change any of the new music around! Here's the scoop:

I downloaded the new music files (UQM remix packs 1 and 2) and placed them directly inside the "packages" folder along with the content, voices, and 3DO ZIP files. As I said, they've been running fine. However...this is where the problem comes in. I downloaded the extra, non-ZIP file music (i.e. Yehat, Utwig, etc ditties) from the downloads page. I then unzipped one of the UQM remix packs to see how everything was organized, and I created a new folder and organized it in the same way (the file "yehditty.ogg" is within the folder named "yehat" which is in the big folder and so forth). I then put this into a zip file two different ways...by using Aladdin Software's DropZip and OSX's own Archive capability. However, when I put these in the "packages" folder (under the name "uqm-remix-pack3.zip) and launched the game...they didn't work!  I then tried unzipping one of the true remix packs, and then zipping it back up using Aladdin/Archive...and it doesn't work either!
They're just zip files, right?

I would appreciate any help that you can give. As with before, it's probably a really simple answer...but since I have almost no experience with this OS, it's not so easy!

P.S. I went back and read all your replies...and realized I have no idea how to get into the command line (and the computer "help", being [of course] no help whatsoever refuses to tell me) so if the solution involves this "command line", please talk me through it as much as possible.

Thank you sooooooooooo much for helping me with all these problems! I hope someone in the future with Mac problems will be able to come back and use these, also!


Title: Re: Help with UQM, Mac Version
Post by: Nic. on January 14, 2004, 08:14:49 am
Short Answer: You're stuffed.

Long Answer:  The OSX version does fully support add-on packs and custom content, but at this time the launcher does not, so you're left with a few "unpalatable" options for making it work:
  • Run the game from the command-line, and use the --addon switch (further instructions on proper use of addons can be found elsewhere on the forum)
  • Unpack the "extra" content zip files in the Contents:Resources:content folder, then launch the game normally.
  • Unpack the "extra" content zip files in ~/.uqm, then launch the game normally.

The first option is "cumbersome" to someone not familiar with the wiles of Unix, and the latter two options can only be described as "messy"

Rest assured, addon support will be added to the launcher, it's only a matter of writing it.


Title: non-command line
Post by: Zeep-Eeep on January 14, 2004, 09:54:44 am
To do this via non-command line, try selecting the file folder where UQM is stored. Then follow the help files to change the folder (and sub folders)
so you have write-perimssion. I'm not exactly sure how to do this, but it's probably through the File menu.

Best of luck.


Title: Re: Help with UQM, Mac Version
Post by: Death 999 on January 14, 2004, 08:11:28 pm
The first option (use the command line) would not be too bad, except that if you run it from the command line, uqm doesn't know where to find its libraries.
:(

It isn't too hard to put together a shell script to run it with options, except for that one part. grr.


Title: Re: Help with UQM, Mac Version
Post by: Tony on January 16, 2004, 02:59:09 am
Yep, option 2 worked fine. Thanks again!


Title: Re: Help with UQM, Mac Version
Post by: Nic on February 15, 2005, 03:17:36 am
RISE, DEAD TOPIC!  RISE!!!

I am most pleased to announce the completion of a "native" OSX port of the Ur-Quan Masters, available here:

http://www.submedia.net/uqm/

It's fairly rough at this point, and I'm looking for bug reports and comments.  Please download a copy, try it out, and post your results here.
  • On the features side, add-on packs are now supported!  I'm sure everyone will agree, it's about time.  See the README file in the disk image for instructions on their use.
  • The Launcher is now a native Cocoa app, and is integrated with the main application, which means the disappearing/reappearing Dock icon is officially a thing of the past.
  • It also uses OSX Frameworks instead of Unix-style shared libs, which eliminates all of the weird hacks that the previous versions employed to make themselves run.  This version can also be invoked from the command-line with no worries.
  • The game now logs its output to the syslog (/var/log/system.log) rather than /tmp/uqm.out  The syslog can be viewed by running the Console utility (under Applications:Utilities)
  • On the "step backwards" side, you can no longer save your Launcher settings, or supress the Launcher on startup.  I'm waiting for coredev to implement the official config file format first, then I'll have the Launcher parse it and set the options.
  • I also plan to introduce drag-and-drop add-on installation through the Launcher at a later date.