custom powerup items

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

custom powerup items

Post by Bantha55 »

Heyho.

I tried to create a custom powerup item that´s supposed to be dropped by a jedi when he´s dead.
So I created a odf called com_item_powerup_jedi
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "powerupitem"
GeometryName = "item_powerup_jedi.msh"
GeometryScale = 0.15

[Properties]
GeometryName = "item_powerup_jedi"
BuffDefenseTimer = "20"
BuffDefenseMult = "0.5"
Lifespan = "30"
SoldierHealth = "400"
SoldierEnergy = "200"
BuffOffenseTimer = "12"
BuffOffenseMult = "1.5"

Powerupsound = "com_weap_powerup_pickup defer"

Velocity = "0.0"
Gravity = "1.0"
Rebound = "0.0"
Friction = "1.0"
Edited com_jedi_default
Hidden/Spoiler:
DropItemClass = "com_item_powerup_jedi"
DropItemProbability = 1.0
I put the new powerup icon odf in sides/common/odf and the msh belonging to it in sides/common/msh. But ingame when my hero dies the game crashes. The error report says that the dropitem can´t be found.

Does somebody knwo how I can make it work or is it just impossible?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: custom powerup items

Post by mswf »

Have you put the .msh for the powerup in the right folder?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: custom powerup items

Post by Frisbeetarian »

The game is probably not munging your new powerup. If you checked the error log, you'd probably find that it says the powerup called is missing.

The case may be that the powerups have to be part of the ingame.lvl file. If you put it with the rest of the powerups, edit the ingame.req to include only that extra powerup (you could just put it in with everything else, but that adds a bunch of extra space used), and munge common it should work. You will of course have to move the ingame.lvl over to your folder manually and reference it in your Lua script like you would when making load screens.
Post Reply