Red alert 2 Radars

by nbdfs1

添加红警2中一些具有视野&探测性质的建筑。 1.心灵探测仪:可以探测一定范围内敌军集团的踪迹并对其进行干扰标记,被标记的敌人移速会下降。 2.心灵信标:可以为一定范围内的己方军事目标提供增幅,增幅效果随信标内嵌入的插件效果而异,包括攻击,防御,暴击,以及特殊效果。 3.雷达:定期派遣一架无人侦察机对未探索区域进行侦察,距离越远效率越低,但无限范围。(附带专属武器) Please use this mod under 简体中文 / English locale, thanks.

Content
1 year, 9 months ago
1.1
1.07K
Combat Armor Environment

b attempt to index local 'refer' on_entity_died

1 year, 11 months ago

see error message https://i.imgur.com/H17juKN.png
not sure what caused it

1 year, 11 months ago

Ok I will check this tonight

1 year, 11 months ago

Sorry, is this issued beacon created by a script? I mean some mods that can build it like Companion drones or Construction drones or Autobuild? There is no error occurs when I test to destroy the beacon.

1 year, 11 months ago
(updated 1 year, 11 months ago)

This error means the beacon is not recorded by this mod as well.
This will only happen when the beacon is built using an unnormal way.(not built from player, robot or a raised script event)
Anyway, I will add a protection code to stop this crash, but similar error may still happen using the current mod configs.
If you could send the mod list, I will double check this and make some further investigation, thank you.

1 year, 11 months ago

I assume it has something to do with creative mod and "instant blueprint" then
but its quite difficult to reproduce it
I got the same error on_entity_mined, but couldnt reproduce that either

1 year, 11 months ago

Then it should be.

The mod need to check the status of these special buildings in some cases to active a script, that could reach some functions the base game cannot achieve. These information are recorded while constructing. If other mods say: “Oh I don’t want to tell you what im doing now”, then these information are lost.

When you destroy these entities, the game will try to reset the effects of them (such as the error you feedback: clear the beacon covered area). If the destroyed entity doesn’t have recorded information during the construction stage, the error occurs.

There is a simple method to check whether the buildings successfully created under this mod series: The Construction Animation.

If you don’t see the animation, the building is probably created by a silent raised script which won’t detected by this mod. This will cause error.

The crash may not happen when the error occurs, but these issued entities aren’t able to achieve some of their special functions, they are fake entities.(psychic beacon won’t share any bonus to military entities surrounds, detector has no alert scope to slowdown enemies, radar never send the spotter, chrono sphere refuse players’ calling …)

I’m sorry that this bug cannot be fixed due to mod compatibility, you may need to change the mod list, disable this mod, or just pay attention to these special buildings, don’t build them by the issued mod.:-(

New response