Changing the starting date?

This forum has been archived. Please use the new modding forum. If you need to retrieve a thread from here, contact BattleGoat.

Moderators: Balthagor, BattleGoat

Post Reply
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Changing the starting date?

Post by Boeing707 »

I wanna make it so the Cold War scenerio starts in the 1980's. Is there a way to do it? And can you also make it for the AI to use nukes in a first strike? Also, under the Cold War scenario file, what does "aistance" mean?

Also: Can I change how aggressive a country acts?
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Changing the date is easy, changing the starting techs, unit designs, relationsships, colonies, independences, events, leaders etc etc to match the starting date is what would take time and work.

Aistance is probably an old code that was never removed.
making the AI do anything is pretty much outside the realm of modding. You can adjust what unit classes they use for specific tasks but thats about it.
There is a an old setting in the .CVP that adjusts each countries overall aggressiveness toward the player but I can't say for certain if it still functions.
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Ah, okay. Thanks anyway.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Minor correction. Using the event system you can force the AI to do things. But events are time based scripts for lack of a better description. You can put an event in that makes the AI do a first strike(like its done in shadow of the bear for example), but it will happen every game at the scripted time(although you could add a huge sense of randomness to it, sometime in a 50 year time line for example). Good for scripted scenarios not so much for more open sandbox types, since its an action not a reaction based event system.

To illustrate a bit better.
I want to have the USSR do a first strike on the U.S. inbetween 1959 and 1965: Possible, but it would happen even if the U.S. and USSR are the best of freinds when the event triggers.

I want to have the USSR do a first strike on the U.S. if relations fall to X or if war is declared: not possible
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Ah, sounds very interesting. But guess I would need more experience before trying that.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Boeing707 wrote:Ah, sounds very interesting. But guess I would need more experience before trying that.
Naw the event system is pretty easy. There is a series of spaces and you plug in the numbers to match the action/date/variables etc. You can force the player to do stuff with it as well if your not careful though :lol:

http://www.supremewiki.com/index.php/Custom_Events_CW
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Okay, one more question. What do I put under eventparam? It doesn't say on the Wiki.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Depends on the event. Which event are you doing. (some you can leave it blank, most its the message sent to the player when the event triggers and others its some variable)

Event param = main param on the event ID chart.
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

I'm trying to get the USSR to declare war on the United States.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Boeing707 wrote:I'm trying to get the USSR to declare war on the United States.
Event 17.. main param is email# you can leave it blank and it will send the default war declaration notice.

\Supreme Ruler Cold War\Localize\LOCALEN theres a file called local text- news items. You can use that to find the number if you want a more specific message sent.
Last edited by Fistalis on Dec 10 2011, edited 1 time in total.
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Ah, okay. Now to just wait and see if it works. Do I have to rebuild the cache file after making changes to the CSV file? Sorry for all the questions. :oops:
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Boeing707 wrote:Ah, okay. Now to just wait and see if it works. Do I have to rebuild the cache file after making changes to the CSV file? Sorry for all the questions. :oops:
Depends on where the CSV is called in the scenario file. Are you editing the default campaign?
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Yes.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Changing the starting date?

Post by Fistalis »

Boeing707 wrote:Yes.
Yes that .CSV is built into the cache. An easier way would be to make a new .CSV for your events have have it called up on load. (easier to test stuff ect without having to cache)

Create a new text file and copy/paste this at that top.

Code: Select all

// SCENARIO ADJUSTMENTS
&&REGIONSCEN

 


&&SEVENTS
then put your new events afterward.



Then save it as custom.csv

Then open your scenario file and fine this area.

Code: Select all

#endifset

#include "LocalText-RegionsGC.csv", "SCENARIO\", Y
#include "Cold War-Text.csv", "SCENARIO\", Y
and make it look like this

Code: Select all

#endifset

#include "custom.csv"
#include "LocalText-RegionsGC.csv", "SCENARIO\", Y
#include "Cold War-Text.csv", "SCENARIO\", Y
save it. and your good to go without caching.
A note though its setup for the .csv to be in the SAME folder as the .scenario file.

edit: no problem, the more I get other people to be familiar with modding the less I will have to answer questions. :wink:

Edit2: Make sure you have show extensions on in windows otherwise your new file will be named custom.csv.txt and you'll never know it. :lol:
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
Boeing707
Lieutenant
Posts: 94
Joined: Oct 05 2010
Human: Yes

Re: Changing the starting date?

Post by Boeing707 »

Well, I cached it. But I don't think it's working.
Post Reply

Return to “Modding SRCW”