Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: Clavin12 on July 01, 2009, 12:07:15 AM

Title: I have a lil problem with my mortar.
Post by: Clavin12 on July 01, 2009, 12:07:15 AM
I try to get in in game and it says that the turret objects defined are not valid. Here is the odf for it made after the isdf gun tower odf. Plz tell me what problems there are. Plz.

[GameObjectClass]
geometryName = "itmtrturr.xsi"
classLabel = "turret"
collisionRadius = 10.0
scrapCost = 10
scrapValue = 3
maxHealth = 5000
maxAmmo = 10000 // 0 is *not* treated as infinite ammo!
unitName = "Mortar Turret"
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"
heatSignature = 2.0
imageSignature = 1.0
radarSignature = 1.0
isAssault = 1

armorClass = L

requireCount = 0

weaponMask = 00011
weaponHard1 = "hp_mortar_1"
weaponName1 = "ghartill"
weaponAssault1 = 0

turretCount = 2
turretName1 = "turret_x"
turretName2 = "turret_y"


[BuildingClass]
soundAmbient = "igtow01.wav"

[CraftClass]
rangeScan = 200
periodScan = 0.0
velocJam = 0.0
weaponPitch = 1.5
steerFactor = 0.5
engageRange = 200

[TurretCraftClass]
omegaTurret = 2.0
detectRange = 200

ps i also need to know how to make it pilotable.
Title: Re: I have a lil problem with my mortar.
Post by: bigbadbogie on July 01, 2009, 12:08:51 AM
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"

Not a valid AI process.
Title: Re: I have a lil problem with my mortar.
Post by: mrtwosheds on July 01, 2009, 12:28:57 AM
turretCount = 2
turretName1 = "turret_x"
turretName2 = "turret_y"

These entry's must be frame names in the xsi.
The first one, turretname1 will rotate on the y axis, any others will rotate on the x axis.
Title: Re: I have a lil problem with my mortar.
Post by: Warfreak on July 01, 2009, 12:34:18 AM
They are the framenames, i made PERFECTLY sure of that.
Title: Re: I have a lil problem with my mortar.
Post by: Clavin12 on July 01, 2009, 01:37:51 AM
I tried the ones you sent to me. They didn't work.
Title: Re: I have a lil problem with my mortar.
Post by: TheJamsh on July 01, 2009, 02:01:18 AM
BBB has already explained the issue
Title: Re: I have a lil problem with my mortar.
Post by: AHadley on July 01, 2009, 06:40:13 PM
Change your AIProcesses back to GunTowerProcess or whatever it was before and it should work fine.
Title: Re: I have a lil problem with my mortar.
Post by: BNG Da BZ Fool on July 02, 2009, 12:06:32 AM
Also make sure there are not 2 hp_mortar points in the same model as I believe adding a second hp somehow disables the unit from actually firing a mortar round. I had problems with some of my units making this mistake in the past; must be some kind of glitch in BZII. Don't really have a clue why though. BNG.
Title: Re: I have a lil problem with my mortar.
Post by: Warfreak on July 02, 2009, 12:09:13 AM
I made sure the model was rigged correctly, so that isnt the problem.
Title: Re: I have a lil problem with my mortar.
Post by: TheJamsh on July 02, 2009, 12:26:48 AM
The bug that BNG is referring to is that AI can struggle to fire twin mortars, i believe however this is fixed in the 1.3 patches.

In fact i KNOW it is, because assault tanks look dam cool firing mortars.
Title: Re: I have a lil problem with my mortar.
Post by: BNG Da BZ Fool on July 06, 2009, 12:47:58 AM
As I recall the assault tank never had any problems firing twin mortars. It was other units like the Mortar Bike that had this issue. So perhaps you could try using the atank.odf file to help get your mortar working?
Title: Re: I have a lil problem with my mortar.
Post by: bigbadbogie on July 06, 2009, 11:30:57 AM
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"

THIS IS THE ONLY PROBLEM!!!

CHANGE IT TO:

aiName = "GunTowerFriend"
aiName2 = "GunTowerEnemy"
Title: Re: I have a lil problem with my mortar.
Post by: Clavin12 on July 06, 2009, 11:20:27 PM
Thnx i thought that might be a problem
Title: Re: I have a lil problem with my mortar.
Post by: VSMIT on July 07, 2009, 12:55:59 AM
Since he said that once already?  When you first posted about this problem?
Title: Re: I have a lil problem with my mortar.
Post by: Clavin12 on July 07, 2009, 02:02:54 AM
Nah i thought of it before then because of the look of the odf file.