Creating sides?

Started by Cmd_Smith, February 19, 2015, 05:17:32 PM

Previous topic - Next topic
February 20, 2015, 11:30:23 AM #15 Last Edit: February 20, 2015, 12:00:49 PM by Cmd_Smith
wow im an idiot! I thought the class label was hoe it appeared in game....



EDIT: That wasnt it... it still wont work. I get this error after munging:
soundflmunge.exe : Warning : No files in file list test2  - while munging C:\Users\Chad\Desktop\BFBuilder\Datatest2\Sound\worlds\test2\test2.asfx



Could that be it?

February 20, 2015, 12:28:19 PM #16 Last Edit: February 20, 2015, 12:38:53 PM by -RepubliqueCmdr-
No, maps normally do that when you don't configure sound for them (which doesn't break the game because mission scripts tell the map to use sound already shipped with the game, instead of new stuff. Sound isn't as critical as stuff like Mission scripts or ODFs.)
--
If you only changed the weapons and jetpack addon, try commenting out the jetpack addon lines (just the part about adding the msh as an addon, not the jetjump type and stuff.)
I haven't messed with the addon stuff in a while, so I'm not sure if you have to do anything besides having the addon files and ODF configured it have it work.

"//" Comments out a line of code
--
Looking at your odf, I don't see anything that could break functionality besides the vader_cape animation (which I think is a munged file in IMP side assets that you can copy-paste into the Side/Munged/ of the side your working on. If commenting out the addon code lines works, then I think I know what to do to have your addons work (something about copying vader_cape animation file from IMP side assets into your side's munged folder.)
--
If issues continue, I'll try to simulate your problem on my computer to see if I can find a solution.

I deleted some stuff and commented out some.

[spoiler][GameObjectClass]

ClassLabel          = "soldier"
GeometryName       = "all_inf_snowtrooper.msh"

[Properties]
FootWaterSplashEffect    = "watersplash_sm"
WaterSplashEffect    = "watersplash_md"
WakeWaterSplashEffect   = "watersplash_wade"

UnitType      = "trooper"
IconTexture    = "all_soldier_icon"
MapTexture       = "troop_icon"
MapScale       = 1.4

GeometryName    = "all_inf_snowtrooper"
AnimationName   = "all_inf_snowtrooper"
FirstPerson      = "all\allhthtr;all_1st_hothtrooper"
FirstPersonFOV   = "70"
ThirdPersonFOV   = "65"
GeometryLowRes   = "all_inf_snowtrooper_low1"

//AnimatedAddon    = "CAPE"
//GeometryAddon    = "add_inf_jt12_jetpack"       
//AnimationAddon   = "imp_inf_vader_cape"
//AddonAttachJoint = "bone_ribcage"

//JetJump               = "7.0"     
//JetPush               = "7.0"     
//JetEffect             = "jetpack"
//JetType               = "hover"   
//JetFuelRechargeRate   = "0.1"     
//JetFuelCost           = "0.2"     
//JetFuelInitialCost    = "0.25"   
//JetFuelMinBorder      = "0.24"   


OverrideTexture      = "all_inf_soldier_hoth"
OverrideTexture2      = "Rebel_face01"

CAMERASECTION       = "STAND"

EyePointOffset       = "0.0 1.8 0.0"
TrackCenter      = "0.0 1.8 0.0
TrackOffset       = "0.0 0.0 3.5"
TiltValue      = "5.0"

CAMERASECTION       = "STANDZOOM"

EyePointOffset       = "0.0 1.8 0.0"
TrackCenter      = "0.0 1.8 0.0
TrackOffset       = "0.4 0.05 2.8"
TiltValue      = "3.5"

CAMERASECTION       = "CROUCH"

EyePointOffset       = "0.0 1.3 0.0"
TrackCenter      = "0.0 1.3 0.0
TrackOffset       = "0.0 0.15 3.5"
TiltValue      = "5.0"

CAMERASECTION       = "CROUCHZOOM"

EyePointOffset       = "0.0 1.3 0.0"
TrackCenter      = "0.0 1.3 0.0
TrackOffset       = "0.4 0.2 2.8"
TiltValue      = "3.5"

CAMERASECTION       = "PRONE"

EyePointOffset       = "0.0 0.5 0.0"
TrackCenter       = "0.0 0.5 0.0"
TrackOffset       = "0.0 0.0 3.0"
TiltValue      = "5.0"

CAMERASECTION       = "PRONEZOOM"

EyePointOffset       = "0.0 0.5 0.0"
TrackCenter       = "0.0 0.5 0.0"
TrackOffset       = "0.4 0.2 2.8"
TiltValue      = "3.5"

AimValue       = "1.0"

HealthType      = "person"
MaxHealth       = 500.0

Acceleraton       = 70.0
MaxSpeed       = 6.5
MaxStrafeSpeed       = 4.5
MaxTurnSpeed       = 4.0

WEAPONSECTION         = 1
WeaponName    = "cis_weap_inf_rifle"
WeaponAmmo    = 7
WEAPONSECTION         = 2
WeaponName    = "all_weap_inf_sniperrifle"
WeaponAmmo    = 5
WEAPONSECTION         = 3
WeaponName    = "rep_weap_inf_commando_pistol"
WeaponAmmo    = 0
WEAPONSECTION         = 4
WeaponName    = "all_weap_inf_thermaldetonator"
WeaponAmmo    = 3
WeaponChannel   = 1
WEAPONSECTION         = 5
WeaponName    = "all_weap_inf_remotedroid"
WeaponAmmo     = 4
WeaponChannel   = 1



AimFactorPostureSpecial = 50
AimFactorPostureStand    = 100
AimFactorPostureCrouch    = 140
AimFactorPostureProne    = 160
AimFactorStrafe       = 60
AimFactorMove          = 70


AISizeType            = "SOLDIER"


HurtSound            = "all_inf_com_chatter_wound"
DeathSound              = "all_inf_com_chatter_death"
AcquiredTargetSound     = "all_inf_com_chatter_acquired"
HidingSound             = "all_inf_com_chatter_hide"
ApproachingTargetSound  = "all_inf_com_chatter_approach"
FleeSound               = "all_inf_com_chatter_flee"
PreparingForDamageSound = "all_inf_com_chatter_predamage"
HeardEnemySound         = "all_inf_com_chatter_heard"
//ShockFadeOutTime      = "0.8"
//ShockFadeInTime       = "2.0"
ShockFadeOutGain        = ""
ShockSound              = ""
ClothingRustleSound     = ""
LowHealthSound          = ""
//LowHealthThreshold      = ".25"
FoleyFXClass            = "all_inf_soldier"

// squad command VO
SCFieldMoveOutSound      = "all_inf_com_chatter_tac_moveout"
SCFieldHoldSound      = "all_inf_com_chatter_tac_hold"
SCFieldFollowSound      = "all_inf_com_chatter_tac_follow"
SCDriverGetInSound      = "all_inf_com_chatter_tac_needgunner"
SCDriverGetOutSound      = "all_inf_com_chatter_tac_moveout"
SCPassengerMoveOutSound   = "all_inf_com_chatter_tac_spreadout"
SCPassengerStopSound   = "all_inf_com_chatter_tac_stop"
SCPassengerGetInSound   = "all_inf_com_chatter_tac_needgunner"
SCPassengerGetOutSound   = "all_inf_com_chatter_tac_moveout"
SCGunnerAllClearSound   = "all_inf_com_chatter_tac_allclear"
SCGunnerSteadySound      = "all_inf_com_chatter_tac_stop"
SCGunnerGetInSound      = "all_inf_com_chatter_tac_needgunner"
SCGunnerGetOutSound      = "all_inf_com_chatter_tac_moveout"
SCResponseYessirSound   = "all_inf_com_chatter_tac_yes"
SCResponseNosirSound   = "all_inf_com_chatter_tac_no"

// AIsquad command VO
AISCFieldMoveOutSound      = "ai_all_inf_com_chatter_tac_moveout"
AISCFieldHoldSound         = "ai_all_inf_com_chatter_tac_hold"
AISCFieldFollowSound      = "ai_all_inf_com_chatter_tac_follow"
AISCDriverGetInSound      = "ai_all_inf_com_chatter_tac_needgunner"
AISCDriverGetOutSound      = "ai_all_inf_com_chatter_tac_moveout"
AISCPassengerMoveOutSound   = "ai_all_inf_com_chatter_tac_spreadout"
AISCPassengerStopSound      = "ai_all_inf_com_chatter_tac_stop"
AISCPassengerGetInSound      = "ai_all_inf_com_chatter_tac_needgunner"
AISCPassengerGetOutSound   = "ai_all_inf_com_chatter_tac_moveout"
AISCGunnerAllClearSound      = "ai_all_inf_com_chatter_tac_allclear"
AISCGunnerSteadySound      = "ai_all_inf_com_chatter_tac_stop"
AISCGunnerGetInSound      = "ai_all_inf_com_chatter_tac_needgunner"
AISCGunnerGetOutSound      = "ai_all_inf_com_chatter_tac_moveout"
AISCResponseYessirSound      = "ai_all_inf_com_chatter_tac_yes"
AISCResponseNosirSound      = "ai_all_inf_com_chatter_tac_no"

DropItemClass          = "com_item_powerup_ammo"
DropItemProbability    = 0.40
NextDropItem          = "-"
DropItemClass          = "com_item_powerup_health100"
DropItemProbability    = 0.30
NextDropItem          = "-"
DropItemClass          = "com_item_powerup_dual"
DropItemProbability    = 0.10[/spoiler]


It now loads the level. However, when it comes to the class selection, the game crashes upon selecting the new class.

Next I would suggest running SPtest and checking BFront.log for additional errors.

- Download the SPtest kit attached to this post (includes the loader by battlebelk)
- Extract these files here
C:\Program Files (x86)\LucasArts\Star Wars Battlefront\GameData
- Click the "Run SPTEST" Shortcut
- Launch the map and choose the unit so the game crashes
- Check the GameData folder for a file called "BFront.log" and paste the errors to this thread

You may need to right click SPTest.exe and click from the context menu that appears "Run as Administrator" so that SPTest.exe has the priveledges to create/write to BFront.LOG file.

Also, *.LOG is a text file, which you can open in Notepad (I am not sure if windows is automatically set to open LOG files with text editor or not, but that's what should open it.)

This line does not look right to me
FirstPerson      = "all\allhthtr;all_1st_hothtrooper"

but I could be mistaken.

Also, I notice you are using GCW unit with CW era weapons. You will need to make sure all the ODFs are in the right spot for this to work.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on February 20, 2015, 02:35:02 PM
This line does not look right to me
FirstPerson      = "all\allhthtr;all_1st_hothtrooper"
Nah, I checked. My stock assets have that line in *troopersnow.ODF The reqs are there and everything.

Do check the weapons though. If they're the issue, SPTest should give us that information as well.

Yeah, Led is right. Right off the bat i realized i needed to put those .odf's from the other era in there, as well as their textures. BUT I still have a few problems! This is what the logs says:

[spoiler]Opened logfile BFront.log  2015-02-20 1836

Message Severity: 2
D:\src\FRONTLINE_PC\FrontLine\Source\Weapon.cpp(1410)
Weapon 'weapons.imp.weap.droid_probe_blaster' is not localized for stats page

Message Severity: 2
D:\src\FRONTLINE_PC\FrontLine\Source\VehicleSpawn.cpp(126)
Vehicle spawn outside command post "CP3" control region
[/spoiler]

And alas, I have no idea how to fix that. Help...? again lol

Those look more like warnings than errors.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Its more than a warning. When I select the class, it crashes.

Quote from: Cmd_Smith on February 20, 2015, 04:29:49 PM
Its more than a warning. When I select the class, it crashes.

It's likely some other issue though.  What mission lua are you using?  and what is the name of the ODF for this unit?
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

If im not mistaken, im not using a mission file. Just the all.lvl file it gives me after compiling. and i am using "all_inf_smugglersnow.odf"

February 20, 2015, 05:31:24 PM #27 Last Edit: February 20, 2015, 05:33:39 PM by Led
Quote from: Cmd_Smith on February 20, 2015, 05:17:00 PM
If im not mistaken, im not using a mission file. Just the all.lvl file it gives me after compiling. and i am using "all_inf_smugglersnow.odf"

ok, if you playing on hoth, that should be ok.  Here is a section of the hoth mission lua.

Now, this is different that what you told us previously when you showed the snowtrooper ODF. 


ReadDataFile("sound\\hot.lvl;hot1gcw");
    ReadDataFile("SIDE\\all.lvl",
        "all_fly_snowspeeder",
        "all_inf_basicsnow",
        "all_inf_lukeskywalkersnow",
        "all_inf_smugglersnow",
        "all_walk_tauntaun")
    ReadDataFile("SIDE\\imp.lvl",
        "imp_inf_basicsnow",
        "imp_inf_dark_troopersnow",
        "imp_inf_darthvader",
        "imp_walk_atat",
        "imp_walk_atst_snow",
        "imp_droid_probe")


--      Alliance Stats
    SetTeamName(ALL, "Alliance")
    SetTeamIcon(ALL, "all_icon")
    AddUnitClass(ALL, "all_inf_soldiersnow",14)
    AddUnitClass(ALL, "all_inf_vanguardsnow",3)
    AddUnitClass(ALL, "all_inf_pilot",4)
    AddUnitClass(ALL, "all_inf_marksmansnow",4)
    AddUnitClass(ALL, "all_inf_smugglersnow",3)
    SetHeroClass(ALL, "all_inf_lukeskywalkersnow")

--      Imperial Stats
    SetTeamName(IMP, "Empire")
    SetTeamIcon(IMP, "imp_icon")
    AddUnitClass(IMP, "imp_inf_storm_troopersnow",14)
    AddUnitClass(IMP, "imp_inf_shock_troopersnow",3)
    AddUnitClass(IMP, "imp_inf_pilotatat",4)
    AddUnitClass(IMP, "imp_inf_scout_troopersnow",4)
    AddUnitClass(IMP, "imp_inf_dark_troopersnow",3)
    SetHeroClass(IMP, "imp_inf_darthvader")



I still suspect you are missing some ODFs for the new weapons.  I suggest you start over and make one change at a time to isolate the issue.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on February 20, 2015, 05:31:24 PM
I still suspect you are missing some ODFs for the new weapons.  I suggest you start over and make one change at a time to isolate the issue.
I noticed he is using weapon ODFs from other side LVLs. This can be done, but if you are missing any of the additional ODFs (such as the ORDs and EXPs specified within the main ones) it will crash the game without logging anything in BFront.log, and possibly it would do that if you are missing any MSH/TGA for the weapons too.

@Smith
To quickly check to see if its the missing weapon ODFs, I would suggest changing the weapon section back to default, and testing this. If it doesn't crash, add one new weapon at a time to pinpoint the cause. Check each weapon ODF to make sure you have the other ones it calls on too.

If it isn't the weapons and you have all the files, then something else is causing the crash. BFront.log only catches some errors, certain kinds are not logged.

If all else fails, you can 7z the ODF folder in your side builder and attach it to this thread. One of the modders here can probably look thru it really quick and possibly find what is causing the crash.

February 21, 2015, 07:04:04 AM #29 Last Edit: February 21, 2015, 09:33:25 AM by Cmd_Smith
Right now, im just going to restore my all.lvl file and start from scratch, using y'all's times of course.

UPDATE: Well, I got it to work! However, the guns don't play sound and I can't find where those are located to put them in. ALSO! How do I change it from saying "wookie smuggler" to something else? How can I make him auto repair vehicles when hes in them, like pilots? Why does he still take fall damage?