#1 posted by negke on 2010/07/12 19:34:05
Thank you for your great work, fine gentlemen.
#2 posted by necros on 2010/07/12 21:51:07
i can't use it. :S
i'm on windows 7, and when i select the quake directory, it says "Cannot be written to!" which i'm assuming is a permissions thing.
this usually isn't a problem but because this is a .jar file and not an executable, i don't get any tabs in the file properties to run as administrator, not does that option appear in the right click menu.
you'll have to fix permissions or find a work around i suppose.
too bad, actually. i'm a lazy bum when it comes to downloading maps and i was looking forward to trying this out.
Patman++
#3 posted by JPL on 2010/07/12 22:39:50
Quake Injector = Patman++
#4 posted by Trinca on 2010/07/12 23:07:32
necros always log (W7)as administrator :)that way always work!
Yeah
#5 posted by necros on 2010/07/13 00:40:37
my account is the administrator, but w7 isn't as simple as that. the programs themselves have certain permissions which they can't break unless specified by the user.
this is usually done by selecting 'Run as Administrator' from the right click menu. unfortunately, you can't do that with a .jar file because it's not an executable itself, because it has to run through java before it actually executes. (or at least, that's as much as i understand about that whole java thing)
maybe there's a way to get java to run with administration privileges for only that specific .jar file, but i don't know it. :(
Append
#6 posted by necros on 2010/07/13 00:43:10
i guess this might be more a java thing actually? i never had problems with the 3 vb programs i've made and 2 of them were before i was working with windows 7. (the doom3 gui editor and the doom3 .ase material replacer) and i didn't do anything special to write files with the quake compiler. maybe java has even more safety measures?
Great Tool!
I always wanted to give this tool a try, the post of alpha2 here reminded me to finally do that!
I love this thing, it is just what I needed and there's so many maps to play (especially for me since I'm a Quake 1 noob)!
@necros: I don't run Windows Vista or 7 but you could try to create a shortcut to your Java executable instead and edit the command line to something like "path\to\java.exe -jar \path\to\quakeinjector.jar". Then run that as Admin.
Crap
#8 posted by necros on 2010/07/13 02:43:37
that actually did work and gave me the option to elevate the shortcut, but it still says "Cannot be written to!". there must be more to it than i thought.
Cheers
#9 posted by Joel B on 2010/07/13 07:00:53
Couple of questions!
Does it always download the package list from somewhere when you start Quake Injector, or is the list cached locally?
What's the process for getting new releases onto the list? Are you toiling away as the lone list maintainer or is there a way for others to help update?
#10 posted by Spirit on 2010/07/13 08:26:36
It always downloads the database from Quaddicted (about 100 Kilobytes I think). Not sure if it caches the file locally but you can download it manually and use it offline that way (I have to write a guide).
Currently I have to add new things. And I am terrible at it. Making it easier for others to help will be a summer project.
W7/Vista Problems
#11 posted by megaman on 2010/07/13 08:30:30
We had problems on Vista like that before, but I don't have a Vista machine, so I can't check myself. I recently got a W7 Starter machine though...
That check is a simple File.canWrite() (or something similar) check to the java api. Either I'm doing something stupid, the api is doing something weird, or Vista/W7 is fucked.
On my W7 laptop (where I disabled that weird service that controls file access), I can select my home dir fine, but NOT the Desktop (cannot be written to). What path do you try to set as Quake dir?
Johnny Law: Yeah, atm it's always downloading the list, caching is a planned feature.
And yeah, Spirit's the only one with access to the list, but we've been talking about this. A submission page for map authors would be nice. The problem is that some authority needs to double-check the files, because there could be malicious files in the zips.
Submission Page?
#12 posted by negke on 2010/07/13 08:47:31
Not really worth the effort for the small number of new releases each year. Just stop slothing away all the time, Spirit! >:)
Megaman
The JavaDoc says that File#canWrite() "Tests whether the application can modify the file denoted by this abstract pathname."
Since you're trying this on a directory, I think that the behavior may simply be nondeterministic because it is not specified.
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/io/File.html#canWrite()
Nah
Read a bit more, it seems to be ok to call canWrite on a directory, but it seems to have problems in Windows with NTFS ACLs and stuff. Maybe you can work around that shit by just trying to create a file in the Quake dir and catch any exceptions if it fails.
Actually
#15 posted by megaman on 2010/07/13 09:56:18
yeah, maybe that check is stupid. But then, it's perfectly plausible (and important?) to do it on unix.
http://www.google.de/search?num=100&hl=en&lr=&safe=off&as_qdr=all&q=java+file+canwrite+directory&aq=f&aqi=&aql=&oq=&gs_rfai=
Although that first bug has fix-delivered status?!
Nice...
#16 posted by metlslime on 2010/07/13 10:12:33
the fact that it plays nicely with an existing maps directory makes this something i will now use constantly.
Some notes:
- console output might be nice as a panel on the main window rather than a modal dialog?
- i launched "rubicon" and it went straight to the main map; mods that contain a start map should load the start map instead.
- instead of user specifying "rogue" and "hipnotic" packs, could you detect them automatically?
Oh..
#17 posted by metlslime on 2010/07/13 10:16:22
found a bug... it did not detect that i had chaos.bsp already installed.
BUT... i realized now, this is actually becuase i have version 1.1 installed and the quaddicted file is the original release.
So it's not a bug, it handled the file mismatch pretty gracefully i think (asked me if i wanted to overwrite those files)
#18 posted by Trinca on 2010/07/13 11:08:10
necros if isn't w7 administrator is the windows firewall... for me no problems at all
Metl
#19 posted by megaman on 2010/07/13 12:25:22
The Rubicon start map issue is actually an issue with the information in the database. rubicon has no start map defined, if it had it would start the start map. Spirit! :D
The Bug: yeah, it's crc checking the files.
rogue/hipnotic: of course, that's a good idea ;-)
Windows 7/Java Problem
#20 posted by mh on 2010/07/13 15:18:23
You can either set the ACL on your Quake directory to allow writing (use the "Everyone" security principal) or else configure C:\Program Files\Java\jre6\bin\javaw.exe (or C:\Program Files (x86)\Java\jre6\bin\javaw.exe) to use elevation and this should work.
Megaman
That bug was fixed before Vista came out I think, so it may have popped up again. Also, the bug was for a specific directory, maybe that directory still works, but others don't. It seems plausible that File#canCheck() should work for what you want, but since there's a simple workaround (create file, catch exception, finally delete file) I wouldn't waste too much time on this nonsense ;-).
VirtualStore
#22 posted by Baker on 2010/07/14 03:14:55
It's annoying but with Vista (I don't have W7 but it is likely the same) Quake doesn't write files in Program Files\Quake\id1 and such but rather the operating system transparently redirects it to say ... c:\Users\Main\AppData\Local\VirtualStore\Program Files\Quake\id1
#23 posted by Trinca on 2010/07/14 10:10:38
Baker Vista and W7 dont have nothing to do...
Vista = mister big bug
W7 = almost perfect system
#24 posted by necros on 2010/07/14 20:17:09
well, i've tried a whole bunch of different ways to get around it but no luck.
quake is in c:\games\quake.
i don't understand why, but ONLY the quake directory has this problem. i can select every other folder without problems. i tried messing around with security permissions for the quake folder, i tried different ways of elevating java when running the jar file and nothing worked.
Do You
#25 posted by megaman on 2010/07/14 22:25:29
have a custom icon / custom folder settings for that dir?
|