Konargus Posted April 9, 2016 Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Konargus Link to comment Share on other sites More sharing options...
Deleted32045420User Posted April 9, 2016 Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Guest Link to comment Share on other sites More sharing options...
Konargus Posted April 9, 2016 Author Share Posted April 9, 2016 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 More sharing options...
davidlallen Posted April 9, 2016 Share Posted April 9, 2016 Are you using the standard approach of editing the localization files? That should affect all the menu text. Link to comment Share on other sites More sharing options...
Konargus Posted April 9, 2016 Author Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Konargus Link to comment Share on other sites More sharing options...
Deleted32045420User Posted April 9, 2016 Share Posted April 9, 2016 Since int files are not getting into the base game the only way I know of doing this is adding the new files into the folder manually but if there's a mod already doing this take a look at ir Link to comment Share on other sites More sharing options...
Konargus Posted April 9, 2016 Author Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Konargus Link to comment Share on other sites More sharing options...
Recommended Posts