Page 1 of 1
2 questions- Resizing a msh and custom powerups
Posted: Sat May 24, 2008 5:51 am
by Silas
1.For my map that i'm making, i need a powerup dispenser that creates a powerup that increases your unit's speed for a short time. I know this was done with a force power(in the spoiler below), but i'm not sure how to apply this with a powerup. The blue words are what i think is what i'm looking for, but i'm not sure
although im slightly confused why the animation is choking...but this is apparently the odf for the burst of speed force power. Any help with this would be great
2. On resizing stuff, i know u use the geometry scale thing, but is there anything else involved? i vagualy remember something about altering the .msh or soemthing, but i can't remember
Re: dos preguntas sobre resizing y powerups
Posted: Sat May 24, 2008 9:31 am
by Grev
I would change the soldier anim to like power up or grenade throw, and then just add an effect.
Re: dos preguntas sobre resizing y powerups
Posted: Sat May 24, 2008 2:52 pm
by Fingerfood
2. I believe it involves going into the .msh and adding/changing GeometryScale (or whatever it is) to negative the scale in the odf. Example: 2.0 in odf. -2.0 in msh.
Re: dos preguntas sobre resizing y powerups
Posted: Sat May 24, 2008 3:16 pm
by FragMe!
For the msh you need to create a nameofmsh.msh.option file with the following in it:
-scale 0.5
that makes it half the size.
If it is an object and you want it to look right in ZE you must add the following to the objects odf file under properties
GeometryScale = "0.5"
not totally sure the "s are required but most things do.
Re: dos preguntas sobre resizing y powerups
Posted: Sat May 24, 2008 5:30 pm
by Maveritchell
Put simply, you can't apply that weapon as it is to a powerup. If you were to try to create such a weapon as you describe, you'd have to do it using a .lua callback. And in that case you wouldn't have the speed change be affected until the unit respawned. (And it would affect every unit of that class, not a single unit).
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 5:23 am
by Silas
FragMe! wrote:For the msh you need to create a nameofmsh.msh.option file with the following in it:
-scale 0.5
that makes it half the size.
If it is an object and you want it to look right in ZE you must add the following to the objects odf file under properties
GeometryScale = "0.5"
not totally sure the "s are required but most things do.
is that all i need to do? Just make a .msh.option and put GeometryScale = "0.5" (to cut in half) in it? or is there anything else i should do?
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 5:30 am
by Aman/Pinguin
That's all.
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 8:19 am
by Silas
sigh...not having much luck here. To try this out, i chose the rifle. i gave it the pistol animation, which worked, and tried to make it smaller, which did not work. here's what i did:
in rep_weap_inf_rifle.msh.option
and that's all
in rep_weap_inf_rifle
anyone see what my problem is?
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 11:16 am
by FragMe!
First for weapons you don't have to put the line in the odf as that is only for seeing things correctly in ZE which of course you don't see weapons there.
Will get back to you on the other bit.
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 11:37 am
by MandeRek
The .msh.option needs to look like this:
.25 is the same as 0.25 so doesn't matter actually.. Leave out the odf line, it's only needed when added in ZE as Frag said

Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 11:45 am
by FragMe!
just tested it and it works, for the rep_weap_inf_rifle.msh there is a .option file already in the PC folder for the REP side make sure you add the -scale thing to that one not create a new one as it will get ingored.
Re: dos preguntas sobre resizing y powerups
Posted: Sun May 25, 2008 5:24 pm
by Silas
hmmm...well is it a problem if i have no .msh.option files anywhere? I looked in the PC folder in the Rep's msh folder, but i not only lack a msh.option for rifle, but for everything else too. Is that normal?
Re: dos preguntas sobre resizing y powerups
Posted: Mon May 26, 2008 3:56 am
by Fingerfood
Okay, not to take over, but I'm having problems resizing too.
My odf
My .msh.option:
I don't know if it works ingame, but it sure doesn't work in ZE.
Oh, and try using search for .msh.option and see what turns up,
Silas.
Re: dos preguntas sobre resizing y powerups
Posted: Mon May 26, 2008 4:48 am
by AceMastermind
Fingerfood wrote:Okay, not to take over, but I'm having problems resizing too.
My odf
Code: Select all
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "tat2_bldg_wall_8M.msh"
[Properties]
GeometryName = "tat2_bldg_wall_8M"
GeometryScale = "10.0"
FoleyFXGroup = "stone_foley"
Should be:
Code: Select all
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "tat2_bldg_wall_8M.msh"
GeometryScale = 10.0 //this only applies to ZeroEditor not ingame
[Properties]
GeometryName = "tat2_bldg_wall_8M"
FoleyFXGroup = "stone_foley"
Re: dos preguntas sobre resizing y powerups
Posted: Mon May 26, 2008 5:23 am
by Silas
tried searching and came up with the BF2 Jedi creation docs. nothing else. is it possible to just create my own, or should i just reinstall the tools?

Re: dos preguntas sobre resizing y powerups
Posted: Mon May 26, 2008 8:50 am
by FragMe!
So if you look in the BF_Modtools/assets/sides/rep/msh (and msh/pc) you don't see any .option files?
Re: dos preguntas sobre resizing y powerups
Posted: Mon May 26, 2008 11:19 am
by MandeRek
Impossible.. Probably the name says rep_inf_rifle.msh, and the FileType says OPTION.
Check if there is a rep_1st_weap_inf_rifle file, and rep_1st_weap_inf_rifle.msh file.. Also, you can just make your own one in Notepad.. Make sure it's an option file, and not a Text (.txt) file called blabla.option(.txt)
Try and see

Re: dos preguntas sobre resizing y powerups
Posted: Tue May 27, 2008 5:27 am
by Silas
lol wow. yeah, I checked the properties of the second rigle .msh I have, and discovered it was in fact an option file. I just added the line -scale 0.5 and it worked fine. thanks for the help there. Only a one thing to hopefully quickly wrap up.
Is there anyway to make a powerup that increases your speed temporarily?

Re: dos preguntas sobre resizing y powerups
Posted: Tue May 27, 2008 12:17 pm
by Maveritchell
Silas wrote:Is there anyway to make a powerup that increases your speed temporarily?

Pretty sure I answered that about a page back.
Re: dos preguntas sobre resizing y powerups
Posted: Tue May 27, 2008 3:09 pm
by Silas
ah. accidently missed that when i made my reply. oh well.