How are weapons working

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

HighVelocity
Posts: 189
Joined: Mon, 22. Dec 03, 17:15
x3ap

How are weapons working

Post by HighVelocity »

1. Is always a new game required for a change ?
I changend another mod for 4 times faster (4 shots in one second). Only with new game it was working.

2. Are there restrictions or hard codings ?
I changed a few weapons (100 times the damage). Nothing. Even with new start. The ship showed it correct (15.000 damage).

3. Also the distance never changed (6000 and one seconds lifetime or 2000 and 3 seconds <a lot of try and errror>). So i should hit in 6km distance. But absolutely not working.

4. And last the modparts. I changed them drastically for the testing. So factor 10 means 1000 %. Ship shows everything correct. But with damage 30.000 i needed several hits on a little xenon.
On the other hand a xenon battleship i could (sometimes) destroy with about 5 seconds permanent fire. So the ship registers it.

This is from another mod
<diff>
<!-- Weapon Mods -->
<replace sel="/equipmentmods/weapon/damage[@ware='mod_weapon_damage_01_mk1']/@min">10</replace>
<replace sel="/equipmentmods/weapon/damage[@ware='mod_weapon_damage_01_mk1']/@max">15</replace>
<!-- mod_weapon_damage_02_mk1 -->
<replace sel="/equipmentmods/weapon/damage[@ware='mod_weapon_damage_02_mk1']/@min">15</replace>
<replace sel="/equipmentmods/weapon/damage[@ware='mod_weapon_damage_02_mk1']/@max">30</replace> and so on (300 lines, all of them showing correct ingame)

-------------
Especially the distance (never) worked. I have 4 weapons on the eklipse, starting in 6km distance. Nothing. The little xenon already hits me in 5 km and i have 30.000 damagepower and can only start hitting in 2.5 km. So sometime things works, sometimes not. Sometime i can hit a ship in 5km distance (the big ones and controlling their hullstatus <im firing on my own ships>).
The try and testing methods make no sense ........ i think i tried about 50 different combinations - absolut frustrating.

SO: are the a few golden rules ?

example:
-- Modparts alwas need a new game ?
-- never use 10000 speed and one second because the engine cannot think so fast ? better 2500 an 4 seconds lifetime
And so on ?

thanks .....

Return to “X4: Foundations - Scripts and Modding”