Page 1 of 1

New jedi not working

Posted: Wed Dec 03, 2008 10:44 pm
by fiddler_on_the_roof
So I've been working on a custom jedi, and I beleive that I have done everything correctly.
I made a new side, clonejedi, and I have a munged folder
inside the munged folder,

Code: Select all

aayla's anims, 
humansabre anims
I have a req folder, with my trooper req.

Code: Select all

ucft
{
    REQN
    {
        "class"
        "clonejedi_inf_ep3_cloneaayla"
    }
}
I have a msh folder.

Code: Select all

imp_inf_weap_lightsaber
reversed_hilt
rep_inf_trooper_low1
rep_inf_trooper_low1.msh.option
rep_inf_trooper
rep_inf_trooper.msh.option
In the munged folder there is a PC folder.
contents.

Code: Select all

rep_inf_trooper
rep_inf_trooper.tga.option
I have a odf folder.
contents

Code: Select all

clonejedi_inf_ep3_clonaayla
com_weap_(forcepowers)
rep_inf_default_rifleman
rep_weap_lightsabre_aalya
here is the clonejedi_inf_ep3_cloneaayla.odf, and then the rep_inf_default_rifleman

Code: Select all

[GameObjectClass]
ClassParent         = "com_jedi_default"

[Properties]
GeometryName        = "rep_inf_trooper"
GeometryLowRes      = "rep_inf_trooper_low1"

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default"

AISizeType          = "HOVER"

[Properties]
Label               = "Republic Trooper"
UnitType            = "trooper"
IconTexture         = "rep_trooper_icon"

GeometryName        = "rep_inf_trooper"
GeometryLowRes      = "rep_inf_trooper_low1"

AnimationName       = "aalya"

//JetJump

JetJump             = "10.0"    //The initial jump-push given when enabling the jet
JetPush             = "0.0"     //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration     = "10.0"    // for characters with jet jump, use this acceleration for in air control
JetEffect           = ""
JetFuelRechargeRate = "0.0" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost         = "0.0" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost  = "0.0" //4initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder    = "0.0" //minimum fuel to perform a jet jump(fuel is 0 to 1)
JetShowHud          = 0
JetEnergyDrain      = 40.0
CollisionScale      = "0.0 0.0 0.0" // don't take damage from collisions

///JetJumpEnd

[Properties]
WEAPONSECTION = 1
WeaponName1         = "imp_inf_weap_lightsaber"
WeaponAmmo1         = 0
WeaponChannel1      =1

WEAPONSECTION = 2
WeaponName2         = "com_weap_inf_saber_throw"
WeaponAmmo2         = 0
WeaponChannel2      = 1

WEAPONSECTION = 3
WeaponName3         = "rep_weap_inf_forcepush"
WeaponAmmo3         = 0
WeaponChannel3      = 1

WEAPONSECTION = 4
WeaponName4        = "rep_weap_inf_mindtrick"
WeaponAmmo4         = 0
WeaponChannel4      = 1

VOUnitType        	= 121
I also have the proper effects, and I added the unit to the lua, and it doesn't work
lua.

Code: Select all

    ReadDataFile("dc:SIDE\\clonejedi.lvl",
                             "clonejedi_inf_ep3_cloneaayla")
some stuff
        AddUnitClass(REP, "clonejedi_inf_ep3_cloneaayla",1,4)
the problem is the unit dosn't show up in the game. what do I need to do?

thanks

Re: New jedi not working

Posted: Thu Dec 04, 2008 3:10 am
by AQT
Does this side have a .req file? (based on the information you provided)

Re: New jedi not working

Posted: Thu Dec 04, 2008 4:35 pm
by fiddler_on_the_roof
Yes, it does, here it is.

Code: Select all

ucft
{
    REQN
    {
        "lvl"
        clonejedi_inf_ep3_cloneaayla
    }
}

Re: New jedi not working

Posted: Thu Dec 04, 2008 4:42 pm
by AceMastermind
Did you create a folder in _BUILD\sides named clonejedi? Does your new clonejedi folder include a munge.bat copied from the All folder?

Sources offering step by step instructions for side creation:
Creating a new side
Editing an existing side
\BF2_ModTools\documentation\BF2 Jedi Creation.doc

Re: New jedi not working

Posted: Thu Dec 04, 2008 4:50 pm
by Fiodis
All side REQs I've seen have quotes around the unit's name, but that might not matter.

Re: New jedi not working

Posted: Thu Dec 04, 2008 5:09 pm
by fiddler_on_the_roof
Ok, you are right about the req, I totally didn't see that, thanks Fiodis.

Ace, I changed the munged and clean.bat to from the ALL folder.

Thanks

edit1--
AceMastermind wrote: Sources offering step by step instructions for side creation:
Creating a new side
Ok, I cheched and I did everything correctly, but it still doesn't work, I munge the clonejedi side, specifically, and there still is no .lvl file!! :cpu:

Please Help!!

Re: New jedi not working

Posted: Fri Dec 05, 2008 10:23 am
by RogueKnight
Can you post your munge log?

New jedi crashing.

Posted: Fri Dec 05, 2008 8:14 pm
by fiddler_on_the_roof
I Think I found what is wrong, munging...

I found the error, and it munged, but now when I try to spawn as the unit, the game crashes. also, it showed the character with the blasterrifle. How do I fix this?

Thanks!!! :bowdown:


EDIT
So I got my unit onto my map, and if I'm fast enough, I can see the unit, and the weapons it has before the map crashes. I've been looking through everything and I seemed to have done everything right, but it still crashes. :cpu:

Please help, and if you need files, just let me know.

thanks :bowdown:

Re: New jedi not working(solved, at least getting in game.)

Posted: Fri Dec 05, 2008 8:21 pm
by AceMastermind
I merged your new topic with your original one, it's best to keep it all in the same topic.
And we need more information from you regarding the crash before we can begin to help(e.g. logs, errors, etc)

Re: New jedi not working(unsolved!)

Posted: Sun Dec 07, 2008 9:04 pm
by fiddler_on_the_roof
Please help!!!!!

In my munge log, there is nothing pertaining to the clonejedi, and I can't get to the error log because I don't use the disk when I play.

Any ideas?

thanks

BTW- I tried to create a normal unit(a unit just with a gun) but the game still craches. I looked through the tutorial thoroughly, but can't find what needs to be done, or what I am doing wrong! :cpu: gtpwn

Re: New jedi not working(unsolved!)

Posted: Mon Dec 08, 2008 3:19 pm
by BLACK9_KNIGHT
Your odfs aren't linked together. Make one odf, not two, and put this in for it. Should do the trick.

Code: Select all

[GameObjectClass]
ClassParent         = "com_jedi_default"

AISizeType          = "HOVER"

[Properties]
Label               = "Republic Trooper"
UnitType            = "trooper"
IconTexture         = "rep_trooper_icon"

GeometryName        = "rep_inf_trooper"
GeometryLowRes      = "rep_inf_trooper_low1"

AnimationName       = "aalya"

//JetJump

JetJump             = "10.0"    //The initial jump-push given when enabling the jet
JetPush             = "0.0"     //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration     = "10.0"    // for characters with jet jump, use this acceleration for in air control
JetEffect           = ""
JetFuelRechargeRate = "0.0" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost         = "0.0" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost  = "0.0" //4initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder    = "0.0" //minimum fuel to perform a jet jump(fuel is 0 to 1)
JetShowHud          = 0
JetEnergyDrain      = 40.0
CollisionScale      = "0.0 0.0 0.0" // don't take damage from collisions

///JetJumpEnd

[Properties]
WEAPONSECTION = 1
WeaponName1         = "imp_inf_weap_lightsaber"
WeaponAmmo1         = 0
WeaponChannel1      =1

WEAPONSECTION = 2
WeaponName2         = "com_weap_inf_saber_throw"
WeaponAmmo2         = 0
WeaponChannel2      = 1

WEAPONSECTION = 3
WeaponName3         = "rep_weap_inf_forcepush"
WeaponAmmo3         = 0
WeaponChannel3      = 1

WEAPONSECTION = 4
WeaponName4        = "rep_weap_inf_mindtrick"
WeaponAmmo4         = 0
WeaponChannel4      = 1

VOUnitType           = 121

Re: New jedi not working(unsolved!)

Posted: Mon Dec 08, 2008 4:53 pm
by fiddler_on_the_roof
Ok, I fixed that, and the game doesn't crash until I try to spawn as the unit. Also, the unit still has clone anims, and looks like he is holding a rifle, and there are no sabers.
BTW- I created another unit that works fine, and doesn't make the map crash, but it is just a droid with a gun.
OFF-TOPIC(kind-of)I want to get a jetpack on the droid, but not the clone or imp jetpck, I want the droids backpack to be the jetpack. Is there any way I can do this. I mean that I want there to be no jetpack on its back, just the normal backpack it comes with.

thanks

Re: New jedi not working(unsolved!)

Posted: Mon Dec 08, 2008 8:34 pm
by Master_Ben
For the jet pack thing you would probably have to add a hardpoint to create a jet effect, then copy some code from the jettrooper odf about flying.

Re: New jedi not working(unsolved!)

Posted: Thu Dec 11, 2008 5:09 pm
by fiddler_on_the_roof
K, thanks.

anyone have ideas on the jedi?