Jump to content

How to load a mod before cinematics, main menu?


Konargus

Recommended Posts

Hello,

I need to load my mod before cinematics, main menu, or launcher.

How do I do it?

Do I need to extend X2DownloadableContentInfo, or something else?

I tried adding

---

static event InitGame ()

{}

---

But nothing happens.

Maybe I need to call my mod from InitGame ()? But how?

 

A little explanation:

I've made localization, but it seems mod is loaded after main menu.

Edited by Konargus
Link to comment
Share on other sites

What do you mean? You've made localisation files for a new language as a part of stock game or did you have a mod you have made localisation files for? Technically speaking it's not easy to get a mod activated before the main menu and I don't know if it's possible, and about your "code" you can't just add functions to classes and just believe it's gonna work, my advice is to learn about coding before trying to edit scripts because that'll save you a whole lot of trouble and mistakes like this one, in short for an event or function to activate it needs to be called and since the game dosnt know of any initgame function at it's base that event won't get called at all. Edited by Guest
Link to comment
Share on other sites

Yes, I've made "localisation files for a new language as a part of stock game".

When I'm replacing specific files, it's working. But when I'm trying to load a mod with this files, Main menu and some buttons stay in English.

Link to comment
Share on other sites

Yes, standard approach. Also, weird thing is happening, when I try to delete xcomgame.int (in game folder), which contains most of english text about menus and descriptions, game picks those texts again from somewhere. But if I delete all localiazation files in INT (eng) folder, game have no main menu at all.

Edited by Konargus
Link to comment
Share on other sites

Yeah, manually it's working. But I want it to work through steam.

I've found the reason of this. There some cooked startup files (ex: Startup_LOC_INT.upk)

Probably they contain localized text also. Now I need to understand how to uncook, change and cook them again.

UPD: Nope, they have nothing of this sort...

Edited by Konargus
Link to comment
Share on other sites

  • Recently Browsing   0 members

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