Thrawn's Revenge

Imperial Civil War [Empire at War] => Discussion, Suggestions & Feedback => Empire at War and Forces of Corruption => Topic started by: melbournelad on October 13, 2012, 08:43:48 PM

Title: Modding Help
Post by: melbournelad on October 13, 2012, 08:43:48 PM
Just have a quick question on coding, some space units i added in are able to fire, however they are not targetable and they do not move. Is there a line in the code i missed?
Title: Re: Modding Help
Post by: Corey on October 13, 2012, 08:45:26 PM
Are they selectable?
Title: Re: Modding Help
Post by: melbournelad on October 14, 2012, 04:57:16 AM
Well i couldn't actually test that as i added them to a new non playable minor faction, but when i am playing against them, the red icon to attack does not appear when hovering over the unit, just the normal FOC cursor. Oh and this is also the case with the vanilla underworld starbase i added back in.
Title: Re: Modding Help
Post by: melbournelad on October 20, 2012, 12:43:52 AM
I fixed but have one more question, is it possible to change the victory conditions? instead of Galactic_All_Planets_Controlled, is it possible to make it that when a certain number of planets are controlled you win?
Title: Re: Modding Help
Post by: Corey on October 20, 2012, 01:08:03 AM
You can also do Galactic_Control_Named_Planets where if you control the named planets (listed in another line of code) the player will win. I'm not sure if you can directly do a victory condition based on a number, but you might be able to fudge it with a story script. Both are things we've actually thought about doing to address the freeze issue indirectly.
Title: Re: Modding Help
Post by: melbournelad on October 20, 2012, 06:20:09 AM
Okay thanks, yeah i saw the Galactic_Control_Named_Planets line in the code, but would that still work with 60-70 plantes listed instead of about 3?
I guess there is one limitation with that option even if it worked though, because it would have to be those specific planets instead of say 60% of random planets. Also, how do those effect the freeze issue?
Title: Re: Modding Help
Post by: Corey on October 21, 2012, 03:00:42 PM
Okay thanks, yeah i saw the Galactic_Control_Named_Planets line in the code, but would that still work with 60-70 plantes listed instead of about 3?

I can't think of any reason why it wouldn't.

Also, how do those effect the freeze issue?

It wouldn't directly, but it could allow us to focus the GC a bit more. From what we've read, the most common time for a freeze tends to be during the final cleanup of some insignificant planets, so if we focused it more around themajor ones, then it could be avoided.
Title: Re: Modding Help
Post by: melbournelad on October 27, 2012, 03:14:36 AM
Just have two more questions;

1. Ive added some troopers to a hero comapny as an escort. However ingame they appear as two seperate units, is there any way for them to be in the same green circle when you select them?
2. I gave a vehicle the ability to garrison units. But when i select an infantry squad to garrison inside, and hover the cursor over the vehicle it appears as the normal ingame mouse cursor, instead of the icon to garrison?
Title: Re: Modding Help
Post by: melbournelad on November 03, 2012, 05:12:44 PM
Sorry to ask again if no one knows, but still haven't been able to figure out these two issues^^. What line in the code do i need to fix?