Jump to content
Newfoundking

Campaign Mission and map

Recommended Posts

Yes, even the great mod gods need help some times.

Just outta curiousity, I'm playing with some files, and I can't seem to figure it out, but where can one find the Campaign script. Not the mission, but the little freeplay-like part that comes between the original missions to earn certain vheicles or upgrades. I want to fool around with this script, such as change what vehicles you work for etc, but where would I find this?

Any help is welcome :)

Link to comment
Share on other sites

For the cars I am pretty sure they're in the UNIT.xml

<campaign>
<missions value="2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 21">
<prototype name="mod:Prototypes/Vehicles/Ambulance/nef.e4p" />
<freeplay>
<missions value="2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 22">
<prototype name="mod:Prototypes/Vehicles/Ambulance/nef.e4p" />

Link to comment
Share on other sites

Thats how to run them from the missions, but I mean the target vehicles to unlock from campaign mode.. Like you have to buy an NEF or a tow or something

When playing the missions (in german) I click weiter, which is next and that takes me to the campaign map, this loads a freeplay like scenario that demands that I collect points to buy an NEF and a water tender or something along those lines. Understand what I mean now?

Try playing original unmodded game to see

Link to comment
Share on other sites

In the Specs Folder, there is a file called campaign_params.xml

I think this could be the file that needs editing because this it contains things like

campaign mission 1 before mission 02
-->
<Mission index = "2">
<InitialEventWaitDuration value="42.0"/>
<MaxConcurrentlyEvents value = "1" />
<FinalMaxConcurrentlyEvents value = "2" />
<StartBudget value = "12500" />
<InjuredSavedReward value = "500" />
<StartTime hour = "16" minute = "00" />
<IntroText id = "ID_CAMP_INTRO_M02" />
<SolvedText id = "ID_CAMP_SOLVED_01" />

<Quest>
<Task>
<Type value = "1" />
<Text id = "ID_QUEST_M02_TASK01" />
<Vehicle id = "NEF" price = "15000" />
<CheckSpecialMessage value = "1" />
<CheckBudget value = "20000" />
<SpecialMessage id = "ID_SUPERV_CAMP_INTRO_B" />

The Task bit at the bottom looks like the thing you would need to change, but I haven't tried it, so I might be wrong.

Link to comment
Share on other sites

I went through and tried changing it to different variables as well as constants and I've gotten no where.. Still loads up with a different garage and a different set of vehicles then the ones I asked for...

Like instead of having an ambulance and an RW, I want to be able to have my ambo and resucein the garage... Haven't figured that much out yet... dunno if it should have a specifc mission value in the Unit.xml or what. And alsoinstead of unlocking an NEF and water tender, I want to unlock an EMS car and engine... Changed it from the NEF to the ID for the ems car, and I still get the NEF.. Only thing I can find to change is in the lang file for it

Link to comment
Share on other sites

I was playing around with the files and I figured it out.

I swapped the GTF with the towtruck (ASF)

In the ASF Unit.xml file, I changed this

<campaign>
<missions value="3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20">

to this

<campaign>
<missions value="2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20">

and did the same for the freeplay bit at the bottom.

In the quest.xml file (in the lang folder), I changed this

<string name="ID_QUEST_M02_TASK02">GTF Großraumtankfahrzeug kaufen! (%d Credits)</string>

to this

<string name="ID_QUEST_M02_TASK02">ASF Abschleppfahrzeug kaufen! (%d Credits)</string>

And I changed the bit in the Campaign_params file. I did the first mission and in the freeplay bit after the first mission, the target was to buy an ASF instead of the GTF.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...