Jump to content
We see you're using an ad blocker of some kind. And hey, that's okay! Some of us do, too! We just want you to know
that we don't use conventional spammy ads at CNCNZ.com. We only link to our own internal projects, or other sites
within the Command & Conquer community! Who knows, you might see a mod or download you like! Thanks!
Sign in to follow this  
someguy11

Sidebar MCC

Recommended Posts

First, change the Command_ComputerCounterMeasures's property from UnitAbilityButtonTemplate to PlayerPowerButtonTemplate;

then, open Your mod's Xml\System\PlayerSpellBook.xml, and add.....

<PlayerPowerManager
id="ModuleTag_ComputerCounterMeasures"
SpecialPowerTemplate="SpecialPowerComputerCounterMeasures" />

.... in a suitable place.

Share this post


Link to post
Share on other sites

First, change the Command_ComputerCounterMeasures's property from UnitAbilityButtonTemplate to PlayerPowerButtonTemplate;

 

Could you go into more detail on how to do that?

Share this post


Link to post
Share on other sites
Change
<SpecialPowerButton
Id="Command_ComputerCounterMeasures">
<State
Image="Button_PlayerPowerComputerCountermeasures"
Title="NAME:PlayerPowerComputerCounterMeasures"
TypeDescription="TYPE:PlayerPowerComputerCounterMeasures"
Description="DESC:PlayerPowerComputerCounterMeasures" />
</SpecialPowerButton>

to

<PowerButton
id="SpecialPowerComputerCounterMeasures">
<State
Image="Button_PlayerPowerComputerCountermeasures"
Title="NAME:PlayerPowerComputerCounterMeasures"
TypeDescription="TYPE:PlayerPowerComputerCounterMeasures"
Description="DESC:PlayerPowerComputerCounterMeasures" />
</PowerButton>

then, open Your mod's Xml\System\PlayerSpellBook.xml, and add.....

<PlayerPowerManager
id="ModuleTag_ComputerCounterMeasures"
SpecialPowerTemplate="SpecialPowerComputerCounterMeasures" />

after <!-- NOD powers --> ,and remove NODTempleOfNODCommandSet's ComputerCounterMeasures button

Edited by ztz2019

Share this post


Link to post
Share on other sites

After making the changes and attempting to compile, I get the following error

 

"Critical Error: ButtonComputerCounterMeasures.Data has less than 1 PlayerPowerButtonTemplateDataRef elements"

 

 

attached - the modded xml

PlayerPowerButtonTemplate.xml

Edited by someguy11

Share this post


Link to post
Share on other sites

This is TiberiumVibrationScan's code from KW's staticstream.big checked by Wrathed. See what you missed. And you'd better avoid the new Playerpowerbutton's name is the same as original UnitAbilityButton.

    <PlayerPowerButtonTemplate
        id="ButtonTiberiumVibrationScan"
        SpecialPower="SpecialPower_TiberiumVibrationScan">
        <Data>
			<Power
				StateData="ButtonStatePlayerPowerTiberiumVibrationScan"/>
		</Data>
	</PlayerPowerButtonTemplate> 
	
	<ButtonSingleStateData
        id="ButtonStatePlayerPowerTiberiumVibrationScan">
        <State
            Image="Button_PlayerPowerTiberiumVibrationScan"
            Title="NAME:PlayerPowerTiberiumVibrationScan"
            Description="DESC:PlayerPowerTiberiumVibrationScan"
            TypeDescription="TYPE:PlayerPowerTiberiumVibrationScan" />
    </ButtonSingleStateData>

	<LogicCommand 
		id="Command_TiberiumVibrationScan" 
		Type="SPECIAL_POWER" Options=""> 
		<SpecialPower>SpecialPower_TiberiumVibrationScan</SpecialPower> 
	</LogicCommand>
	<PlayerPowerManager
		id="ModuleTag_PlayerPowerManager_Reaper17TiberiumVibrationScan"
		SpecialPowerTemplate="SpecialPower_Reaper17TiberiumVibrationScan"
	/><!--from PlayerSpellBook.xml--> 

 

If you still cause crash, I've no idea, either. Since Wrathed seems not claimed playerpower without target's entry, I just search xsd and try to write like this.

Edited by ztz2019

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×