Posted: Sat Feb 05, 2011 4:52 pm Post subject:
Superweapon not appearing ingame.
Subject description: WTH?
So I've just made a new superweapon (carpet bombing) and gave the Airforce Command HQ the superweapon. But ingame, the superweapon didn't appear in the armory tab. I then tried giving the superweapon to other structures. Still the same. Does anyone know why this is happening? I've tried searching around for a solution but to nothing good came :/
Here's the superweapon's code just in case (I don't think the is anything wrong with it...)
Code:
[CarpetBombSpecial]
UIName=Name:Carpetbomb
Name=Carpet Bombing
IsPowered=false
RechargeTime=1
Type=SpyPlane ; SpyPlane is the type for SpyPlane clones or Airstrikes
Action=CarpetBombing ; check out the Adding custom Actions page to find out more about this
SidebarImage=SPYPICON
ShowTimer=no
DisableableFromShell=no
FlashSidebarTabFrames=120
;New Tags
SpyPlane=SUPER1 ;incoming AircraftType, either the SpyPlane or the one performing an airstrike
SpyPlanesNum=1 ;amount of planes coming in
IsAirstrike=yes ;default is no; if no, it will be a usual SpyPlane
Do take note that it has a custom action. Even if it doesn't have a custom action, the superweapon would've at least appeared in the armory tab (although it won't do anything when you use it). _________________ The future belongs to The Forgotten!
Silly me, SuperWeapon= tag was spelled as Superweapon= (FFFUUU!)
But now I've got another problem. The carpet bomber only drops one bomb instead of a line of them (10 in total). Here's the bomber and weapon code:
Code:
; Carpet Bomber
[SUPER1]
UIName=Name:SUPER
Name=Carpet Bomber
Image=SUPER
Strength=350
Category=AirLift
Armor=light
TechLevel=-1
Primary=CBOMB
Spawned=yes ; Created by another object and therefore not player controllable
LeadershipRating=10
Selectable=no
RadarInvisible=yes
Sight=0
Landable=no
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=19
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Ammo=1
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=BlackEagleMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
That dosent look like a good choice of tags for a carpet bombing weapon. Give it a higher speed and remove Floater=yes _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Joined: 19 Aug 2009 Location: Moscow State University
Posted: Sun Feb 06, 2011 2:03 am Post subject:
Although airstrike origins from spyplane and can only fire once,just launch a one-pixel spawn,which does the bombardment,and give it a non-existing airport to let it crash after it has done the job.Set it a dummy death weapon.
That's how
@Kenosis, yeah, it is hard coded, but I thought maybe they unhooked it in NPatch when they added IsAirstrike= to the SW. Guess not. I've never used NPatch, so I dont know much about it. _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Damn, nothing is working. It still drops one bomb (though with a airburst of nine bomblets). kenosis, could you give me the base code of your version of the carpet bomb. If i give up on this one, I'll just make the bomber some sort of a bomblet dispensary missile that kills itself when its done bombing. _________________ The future belongs to The Forgotten!
Thanks The primary bomber is an aircrafttype, yes (spawners don't work with aircrafttypes IIRC)? _________________ The future belongs to The Forgotten!
What about trying BurstDelay0=5 on the aircraft, even though the bomber is hardcoded to fire once, it should still be able to burst fire multiple times. If you already tried this, sorry, I didn't see it in your code. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Use an art.ini anim that starts art.ini debris.
This way i gave DTA an A10 that fires 50 minicluster bombs in one run, and this works even in TS.
example code
rules.ini
[Weapon]
Damage=0
Anim=BOMBRUN ;the anim that starts the bombing run
Speed=100
Warhead=unimportant
art.ini
;use Rate and TrailerSeparation to set the number of spawned bombs
[BOMBRUN]
Image=CLRANIM ;just an SHP with 20 empty frames
Rate=200 ;duration over which bombs are constantly fired
TrailerAnim=MINIBOMB
TrailerSeperation=2 ;the interval at which the bombs are fired one after the other
[MINIBOMB] ;create a good looking MINIBOMB.shp
Elasticity=0.0
MaxXYVel=1.0 ;let the bomb fall straight down
MinZVel=-10.0 ;speed of the falling bomb
ExpireAnim=NUKE ;the animation that should appear upon impact
Damage=150
DamageRadius=150
Warhead=BOMBWH
LoopStart=0 ;use the following 4 keys to animate the falling bomb (e.g. parachutebomb)
LoopEnd=0
LoopCount=0
Rate=0
DetailLevel=0
Bouncer=yes
Everything working without Ares or any other exe hacking tool.
So stop whining about missing Ares features and start real modding. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Joined: 19 Aug 2009 Location: Moscow State University
Posted: Mon Feb 07, 2011 3:35 pm Post subject:
Ah!I used to attach the debris to the projectile,works fine but maybe not so fine as attached to the firing anim(so I didn't post that code because it is still to be improved,and spawned bomber works just fine).........Thanks for the hint!
Edit:I tried to combine the two kinds of bombing together,I got fine nuke carpet bombs with radiation.
but sometimes seems strange to see bombs coming out from the air(that means a huge bomber like B2 is needed).So I'd use anim attached bombs. _________________ Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself? QUICK_EDIT
Are you sure you added the animations to the [Animations] list?
Does the used warhead in the art.ini debris bomb exist and is it set up correct?
Do all used SHPs exist?
kenosis wrote:
I got fine nuke carpet bombs with radiation.
but sometimes seems strange to see bombs coming out from the air(that means a huge bomber like B2 is needed).So I'd use anim attached bombs.
huh? the bomb appears there where the weapon plays the firing anim (the dummy invisible muzzle flash; the anim BOMBRUN in my example)
If the PrimaryFireFLH is correct, the bombs will always appear at the exact point.
cluster bomb done for DTA
As you can see, the bombs appear correct under the A10 and this even on this small unit compared to the normally huge RA2 units. _________________ SHP Artist of Twisted Insurrection: Nod buildings
[Weaponx]
Damage=0
Anim=CLRANIM ;the anim that starts the bombing run
Speed=100
;Warhead=CarryWH
;Projectile=none
artmd.ini,
[CLRANIM]
;Image=CLRANIM ;just an SHP with 20 empty frames
Rate=200 ;duration over which bombs are constantly fired
TrailerAnim=MINIBOMB2
TrailerSeperation=2 ;the interval at which the bombs are fired one after the other
[MINIBOMB2] ;create a good looking MINIBOMB.shp
Elasticity=0.0
MaxXYVel=1.0 ;let the bomb fall straight down
MinZVel=-10.0 ;speed of the falling bomb
ExpireAnim=MININUKE ;the animation that should appear upon impact
Damage=150
DamageRadius=150
Warhead=ORCAHE
LoopStart=0 ;use the following 4 keys to animate the falling bomb (e.g. parachutebomb)
LoopEnd=0
LoopCount=0
Rate=0
DetailLevel=0
Bouncer=yes
And yes, i have both a clranim.shp and a minibomb2.shp. _________________ The future belongs to The Forgotten!
give Weaponx a complete and working code.
I meant with Warhead=unimportant that you can use there any warhead (as it isn't used due to Damage=0), though the key still has to be present.
The same is true for projectile, range and all the other necessary keys to create a "working" (non IE giving) weapon. The given example was just showing the keys that need to be changed, but not all the needed keys.
btw, i used on purpose
[BOMBRUN]
Image=CLRANIM
since it's in more than one case necessary to have a CLRANIM. e.g. if you want a second weapon of this type, you don't have to add another empty shp and can simply use CLRANIM again. (e.g. TI uses CLRANIM on 34 different anims to make them work correct and it would have been stupid to add 34 shps with 20 blank frames) _________________ SHP Artist of Twisted Insurrection: Nod buildings
HOLY SHIT ITS BEAUTIFUL!!11 Although the current minibomb.shp I'm using looks like ass. Thanks LKO _________________ The future belongs to The Forgotten!
Joined: 19 Aug 2009 Location: Moscow State University
Posted: Tue Feb 08, 2011 1:39 pm Post subject:
I mean,invisible spawned unit and debris bombs.
Debris bombs can never have a radiation.But these two combined together you can have two kinds of bombs from one bomber.
I used projectile attached debris before.Not good as animation attached. _________________ Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself? QUICK_EDIT
Use the TS bomb.shp which wasn't used in vanilla TS. (it's the same the TI Banshee Bomber uses)
Or create a new one. Since a 1 frame shp would be enough, it should be quite easy.
Or use the Terror Drone as image and let it loop through the walkanim.
You could even use IsFlamingGuy=true and RunningFrames=6 with a second SHP anim of the terrordrone. Then let this anim play when the "bomb terror drone" hits the ground (ExpireAnim=TERRDRNE). This way the bomber drops terror drones which start to wildly walk around when they land. If you give the FlamingGuy terrorbomb animation Damage, these can be really devastating/annoying for the enemy. _________________ SHP Artist of Twisted Insurrection: Nod buildings
lol, yeah I think that Drone weapon would piss me off if someone used it on me _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Oh lulz. I've made my own one already; just a simple grey dot. Works like a charm. My only problem now is to make sure this SW isn't an early game ender. Balancing this SW is a bitch @_@ Thanks for the help again guys _________________ The future belongs to The Forgotten!
^^I don't think SpawnDelay is necessary (though i have no clue what this RA2 key does) and i doubt Trailer= works. At least in TS this was a projectiletype exclusive key which doesn't works on normal anims.
unless you've added a DroneDamage.shp, you should add Image=CLRANIM (or some other existing dummy shp), because a missing or undefined animation can cause the savegame bug and other unpredictable problems.
Since DroneDamage is a normal animation and no art.ini debris, it doesn't uses the CarpetHE warhead but the warhead that is defined in rules.ini under the key FlameDamage2=. At least it's this way in TS and i don't know if Ares any other exe modification changes this behavior or if RA2 has by default a different bevavior in this case. _________________ SHP Artist of Twisted Insurrection: Nod buildings
SpawnDelay applies for Trailer same as TrailerSeperation applies for TrailerAnim.
People just get confused between these, of course unlike TrailerAnim without TrailerSeperation, Trailer works fine without SpawnDelay as game defaults to value of 3 AFAIK. Using smaller value makes trailer shp draw tighter with less gap. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum