์ปค๋งจ๋“œ ์•ค ์ปจ์ปค ๋ฆฌ๋งˆ์Šคํ„ฐ ์ปฌ๋ ‰์…˜

์ปค๋งจ๋“œ ์•ค ์ปจ์ปค ๋ฆฌ๋งˆ์Šคํ„ฐ ์ปฌ๋ ‰์…˜

[TD] ๐Ÿ›  NCO ๐Ÿ›  (RULES.INI ๐Ÿ“ƒ & Lua Scripting โš™)
Roentgen-X-Ray 2025๋…„ 1์›” 13์ผ ์˜ค์ „ 12์‹œ 06๋ถ„
Bug creating a mod weapon
in the rules.ini:

[Mods]
NewAircraft=
NewBuildings=
NewBullets=
NewInfantry=
NewUnits=LaserTank
NewWarheads=
NewWeapons=MINI_LASER

;1 Mod Unit
[LaserTank]
BaseType=LTNK
BuildLevel=5
ScenarioLevel=5
Prerequisite=NONE
PrimaryWeapon=MINI_LASER

;2 Mod Weapon
[MINI_LASER]
BaseType=OBELISK_LASER
FriendlyName=
Projectile=LASER_BEAM
Damage=50
RateOfFire=40
Range=1024

gives the error: Failed to parse value 'MINI_LASER as weapon for [LASERTANK -> PrimaryWeapon]: String not recognised as a Weapon type: MINI_LASER

1) I also tryed to copy the mod weapon below the weapons category in the rules.ini

2) I also tryed to write it in the xml:
<?xml version="1.0"?>

<!--
The commands in this file enable all infantry/buildings/units to be buildable
when the rules.ini is configured properly
-->

<ModGameCommands>
<CNCModGameCommandManager>
<CNCModGameCommands>
<!-- mods -->

<Command Name="LaserTank">
<GameCommand>GAME_COMMAND_TD_MOD_CUSTOM_BUILD1</GameCommand>
</Command>

<Command Name="MINI_LASER">
<GameCommand>GAME_COMMAND_TD_MOD_CUSTOM_BUILD2</GameCommand>
</Command>


</CNCModGameCommands>
</CNCModGameCommandManager>
</ModGameCommands>