Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Apr 23, 2024 8:34 am
All times are UTC + 0
my custom player powers wont show up
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Guest123
Vehicle Driver


Joined: 23 May 2010
Location: New Zealand

PostPosted: Wed Jul 21, 2010 9:46 am    Post subject:  my custom player powers wont show up
Subject description: i have made reinforcement powers for each soldier of gdi but they dont show up
Reply with quote  Mark this post and the followings unread

hi ive been having trouble with special powers for some time now(not just these ones) and have followed tuts on getting them in-game. this is what they have told me:
1: copy playerpowerbuttons.xml and change the id
2:add command button
3:create power in the powers file
4:(in my case)create ocl
5:add power to structure
i have referenced everything required in my mod.xml and my powers dont show up no matter what structure i apply them to.

Back to top
View user's profile Send private message
Cantdrawbutmod
Rocket Cyborg


Joined: 19 Oct 2009

PostPosted: Wed Jul 21, 2010 10:39 am    Post subject: Reply with quote  Mark this post and the followings unread

A reinforcement power for each gdi soldier that is also a player power and should be added to a structure creating an ocl applied to a structure #Shocked
...
Ok i'm absolutely completely lost,let's try to go back at square one,please tell us what you wanted to do,because you might have mixed up logics or something along the way.

Back to top
View user's profile Send private message
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Wed Jul 21, 2010 11:38 am    Post subject: Reply with quote  Mark this post and the followings unread

I know from Generals that you must also add the powers to the Powers sidebar. I ain't sure if you have done that already.

Back to top
View user's profile Send private message Send e-mail Skype Account
Stygs
Cyborg Cannon


Joined: 27 Nov 2005
Location: Germany

PostPosted: Wed Jul 21, 2010 1:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Note that PlayerPowerButtonTemplates.xml cant be edited the same way as the weapon.xml or other files:

You need to add the PlayerPowerButtonTemplates.xml to your mod, than change the id in the beginning of the file from "PlayerPowerButtonTemplateStore" to something else (like PlayerPowerButtonTemplateStoreNew) and then add you new player power buttons to the file.

Its important to remember: If you dont change the id, your new buttons wont show up.
If you dont include all old buttons from TW, they will not appear ingame anymore.

_________________

Back to top
View user's profile Send private message Skype Account
Guest123
Vehicle Driver


Joined: 23 May 2010
Location: New Zealand

PostPosted: Thu Jul 22, 2010 4:08 am    Post subject: Reply with quote  Mark this post and the followings unread

What i have done is copied the gdiairborne power, ocl and button(and added _custom to the end of the module's id) and changed them to what i want. i have also updated the logiccommand and logiccommandset files.

eg.

in PlayerPowerButtonTemplates.xml

<TargetedPowerButton
ValidTargetCursor="Bombard"
id="SpecialPowerCallSupportGDIMissile">
<State
Image="Portrait_GDIMissileSquad"
Title="NAME:PlayerPowerGDIMissile"
TypeDescription="TYPE:PlayerPowerGDIMissile"
Description="DESC:PlayerPowerGDIMissile" />
</TargetedPowerButton>

in ObjectCreationLists.xml

<ObjectCreationList
id="OCL_CallSupportMissile">
<CreateObject
Options="IGNORE_ALL_OBJECTS DONT_SET_PRODUCER ISSUE_MOVE_AFTER_CREATION MOVE_USES_EVACUATE_AND_EXIT MOVE_TARGET_USES_OFFSET"
Disposition="LIKE_EXISTING">
<Offset
x="0"
y="0"
z="100"></Offset>
<CreateObject>GDIV35Ox_CallSupportGDIAirborneRockets</CreateObject>
</CreateObject>
</ObjectCreationList>

in GDICommandPost.xml

<OCLSpecialPower
id="ModuleTag_CallSupportRockets"
SpecialPowerTemplate="SpecialPowerCallSupportGDIMissile"
TriggerFX="FX_GDICallForTransportFlare"
OCL="OCL_CallSupportMissile"
CreateLocation="CREATE_AT_EDGE_NEAR_SOURCE"
/>
<AISpecialPowerUpdate
id="ModuleTag_CommandPostCallRocketsAI"
CommandButtonName="Command_CommandPostCallRockets"
ReinforceDistance="800.0"
SpecialPowerRadius="300.0"
SpecialPowerAIType="SPECIAL_POWER_REINFORCEMENT"
/>

in LogicCommand.xml

<LogicCommand
Type="SPECIAL_POWER"
id="Command_CommandPostCallRockets">
<SpecialPower>SpecialPowerCallSupportGDIMissile</SpecialPower>
</LogicCommand>

in LogicCommandSet.xml

<LogicCommandSet
id="GDICommandPostCommandSet">
<Cmd>Command_ConstructGDIMedicalCenter</Cmd>
<Cmd>Command_CallSupportGDIAirborne</Cmd>
<Cmd>Command_CommandPostCallRockets</Cmd>
<Cmd>Command_CommandPostCallCommando</Cmd>
<Cmd>Command_CommandPostCallGrenadiers</Cmd>
<Cmd>Command_CommandPostCallEngineer</Cmd>
<Cmd>Command_CallSupportHunterKillerTeam</Cmd>
<Cmd>Command_TogglePower</Cmd>
<Cmd>Command_SelfRepair</Cmd>
<Cmd>Command_Sell</Cmd>
</LogicCommandSet>

gdi airborne and the snipers are the only powers that appear and they appear in the player powers list to the side and where standard unit abilities and upgrades would be.

my mod is aiming to make units be brought in by dropship so this is a vital part of it.

Back to top
View user's profile Send private message
Cantdrawbutmod
Rocket Cyborg


Joined: 19 Oct 2009

PostPosted: Thu Jul 22, 2010 6:04 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm not sure about the ValidTargetCursor="Bombard" but it's probably not that important.

In LogicCommand.xml you're missing an entry,the original gdi support had those:

<LogicCommand
Type="SPECIAL_POWER"
id="Command_CallSupportGDIAirborne">
<SpecialPower>SpecialPowerCallSupportGDIAirborne</SpecialPower>
</LogicCommand>

<LogicCommand
Options="NEED_TARGET_POS"
Type="SPECIAL_POWER"
id="Command_CommandPostCallAirborne">
<SpecialPower>SpecialPowerCallSupportGDIAirborne</SpecialPower>
</LogicCommand>

In LogicCommandSet.xml,in

<LogicCommandSet
id="PlayerSpellBookCommandSet">

there's an <Cmd>Command_CommandPostCallAirborne</Cmd> entry that you may need to have an equivalent for too.

Back to top
View user's profile Send private message
Stygs
Cyborg Cannon


Joined: 27 Nov 2005
Location: Germany

PostPosted: Thu Jul 22, 2010 6:53 am    Post subject: Reply with quote  Mark this post and the followings unread

As far as i know you also need to add them into the GDIPowerStore.xml & PlayerSpellBook.xml to make them work.

_________________

Back to top
View user's profile Send private message Skype Account
Golan
Flamethrower


Joined: 21 Nov 2007

PostPosted: Thu Jul 22, 2010 7:52 am    Post subject: Reply with quote  Mark this post and the followings unread

You need a PlayerPowerManager in the PlayerSpellBook object, like this:
Code:
         <PlayerPowerManager
            id="PlayerPowerManagerModule_PlayerPower_GDIIonCannon"
            SpecialPowerTemplate="PlayerPower_GDIIonCannon"
         />

_________________
Off Duty.

Back to top
View user's profile Send private message
Guest123
Vehicle Driver


Joined: 23 May 2010
Location: New Zealand

PostPosted: Thu Jul 22, 2010 8:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the info ill go see if it works

Back to top
View user's profile Send private message
Guest123
Vehicle Driver


Joined: 23 May 2010
Location: New Zealand

PostPosted: Thu Jul 22, 2010 9:29 am    Post subject: Reply with quote  Mark this post and the followings unread

thanks for the help it works now

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1848s ][ Queries: 11 (0.0166s) ][ Debug on ]