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?
I'll Try To Hotfix Soon, Btw
#26 posted by megaman on 2010/07/14 22:25:59
#27 posted by necros on 2010/07/15 18:52:45
have a custom icon / custom folder settings for that dir?
not that i know of. my quake folder has migrated from machine to machine over the years though, unlike, say, quake3 which i just reinstall whenever i switch.
That Is Fucking Weird Then
#28 posted by megaman on 2010/07/15 19:31:18
Can you do me a favor and test this some more?
0) see if anything in your quake dir is read only and try disabling read only mode on those files. Check if QI can write to your quake dir now.
1) if it cannot write, copy the complete folder to somewhere else (preferably in the same parent dir) and see if it works on that
2) if not, try moving it somewhere else
3) if it's still not working, try to delete the contents (but only the contents) of the subdirectories in that copy of your quake dir
4) if that still doesn't work, delete everything inside it
5) if it's still not working, try to reset the folder options for that particular folder. I don't know how exactly this works in Win 7, in XP there's view > customize folder in explorer that kinda looks like what I want. Maybe you can figure out how to reset it and try it.
Maybe we can figure out what's causing this. Thanks in advance! (And make sure you're not deleting your actual quake folder!)
Argh
#29 posted by rj on 2010/07/15 20:22:07
i only recently installed the first QI.. wish i'd waited for this now. completely rebuilt my quake directory from scratch based on it and subsequently renamed many of the bsps & txts that didn't fit neatly in order (OCD habit)
would an installedMaps.xml generated by an earlier version still be compatible with this? so i could bypass the scanning (as it would miss a fair few)
Yep, Most Probably
#30 posted by megaman on 2010/07/15 21:34:39
I can't remember any changes, but then, it has been a while (and lots of commits)
Well...................
#31 posted by necros on 2010/07/16 04:13:01
my quake folder is 8+ gb so i didn't copy the whole thing, just the root (quake executables) and the id1 folder.
and it works.
so... i just moved all the files in the original quake folder to the new one and it's fine. obviously there's some security setting or something i'm missing because even while empty, the original quake folder still cannot be written to.
now to go play some random quake maps. :)
After Playing A Single Map
#32 posted by necros on 2010/07/16 04:31:47
initial impression:
-very cool, i'll come back to this again to play more maps.
-since this already connects to the internet and downloads files off of quaddicted, it would be great if we could see user comments as well as leave some ourselves from within the program. obviously, you'd need to enter your username/password into the injector.
-there needs to be like a 'recently downloaded' list so we can keep track of what we've downloaded. say i'm skimming through the list and download 4 maps.
-OR: alternatively, make a new sorting column called 'download date' or somesuch and then we can organize the files by download date.
-OR: keep track of which maps have been played or not in some manner that is visible to the user and let us sort that way (played vs unplayed)
in any case, very cool program. i love gui-fying these kinds of stuff lately.
It Would Be Awesome
#33 posted by megaman on 2010/07/16 09:46:04
if you could find out what happens there, so I can work-around/bug-report/warn in the readme. I'm trying to think of a way you could transfer that folder to me while preserving the windows specific settings... but I can't come up with something. Or we'd need a tool that lists all file/directory properties.
#34 posted by Spirit on 2010/07/16 12:26:35
Comments is something I first have to provide an API for at Quaddicted. Definitely something I will do.
Having maps marked as played is one of my wishes too.
We Still Need A Good Concept For That
#35 posted by megaman on 2010/07/16 13:10:01
|