.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Catgod pretender viewer now for Windows! (http://forum.shrapnelgames.com/showthread.php?t=34716)

PvK June 26th, 2007 01:40 PM

Re: Catgod pretender viewer now for Windows!
 
Yes, that's what I meant by "I'd need to write such a parser myself, including a file system crawler." Evil Dave or I, that is.

Arralen June 26th, 2007 02:58 PM

Re: Catgod pretender viewer now for Windows!
 
Nope, you needn't. I can easily ( http://forum.shrapnelgames.com/image...s/rolleyes.gif ) incorporate that into catgodGUI ... or some other way to work around the limitation.

Evil Dave June 26th, 2007 11:36 PM

Re: Catgod pretender viewer now for Windows!
 
Arralen,

I found a working syntax for XP's command "shell":

catgod c:"\Program Files\PuTTY"\*.2h

It's *extremely* picky about where the quote marks go. It looks like the first one must go after the disk id, and the ending one must preceed a backslash delimiter. Note that

catgod c:"\Program Files"\PuTTY\*.2h

also works. I hope this is standard for all the versions of Windohs.

PvK June 27th, 2007 04:14 AM

Re: Catgod pretender viewer now for Windows!
 
Oh, cool. I tried something close to that, but it didn't work - as you say, very picky, and the MS docs I found that mentioned the situation didn't explain that.

Arralen June 27th, 2007 05:45 AM

Re: Catgod pretender viewer now for Windows!
 
Windoze sucks ..
AFAIK, Tcl/Tk is using Win API functions to get me the path the user selects.
I simple store that path and feed it back to the same API .. and it breaks ..

Guess I'll have to implement the workaround: cut off the drive letter, insert quote marks, put it back together .. did I says Windoze sucks? http://forum.shrapnelgames.com/images/smilies/wink.gif

Evil Dave June 27th, 2007 11:04 AM

Re: Catgod pretender viewer now for Windows!
 
Quote:

PvK said:
the MS docs I found that mentioned the situation didn't explain that.

I think it's a bug. If the quote marks appear before the disk ID, the shell interprets the entire commandline as tho it was in quotes, regardless of the location of closing quote marks. I was testing the Windohs catgod, and found that playing with the quote marks changed the error from "invalid argument" to "file not found", which suggested a misparse somewhere.

Gandalf Parker June 27th, 2007 12:11 PM

Re: Catgod pretender viewer now for Windows!
 
Excellent hacking on that. I hope we can make use of it to fix the problem. But in any case that was a sweet find.

happygeek October 15th, 2009 07:15 AM

Re: Catgod pretender viewer now for Windows!
 
Er, I was directed here from a friendly post on the main forums, and I cannot understand anything anybody said in this thread, and I read it ALL. Are you saying it works in windows or it doesnt? Sorry for being so dense, I can't program my dishwasher. And thank you so much for your time and effort you all put into this.

Arralen October 15th, 2009 11:20 AM

Re: Catgod pretender viewer now for Windows!
 
Quote:

Originally Posted by happygeek (Post 714768)
Are you saying it works in windows or it doesnt?

It works, unless you have installed Dominions into a folder with a blank in some folder name.
E.g:
C:\program files\games\dominions3 does not work,
C:\programs\games\dominions3 does work

Actually, I would recommend not to install Dominions into a subfolder of c:\program files\, anyway. Better set up a second drive (letter) and install to d:\games\dominions3 or something like that. c: is the system drive and should only be used as such! (esp. true with Fista)

chrispedersen October 15th, 2009 11:38 AM

Re: Catgod pretender viewer now for Windows!
 
It probably would still work if you had a space, so long as you use the 8.3 nomenclature.

Ie., C:\progra~1\dominions3...
rather than
C:\program files\dominions3...

8.3 is usually 6of the name + ~#, but you can find it with dir /x if I remember.


All times are GMT -4. The time now is 04:28 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.