Page 1 of 1

Just a quick question...and now another...erm...little help?

Posted: Sun Jun 18, 2006 11:42 am
by Wadi
I have been spending this morning reading the Jedi creation doc and shouting at my PC when I load my level and, for the umpteenth time, my hero isn't there. I think (fingers crossed) that I've now got it down to one problem: the line "ReadDataFile...etc" that it tells you to put into "your mission script". It doesn't actually give me any clue where to put it. So where does it go?

RE: Just a quick question...

Posted: Sun Jun 18, 2006 11:59 am
by Murdocr
you need to put dc: before the readDatafile, eg:

ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",

RE: Just a quick question...

Posted: Sun Jun 18, 2006 2:28 pm
by Wadi
Okay great, that works. But now, my Jedi crashes the game to desktop! I know that's not right. Here is the jedi ODF, it's jsut basic, nothing flash. I hope to be able to use it to make Wadi the Scottish Jedi once I've retextured the model...but see if you can spot what's wrong with it, it's probably a right mess but it's a learning curve...

Code: Select all

[GameObjectClass]
ClassParent           = "com_jedi_default"
GeometryName            = "jed_inf_jedi.msh"

[Properties]
AISizeType              = "HOVER"

GeometryName        = "jed_inf_jedi"
GeometryLowRes      = "jed_inf_jedi_low1"
OverrideTexture     = "jed_inf_jedi02"

AnimationName           = "mace"
//ClothODF        = "rep_inf_ep3obiwan_skirt"

HealthType              = "person"
MaxHealth           = 200.0
AddHealth           = 20.0

MaxSpeed                = 8.0
MaxStrafeSpeed          = 6.0
MaxTurnSpeed            = 5.0
JumpHeight              = 3.5
RecoverFromTumble       = "1"


//Jet Jump 
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
//Jet Jump End

WEAPONSECTION = 1
WeaponName1           = "jdi_weap_demo_lightsaber"
WeaponAmmo1           = 0



VOUnitType                  = 0181
//SoldierMusic            = "rep_hero_ObiWan_lp"
HurtSound                   = ""
DeathSound                  = ""
AcquiredTargetSound         = ""
HidingSound                 = ""
//ApproachingTargetSound    = ""
FleeSound                   = ""
PreparingForDamageSound     = ""
HeardEnemySound             = ""
ShockFadeOutTime            = ""
ShockFadeInTime             = ""
ShockFadeOutGain            = ""
ShockSound                  = ""
ClothingRustleSound         = ""
//LowHealthSound          = "com_inf_saber_ambient"
LowHealthThreshold      = "1.1"
FoleyFXClass            = "rep_inf_soldier"
If anybody wants to see the lightsaber ODF or anything, just ask if you think it'll help find out where I'm going wrong.

RE: Just a quick question...

Posted: Sun Jun 18, 2006 4:53 pm
by fat_walrus
Do you have a combo file? That was the problem for me then It loaded fine :)

RE: Just a quick question...

Posted: Mon Jun 19, 2006 12:33 pm
by Wadi
Yeah, but it's just mace's combos copied straight from his folder in assets.

RE: Just a quick question...

Posted: Mon Jun 19, 2006 12:50 pm
by Teancum
Or much easier, load mace into memory as well

just add

ReadDataFile("SIDE\\REP.LVL, "rep_hero_macewindu")

and it will load his animations without copying files and creating more headaches. You don't have to add him to available characters, but he's in memory to use his anims.

RE: Just a quick question...

Posted: Mon Jun 19, 2006 4:21 pm
by fat_walrus
Thanks for the tip Teancum ;)

RE: Just a quick question...

Posted: Sun Jun 25, 2006 1:43 pm
by Wadi
okay, I've implemented both those...my hero no longer has a combo file, ut still uses "mace", and the game now loads windu from ReadDataFile. However, my map now crashes to desktop just after side selection, so I don't even have the chance to see if my Jedi works. Those are the new symptoms - anybody care to diagnose, because I can't see anything wrong with my LUA or nay ODF's.