Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Multiplayer & PBEM > Civ4 - PitBoss Games

Notices

Reply
 
Thread Tools
Old May 25, 2012, 08:52 PM   #1
karadoc
AI programmer
 
karadoc's Avatar
 
Join Date: Oct 2005
Location: Australia
Posts: 1,454
Launching a mod via the command line argument

I'm having trouble getting Civ4BeyondSword_PitBoss.exe to automatically load a mod using the command line.

In non-pitboss games I can do the following, and it works:
Civ4BeyondSword.exe" mod="K-Mod"
and this also works:
"Civ4BeyondSword.exe" mod=\K-Mod

But the pitboss version seems to be a buggy, and I haven't managed to get it to work out.

If I try
"Civ4BeyondSword_PitBoss.exe" mod="K-Mod"
I get the following error message:
Quote:
Mods\-Mod \ is an invalid mod directory, ignoring
Apparently it misread "K-Mod" as "-Mod ".

If I try
"Civ4BeyondSword_PitBoss.exe" mod= "K-Mod"
or
"Civ4BeyondSword_PitBoss.exe" mod\K-Mod
It still doesn't work, but it's a bit closer...
Quote:
Mods\K-Mod \ is an invalid mod directory, ignoring
If only I could just tell it to ignore the damn space at the end!

So, does anyone here know how to make the command line mod option work correctly?
__________________
K-Mod: Far Beyond the Sword
karadoc is offline   Reply With Quote
Old May 26, 2012, 12:41 AM   #2
karadoc
AI programmer
 
karadoc's Avatar
 
Join Date: Oct 2005
Location: Australia
Posts: 1,454
Ok. I've worked out how to get around the bug.

The following command works correctly:

Civ4BeyondSword_PitBoss.exe" mod= K-Mod\""

(note: the space after '=', and the \" at the end are important. The final " is not required unless you want to redirect stdin or stderr; but it doesn't hurt to have it in there regardless.)
__________________
K-Mod: Far Beyond the Sword
karadoc is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Multiplayer & PBEM > Civ4 - PitBoss Games > Launching a mod via the command line argument

Thread Tools

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 Off



Advertisement

All times are GMT -6. The time now is 02:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR