找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6766|回复: 3

【小白】关于Ares自定义导弹

[复制链接]
发表于 2022-2-12 14:15:46 | 显示全部楼层 |阅读模式
在尤复上使用Ares3.0自定义导弹,发射车,发射车的发射器(主武器)
导弹用的是V3的导弹,发射车用的是V3的发射车,武器仿照V3的主武器写的
然而在游戏中,运行一会后就出错了(期间可以正常攻击产生效果)。
全部的代码如下



  1. [VehicleTypes]
  2. 10003=ContinentMissile

  3. [AircraftTypes]
  4. 10001=SUPROCKET

  5. [WeaponTypes]
  6. ; 发射器
  7. 10009=MissileLauncher
  8. 10010=MissileNuke
  9. 10011=MissileNukeE

  10. [Warheads]
  11. 10007=Special2WH

  12. [ContinentMissile]
  13. Image=V3
  14. UIName=Name:V3
  15. Name=ContinentMissile Launcher    ;locked
  16. Category=LRFS
  17. Prerequisite=none
  18. Primary=MissileLauncher
  19. ElitePrimary=MissileLauncher
  20. CanPassiveAquire=no ; Won't try to pick up own targets
  21. Spawns=SUPROCKET
  22. SpawnsNumber=1
  23. SpawnRegenRate=900
  24. SpawnReloadRate=0 ; missile spawn don't come back
  25. NoSpawnAlt=yes ; alternate voxel for out of spawns: xxxxWO (V3WO)
  26. Strength=1100
  27. Armor=heavy
  28. TechLevel=4
  29. Turret=no
  30. CrateGoodie=yes
  31. Sight=7
  32. Speed=3
  33. Owner=Russians,Confederation,Africans,Arabs
  34. Cost=19998
  35. Soylent=800
  36. Points=4000
  37. ROT=4
  38. AllowedToStartInMultiplayer=no
  39. Crusher=yes
  40. Crewed=no ; Big giant missile on its head precludes survivor (per designer)
  41. IsSelectableCombatant=yes
  42. Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
  43. VoiceSelect=V3Select
  44. VoiceMove=V3Move
  45. VoiceAttack=V3AttackCommand
  46. VoiceFeedback=
  47. DieSound=GenVehicleDie
  48. MoveSound=V3MoveStart
  49. CrushSound=TankCrush
  50. Maxdebris=3
  51. Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
  52. ;MovementZone=Normal ;gs FLAW needs to be changed to this when The Flaw is fixed
  53. MovementZone=Destroyer
  54. ThreatPosed=250        ; This value MUST be 0 for all building addons
  55. DamageParticleSystems=SparkSys,SmallGreySSys
  56. Weight=10
  57. VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
  58. EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
  59. AccelerationFactor=0.1
  60. ZFudgeColumn=8
  61. ZFudgeTunnel=13
  62. Size=3
  63. GuardRange=11
  64. TooBigToFitUnderBridge=true
  65. ;MobileFire=false        ; SJM: Looks like this was meant for the V3, but let's not enable it until we know we need it.
  66. Bunkerable=no; Units default to yes, others default to no

  67. [SUPROCKET]
  68. Image=V3ROCKET
  69. UIName=Name:V3ROCKET
  70. Name=State Rocket
  71. FireAngle=1
  72. Strength=650
  73. Category=AirPower
  74. Armor=special_2
  75. Spawned=yes
  76. MissileSpawn=yes
  77. TechLevel=-1
  78. Sight=1
  79. RadarInvisible=no
  80. Landable=yes
  81. MoveToShroud=yes
  82. Ammo=1 ;Aircraft are hard wired to require ammo
  83. Speed=10
  84. Owner=Russians,Confederation,Africans,Arabs
  85. Cost=50
  86. Points=20
  87. ROT=3
  88. Crewed=no
  89. Explodes=no
  90. GuardRange=30
  91. Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
  92. MaxDebris=2
  93. Locomotor={B7B49766-E576-11d3-9BD9-00104B972FE8}
  94. MovementZone=Fly
  95. ThreatPosed=100        ; This value MUST be 0 for all building addons
  96. DamageParticleSystems=SmallGreySSys        ; Sparks don't work well here.  SJM
  97. AuxSound1=V3Attack ;Taking off
  98. ;AuxSound2=DROPDWN1 ;Landing
  99. ImmuneToPsionics=yes
  100. ;VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
  101. ;EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
  102. NoShadow=yes
  103. Selectable=no
  104. Trainable=no
  105. DontScore=yes
  106. ;
  107. ;        Areas自定义导弹特性
  108. ;
  109. Missile.Custom=yes
  110. Missile.PauseFrames=15
  111. Missile.TiltFrames=150
  112. Missile.PitchInitial=0
  113. Missile.PitchFinal=1
  114. Missile.TurnRate=0.05
  115. Missile.RaiseRate=1.5
  116. Missile.Acceleration=1.5
  117. Missile.Altitude=768
  118. Missile.BodyLength=256
  119. Missile.LazyCurve=no
  120. Missile.Damage=600
  121. Missile.EliteDamage=800
  122. Missile.Warhead=NUKE
  123. Missile.EliteWarhead=NUKE
  124. Missile.Weapon=MissileNuke
  125. Missile.EliteWeapon=MissileNukeE

  126. [MissileLauncher]
  127. Damage=1
  128. ROF=900
  129. Range=255
  130. MinimumRange=5
  131. Spawner=yes
  132. Projectile=InvisibleHigh
  133. Speed=10
  134. Warhead=Special2WH

  135. [MissileNuke]
  136. Damage=600
  137. ROF=900
  138. Range=255
  139. Projectile=GiantNukeDown
  140. Speed=100
  141. RadLevel=1500
  142. Warhead=NUKE

  143. [MissileNukeE]
  144. Damage=800
  145. ROF=1200
  146. Range=255
  147. Projectile=GiantNukeDown
  148. Speed=100
  149. RadLevel=3000
  150. Warhead=NUKE

  151. [Special2WH]
  152. Verses=3%,3%,3%,3%,3%,3%,3%,3%,3%,3%,3%
复制代码


然后是报错信息,Syringe.log中报错
  1. [13:57:01] SyringeDebugger::Run: Running process to debug. cmd = "gamemd.exe  "
  2. [13:57:02] SyringeDebugger::Run: Allocating 0x580 bytes...
  3. [13:57:02] SyringeDebugger::Run: pAlloc = 0x001C0000
  4. [13:57:02] SyringeDebugger::Run: Writing DLL loader & caller code...
  5. [13:57:02] SyringeDebugger::Run: pcLoadLibrary = 0x001C0000
  6. [13:57:02] SyringeDebugger::Run: Entering debug loop...
  7. [13:57:02] SyringeDebugger::HandleException: Finished retrieving proc addresses.
  8. [13:57:02] SyringeDebugger::HandleException: Creating code hooks.
  9. [13:58:12] SyringeDebugger::HandleException: Exception (Code: 0xC0000005 at 0x006B7D30)!
  10. [13:58:12]         The process tried to read from 0x00000048.
复制代码
发表于 2022-2-13 00:08:07 | 显示全部楼层
“运行一会后就出错了” 那你确定是自定义导弹造成的吗?
回复

使用道具 举报

发表于 2022-2-13 20:19:52 | 显示全部楼层
导弹正常引爆了吗?打个比较近的目标试试?
如果没使用奇怪的飞行方式飞出地图,那一般不是导弹的问题
子机发射器的弹头还用原先的Special就行
回复

使用道具 举报

发表于 2022-2-21 20:22:59 | 显示全部楼层
RadLevel=3000
这是什么鬼,不是最大500吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-9-1 04:57 , Processed in 0.062472 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表