Jump to content

changing countrys coalition while editing


Recommended Posts

Posted

Well the title says it, is there a way to change the countrys coalition after i've already started editing?

 

 

I've found something in the mission file inside the miz file -

["coalitions"] = 
   {
       ["blue"] = 
       {
           [1] = 11,
           [2] = 8,
           [3] = 13,
           [4] = 5,
           [5] = 16,
           [6] = 6,
           [7] = 15,
           [8] = 20,
           [9] = 12,
           [10] = 9,
           [11] = 10,
           [12] = 3,
           [13] = 4,
           [14] = 2,
       }, -- end of ["blue"]
       ["red"] = 
       {
           [1] = 18,
           [2] = 0,
           [3] = 19,
           [4] = 1,
       }, -- end of ["red"]
   }, -- end of ["coalitions"]

 

 

Can someone say which number is for which country and if changing will do any damage to the mission? (no triggers)

 

 

Thanks.

Xcom

Posted

You can do this but you also have to edit the section where all the units reside. In your example, say you move country 19 from red to blue, you will need to:

 

remove [3] = 19 from red and insert it to blue as [15] = 19

 

Then...

 

find the mission = {, then within that the coalitions = { and within that the ["red"] = {

 

under there, you will find the [3] = { which contains all the units belonging to that country. You will need to move this to the mission > coalitions > blue as [15].

 

Should work - I've done this several times now without issues. It's just a bit tricky to find the parts to move when you have lots of units. Maybe worth trying it with a very simple mission with only two units to practice.

Posted

I'm pretty sure the code you listed in your first post is just for showing which countries belong to which coalition on the briefing screen. It may do other stuff, but thats the one thing that makes a noticeable change. Then ya gotta go copy that entire countries table into the right coalition.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

I've uploaded my mz file.

 

I've managed add the USA to both coalitions and make USA units in red and blue coalition.

Will this make any problems with the mission?

 

For example there are A-10C units in the Red coalition with country USA and in the Blue coalition there are KC-135 tankers, I've tested the tankers they seem to respond to Blue coalition A-10C and possible to refuel.

 

Thanks for your help Puddlemonkey & Grimes.

TEST.miz

Posted

Well, the idea of the mission is that it is a global mission meaning it is a free flight, aerobatics, target practice, dogfighting mission.

 

So divided into 2 sides, red coalition will have no ammunition for free flight and aerobatics, blue coalition will do target training, air refueling, dogfighting.

 

problem is that some of the planes that i want to fly in the red side cannot be selected in other countrys in the blue side and therefore I cannot add them.

 

This actualy did solve it but i found that after few hours that the mission was running it started throwing off anyone who tried to connect with a crash, uploaded the crash log here.

I think I'll just try to remake some of the mission with the correct coalitions.

Posted (edited)

Theres a problem with the mission for some reason, I changed the coalitions back to they way it was in the start.

some people can connect to it and some get the game crash right as they connect.

 

I opened a new thread regarding this in the multiplayer section, i beleive it has something to do with the server configuration -

http://forums.eagle.ru/showthread.php?t=101305

 

If anyone got an idea what the problem is I'd much appriciate any help cuz I've tried everything but redoing the mission completly.

 

Thanks.

Edited by xcom
  • 1 month later...
Posted

There are two entries in the mission file that deal with coalitions: (1) There is the "[coalitions]" key, which defines the countries that belong to each coalition. And (2) the "[coalition]" key, which defines all the groups and units of various types for each country in the coalition (among other things). It is not impossible to do what you want, but it can get very confusing.

Posted

Hi,

 

I am also wondering why the heck there is no button to click on and you get right away into the coalition window. I remember a mod in FC2, which added a button to get into the coalition window again while editing a mission. Is it that much of an abstract idea to change coalitions after you startet your mission? :helpsmilie:

 

I hope there is an easier why on how to change coalitions during a mission beeing edited than going through some lua scripts and tinker around.

 

I bet there are some geniuses here in the forum who are capable of redoing the patch or mod from FC2 which adds a simple button to the mission editor and calls up the coalition window. MAny thanks in advance to the guy who will make this possible. :thumbup:

 

Fly save

 

Demon

[sIGPIC][/sIGPIC]

Founder of the -=VDS=-

:pilotfly:

Posted

Demon, you're thinking of Blindspot's ME mod for FC2/BS1. I miss those features, too. In fact, I've been trying to teach myself Lua so that I can reproduce some of Blindspot's features in the DCSW ME. So far, I've successfully implemented the Hide All, Show All, and Toggle buttons in the Units List Panel. I don't plan to implement his trigger-logic extensions, but I would like to have the change coalition feature.

Posted
Demon, you're thinking of Blindspot's ME mod for FC2/BS1. I miss those features, too. In fact, I've been trying to teach myself Lua so that I can reproduce some of Blindspot's features in the DCSW ME. So far, I've successfully implemented the Hide All, Show All, and Toggle buttons in the Units List Panel. I don't plan to implement his trigger-logic extensions, but I would like to have the change coalition feature.

 

 

:thumbup::thumbup:

 

If you make a button which opens up the window like the "new Mission" does, that would be wonderfull. Is there a way to implement FC2 mod into DCS?

 

Cheers

 

Demon

[sIGPIC][/sIGPIC]

Founder of the -=VDS=-

:pilotfly:

Posted

Adding a button is the easy part. Trying to figure out what changes need to be made to the proper tables and actually making the changes are the hard part.

 

FC2 and DCSW are too dissimilar to allow an FC2 mod to work in DCSW.

Posted

Ok...

 

So as I understand I can not change country on Dragons The Dam mission cause USA is red. So when I change to Norway the plane then turns blue.

 

I can not change this? Well, without hefty editing?

 

How did the Dragons do this then...?

Posted

He made the mission with USA on red.

 

When you create a mission you can edit the coalitions as you see fit. But once you hit "ok" on that box, you can only modify the countries via the mission file.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

Update:

 

This is regarding the Dragons - The Dam mission.

 

I managed to open the .Miz file and I even changed the color of the Norwegian A-10s from blue to red.

 

However. When I tested the mission, the loadtime took longer then usual, and when I got in my plane I got a message stating that the sam sites above the damn dam had been destroyed.

 

So... I can not do this...

 

Again, I ask for help from the community. :)

Posted

Taproot. The easy way out is to register "RUS" as a valid country for your skin. This can be done just adding more countries in the config file for the skin. Like this country=["USA","NOR","RUS"]

 

138th.Jack

Posted
Taproot. The easy way out is to register "RUS" as a valid country for your skin. This can be done just adding more countries in the config file for the skin. Like this country=["USA","NOR","RUS"]

 

138th.Jack

 

This is not the easiest way since we have so many skins... However, seems thats the only choice I have..

 

I tried this, and I just typed in all the countries. The skin now list on all the countries, but when I enter the game the sim shows the default skin.

 

Any ideas?

Posted

Start flying the F-15? :D

 

No, but when the skin is enabled for all the countries that the A-10C is registered in the skin should show. Try a new mission and add the aircraft from the aircraft icon in ME (do not copy) and select a RUS A-10C one with your skin, does it show in SP as "Player"?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...