XCOM 2
54 ratings
[Beta] XModBase Redux
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.051 MB
11 Jan, 2024 @ 6:05pm
21 Apr @ 9:21am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[Beta] XModBase Redux

Description
What is this and why does it exist:
This is a partial rewrite of XModBase 2.0. The original uses some OPTC to swap some base game classes with its own versions, most notably X2AbilityToHitCalc_StandardAim. This means that anybody using any mod that includes XModBase 2.0 versions is missing some of the latest Community Highlander bugfixes and features. Mods shipping XModBase include Extended Perk Pack, LW2 Classes and Perks, Shadow Ops Perk Pack, Long War of The Chosen, and more.

How does this fix it?
XModBase contains a pretty nifty setup for its OPTC that ensures the newest version is used no matter which combination of mods are installed. So I've rewritten its version of X2AbilityToHitCalc_StandardAim to use new Highlander hooks instead of replacing the base functions, making it compatibile with current and future fixes. By setting bumping the main version number to 3, this now wins the "newest version" setting so its version of the files will be used regardless of what other mods are being used or load order.

How do I use it?
All you have to do is subscribe to this mod if you use any other mod that uses XModBase, and it will update things automatically.

This is marked beta as I have tested this with various combinations and load orders and tested the refactored hooks, this is still a new project and might have other issues.

Credits
  • Xylthixlm for creating the original XModBase and having the foresight to implement the versioning functionality this makes use of, and for giving me permission to upload this version.
  • RustyDios for the preview thumbnail.
19 Comments
Dragon32 9 Jul @ 2:27am 
@david.kahil1
Just load this. It will overwrite old copies of XModBase bundled by other mods.
david.kahil1 9 Jul @ 2:04am 
so i dont need xmodbase to run this, is good by itself?
Roknar 17 Apr @ 5:20pm 
OK I am confused about one part, what abotu the "...Redux" folder? it's not mentioned here or in the 2.0 version.

This built successfully, but I don't know if this will cause issues later?

[Engine.ScriptPackages]
+NonNativePackages=YOURMODHERE
+NonNativePackages=LW_Tuple
+NonNativePackages=XModBase_Interfaces
+NonNativePackages=XModBase_Core_3_0_0
+NonNativePackages=XModBaseRedux

[UnrealEd.EditorEngine]
+ModEditPackages=LW_Tuple
+ModEditPackages=XModBase_Interfaces
+ModEditPackages=XModBase_Core_3_0_0
+ModEditPackages=XModBaseRedux

(I also did not copy the x2Downlaodable and example U, to keep only what I needed)
Dęąth Viper 30 Dec, 2024 @ 11:39am 
Thanks. Xmod is truly a masterpiece!
Tedster  [author] 29 Dec, 2024 @ 2:20pm 
just copy the files from this one instead of the older 2.0 version.
Dęąth Viper 29 Dec, 2024 @ 1:12pm 
As a modder, should I use the 2.0 and link this as a dependancy or just copy the files over from this just like with 2.0? Sorry if the question was asked already, I have been reading through thousands of comments today and really don't want to read anymore, I just want to start working on new perk pack
Tedster  [author] 20 Jul, 2024 @ 2:17pm 
@LightendDark - mods can integrate XModBase into their code without requiring it to be subbed to, so depending on what you use, this might be helpful.
LightenedDark 6 Jul, 2024 @ 4:01pm 
Stupid question but if no mods of mine request this mod nor XModBase 2, I don't need this mod right? Even with Complicated Red Fog?
SentySent 23 Jan, 2024 @ 6:19am 
Will you consider making scripts like XMBAbilityCost_ActionPoints to be less log spammy?
LeyShade 18 Jan, 2024 @ 8:14am 
@Dragon92 - Most of the O+E team has in various combinations, through both launchers. Can't comment as to if it effects every mod, but there is no load hangs and noticeable increase in several mods performance, including noticeably improved functioning within larger packs 'n' stacks. Don't know what exactly Tedster did, but it's seemingly improved a lot of things all around, and speeded up the rerelease of the O+E immensely.

While O+E itself doesn't support LWOTC, from testing of sister packs focused around LWOTC, there is a notable downtick in points of overwatch, line of sight and flyover hanging. This would be a win for anyone on lower powered systems especially.

As we suggested earlier for onlookers, this should be one of the foundational pieces of all setups alongside the Highlander that everyone should use, as at best it's a free performance and compatibility upgrade, and at worst a non-noticeable mod that can forgotten about in the list without consequence.