Posted: Sat Dec 26, 2009 3:11 pm Post subject:
SHP problems and base defense not working right.
Subject description: :/
Okay, three problems: first, my projectile does not look the way it should. Its coloured in shp builder but is all green ingame :/ why does this happen?
Second, the base of Madhq's magnetic tower is overlapping it's turret. How can this be fixed?
Sorry, imma n00b at shps
Third, the magnetic tower is not guarding the base at all. It does not attack when enemy vehicles come within range, it only retaliates when being shot at by the enemy vehicle(s). Here's the coding:
Code:
;Magnetic Tower
[YAMAGTWR]
UIName=Name:YAMAGTWR
Name=Yuri Magnetic Tower
Image=YGMAGATOWER
BuildCat=Combat
Primary=TNKRoll
Strength=810
Armor=steel
TechLevel=4
Prerequisite=NAPSIS,YACNST
Adjacent=4
Sight=10
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=2 ;gs 0 for Good, 1 for Evil
Cost=1200
;BaseNormal=no
Points=30
Power=-60
Crewed=no
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=3
MinDebris=2
ThreatPosed=30 ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
Powered=yes
Turret=yes
TurretAnim=YGMAGATOWERTUR
TurretAnimIsVoxel=false
TurretAnimX=0
ROT=10
TurretAnimY=0
;TurretAnimZAdjust=-40
TurretAnimZAdjust=-25
HasStupidGuardMode=false
WorkingSound=PowerOn
NotWorkingSound=PowerOff
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Drainable=yes
AntiInfantryValue=0
AntiArmorValue=25
AntiAirValue=0
AIBuildThis=yes
; Tank rolling
[TNKRoll]
Damage=99.99 ;1000000
ROF=0
Range=7 ;1.1
Areafire=yes ;?
Speed=100
Warhead=Rolling
;Burst=1
Report=MagnetronAttack ;MigMoveLoop ;BruteSmashAttack
Projectile=InvisibleWall
;LaserInnerColor = 216,0,184
;LaserOuterColor = 80,0,88
IsHouseColor=true
LaserOuterSpread= 100,100,100
LaserDuration = 10
IsLaser=true ; this flag tells the game to use the special laser draw effect
;IsBigLaser=true
I made this projectile from 120mm.shp. It does not animate. It seems to use the RA2/YR unit palette. Why does it still come out wrong ingame? _________________ The future belongs to The Forgotten!
1) Try using AltPalette=yes if its in unittem.pal and default palette for projectiles is palette.pal.
2) TurretAnimZAdjust
3) Who made this coding? its wrong for an tower as it is coded to fire AT ground with areafire and then verses are 0% which disables targeting for msot things and 1% is forcefire exception. QUICK_EDIT
Okay, I've fixed the projectile and the magnetic tower art problem, but the said mag tower is still not attacking. I've changed the 1% to 100% itn it's weapon's warhead and canceled out the areafire thing. Its still not working >_> _________________ The future belongs to The Forgotten! Last edited by freedom fighter on Sat Dec 26, 2009 5:16 pm; edited 1 time in total QUICK_EDIT
Then try again different settings for the weapon, outgoing from one that automatically attacks. Slowly change the working weapon to the current one by changing one key after the other while testing it everytime ingame and this way isolate the problem.
Then tell us what exactly is causing your problem and we might be able to help you.
Sorry for my plain speaking, but this is not a "I can't get it work, do it for me please" - forum. _________________ SHP Artist of Twisted Insurrection: Nod buildings
AreaFire= is meant for secondary weapons, so if this isnt a secondary weapon I would remove that tag. Also you can try adding GuardRange=? and DefaultToGuardArea=yes. And maybe DistributedFire=yes _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Posted: Tue Dec 29, 2009 5:24 pm Post subject:
Madhq's service depot not appearing properly :/
I'm trying to put Madhq's yuri service depot ingame properly. But the structure appeared in its snow theater in URBAN theater. I noticed that all the shps named "yg..." are all snow theater buildings while all the shps named "ya..." are all urban theater (is "g" for urban theater and "a" for snow theater? cuz I've seen all of the ingame shps (and the mag tower) that has "g" as the second letter in it's name all are in urban theater). So I did a little renaming so that all the urban theater shp are named "yg..." and all the snow theater shps are named "ya...". I've put and coded them in like normal, changed some tags and start up the game. And ended up with what you see in the attachment...
Dammit! All of the anims and shps are named "ygdepot..." and the urban theater shps are all named "ygdepot...". I even put "Image=YGDEPOT" in rulesmd.ini and [YGDEPOT] in artmd.ini >_>
Just why does this happen (I was able to put the mag tower in and it appeared properly ingame)?
wtf2.PNG
Description:
>___________________>
Filesize:
41.27 KB
Viewed:
1970 Time(s)
_________________ The future belongs to The Forgotten!
Joined: 01 Feb 2007 Location: Las Vegas, Nevada, USA
Posted: Tue Dec 29, 2009 11:40 pm Post subject:
im not sure if this is why, but im guessing you didnt add some of the animations under antimationsTypes list or whatever its called? Its my only guess, but you should know how to do that since you got the magentron to work :/ 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