Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline mr_hymn_  
#1 Posted : Tuesday, March 14, 2017 12:11:53 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
I know it's sounds weird for asking this question. As I kept modding I might need to uninstall and reinstall for a clean game and place the mod again.

What I am facing is when I am editing my own mod I found out that some informations or data has been changed but game keep showing an old data along with my new one. Sounds confusing? Let see the example.

I am created a tank using laser general crusader model or laser tank to be specific. Now I am adding the slow death to the tank. Made a tank having the effect similar to Uplink cannon when killed. A light beam out and kaboom.

So I tested in the game and look very fine but what I see next is from the OCL that tank destroyed always spawn couple rangers out so I changed the final OCL to Weapon like below.

Behavior = SlowDeathBehavior ModuleTag_16
DeathTypes = ALL -CRUSHED -SPLATTED
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
Weapon = FINAL TankDeathWeapon << this one is my own choice.
End

Tank will explode after the particle effect which really beautiful however every time my tank was destroyed those rangers still keep spawning and dies from the final explosion. I am using bomb truck death weapon as the final effect for good effect.
Sponsor
Offline Annihilationzh  
#2 Posted : Tuesday, March 14, 2017 8:27:20 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Need more info.

What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.

Edited by user Tuesday, March 14, 2017 8:27:51 AM(UTC)  | Reason: Not specified

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline klingondragon  
#3 Posted : Tuesday, March 14, 2017 9:05:52 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
The death fx for the uplink canon is creating the rangers. Copy the fx and remove the line about rangers.
Offline mr_hymn_  
#4 Posted : Tuesday, March 14, 2017 9:08:12 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
Need more info.

What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.



This is original code from Particle cannon from faction.ini

Behavior = SlowDeathBehavior ModuleTag_18
; don't run this death if we are under construction...
ExemptStatus = UNDER_CONSTRUCTION
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
OCL = FINAL OCL_ParticleUplinkDeathFinal
End

Of course when I am put this in my laser tank it does have uplink lighting effect and explosion BUT it does spawn couple rangers out
I also checked this code from OCL.ini >> OCL = INITIAL OCL_SDILinkLasers it contains no creating any objects rather than a cool laser explosion

And this code is what they spawn the rangers >> OCL = FINAL OCL_ParticleUplinkDeathFinal

; ----------------------------------------------
ObjectCreationList OCL_ParticleUplinkDeathFinal
CreateObject
ObjectNames = AmericaInfantryRanger
IgnorePrimaryObstacle = Yes
Disposition = SEND_IT_OUT
DispositionIntensity = 4
Count = 6
RequiresLivePlayer = Yes
End
; ----------------------------------------------

I checked all the FX and none giving a code of spawning rangers.

So I removed it and changed to

Behavior = SlowDeathBehavior ModuleTag_18
; don't run this death if we are under construction...
ExemptStatus = UNDER_CONSTRUCTION
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
Weapon = FINAL TankDeathWeapon
End

So at the end the tank should just simply explode without spawning rangers but in game still keep spawning rangers along with my new explosion death weapon that I am just added

I am copied this code and use on other tanks and works perfectly but only my laser crusader have a trouble even I gave them an exact same code of slow death begavior
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.