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

This Month's Specials

Bronze- Save $10.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old April 15th, 2007, 11:49 PM

Evil Dave Evil Dave is offline
Corporal
 
Join Date: Jan 2004
Location: Wilmington, Delaware, USA
Posts: 191
Thanks: 1
Thanked 13 Times in 2 Posts
Evil Dave is on a distinguished road
Default Announcing catgod, a pretender file viewer

Catgod is a command-line program to display Dom3's pretender god files. For example:

>catgod /Users/evil/dominions3/savedgames/newlords/early_arcoscephale_0.2h
Fred, the Earth Monster, Lord of Courage, God of Mountains
Arcoscephale, Early Era
Cyclops (Body 156, 91 hits)
Magic: Earth 9
Dominion 5
Scales: Order 1 Productivity 1 Fortune 1 Magic 1
Dormant


Catgod understands wildcards like you'd expect:


>catgod /Users/evil/dominions3/savedgames/newlords/early_arcoscephale_?.2h

----/Users/evil/dominions3/savedgames/newlords/early_arcoscephale_0.2h----

Fred, the Earth Monster, Lord of Courage, God of Mountains
Arcoscephale, Early Era
Cyclops (Body 156, 91 hits)
Magic: Earth 9
Dominion 5
Scales: Order 1 Productivity 1 Fortune 1 Magic 1
Dormant

----/Users/evil/dominions3/savedgames/newlords/early_arcoscephale_1.2h----

Jane, Mother of Fishes, Goddess of Rivers
Arcoscephale, Early Era
Mother of Rivers (Body 1342, 95 hits)
Magic: Water 9
Dominion 5
Scales: Order 2 Productivity 2 Fortune 2 Magic 1
Imprisoned

Binaries are available for Linux/Intel and Macintosh OS X/PPC.

Download catgod for Linux/Intel.

Download catgod for Macintosh OS X/PPC.

(If you click one of those links and your browser shows a page of random characters, back up, and download it with right-click "Save as...", or whatever your browser uses.)

I don't have the tools or the inclination to port catgod to Windows. If somebody wants to, send me a PM. Porting it shouldn't be hard; it's a short C program. Likewise if somebody wants to recompile it for Mac OS/Intel.


Installation and Usage Example

Download catgod into any convenient directory. Start a shell (Terminal in Mac OS), cd to that directory, and

chmod +x catgod

in case it didn't download as executable. If you used the default Dominions installation, your pretender files will be in

/your home directory/dominions3/savedgames/newlords

so,

./catgod /your home directory/dominions3/savedgames/newlords/*.2h

will display all your pretenders. If this doesn't make sense to you, ask your local computer geek for help.

A copy of this documentation (such as it is) lives at http://www.omskivar.org/evil/dom3/catgod.html, the catgod home page.



Thanks to Gandalf Parker for testing catgod.
__________________
No plan survives contact with the enemy.
--Helmut von Moltke

Have too may pretender files to keep track of? Use catgod to view them.
Reply With Quote
  #2  
Old April 17th, 2007, 08:29 AM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Announcing catgod, a pretender file viewer

This sounds like quite an impressive project. I'll have to take a look.

Can it look at pretenders that are password protected? If so, it could be used for evil. Wouldn't want that.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #3  
Old April 17th, 2007, 08:41 AM
Dedas's Avatar

Dedas Dedas is offline
Lieutenant Colonel
 
Join Date: Nov 2005
Location: Lund, Sweden
Posts: 1,377
Thanks: 72
Thanked 25 Times in 20 Posts
Dedas is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

Excellent!

But it seems that your links all leads to 404 at the moment.
Reply With Quote
  #4  
Old April 17th, 2007, 10:07 AM
mathusalem's Avatar

mathusalem mathusalem is offline
Sergeant
 
Join Date: Mar 2005
Location: France (Paris)
Posts: 227
Thanks: 1
Thanked 1 Time in 1 Post
mathusalem is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

really good idea !

And a version for Mac, thanks !
Reply With Quote
  #5  
Old April 17th, 2007, 11:44 AM
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: Announcing catgod, a pretender file viewer

Was that old dom2 code for dumpgod.c useful in the beginning?

You should rename it. Not everyone knows that "cat" is the linux command for dumping text output to the screen. Maybe printgod.

Now if you could get catgod to kick out the points left over. Then we can do nation-bidding games based on creation points. Does anyone have a table for point costs?
__________________
-- 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
  #6  
Old April 17th, 2007, 11:57 AM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

Yeah, I keep seeing this thread and thinking "Bast?"

And I'm a linux geek so I know where the name comes from...
Reply With Quote
  #7  
Old April 17th, 2007, 12:29 PM

Evil Dave Evil Dave is offline
Corporal
 
Join Date: Jan 2004
Location: Wilmington, Delaware, USA
Posts: 191
Thanks: 1
Thanked 13 Times in 2 Posts
Evil Dave is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

General reply to all comments:

If you tried to download catgod and couldn't get thru (bad links, etc), please give it another try. A storm that came thru here Monday morning not only knocked out power to my servers, but also messed up the 'net but good. Even when the power came back, access beyond my ISP was in yo-yo mode.

If somebody can think of a better name for catgod, I'm all ears. I'll take "printgod" if I have to, but I'd like something more clever. And I was thinking of just calling it Bast, in the long tradition of obscure Unix command names.

Catgod can read password-protected pretenders. You'd need to have access to the file to read it, tho. If this is a problem for MP, the host machine should change the file protections on uploaded pretenders so that only the game server and each pretender's player can read the files.

Oh, I didn't know there was a dumpgod. Programming catgod took only 10-11 hours, about half of which was figuring out the file format.
__________________
No plan survives contact with the enemy.
--Helmut von Moltke

Have too may pretender files to keep track of? Use catgod to view them.
Reply With Quote
  #8  
Old April 17th, 2007, 02:22 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: Announcing catgod, a pretender file viewer

How about GodDump
GodGuts? CatScan? Atheism?
Or how about something befitting "seeing the gods"
Babel? http://en.wikipedia.org/wiki/Tower_of_babel
__________________
-- 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
  #9  
Old April 17th, 2007, 04:55 PM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

Hi, nice idea, I'd just need a Windows version to be able to use it ...
Reply With Quote
  #10  
Old April 17th, 2007, 06:23 PM
mathusalem's Avatar

mathusalem mathusalem is offline
Sergeant
 
Join Date: Mar 2005
Location: France (Paris)
Posts: 227
Thanks: 1
Thanked 1 Time in 1 Post
mathusalem is on a distinguished road
Default Re: Announcing catgod, a pretender file viewer

where did you find how to parse .2h files ?

can we have source code, just for seeing how it's work ?


Thanks ^^
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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:07 AM.


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