Do Not Click On The Honey Pot !

Order of mods

General discussions about the tennis games Tennis Elbow
Forum rules
Speak English and don't hijack topics, troll, use profanities nor insults

Order of mods

Postby holt77 » 16 Oct 2025, 09:50

Since the Modding bug fix listed below, how do I specify the order of the mods I'm using? For the last few months, I've been testing various things with my own data updates, which means I need my own mod to load last, as it overwrites some of the data files in XKT. However, I've tried everything and now my own mod always seems to load first, which means I can't update the data from XKT, as the original XKT data files always overwrite my updated data files?

Bug Fixes :
- Modding : Fixed the Mod load order for Mods coming from Mod.io ; previously, the load order depended on each Mod's last installation or update date, which could result in invalid saved games, especially when combining incompatible Mods, such as the outdated XKT2023, which doesn't work with newer Mods designed for XKT 4. Many users installed both together, creating unstable game states. This fix should help prevent future save corruption. However, it might also break your current saved game if it relies on XKT2023 (or any other improperly configured Mods). I did my best to strike a balance, but please remember: Mods are created by users like yourself. If their authors don’t follow the recommended guidelines, or if you don’t read their descriptions carefully, I can’t guarantee the game will remain stable.
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51

Re: Order of mods

Postby holt77 » 16 Oct 2025, 10:00

Actually, I see there's now a [Priority] option in the Mods.ini file, so can I just manually update that file and save it?
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51

Re: Order of mods

Postby manutoo » 17 Oct 2025, 05:40

Hello,

Priority is the Mods.ini file is meant to order other user's Mods.

For your Mod, if you want it to be applied on the XKT Mod, then read the 4th point here : topic60-34687.php .

You can also define a priority in your Mod's .ini, but it's meant when you don't know the Mods that will depend on it or that it will depend on.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 20276
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Order of mods

Postby holt77 » 17 Oct 2025, 09:03

I've tried putting my mod directly into the Mods folder with a Mod.ini containing the lines below:

[Mod]
DependOn = XKT, ScoreBoardsByStef

I've also tried using my own mod from Mod.io and adjusting the priority in the Mods.ini file.

Regardless of what I do, it loads my mod before anything else and then overwrites it with XKT.

Is there anything else I can try? Or is there a way to roll back to the previous patch, as if I can't get this to work I've lost dozens of hours of work on this.
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51

Re: Order of mods

Postby manutoo » 17 Oct 2025, 09:07

What is your Mod on mod.io ? I'll have a look.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 20276
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Order of mods

Postby holt77 » 17 Oct 2025, 09:12

manutoo wrote:What is your Mod on mod.io ? I'll have a look.


The mod is set to private, as I have a series of updated files that I plug in and out of the mod to try out very specific things to see if they work.

Out of curiosity, do I need to change any of these settings in the Mods.ini file to make the priority setting work:

[Mod]
GlobalPriority = 0
SortModIo = 1
BasePath = Mods
Load = <All>
PreferModIo = 1
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51

Re: Order of mods

Postby manutoo » 17 Oct 2025, 09:23

To make priority work for other Mods, you have to set GlobalPriority to 1 ; if you want it to work for your Mod for all people (ie: not only you), you have to add a "Priority = 1" line in your Mod's Mod.ini , under [Mod] .

But I can access any private mod if you give me a link to it, let me check so if there's a bug, I could fix it.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 20276
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Order of mods

Postby holt77 » 17 Oct 2025, 09:37

manutoo wrote:To make priority work for other Mods, you have to set GlobalPriority to 1 ; if you want it to work for your Mod for all people (ie: not only you), you have to add a "Priority = 1" line in your Mod's Mod.ini , under [Mod] .


So, if I'm using my own mod via Mod.io, the Priority option should work if I update GlobalPriority to 1?

And if I want the Priority option to work if I'm using my own mod from within the Mods folder, I just add Priority=1 to the Mod.ini?

That should hopefully solve it, thanks. I'm at work now, but will try later.

manutoo wrote:But I can access any private mod if you give me a link to it, let me check so if there's a bug, I could fix it.


I've sent you a DM with details. There isn't much in it at the moment, as I was trying to use it to specifically carry out tests on the Davis Cup host stadiums after the last update. That's when I discovered I couldn't get it to load last!
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51

Re: Order of mods

Postby manutoo » 17 Oct 2025, 09:42

Your Mod is private right now, but I could find it by its name, but I didn't look at it because I found your issue (from your Bug Report last time). In your XKT.ini, change these lines, under [WT_Static], from :
SavePlayerIni = 2
SaveTourIni = 1
to :
SavePlayerIni = 0
SaveTourIni = 0
(HowTo => topic19-32161.php )
And then delete the "Ini" folder in your "Tennis Elbow 4" folder (next to the "Mods" folder) : this is the highest priority folder, checked before Mods, that's why your changes aren't seen.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 20276
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Order of mods

Postby holt77 » 17 Oct 2025, 09:50

Ah, thank you so much for that! I will do that later.

I was playing around with some of the options under [WT_Static], and was curious to try out exporting the player data sorted by different criteria, for some reason. I'll know not to do that next time!
holt77
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 74
Gaming Since: 10 Jun 2025, 11:51


Return to Tennis Elbow 4

Who is online

Users browsing this forum: ClaudeBot and 20 guests