[MOD] Faction War/Economy Enhancer v5.5

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

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

Tarr3128
Posts: 6
Joined: Wed, 27. Nov 19, 11:14
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Tarr3128 » Sat, 25. Jan 20, 08:33

And it seems to be gone again, pretty weird. I updated to Beta5HF1 and the Xenon did not swarm me again with the savegame I kept to see what is happening when the update hits.

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7411
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by BlackRain » Wed, 12. Feb 20, 21:38

Few errors I noticed in debug, not sure if you are aware.

[General] 0.00 ======================================
[=ERROR=] 0.00 No matching node for path '//damage[@value='1000']/@value' in patch file 'extensions\faction_fix_pack\assets\fx\weaponfx\macros\bullet_xen_turret_l_laser_01_mk1_macro'. Skipping node.
[General] 0.00 ======================================

[General] 6534.49 ======================================
[=ERROR=] 6534.49 No matching node for path '//actions/do_else/do_elseif[contains(@value, 'not this.ship.jobexpired')]/debug_text' in patch file 'extensions\faction_fix_pack_econ_ai\aiscripts\order.trade.middleman.xml'. Skipping node.
[General] 6534.49 ======================================


[General] 6534.49 ======================================
[=ERROR=] 6534.49 Multiple matching nodes for path '//cue[@name='TransferFleetConversationNextSection']/actions/do_if/do_if/do_all[@exact='$FleetShips.count']' in patch file 'extensions\faction_fix_pack\md\rml_deliver_fleet.xml'. Skipping node.
[General] 6534.49 ======================================


[=ERROR=] 6536.06 Error in AI script fight.attack.object.medium on entity 0x1e9b0: Property lookup failed: $ProcessedAnyTarget
* Expression: if @$primarytarget.exists and $targets.indexof.{$primarytarget} gt 0 then $targets.{$i} == $primarytarget else not $ProcessedAnyTarget
* Action: <do_if>, line 22
[General] 6536.06 ======================================


[General] 6538.70 ======================================
[=ERROR=] 6538.70 Error in AI script order.fight.attack.object on entity 0x1d56d: Property lookup failed: this.ship.distanceto.{component.{0x1d505L}}
* this.ship == component.{0x1d56aL} (name='KHK Raiding Party Queen's Guard', class=ship_m)
* Expression: not @$target or this.attention ge attention.visible or this.ship.distanceto.{@$target} gt this.ship.maxcombatrange.all
* Action: <apply_attackstrength>, line 518
[General] 6538.70 ======================================


[General] 6539.71 ======================================
[=ERROR=] 6539.71 Error in AI script order.fight.attack.object on entity 0x1d56d: Property lookup failed: this.ship.distanceto.{component.{0x1d505L}}
* this.ship == component.{0x1d56aL} (name='KHK Raiding Party Queen's Guard', class=ship_m)
* Expression: not @$target or this.attention ge attention.visible or this.ship.distanceto.{@$target} gt this.ship.maxcombatrange.all
* Action: <apply_attackstrength>, line 518
[General] 6539.71 ======================================

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7411
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by BlackRain » Wed, 12. Feb 20, 23:06

By the way Mysterial, I am trying to do something with adding corporation factions and having them owning factories and such. In your mod, you have factions build stations but it seems the way you set it up it comes under ownership of a primary faction (government faction). Which file do you have it determining who will own the newly built factories? Or could you point me to the code or perhaps provide a way to make it compatible?

Mysterial
Posts: 645
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Mysterial » Thu, 13. Feb 20, 01:06

Factories created as a result of the "add some stuff to my near-empty sector" logic is in FactionGoal_Hold_Space. The owner is the faction for which the faction logic is running. I think all cases of actual factories - not equipment docks and trading stations which are also handled there - route to FactionSubgoal_BuildFactory (mod file, not part of vanilla)

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7411
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by BlackRain » Thu, 13. Feb 20, 01:08

Mysterial wrote:
Thu, 13. Feb 20, 01:06
Factories created as a result of the "add some stuff to my near-empty sector" logic is in FactionGoal_Hold_Space. The owner is the faction for which the faction logic is running.
Hmm, I see, but the sector is not empty lol, it has a ton of stations in it but still built a new one. Did you edit FactionGoal_Hold_Space ?

Mysterial
Posts: 645
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Mysterial » Thu, 13. Feb 20, 01:11

Factories created in non-empty sectors are just the economic logic (FactionLogic_Economy) doing its thing. This is vanilla behavior. (Well, technically I trigger it via custom analysis, but it's still the vanilla factory creation that runs)

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7411
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by BlackRain » Thu, 13. Feb 20, 01:12

Mysterial wrote:
Thu, 13. Feb 20, 01:11
Factories created in non-empty sectors are just the economic logic (FactionLogic_Economy) doing its thing. This is vanilla behavior. (Well, technically I trigger it via custom analysis, but it's still the vanilla factory creation that runs)
I see, so I need to take a look at the vanilla script then, is it Factionlogic_economy? need to see if I can find a way to make it so the factions are correct

XTC0R
Posts: 401
Joined: Sat, 1. Dec 18, 19:58
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by XTC0R » Thu, 13. Feb 20, 09:30

BlackRain wrote:
Wed, 12. Feb 20, 23:06
By the way Mysterial, I am trying to do something with adding corporation factions and having them owning factories and such. In your mod, you have factions build stations but it seems the way you set it up it comes under ownership of a primary faction (government faction). Which file do you have it determining who will own the newly built factories? Or could you point me to the code or perhaps provide a way to make it compatible?
Could the Split Vendetta DLC have the logic to deal with smaller groups/clans/corporations since the Split will not behave like the big factions and more like clans?

DeadAirRT
Posts: 1022
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by DeadAirRT » Thu, 13. Feb 20, 23:12

They will be on the same faction logic most likely. It already can handle smaller groups/factions.

Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Misunderstood Wookie » Fri, 14. Feb 20, 14:11

And here I wait for Mysterials updated mod pack that he spoke about on discord a night ago.. lol
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

Mysterial
Posts: 645
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Mysterial » Fri, 14. Feb 20, 22:41

Here's a new beta version:

Download Link

Main changes:
  • Fixed Xenon small raiding parties to not get distracted by the first thing they see so often, so they filter through the sectors and cause more harassment throughout space
  • Improved capital ship movement
  • Fixed issues with pirate behavior
  • Fixed starter factories after sector takeover always being in roughly the same position
  • Improved force allocation for factions with multiple fronts (i.e. HOP)
  • Tweaks to invasion AI when the faction can't build ships fast enough
  • Reduced "[Faction] mounting defence in [Sector]" news message spam (still a bit too much, but not a flood anymore)
  • Catchup module: New feature where factions that are losing badly for several hours but still own their home sector can receive a resource drop from their home planet.
    • Ships are 'spawned' but far from the sector center and must make it to the shipyard or wharf, so they can be intercepted by enemies or pirates
    • Ships are tagged 'Planetary Support' so they can be recognized
    • After the ships deliver, they are recycled
    • Only resources in critical need are delivered, so in some cases this actually increases opportunity for player money making instead of the opposite
    • Hopefully this is a good compromise between cheating and maintaining universe logic. Feedback would be appreciated.

Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Misunderstood Wookie » Sat, 15. Feb 20, 02:34

WOO HOO I love you, have my small child made of fur haha
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

s1asher
Posts: 24
Joined: Sat, 19. Jan 19, 15:48
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by s1asher » Sun, 16. Feb 20, 12:23

Mysterial,
After installation, I see that extension in the game is from 14.01 and version is 4.47 (previous version), but you posted new beta on 15.02. Are you sure that link is correct?

User avatar
020779
Posts: 7
Joined: Sat, 28. May 11, 06:57
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by 020779 » Sun, 16. Feb 20, 13:42

s1asher wrote:
Sun, 16. Feb 20, 12:23
extension in the game is from 14.01 and version is 4.47 (previous version), but you posted new beta on 15.02
I got the same

Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Misunderstood Wookie » Sun, 16. Feb 20, 13:59

That would be caused by just not updating the content.xml to reflect a version change, funny thing about those I figured out if going from a newer to older version it won't load the save game every time it depends on the mod sometimes it will grey it out, as is the case with my mod which only touches icons nothing mechanically about the game sim.
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

Mysterial
Posts: 645
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Mysterial » Sun, 16. Feb 20, 15:36

Sorry, I just forgot to update the version number and date in the header.

Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Misunderstood Wookie » Sun, 16. Feb 20, 15:56

Does not bother me, I know its a new version.
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7411
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by BlackRain » Wed, 19. Feb 20, 18:39

In case you haven't checked yet, there are several nodes (perhaps more) which no longer match with the new 3.0 beta 6, so the mod won't work properly.

Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Misunderstood Wookie » Thu, 20. Feb 20, 13:20

BlackRain wrote:
Wed, 19. Feb 20, 18:39
In case you haven't checked yet, there are several nodes (perhaps more) which no longer match with the new 3.0 beta 6, so the mod won't work properly.
What are the nodes he said he'd maybe fix it tomorrow but I need it to test other mods so maybe I'll have to fix it myself temporarily
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

Mysterial
Posts: 645
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [MOD] Faction War/Economy Enhancer v4.32

Post by Mysterial » Fri, 21. Feb 20, 02:01

Here's a B6 friendly version. Only lightly tested, so please report any issues. I'll probably do overnights this weekend to evaluate long term balance, since I don't expect further major changes from Egosoft.

Download Link

Post Reply

Return to “X4: Foundations - Scripts and Modding”