|
|
|
|
|
June 23rd, 2007, 05:38 PM
|
|
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
Re: Catgod pretender viewer for Windows now with G
Neither Gandalfs first suggestion
catgod.exe "d:\temp\try this out\savedgames\newlords\*.2h"
nor Peters idea
catgod.exe 'd:\temp\try this out\savedgames\newlords\*.2h'
work from the command line on my system (W2k).
Maybe someone could try on XP etc and let me know, but I don't expect them to behave differently at all.
Gandalf, maybe you could try out the linux (command line) version of catgod on your machine and let me know how it behaves if fed with such a file path ? Thanks!
Maybe, just maybe, I get something like a terminal gui done especially for you. It's very much "maybe" because the ncurses equivalent for Tcl/Tk, the term:: functions in Tcllib, are not yet implemented ...
catgod.exe d:\temp\try_th~1\savedgames\newlords\*.2h'
DOES work - but only if there's no 'space' within the first 6 characters.
As I have a hard time implementing the command line syntax anyway - ", ', \ and / are part of the Tcl/Tk syntax - and shortening the path to "someth~1" would be a nightmare (at least for me), I'll wait for a word from Dave or Peter if there's anything that can be done within catgod itself to get this ironed out.
If not, I think I'll resort to copying the pretender files over and scanning them from a temp/subdirectory ...
Btw., I'm still taking suggestions what functions catgodGUI could/should implement ... .
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
|
June 23rd, 2007, 07:36 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Catgod pretender viewer for Windows now with G
I think that most people have it in \program files\ so the tilde answer should work for a large group. But personally I would appreciate it if the drive letter was left off.
And I dont like using gui's on linux. That would be for Johan.
I prefer text mode command line operation on linux. But I dont think I see a need for this on the server. I would probably use it on my WinXP desktop
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
June 25th, 2007, 04:09 PM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
Re: Catgod pretender viewer now for Windows!
That's interesting. I'm still investigating, but so far I see that the quotes do work but only without the wildcard character, e.g.: Code:
C:\PvK\CatGod\catgod\Debug>catgod "C:\Program Files\dominions3\savedgames\newlords\mid_eriu_0.2h"
Thistletwiss, Queen of the Oceans, the Whirlpool, Patron of Farmers
(null)
Lady of Springs (Body 1370, 65 hits)
Magic: Water 9 Nature 4
Dominion 5
Scales: Growth 1 Fortune 1
Dormant
But if I replace the nation with *, it fails. Maybe I just need to find yet another build setting to tell Windohs to behave better...
|
June 25th, 2007, 04:35 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Catgod pretender viewer now for Windows!
Yes quotes do not pass wildcards well.
Have you tried with the rest of it outside of the quotes?
C:\PvK\CatGod\catgod\Debug>catgod "C:\Program Files\dominions3\savedgames\newlords\"*.2h
Just wondering. If I remember later on I might test this
Maybe we can create a batch file to take an * and pass them one at a time to CatGod
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
June 25th, 2007, 06:08 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Catgod pretender viewer now for Windows!
Quote:
Gandalf Parker said:
Maybe we can create a batch file to take an * and pass them one at a time to CatGod
|
Why not just use my drag and drop solution? You only need a batch file to do a "pause" after catgod is run, because the window will close after executing, i.e. instantly.
Here is the revised solution, tested now and works:
Create a file named catgod.bat (with notepad or whatever) in the same directory where catgod.exe is and put the following inside: Code:
@echo off
catgod.exe %*
pause
Then select the Batch file with a left-mouse click, hold your CTRL+Shift key while dragging the file a little and drop it somewhere, for example on your desktop. Name it however you want. When you then drag & drop pretender files on that icon you just created, it will display the stats. Easy, no?
|
June 25th, 2007, 08:09 PM
|
|
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
Re: Catgod pretender viewer now for Windows!
.. because dragging your pretender files around using Explorer and copying from the CMD line window is slightly inconvenient?
Furthermore, I plan to add some more features to the catgodGUI as soon as we can get the basic functionality right ..
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
|
June 25th, 2007, 08:37 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Catgod pretender viewer now for Windows!
I was going to say because to most windows users that would be "weird". But a batch file that processes the entire newlords directory, maybe to a file, might not be bad.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
June 25th, 2007, 08:51 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Catgod pretender viewer now for Windows!
Quote:
Arralen said:
.. because dragging your pretender files around using Explorer and copying from the CMD line window is slightly inconvenient?
|
How so? You can select exactly the files/nations that you want via the explorer window and drop them on the icon. If you want to have better copy/paste functionality, just right click on the icon, select "Properties", then "Options" and enable the "Quickedit" mode. Then you can select text via left mouse button and copy it to the clipboard via right mouse button. It doesn't get any easier than this.
Quote:
Arralen said:
Furthermore, I plan to add some more features to the catgodGUI as soon as we can get the basic functionality right ..
|
Oh, I don't want to belittle your GUI program, just wanted to point out that there is a very simple solution for this.
|
June 26th, 2007, 04:16 AM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
Re: Catgod pretender viewer now for Windows!
Ok, it's looking to me like Windohs params just won't mix quotes with wildcards...
I tried hard-coding:
"C:\Program Files\dominions3\savedgames\newlords\*.2h"
and the file system method doesn't like that parameter in Windohs. Which means it's not necessarily failing just at the command-line level - it looks to like it's both, which is lame.
That is, Windohs does the wildcard expansion on the parameter passing, but not if it's in quotes. It doesn't do it at the file-open level after getting the parameter, which basically means, as far as my sleepy mind can see at the moment, that it's not going to help. Either the calling (Arralen's) program would need to do it, or I'd need to write such a parser myself, including a file system crawler. It would be nice if an escape character could stand in for the space as the parameter is being passed in, but I haven't seen that work from the command-line so far.
Grumble. Time for sleep.
|
June 26th, 2007, 06:16 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Catgod pretender viewer now for Windows!
Quote:
PvK said:
Ok, it's looking to me like Windohs params just won't mix quotes with wildcards...
I tried hard-coding:
"C:\Program Files\dominions3\savedgames\newlords\*.2h"
and the file system method doesn't like that parameter in Windohs. Which means it's not necessarily failing just at the command-line level - it looks to like it's both, which is lame.
|
The problem is not Windows, in a sense, but the catgod.exe itself. Windows command line does not expand wildcards on its own like bash and other shells in Linux does, and has never done so. The catgod.exe has to do that. And as you can see, EvilDave wasn't prepared to have wildcards for paths with spaces in it.
What you could do is to use the "for" command to feed the pretender files to catgod exe, one at a time. See "for /?".
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|