PDA

View Full Version : Modding Singleplayer (Hyperspacing etc.)


bertel
19th Oct 04, 6:16 AM
This has probably been asked before, but since the search is down and some browsing didn't bring results....

I think I understand how to add/change/subsystems in general. But how do I change this for singleplayer? Specifically, I'd like to add the ability to build hyperspace modules and gravwells on my carriers/bc (optionally with the respective research required) so they work just like in MP. The hgn_battlecruiser.ship file seems to has this already.

Is there a file that "switches off" certain modules for SP or is there a different config file for SP ships?

Cheers

bertel
19th Oct 04, 7:23 AM
The last thing I tried is adding the following to m11_final_core.lua:

Player_UnrestrictBuildOption(0, "Hgn_C_Module_Hyperspace")
Player_UnrestrictBuildOption(0, "Hgn_C_Module_HyperspaceInhibitor")
Player_UnrestrictBuildOption(0, "Hgn_C_Module_CloakGenerator")

As I understand it, this should enable Hyperspace, Grav Well, and Cloaking modules on my Carriers in mission 11. It doesn't. Is this file the right the right place to try this at all?

Leman
21st Oct 04, 8:46 AM
Maybe you need to unrestrict the mothership modules at the same time?

bertel
21st Oct 04, 8:54 AM
I'll try it, thanks.

I got it working as described in my last post (stupidly put the code in the wrong place). Now I can build the modules - but they get lost when the level ends. That is, they no longer show up in the build manager and the ships that have them can no longer jump (icon is disabled), but the module icon for the hyperspace module is still present on the ships that had them built, the mod uses a module slot on the respective ships, and can be retired. Weird...

CKarl
21st Oct 04, 12:08 PM
Maybe you will have to 'Unrestrict' it for all the levels?