Object not spawning

Ask questions, discuss ideas, get answers
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Object not spawning

Post by Vilespring »

I found the well done Immolator mod, which replaces the allied AA gun with a AA gun on an M10 hull. I decided to balance this out by giving the Germans a tiger tank hull with a flak 38 gun on it. I got the model working with some con file editing, and the debugger didn't pickup any problems when loading. So, It was perfect. The problem is, there are NO German flak 38s on tigers on the map! They spawn when I type "game.spawnObject Flak_38" into the debugger, but why are they not on the map? :? Should I upload the con file for you guys to look through?
Last edited by Vilespring on Sun Jan 06, 2013 8:03 pm, edited 1 time in total.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Object not spawning

Post by Swaffy »

Is this an SSM (server side mod) or CSM (client side mod)?

Also, did you addTemplate the turret to your vehicle's ComplexBundle?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Object not spawning

Post by Vilespring »

I's a client side mod, and I integrated most of the tiger's objects and renamed the built items using the name "TigerCarriage" instead of just "Tiger". That was because it replaced the vanilla tigers. Another object was created called "TigerCarriage" using a new player controlled object with name "TigerCarriage." Also, Flak 38 uses the same con file, but has the player controlled object is names "Flak_38." This is the con file for you to look through.




rem *** TigerCarriage ***
ObjectTemplate.create PlayerControlObject Flak_38
ObjectTemplate.setNetworkableInfo TigerBodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 4
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 8
ObjectTemplate.explosionDamage 5
ObjectTemplate.drag 2
ObjectTemplate.mass 25000
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.speedMod 0.75
ObjectTemplate.exitTimer 1
ObjectTemplate.hitpoints 125
ObjectTemplate.maxhitpoints 125
ObjectTemplate.material 50
ObjectTemplate.criticalDamage 12
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 6
ObjectTemplate.hpLostWhileUpSideDown 10
ObjectTemplate.hpLostWhileDamageFromWater 10
ObjectTemplate.addArmorEffect 50 e_PanzDamage 0/1/-1.6
ObjectTemplate.addArmorEffect 12 e_PanzFire 0/1/-1.4
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate Flak_38
rem -------------------------------------
ObjectTemplate.addTemplate lodTigerCarriage
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.3/0.5/0 0/0/0
ObjectTemplate.GUIIndex 75
ObjectTemplate.setVehicleIcon "Vehicle/Icon_tiger.tga"
ObjectTemplate.setVehicleIconPos 62/97
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTHeavyTank
ObjectTemplate.setToolTipType TTHeavyTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** lodTigerCarriage ***
ObjectTemplate.create LodObject lodTigerCarriage
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate TigerCarriageComplex
ObjectTemplate.addTemplate TigerCarriageSimple
ObjectTemplate.addTemplate TigerCarriageWreck
rem -------------------------------------
ObjectTemplate.lodSelector TigerCarriageLodSelector


rem *** TigerCarriageComplex ***
ObjectTemplate.create Bundle TigerCarriageComplex
ObjectTemplate.geometry Tiger_Hull_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate TigerCarriageEntry
ObjectTemplate.setPosition 0/0/1.2
ObjectTemplate.addTemplate TigerCarriageEntry
ObjectTemplate.setPosition 0/0/-1.199
ObjectTemplate.addTemplate TigerEngine
ObjectTemplate.addTemplate flak38_body
ObjectTemplate.setPosition 0/0.45/0
ObjectTemplate.addTemplate TigerCarriageHullHatch
ObjectTemplate.setPosition -1.199/0.65/1.8
rem -------------------------------------


rem *** TigerCarriageEntry ***
ObjectTemplate.create EntryPoint TigerCarriageEntry
ObjectTemplate.setEntryRadius 3.5


rem *** TigerCarriageTrackL ***
ObjectTemplate.create AnimatedBundle TigerCarriageTrackL
ObjectTemplate.loadSoundScript Sounds/TigerTrackL.ssc
ObjectTemplate.geometry Tiger_TrackL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/Tiger_TrackL_M1.ske
ObjectTemplate.setAnimatedTextureSpeed -0.012/0
rem -------------------------------------
ObjectTemplate.addTemplate TigerWheelL2
ObjectTemplate.setPosition -0.119/0.15/2.5
ObjectTemplate.setRotation -179.999/0/0
ObjectTemplate.addTemplate TigerWheelL2
ObjectTemplate.setPosition -0.119/0/-2.499
ObjectTemplate.setRotation -179.999/0/0
ObjectTemplate.addTemplate TigerWheelL3Dummy
ObjectTemplate.setPosition -0.079/-0.159/-1.793
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3
ObjectTemplate.setPosition -0.229/-0.159/-1.258
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3Dummy
ObjectTemplate.setPosition -0.079/-0.159/-0.764
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3DummySmoke
ObjectTemplate.setPosition -0.229/-0.159/-0.254
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3Dummy
ObjectTemplate.setPosition -0.079/-0.159/0.26
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3
ObjectTemplate.setPosition -0.229/-0.159/0.745
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3Dummy
ObjectTemplate.setPosition -0.079/-0.159/1.3
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelL3Dummy
ObjectTemplate.setPosition -0.229/-0.159/1.695
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
rem -------------------------------------


rem *** TigerCarriageWheelL2 ***
ObjectTemplate.create SimpleObject TigerCarriageWheelL2
ObjectTemplate.geometry Tiger_whe2L_M1
ObjectTemplate.hasResponsePhysics 1



rem *** TigerCarriageTrackR ***
ObjectTemplate.create AnimatedBundle TigerCarriageTrackR
ObjectTemplate.loadSoundScript Sounds/TigerTrackR.ssc
ObjectTemplate.geometry Tiger_TrackR_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/Tiger_TrackR_M1.ske
ObjectTemplate.setAnimatedTextureSpeed -0.012/0
rem -------------------------------------
ObjectTemplate.addTemplate TigerWheelR2
ObjectTemplate.setPosition 0.12/0.15/2.5
ObjectTemplate.setRotation -179.999/0/0
ObjectTemplate.addTemplate TigerWheelR2
ObjectTemplate.setPosition 0.12/0/-2.499
ObjectTemplate.setRotation -179.999/0/0
ObjectTemplate.addTemplate TigerWheelR3Dummy
ObjectTemplate.setPosition 0.05/-0.159/-1.793
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3
ObjectTemplate.setPosition 0.2/-0.159/-1.256
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3Dummy
ObjectTemplate.setPosition 0.05/-0.159/-0.764
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3DummySmoke
ObjectTemplate.setPosition 0.2/-0.159/-0.254
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3Dummy
ObjectTemplate.setPosition 0.05/-0.159/0.26
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3
ObjectTemplate.setPosition 0.2/-0.159/0.745
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3Dummy
ObjectTemplate.setPosition 0.05/-0.159/1.3
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
ObjectTemplate.addTemplate TigerWheelR3Dummy
ObjectTemplate.setPosition 0.2/-0.159/1.695
ObjectTemplate.useAsBone 0/0/0
ObjectTemplate.setBoneOriginOffset 0/0/0
rem -------------------------------------


rem *** TigerCarriageWheelR2 ***
ObjectTemplate.create SimpleObject TigerCarriageWheelR2
ObjectTemplate.geometry Tiger_whe2R_M1
ObjectTemplate.hasResponsePhysics 1


rem *** flak38_body ***
ObjectTemplate.create RotationalBundle flak38_body
ObjectTemplate.setNetworkableInfo flak38_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/flak38Carriage.ssc
ObjectTemplate.geometry flak38_lavett_m1
rem -------------------------------------
ObjectTemplate.addTemplate flak38_gun
ObjectTemplate.setPosition 0/0.899/0.373
ObjectTemplate.addTemplate Flak38_Seat
ObjectTemplate.setPosition 0.57/0.6/-0.429
ObjectTemplate.addTemplate flak38_handle1
ObjectTemplate.setPosition 0/0.08/-0.449
ObjectTemplate.setRotation 0/0/90
ObjectTemplate.addTemplate flak38_handle2
ObjectTemplate.setPosition 0/0.815/-0.215
ObjectTemplate.addTemplate flak38_pedal
ObjectTemplate.setPosition 0/0.393/0.423
ObjectTemplate.addTemplate flak38_targeter
ObjectTemplate.setPosition 0/1.186/-0.576
rem -------------------------------------
ObjectTemplate.setMaxSpeed 100/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX


rem *** flak38_gun ***
ObjectTemplate.create RotationalBundle flak38_gun
ObjectTemplate.setNetworkableInfo flak38_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/flak38gunbase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodFlak38Cockpit
ObjectTemplate.addTemplate flak38_gun_barrel
ObjectTemplate.setPosition 0/-0.009/-0.009
ObjectTemplate.addTemplate flak38_Camera
ObjectTemplate.setPosition 0.55/0.422/0.14
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-70/0
ObjectTemplate.setMaxSpeed 0/100/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** lodFlak38Cockpit ***
ObjectTemplate.create LodObject lodFlak38Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate Flak38CockpitExternal
ObjectTemplate.addTemplate Flak38CockpitInternal
ObjectTemplate.setPosition -0.035/0.29/0.6
rem -------------------------------------
ObjectTemplate.lodSelector Flak38CockpitSelector


rem *** Flak38CockpitExternal ***
ObjectTemplate.create SimpleObject Flak38CockpitExternal
ObjectTemplate.geometry flak38_gun_m1
ObjectTemplate.hasCollisionPhysics 1


rem *** Flak38CockpitInternal ***
ObjectTemplate.create SimpleObject Flak38CockpitInternal
ObjectTemplate.geometry 1P_flak38_gun_m1


rem *** flak38CockpitSelector ***
LodSelectorTemplate.create DistCompareSelector flak38CockpitSelector
LodSelectorTemplate.addLodDistance 2
LodSelectorTemplate.addLodComparison 0.5


rem *** flak38_gun_barrel ***
ObjectTemplate.create RotationalBundle flak38_gun_barrel
rem -------------------------------------
ObjectTemplate.addTemplate flak38_Gun_fire
ObjectTemplate.setPosition 0/0/0
rem ObjectTemplate.setPosition 0/-0.029/1.8
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0


rem *** flak38_Camera ***
ObjectTemplate.create Camera flak38_Camera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** Flak38_Seat ***
ObjectTemplate.create SeatObject Flak38_Seat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside


rem *** flak38_handle1 ***
ObjectTemplate.create RotationalBundle flak38_handle1
ObjectTemplate.geometry flak38_handle02_m1
rem -------------------------------------
ObjectTemplate.addTemplate flak38_handle1_grip
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/800/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookX


rem *** flak38_handle1_grip ***
ObjectTemplate.create AnimatedBundle flak38_handle1_grip
ObjectTemplate.addSkeletonIK Bip01_L_Hand 0.2/0.0/0.0 0/0/0


rem *** flak38_handle2 ***
ObjectTemplate.create RotationalBundle flak38_handle2
ObjectTemplate.geometry flak38_handle02_m1
rem -------------------------------------
ObjectTemplate.addTemplate flak38_handle2_grip
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/800/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** flak38_handle2_grip ***
ObjectTemplate.create AnimatedBundle flak38_handle2_grip
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.5/0.0/0.1 0/90/90


rem *** flak38_pedal ***
ObjectTemplate.create SimpleObject flak38_pedal
ObjectTemplate.geometry flak38_pedal_m1


rem *** flak38_targeter ***
ObjectTemplate.create RotationalBundle flak38_targeter
ObjectTemplate.geometry flak38_targeter_m1
ObjectTemplate.setMinRotation 0/-90/0
ObjectTemplate.setMaxRotation 0/90/0
ObjectTemplate.setMaxSpeed 90/90/90


rem *** flak38_base ***
ObjectTemplate.create SimpleObject flak38_base
ObjectTemplate.geometry flak38_base_M1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10


rem - Tosses from Explosions.

rem *** flak38_pedal_Toss ***
ObjectTemplate.create Bundle flak38_pedal_Toss
ObjectTemplate.geometry flak38_pedal_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10

rem *** flak38_gun_Barrel_Toss ***
ObjectTemplate.create SimpleObject flak38_gun_Barrel_Toss
ObjectTemplate.geometry flak38_gun_barrel_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10

rem *** flak38_lavett_Toss ***
ObjectTemplate.create SimpleObject flak38_lavett_Toss
ObjectTemplate.geometry flak38_lavett_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1


rem *** TigerCarriageHullHatch ***
ObjectTemplate.create SimpleObject TigerCarriageHullHatch
ObjectTemplate.geometry Tiger_Hull_Hatch_M1

rem *** TigerCarriageSimple ***
ObjectTemplate.create SimpleObject TigerCarriageSimple
ObjectTemplate.geometry Tiger_Hull_L1


rem *** TigerCarriageWreck ***
ObjectTemplate.create SimpleObject TigerCarriageWreck
ObjectTemplate.geometry Wreck_Tiger_m1


rem *** TigerCarriageLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 TigerCarriageLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 100
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Object not spawning

Post by Swaffy »

First, you most likely don't need to copy any of the Flak-38 code or even alter it. Take your TigerCarriage and remove the turret and its camera, then you should try to simply add the Flak-38 turret to either the Tiger's LOD Object or its ComplexBundle.

Add this to "lodTigerCarriage", which is a LodObject:

ObjectTemplate.addTemplate flak38_Entry
ObjectTemplate.addTemplate flak38_body

(Don't add "flak38_base" because the TigerCarriage's body is the base in this case.)

You might want to keep the position coordinates from the TigerCarriage's turret to get the Flak-38 close to the correct position.

It'll take some hit-and-miss editing, so stay calm and listen to Hammock if you think you're going to go crazy.

:]
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Object not spawning

Post by Vilespring »

Really? How will this work after I overwrote the original Flak 38 with this adding the new hull. All I did was add this to the object Flak_38 in land vehicles. My wonder was why it's not spawning on the AA gun spawners, not if the whole thing is full of useless garbage. The tank its self is fine. Please warn me if I'm going in circles and where the best place is to get music for when I'm about to go boom. :D One more thing, what is the LOD things? I realy want to know, I just got into modding, and this is my first over-haul mod. I usually change reload speeds, rate of fire, change mag sizes, more mags, debug modding, stuff like that. This Tiger-Flak 38 hybrid would make me feel great. It just won't spawn! I spawned it in the debugger and it was perfect. (I think I'm about to go boom in rage.......)
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Object not spawning

Post by Swaffy »

Okay, that clears some stuff up for me.

"LOD" means "Level of Display". As the camera gets further from the object, the object switches to lower details. For the 3D model, they most commonly have 6 LODs, it's just the same model with less and less polygons (polys). It's the same with the textures, they use something called "MipMaps" which is the same image but smaller in size, thus having less detail.

First, try not to override an already-existing vehicle. Don't override the Flak-38, and don't override the Tiger. Instead, copy the tiger's folder and make a whole new vehicle from it, as in a separate vehicle. Leave the original vehicles as they were.

Rename the parts of the Tiger from Tiger to TigerCarriage. Then add the lines from the Flak-38 for the turret. You don't have to rename any of the Flak-38 parts from what I can tell.



If you want to spawn it in place of the AA gun spawners, you might want to go into the map's RFA and change the ObjectSpawnTemplate and change it there. Find "Flak38" and change it to your new vehicle.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Object not spawning

Post by Vilespring »

Ahh... This is what I've already done, but then I thought "But, the spawners use the flak 38, not my TigerCarriage, so it won't spawn!" So, I changed the Flak_38. In the end, I want to have this a separate mod than 1942, activated like DC. I just don't want to edit the maps to make it work, and try to spawn a modified object instead of a new one. Like the mod I'm trying to balance, The Immolator, it doesn't come with a new map, just a modified object, so they spawn on unmodded maps. This is the URL for the Immolator: http://battlefield2.filefront.com/file/ ... rmkII;7883 The thing is, I WANT it to replace the Flak 38 using and umodded map. (warn me again if I'm going in circles, and I'm too noob to do what I'm trying.)

so, by renaming the parts of Tiger to TigerCarriage, you mean like, "CreateRotationalBundle TigerCarriageTower," or "addTemplate TigerCarriage_HullHatch?"

By the way, I really appreciate you helping me.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Object not spawning

Post by Swaffy »

Yes, like "lodTiger" would become "lodTigerCarriage" and "TigerCamera" would become "TigerCarriageCamera". Easy way to do this is to open the ".con" file in Notepad++ (or just plain Notepad) and use "Ctrl+H" to replace the code with something else. Be sure not to use "Replace All" because it might rename some of the setGeometry lines, which you don't want changed.

It's easier to replace the Tiger, since you're trying to change the turret instead of the base. Think of it like a hierarchy. The base would be the main level, level 1. Then you work your way down to the LOD object, then complexBundle, then turret, then cannon, then etc... until it ends. Like a tree, and the base is the trunk.

If you want it to replace the Flak-38, you'll need to rename all the "Tiger" parts with "Flak38" (instead of using "TigerCarriage") and delete the old Flak38. OOORRRR, you can add your new Flak-38 Tiger map-side and keep your original Flak-38 in the RFAs in the Archives folder. I can tell you more about the map-side mod if you want.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Object not spawning

Post by Vilespring »

Hmm.... I did that, so instead of objects being created as "TigerCarriage ....... ", I made it "Flak_38 ............", and It still won't spawn? I've already replaced the tiger, but Germans without tiger tanks is like pie without the stuff inside! I find it weird how I can replace a tiger tank, but not an AA gun. I'm confused. So, there can be mods for just a map? (head goes boom with wonky ideas :D ) Please tell me that! I do want to hear it, but my priority is getting my modded object on the map.

BTW, Swaffy, you mod cannot be downloaded for some odd reason...
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Object not spawning

Post by Swaffy »

Regarding my mod being undownloadable, I would use torrents but ThePirateBay has a screwed up uploading system.

And you need to call it "Flak38" not "Flak_38".
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply