.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #11  
Old June 23rd, 2007, 05:38 PM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default 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 ...
Reply With Quote
  #12  
Old June 23rd, 2007, 07:36 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #13  
Old June 25th, 2007, 04:09 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default 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...
Reply With Quote
  #14  
Old June 25th, 2007, 04:35 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #15  
Old June 25th, 2007, 06:08 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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?
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #16  
Old June 25th, 2007, 08:09 PM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default 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 ...
Reply With Quote
  #17  
Old June 25th, 2007, 08:37 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #18  
Old June 25th, 2007, 08:51 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #19  
Old June 26th, 2007, 04:16 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default 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.
Reply With Quote
  #20  
Old June 26th, 2007, 06:16 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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 /?".
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:23 AM.


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