Sides help thread...

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
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

I've found OnCharacterEnterVehicle(), ForceAIOutOfVehicles(), and a few others, but nothing to force a unit to enter a vehicle. Is it done using SetProperty() or do you force the player to press the enter vehicle key when they are standing close to the vehicle?
PAN-Fnord

Post by PAN-Fnord »

It's just EnterVehicle(vehicle, playerNumber)

Where "vehicle" is either a reference to a vehicle or a string that is the name of a vehicle. For vehicle names, vehicles take the name of their vehicle-spawns, so if your vehicle spawn is "snazzy" even if it's spawning X-Wings, they're snazzy1, etc. Otherwise you can actually just create a vehicle using
CreateEntity(ODFname, optionalMatrix, optionalNameForVehicle)

So you can do EnterVehicle(CreateEntity("all_fly_snowspeeder"), 1) hopefully.

Mike Z
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

Where in the .lvl file is the place that you would change to change the texture?

I want to change Aayla Securas texture to a custom texture
Alpha

Post by Alpha »

Say I want to edit the rep side for my map, what do I copy to the "Sides" folder in my data_MODID folder? And then what file to I edit with the dc: command and where is it located?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

never mind, found out how, :p
B.U.R.N_GT

modeler

Post by B.U.R.N_GT »

Waht modeler do you suggest using, and where would I get it? (sorry if this has been covered before)
Alpha

RE: modeler

Post by Alpha »

You have to use XSI.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Player Numbers

Post by [RDH]Zerted »

PAN-Fnord wrote:It's just EnterVehicle(vehicle, playerNumber)...
...So you can do EnterVehicle(CreateEntity("all_fly_snowspeeder"), 1) hopefully.

Mike Z
I'm not clear on how you can get a player's number.

And it is not documented or used anywhere, but is there a CharacterExitVehicle event?
Dark_knight

Post by Dark_knight »

the game crashes and it say fatal ereor when i have munged what did i do wrong

ERROR[levelpack mission\MMMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\mmmc_con.script.req(1)...

ucft <--
ERROR[levelpack mission\MMMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\mmmc_con.script.req(1)...

ucft <--

2 Errors 0 Warnings
Slayer_Hunter_J

Post by Slayer_Hunter_J »

Im having trouble with a geonosain jedi i am making. This is his odf, can you think of whats wrong? With all of the wing stuff its confusing. Also, i couldnt find the stuff about animations in his odf. Here it is:
[GameObjectClass]
ClassParent = "com_jedi_default"
GeometryName = "gej_geonosianjedi.msh"

[Properties]
AISizeType = "HOVER"

GeometryName = "cis_inf_geonosian"
GeometryLowRes = "cis_inf_geonosian_low1"
SkeletonName = "geo"
SkeletonLowRes = "geolz

ControlSpeed = "jet 2.00 1.25 1.25"

JetDuration = "30.0" //The duration of the jet push, until its turned off
JetJump = "8.0" //The initial jump-push given when enabling the jet
JetPush = "8.0" //The constant push given while the jet is enabled (20 is gravity)
JetEffect = "geo_wingsfly"

// the cool bit - Mike Z
AnimatedAddon = "WINGS"
GeometryAddon = "geonosianwings_folded"
AddonAttachJoint = "bone_ribcage"

JetType = "hover"
JetFuelRechargeRate = "0.5" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.1" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.2" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.3" //minimum fuel to perform a jet jump(fuel is 0 to 1)

WEAPONSECTION = 1
WeaponName = "gej_weap_lightsabre"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "center_of_gravity"
WeaponAmmo = 0
WeaponChannel = 1

WEAPONSECTION = 3
WeaponName = "force_scream"
WeaponAmmo = 0
WeaponChannel = 1


CollisionScale = "0.0 0.0 0.0"
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

>Slave Hunter

I think this is whats happening. The animation for the unit defaults in the weapon, so if you just tell him to have a pistol it defaults to the pistol animation but since you have a lightsaber its defaulting to the lightsaber animation and these lines conflict with that

SkeletonName = "geo"
SkeletonLowRes = "geolz

The animation for the lightsaber is trying to pull one way that those lines pull another way. Only prob is (which happened to my yoda when I gave him another lightsaber) the animation will pulled his bones to look like a human.(wasn't pretty) Try deleting those lines, although it may pull the geosian to look all weird!
Dark_knight

Post by Dark_knight »

Hello! In the documentations the jedi creation.doc says like this
From there, in your mod’s mission scripts, you can load your character into your level:
ReadDataFile(“dc:SIDE\\jdi.lvl”, “jdi_demojedi”)
I've tried to put it in the C:\BF2_ModTools\data_modid\Common\scripts\modid lua but when i start the game it crashes down to the deskop. Where in the lua shal i put it in? :?
Slayer_Hunter_J

Post by Slayer_Hunter_J »

Vyse wrote:>Slave Hunter
Hey, im no slave hunter! But thanks for the tip i'll try it out.

[EDIT] Sorry, it didnt work.
diabloschild

Post by diabloschild »

yeah im tryin to add some tuskens and jawas to my map in place of cis. dont know how to do. any ideas?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Post by MercuryNoodles »

Are you trying to modify the CIS files themselves, or are you trying to do a custom side with it's own folder? Well, either way, you have to put the unit odf names in the lua under the "ReadDataFile" line for whatever the side (IMP, ALL, CIS, Other3LetterSide....followed by .lvl ) is that your actual files are under. Then, you have to put them under SetupTeams so that they actually appear in the game.

Read over this thread a few times from the beginning, and ask for more specific help as needed. Most of the info you need is likely here somewhere, though it might take some time for you to actually get to what you need.
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

Since PAN doesnt seem to be answering, I'll answer the questions I know. Mwahaha :twisted:
Hello! In the documentations the jedi creation.doc says like this
From there, in your mod’s mission scripts, you can load your character into your level:
ReadDataFile(“dc:SIDE\\jdi.lvl”, “jdi_demojedi”)
I've tried to put it in the C:\BF2_ModTools\data_modid\Common\scripts\modid lua but when i start the game it crashes down to the deskop. Where in the lua shal i put it in? Confused
The new animation in that SIDE is screwed up. That's what's causing the problem. I thought it was a problem with my map earlier, guess not.
WEAPONSECTION = 1
WeaponName = "gej_weap_lightsabre"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "center_of_gravity"
WeaponAmmo = 0
WeaponChannel = 1

WEAPONSECTION = 3
WeaponName = "force_scream"
WeaponAmmo = 0
WeaponChannel = 1
Just a reminder, remember to set things like this if you have more than one WeaponChannel = 1's
WEAPONSECTION = 3
WeaponName3 = "force_scream"
WeaponAmmo3 = 0
WeaponChannel3 = 1
I'm not sure what's causing your Genosian edi to crash, I'll see if I can help ya later. :wink:
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

I though I knew how to create a side, but I guess not. I copied the entire all side into my side folder. I changed the line to load from my side folder:
ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_walk_tauntaun",
"all_hero_hansolo_tat")

Now the grame crashes when it attempts to load the level. I though that was all you needed to do. I munged the all side, then I tried munging all the sides. What step did I miss?

Edit I figured it out. I forgot the Common folder.
Last edited by [RDH]Zerted on Tue Apr 18, 2006 10:42 am, edited 1 time in total.
ruasoh

Post by ruasoh »

Way back on page one, PAN mentioned
For all others, you do indeed need to either hex edit the file or change the actual texture.
when talking about changing an existing models texture. I want to use the same model for two units (heroes that can't use multiple textures) and I need to know how to hex edit the file. I tried hex editing the .msh and changing the .tga file name, but that just causes the game to crash...Anyone know the answer?
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

I'm using custom sides, and for some reason (i cant pinpoint exactly whats causing this) I can spawn as my side, but no one else spawns on either team.

Any Ideas?

If anyone is willing to help me out here, ill send em my lua and custom side folder, and anyhting else they need..

or just post my lua here...
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Just post your lua. Normally thats where the problem is if the bots won't spawn.
Post Reply