RimWorld

RimWorld

108 ratings
D-FunctionalAmmunition Library
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
1.292 MB
8 Apr @ 9:18am
18 Oct @ 9:48am
32 Change Notes ( view )

Subscribe to download
D-FunctionalAmmunition Library

Description
D-Lib, a core library primarily used to provide functional ammunition(like missile) support. Do not use the GitHub version of Combat Extended if you intend to use D-Lib. Even if you don’t play with CE, please keep D-Lib installed if you plan to use our mods that require it as a dependency. You never know when we might add new vanilla features using D-Lib.

This mod provides guidance system patches for several vanilla CE projectiles, including:

127mm Javelin Missile (FGM-148 "Javelin" Anti-tank missile)

150mm MBT LAW (NLAW)

Tomahawk LAM (Tomahawk cruise missile)

Additionally, the FGM-148 "Javelin" now features a realistic ballistic animation for enhanced immersion.


You can find the 127mm FGM-148 "Javelin" and the 150mm MBT LAW (i.e., NLAW) in Local's CE Launchers.

Instructions(html) for usage can be found in the mod directory.

The 1.6 update of D-Lib includes a code refactor. If you only need to add guidance functionality to projectiles, you can now avoid occupying a ThingClass. Simply add <trajectoryWorker>D_FuncAmmoLib.MissileTrajectoryWorker</trajectoryWorker> and then add the guidance comp. (For details, refer to the HTML documentation in D-Lib's local files.)



This optimization partially "frees up" ThingClass usage. Additionally, DsW-4 is planning to integrate D-Lib's guided ammunition features into the Combat Extended.

Additionally, CE's built-in speedGain function — which operates independently of D-Lib — currently only works correctly on projectiles with <flyOverhead>true</flyOverhead>.

If you have any suggestions or bug report, it`s best to use the Discussions feature.
Use Ctrl+F12 Upload Logs.
Popular Discussions View All (2)
4
16 Oct @ 3:26am
Bug Report & Suggestions(错误报告与建议区)
PolandBall
3
13 May @ 8:47am
Error spam when firing artillery turrets to other tiles in the world and shell does not comes out.
Mayano Topgun
37 Comments
Griffon 19 Oct @ 10:14am 
Just noticed the update yesterday. It doesn't seem to crash anymore. Really good job and thanks for a great library for modders :)
奥拉西斯的地雷 17 Oct @ 3:29am 
中文范例好评
Griffon 17 Oct @ 3:27am 
Big thanks for the 1.6 update. I noticed one issue though :

In the case of a missile with keepTracking true. If the target is killed before the projectile hits, the projectile hangs in the air and keep generating red error messages.

Exception ticking Bullet_Typhon39855 (at (103, 0, 168)): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 94C1ACA]
at D_FuncAmmoLib.CompGuidanceCE.CompTick () [0x0029d] in <f5fb0aa2dab74d4d97c1355ced6b4b45>:0
at Verse.ThingWithComps.Tick () [0x00025] in <24d25868955f4df08b02c73b55f389fe>:0
at CombatExtended.ProjectileCE.Tick () [0x00001] in <fb4c7875773b4d4e8d309407c7a64d23>:0
at D_FuncAmmoLib.Projectile.Tick () [0x00001] in <f5fb0aa2dab74d4d97c1355ced6b4b45>:0

Is there some kind of param that can make a projectile self destruct (may kill the launcher) or even better dumb guided once the target is killed ?
I tried the TicksCrashPorjectile but it seems the error prevents the projectile tick
Benjamin Proverb Test 6 Oct @ 9:55pm 
can understand. making the library work well (and with minimal overhead) is important. as is DsW-4's day job. things take time.
PolandBall  [author] 6 Oct @ 9:11pm 
I know everyone is looking forward to the 1.6 update, but right now, DsW-4 is busy with work while also trying to find time to optimize the guidance function code and maintain other features. Additionally, efforts are underway to adapt the guidance function code from D-Lib for use with Combat Extended.

The planned optimization aims to enable guided ammunition functionality using only comp, without the need to occupy ThingClass.

我知道各位很期待1.6版本更新,但现在DsW-4要在忙于工作的同时抽时间优化制导功能代码和维护其他功能,并且还在准备把D-Lib的制导功能代码搬运给Combat Extended使用。

计划中的优化效果是只需要comp而不需要占用ThingClass即可启用制导弹药功能。
FIB010666 28 Sep @ 1:35am 
佬,加油!
纸齿轮 26 Sep @ 9:40pm 
好事多磨,牛逼的东西不怕等
SilkMoth 24 Sep @ 11:01am 
damm that sucks to hear, hope everythign will be alr tho, take ur time!
DsW-4  [author] 24 Sep @ 11:01am 
Due to an error during code synchronization, part of the development progress was lost. As a result, the release of this program may be postponed, with the latest expected release date in October:steamsad:
DsW-4  [author] 22 Sep @ 11:20am 
@SilkMoth Normally there will be no problems.