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

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline GeneralManF  
#1 Posted : Thursday, August 19, 2010 9:52:50 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
so far I have

NukeGeneral.ini
;------------------------------------------------------------------------------
Object RadiationBomb

; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
DefaultConditionState
Model = NVRadBmb
End
End

; ***DESIGN parameters ***
Side = China
EditorSorting = SYSTEM
ArmorSet
Conditions = None
Armor = ProjectileArmor
DamageFX = None
End
VisionRange = 0.0

; *** AUDIO Parameters ***

; *** ENGINEERING Parameters ***
KindOf = PROJECTILE
Body = ActiveBody ModuleTag_02
MaxHealth = 100.0
InitialHealth = 100.0
End

Behavior = PhysicsBehavior ModuleTag_03
Mass = 75.0
AerodynamicFriction = 2 ; this is now friction-per-sec
ForwardFriction = 2 ; this is now friction-per-sec
CenterOfMassOffset = 2 ; Default of 0 means nothing tips as it falls. Positive tips forward, negative tips back
End;;
Behavior = MissileAIUpdate ModuleTag_04
TryToFollowTarget = No
FuelLifetime = 0
IgnitionDelay = 0
InitialVelocity = 0 ; in dist/sec
DistanceToTravelBeforeTurning = 0
DistanceToTargetBeforeDiving = 0
End
Locomotor = SET_NORMAL AuroraBombLocomotor ; yes, that's right.
Behavior = CreateObjectDie ModuleTag_05
CreationList = OCL_RadiationFieldLarge
End
Behavior = FXListDie ModuleTag_06
DeathFX = FX_RadeationBomb
End
Behavior = HeightDieUpdate ModuleTag_07
TargetHeight = 50.0
TargetHeightIncludesStructures = Yes
End



Geometry = Sphere
GeometryIsSmall = Yes
GeometryMajorRadius = 2.0

End

FxList.ini
; ----------------------------------------------
FXList FX_RadeationBomb
ParticleSystem
Name = DaisyExplosionGasSpray
End
ParticleSystem
Name = DaisyExplosionScatter
AttachToObject = Yes
InitialDelay = 500 500 UNIFORM
End
Sound
Name = DaisyCutterGas
End
End

Science.ini
Science Nuke_SCIENCE_RadiationBomb
PrerequisiteSciences = SCIENCE_CHINA SCIENCE_Rank1
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:Nuke_RadiationBomb
Description = CONTROLBAR:Nuke_ToolTipChinaScienceCarpetBomb
End

and SpecialPower.ini
;-----------------------------------------------------------------------------
SpecialPower Nuke_SuperweaponRadBombDrop
Enum = NUKE_SPECIAL_CLUSTER_MINES
ReloadTime = 240000 ; in milliseconds
RequiredScience = Nuke_SCIENCE_RadiationBomb
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 100
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End

CommandButton.ini
CommandButton Nuke_Command_RadBombDrop
Command = SPECIAL_POWER
SpecialPower = Nuke_SuperweaponRadBombDrop
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:NukeDrop
ButtonImage = SNNukeBomb
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipNukeDrop
RadiusCursorType = NUCLEARMISSILE
InvalidCursorName = GenericInvalid
End

CommandButton Nuke_Command_RadBombDropFromShortcut
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = Nuke_SuperweaponRadBombDrop
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:RadiationBomb
ButtonImage = SNNukeStrike
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipNukeDrop
RadiusCursorType = NUCLEARMISSILE
InvalidCursorName = GenericInvalid
End

CommandButton Nuke_Command_PurchaseScienceRadBombDrop
Command = PURCHASE_SCIENCE
Science = Nuke_SCIENCE_RadBombDrop
ButtonImage = SNNukeLaunch
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End

CommandSet.ini
CommandSet Nuke_SCIENCE_CHINA_CommandSetRank3
2 = Nuke_Command_PurchaseScienceRadBombDrop
CommandSet Nuke_ChinaCommandCenterCommandSet
13 = Nuke_Command_ChinaRadiationBomb

OCL.ini
; -----------------------------------------------------------------------------
ObjectCreationList Nuke_SUPERWEAPON_ChinaRadiationBomb
DeliverPayload
Transport = ChinaJetCarpetBomber
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 1
DropOffset = X:0 Y:0 Z:-2
DropVariance = X:30 Y:40 Z:0
DropDelay = 0 ;0 ; time in between each item dropped (if more than one)
Payload = Nuke_RadiationBomb 1
DeliveryDistance = 350
DeliveryDecalRadius = 180
DeliveryDecal
Texture = SCCCarpBomb
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End

It does not appear in-game, what do i do?

Edited by user Saturday, August 21, 2010 10:59:13 AM(UTC)  | Reason: Not specified

Sponsor
Offline Annihilationzh  
#2 Posted : Friday, August 20, 2010 4:53:27 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)
The Command Center code?

OCL.ini?

CommandButton.ini?

CommandSet.ini?
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 GeneralManF  
#3 Posted : Friday, August 20, 2010 8:02:07 AM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
added
...

Debug says: ASSERTION FAILURE: token NUKE_SPECIAL_CHINA_RADIATION_BOMB is not a valid member of the index list.
how do I fix the Enum?

Edited by user Friday, August 20, 2010 9:18:14 AM(UTC)  | Reason: Not specified

Offline Annihilationzh  
#4 Posted : Friday, August 20, 2010 9:29:31 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)
Just use an existing Enum. Preferably from the most similar special power.

All special powers have a module in the building that deploys them, usually the command center. Where is this code?

And where is your ObjectCreationList.ini entry?

Edited by user Friday, August 20, 2010 9:30:17 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 GeneralManF  
#5 Posted : Friday, August 20, 2010 3:05:11 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Done.
NUKE_SPECIAL_RADIATION_BOMB changed to NUKE_SPECIAL_CLUSTER_MINES
I will now test if it worked.
...

Odd, WB debug says OK but game says nay.
...






Annihilationzh? How come you stoped helping me?
...









Anyone!? I need help! >'O

Edited by user Friday, August 27, 2010 9:56:54 PM(UTC)  | Reason: Not specified

Offline Mr.Tanka  
#6 Posted : Monday, August 30, 2010 2:09:09 PM(UTC)
Mr.Tanka
Private
Joined: 8/30/2010(UTC)
Posts: 2
United States

He possibly went inactive. Copy/paste a similar INI coding, like the EMP Bomb. Start from there.Wink













-Mr.TankaThumb Up
Offline Annihilationzh  
#7 Posted : Monday, August 30, 2010 3:21:38 PM(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)
Inactive? No.

I completely forgot about this thread, and it got bumped off the recent threads list. I have missed quite a few topics that way until someone else bumps them.

If it's still crashing, it's most likely a commandset issue or a commandbutton issue. I'm hoping that your commandset.ini entries supplied above are shortened, rather than being the complete entries (which would certainly crash).

Post the contents of ReleaseCrashInfo.txt (in your documents, the zero hour folder).
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 GeneralManF  
#8 Posted : Sunday, September 5, 2010 9:41:07 AM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
it says:
Code:
Release Crash at Sun Sep 05 13:37:01 2010
; Reason Error parsing INI file 'Data\INI\CommandButton.ini' (Line: 'CommandButton Nuke_Command_PurchaseScienceRadBombDrop ')


Last error:


Current stack:

so what needs to change?
Offline Annihilationzh  
#9 Posted : Monday, September 6, 2010 9:56:23 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)
Ok, I did miss this thread, yet again.

You have Nuke_SCIENCE_RadBombDrop in the commandbutton & Nuke_SCIENCE_RadiationBomb in the science.

They have to be the same. Hence your crash.
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 GeneralManF  
#10 Posted : Monday, September 6, 2010 1:31:46 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
OK, I fixed all Rad Bomb Problems but one. It doesn't let me deploy the darn thing! Same with the normal China Carpet bomber, I perches it but I can't deploy it (and again for CHI05 USA Carpet Bomber) on all my ZH folders (I create copies of my original folder to instal mods onto (even the vanilla china on mods don't have a working carpet bomber for me).

Edited by user Thursday, September 9, 2010 1:29:15 PM(UTC)  | Reason: Not specified

Offline Annihilationzh  
#11 Posted : Monday, September 6, 2010 11:06:53 PM(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)
Unless I'm very much mistaken, this is one I mentioned in two of the three posts I made in this thread.

You see, command centers that can deploy carpet bombers have this:
Code:
  Behavior           = OCLSpecialPower ModuleTag_22
    SpecialPowerTemplate = Early_SuperweaponChinaCarpetBomb
    OCL                  = SUPERWEAPON_ChinaCarpetBomb
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End
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 GeneralManF  
#12 Posted : Tuesday, September 7, 2010 8:25:16 AM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
yep, it has it.
Code:
  Behavior           = OCLSpecialPower ModuleTag_22;this has been removed from everywhere but the ChinaAirfield in CHI05
    SpecialPowerTemplate = Nuke_SuperweaponChinaCarpetBomb
    OCL                  = Nuke_SUPERWEAPON_ChinaCarpetBomb
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End 

unless, l need to add one for the radiation bomb.
...

Yay! it wo- uh... oops.
ModDB.com
...

argh! not again! ModDB.com
this is the OCL
Code:
; -----------------------------------------------------------------------------
ObjectCreationList Nuke_SUPERWEAPON_ChinaRadiationBomb
  DeliverPayload
    Transport = ChinaJetCarpetBomber
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-2
    DropVariance = X:30 Y:40 Z:0
    DropDelay = 0  ;0       ; time in between each item dropped (if more than one)
    Payload = Nuke_RadiationBomb 1
    DeliveryDistance = 350
    DeliveryDecalRadius = 180
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

Is there anything wrong that would make the bomb not appear?

Edited by user Tuesday, September 7, 2010 8:56:46 AM(UTC)  | Reason: Not specified

Offline Annihilationzh  
#13 Posted : Tuesday, September 7, 2010 11:01:14 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)
Quote:
l need to add one for the radiation bomb.

bingo.
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 GeneralManF  
#14 Posted : Tuesday, September 7, 2010 11:13:07 AM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
I already found out about and fixed that, but now when I drop the bomb, I... don't, drop the bomb.
I Believe it's the OCL Because it was wrong OCL scripting that made it use mini nukes and now with a "fixed" OCL it drops nothing, which of course its not supposed to do.

Edited by user Tuesday, September 7, 2010 2:55:00 PM(UTC)  | Reason: Not specified

Offline Annihilationzh  
#15 Posted : Wednesday, September 8, 2010 6:11:09 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)
Code:
    DropOffset = X:0 Y:0 Z:-2
    DropVariance = X:30 Y:40 Z:0
    DropDelay = 0
    DeliveryDistance = 350

Experiment with these a little. They're usually the cause of a failed drop.
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 GeneralManF  
#16 Posted : Wednesday, September 8, 2010 2:49:35 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
I don't understand. I scripted it to be just like any other bomb. But it still won't drop.
Code:
; -----------------------------------------------------------------------------
ObjectCreationList Nuke_SUPERWEAPON_ChinaRadiationBomb
  DeliverPayload
    Transport = ChinaJetCarpetBomber
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-10
    Payload = Nuke_RadiationBomb
    DeliveryDistance = 140
    DeliveryDecalRadius = 170
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End
Offline Annihilationzh  
#17 Posted : Thursday, September 9, 2010 12:26:55 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)
Ok, spotted it. You're dropping a non-existant bomb:

Nuke_RadiationBomb

This is the actual bomb:

RadiationBomb

Copy and paste is essential if you want the game to work.

Edited by user Thursday, September 9, 2010 12:27:47 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 GeneralManF  
#18 Posted : Thursday, September 9, 2010 1:17:18 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
If I'm not mistaken, I fixed that a while ago, let me check.
...
yep. but just to make sure I'll copy and paste it over.
...
There we go, now let's try.
...

DA-! I mean... Strange, it still didn't work. Hmmm...

Edited by user Thursday, September 9, 2010 1:24:20 PM(UTC)  | Reason: Not specified

Offline GeneralManF  
#19 Posted : Friday, September 10, 2010 9:04:24 PM(UTC)
GeneralManF
Captain
Joined: 2/11/2010(UTC)
Posts: 91
Canada

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
What on earth could possibly be the problem!? My mod can't be complete without it!!!! ~XO
(double posted to bump back onto resent threads list, I don't know if you guys care about double posting as much as other sites)
Offline Annihilationzh  
#20 Posted : Saturday, September 11, 2010 4:27:21 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)
I tested it, it's the bomb itself. Copy and paste the code from the carpet bomb and change it to the rad bomb specs, but don't edit it's AI or locomotor.
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.
Users browsing this topic
Guest
2 Pages12>
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.