Matrix Games Forums

Come and see us during the Spieltagen in Essen!New Screenshots for Pike & ShotDeal of the Week Command: Modern Air/Naval Operations WOTYCommand: Modern Air/Naval Operations WOTY is now available!Frontline : The Longest Day Announced and in Beta!Command gets Wargame of the Year EditionDeal of the Week: Pandora SeriesPandora: Eclipse of Nashira is now availableDistant Worlds Gets another updateHell is Approaching
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

New Interface button

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Decisive Campaigns: Case Blue >> Mods and Scenarios >> New Interface button Page: [1]
Login
Message << Older Topic   Newer Topic >>
New Interface button - 9/12/2012 12:57:31 AM   
LiquidSky


Posts: 875
Joined: 6/24/2008
Status: offline
Adding a new button to the front page of the game:

Open the file defaultmod.txt in the main folder, it will look like this:

Case Blue

1
dccbmodgraphics
dccbscenarios
dccbsound
natocounters
intro.ogg

21
1,7,-485,540,LOAD SAVED GAME,4,
1,7,-485,500,LOAD SCENARIO,3,dccbscenarios\
1,7,-227,570,TRAPPENJAGD,1,dccbscenarios\campaign1.dc2
1,7,-227,610,CASE BLUE (FULL) ,1,dccbscenarios\campaign2.dc2
1,7,-227,500,CASE BLUE (SHORT),1,dccbscenarios\campaign2s.dc2
1,7,-227,650,URANUS (FULL),1,dccbscenarios\campaign3.dc2
1,7,-227,690,URANUS (SHORT),1,dccbscenarios\campaign3s.dc2
1,7,25,500,2ND KHARKOV,1,dccbscenarios\2ndkharkov.dc2
1,7,25,540,VORONEZH,1,dccbscenarios\voronezh.dc2
1,7,25,640,1ST PANZER ARMY,1,dccbscenarios\1stpanzer1.dc2
1,7,-485,580,IMPORT ZIP,15,
1,7,-485,620,QUIT,5,
1,7,275,580,TUTORIAL,2,dccbscenarios\Tutorial3.dc2
1,7,275,500,PBEM++,16,
1,18,-485,460,OPS,1,
1,18,-227,460,MAIN CAMPAIGN SCENARIOS,1,
1,18,-227,540,OTHER CAMPAIGN SCENARIOS,1,
1,18,25,460,SMALL SCENARIOS,1,
1,18,25,600,LINKED SCENARIO CAMPAIGN,1,
1,18,275,460,PBEM++,1,
1,18,275,540,TUTORIAL,1,


Notice the number of items below the 21 is well, 21. Each one of those items is a button on the first screen when you load up the game, with information on what file to run if you click on it.

In my PBEM game, my friend Steve sends me the same file name everytime, which I dutifully dump in my savedgames folder. SO in order to run that file with the click of a button, I increment the 21 to a 22 (since I will now have 22 items) and add this line after the QUIT button:

1,7,-485,660,STEVE,1,savedgames\Steve@Joe.dc2

This adds a button called STEVE which, when clicked, will load the saved game Steve@Joe.dc2. (not an email address )

For those curious, the 1, 7, represents the button...the 1, 18 is a label.

The -485 is the x coordinate of the button, and the 660 is the y coordinate. I just followed the buttons behind it by adding 40 to the y coordinate.

If you want to add a Mod, like Redmarkus' mod, you can do this:

1,7,-227,730,REDMARKUS,1,dccbscenarios\RedmarkusMod.dc2 which would put it after the URANUS (SHORT) button.

Just remember to change the 21 to the actual number of items in the list below it.

< Message edited by LiquidSky -- 9/12/2012 12:58:36 AM >


_____________________________

What's the sense of sending $2 million missiles to hit a $10 tent that's empty?

— President George W. Bush, Oval Office meeting, 13 September 2001.
Post #: 1
RE: New Interface button - 9/12/2012 4:55:15 PM   
redmarkus4


Posts: 4107
Joined: 12/1/2007
From: 0.00
Status: offline
Wow - very good find!

Do you mean 'add a Mod', or 'add a Scenario' in your third line from the bottom?

_____________________________

Cyberpower tower PC
Intel Core i7-3930k CPU, 3.20GHz processor
32 GB RAM
2TB HD
2xNVIDIA GeForce GTX 680 graphics cards, each with 4095 MB
Realtek sound card
Dell 3007WFP (running at 2560x1600) 32 bit monitor
Windows 7 Professional 64-bit O

(in reply to LiquidSky)
Post #: 2
RE: New Interface button - 9/12/2012 8:52:34 PM   
LiquidSky


Posts: 875
Joined: 6/24/2008
Status: offline

Bassically where REDMARKUS is the name of the button.
Its location is at -277,730 which puts it just under the URANUS(SHORT) button.
dccbscenarios\RedmarkusMod.dc2 is the folder\filename of the scenario you want the button to run. I invented the name, as I dont have yours (or Ritter's) mod yet.

If it is in a different folder (within the CaseBlue main folder) you would use it instead.... folder\name.dc2

You still have to put the file in the correct location..this is just a means of running it from the entry screen.



EDIT:

Oh, I see...yes, if the file is in the mods folder then you would use mods\NameOfModFile.dc2 instead of dccbscenarios....

if it is in a subfolder of mods...you could use mods\subfolder\NameOfModFile.dc2

and so on.

< Message edited by LiquidSky -- 9/12/2012 8:55:37 PM >


_____________________________

What's the sense of sending $2 million missiles to hit a $10 tent that's empty?

— President George W. Bush, Oval Office meeting, 13 September 2001.

(in reply to redmarkus4)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Decisive Campaigns: Case Blue >> Mods and Scenarios >> New Interface button Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.066