Jump to content

"mission_researches" not Giving Research.


Recommended Posts

As it is, it won't work because there's multiple <MissionResearch> entries and the game doesn't know how to load them.

There's two ways to fix this. Firstly, as Solver suggests, use MODMERGE="replace" on the top level. That will work, but it will make it incompatible with any other mods which use that file (e.g. Lore+) as it will replace everything in that file with just the FTD stuff.

Secondly, a new feature has been added in which allows you to effectively merge these kinds of files (see the last post in this thread).

However, I've just realised that this method won't quite work, as there's no child with a unique entry (you can't use the mission type, the research type or the UFO type as the entries for these are all repeated). To be fully modular, that file needs a unique identifier for each entry like a 'name' variable or something.

Link to comment
Share on other sites

I don't think so, no, because again it would need a unique identifier.

For it to work, I think the file needs to be something like:

<MissionResearch name="whatever">

<AllTheChildren/>

</MissionResearch>

In which case MODMERGEATTRIBUTE="name" MODMERGE="insert" would work. Or:

<MissionResearch>

<Name/>

<AllTheOtherChildren>

</MissionResearch>

In which case the new additional merging feature could be used.

Link to comment
Share on other sites

I don't think so, no, because again it would need a unique identifier.

For it to work, I think the file needs to be something like:

<MissionResearch name="whatever">

<AllTheChildren/>

</MissionResearch>

In which case MODMERGEATTRIBUTE="name" MODMERGE="insert" would work. Or:

Yes. This file is used to unlock a specific research after completing GC with the given UFO and mission, right? In that case I suggest using a specific id to uniquely mark each specific item. So something like

<MissionResearch id="modname_idinmod" MODMERGEATTRIBUTE="id">

Where "id in mod" could be even plain numbering, but it'll be better to use actually something that identifies the item, so that a possible mod on top could mod it again using a well-defined id.

EDIT: Added MODMERGEATTRIBUTE to example.

Edited by llunak
Link to comment
Share on other sites

On a related matter, Solver, you told me this would all be working with the final of 0.27. Is that ready to come out yet?

Yes. Put MODMERGE="replace" on your top level element and you can release. I played with Lore+ last night, did 3 missions and got the scouting, research and ground attack techs from them, no problem.

Link to comment
Share on other sites

  • 1 month later...

I do know about the MODMERGE="replace", however I wish to retain compatibility with other mods that utilize mission_researches. Has this:

Yes. This file is used to unlock a specific research after completing GC with the given UFO and mission, right? In that case I suggest using a specific id to uniquely mark each specific item. So something like
<MissionResearch id="modname_idinmod" MODMERGEATTRIBUTE="id">

Where "id in mod" could be even plain numbering, but it'll be better to use actually something that identifies the item, so that a possible mod on top could mod it again using a well-defined id.

EDIT: Added MODMERGEATTRIBUTE to example.

Been implemented or is working right now?

Link to comment
Share on other sites

  • 4 weeks later...
I do know about the MODMERGE="replace", however I wish to retain compatibility with other mods that utilize mission_researches. Has this:

Been implemented or is working right now?

Came here because of interest in FTD, the thread looked dead so I followed it here. Still looks dead. What's the status on this? Really interested in seeing a properly working version!

Link to comment
Share on other sites

  • 4 weeks later...
Has this:

...

Been implemented or is working right now?

Yes and yes (what's the difference between the two?), as far as I can say. Curent X:CE even has its own mission_researches.xml updated to show this in the commented out examples. Is there still something that needs to be done here?

Link to comment
Share on other sites

Yes and yes (what's the difference between the two?), as far as I can say. Curent X:CE even has its own mission_researches.xml updated to show this in the commented out examples. Is there still something that needs to be done here?

There's currently no way of uniquely identifying entries for merging purposes, which I think was the problem. (Unless this was changed for XCE 0.31. I've not looked at that yet.)

Link to comment
Share on other sites

I don't understand what you mean. There are no stock entries, and any newly added can have them added the way I've described. Or am I missing something?

Do you mean this description?:

So something like
<MissionResearch id="modname_idinmod" MODMERGEATTRIBUTE="id">

Where "id in mod" could be even plain numbering, but it'll be better to use actually something that identifies the item, so that a possible mod on top could mod it again using a well-defined id.

I'd read that as a suggestion rather than something that is currently possible (there is currently no ID variable defined in the file, at least not in the commented out example). But is it in fact possible simply to add in a new ID variable without it being defined in the base file?

Link to comment
Share on other sites

Yes, I mean that description. And while it was just a suggestion, it should be a working one (it doesn't matter there's no id in your example file (presumably from older X:CE), it's just another XML attribute and it'll be used only for the purposes of the merging).

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.

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...