![]() |
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 ... . |
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. http://forum.shrapnelgames.com/images/smilies/happy.gif 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 |
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.: <font class="small">Code:</font><hr /><pre>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</pre><hr /> 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... |
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 |
Re: Catgod pretender viewer now for Windows!
Quote:
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: <font class="small">Code:</font><hr /><pre>@echo off catgod.exe %* pause</pre><hr /> 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? |
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 .. http://forum.shrapnelgames.com/images/smilies/wink.gif |
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.
|
Re: Catgod pretender viewer now for Windows!
Quote:
Quote:
|
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. |
Re: Catgod pretender viewer now for Windows!
Quote:
What you could do is to use the "for" command to feed the pretender files to catgod exe, one at a time. See "for /?". |
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.