Jump to content

Recommended Posts

Posted

One of the things I'm stuck on in my mod is the Kismet. I feel like i have most of the pieces assembled but I cant get them to fit properly, so I'm going to put down what I have and hope someone out there can figure out how these go together.

 

So some of the Kismet Sequencing calls ask for teams (like get unit team and OnTurnBegin). In singleplayer this is limited to Alien, XCOM and Civilian. However there is a single call to set up multiplayer games which adds ETeam_One and ETeam_Two, which are the multiplayer teams. In order to change some sequences in the game to react correctly in multiplayer, I need to find a way to add those two teams to the standard singleplayer calls. However this is were I'm having the issue in that I cant figure out how to edit them.

 

Here's what I have so far:

(Kismet Image)

 

  Reveal hidden contents

 

 

The kismet section above seems to either draw from or be an extension of this script, SeqAct_GetUnitTeam.uc

 

 

  Reveal hidden contents

 

 

This part of the code here is what corresponds to the above kismet sequence. Logically it would seem that the solution would just be to add the teams to the correct locations, as such:

 

 

  Reveal hidden contents

 

 

However, the problem here is that this is not called into the editor. Even loading those files into the mod folder itself will still result in predictably, the editor loading its own version which is probably inside its own build.

 

Now I may just be stupid and this may just be sitting right in front of me and I just cant see it, but if anyone can figure out how to add these extra variables into the sequencing of maps, that would be lovely and it would really make my day.

Posted

You can't override them, but you can make your own. Instead of modifying the existing one you'll need to create a new class that derives from SequenceAction (for an action, at least). Modifying the existing one in xcomgame would basically make your mod a highlander mod, which you may or may not want.

 

So you can easily create a custom version (E.g. MyExtendedGetUnitTeam) that adds the additional cases to the switch in Activated(). Rebuild your mod, then launch the editor and you should be able to create a new node of your new kind by right-clicking and selecting it in the menu. I've done this for both EW and Xcom2.

 

Similarly you can create a new event by making a new class, but I have not done this myself yet so I'm not sure of the details. It looks like you can just extend SeqEvent_X2GameState and then trigger the call to kismet via "Battle.TriggerGlobalEventClass(class'MyEventClass', Battle)" but there may be some details that need to be worked out there.

 

In order to actually use the new nodes you need to make custom kismet sequences, but presumably you're already doing that. If you're defining a new mission type it's probably easiest to make a copy of the mission map (Obj_whatever.umap) that is closest to what you want and then make your changes there. Then you can set your new map to be used for the missions in xcommissions.ini in the "MapNames" array.

Posted

Oh, perfect! This is exactly what I needed and its making everything work perfectly!

 

Or, at least it is giving me the option to make everything work perfectly. In reality merging two completely different game modes with completely different rules is really racking my brain but as far as it now being possible, I'm extremely happy. Now I just have to figure this nonsense out with where everything has to go.

  • Recently Browsing   0 members

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