Terra Invicta

Terra Invicta

Enable Achievements
sq_paradox  [developer] 26 Oct, 2023 @ 3:37pm
Bugs
Post here if you are having issues loading the mod.

Please post any errors from the log file:
AppData\LocalLow\Pavonis Interactive\TerraInvicta\Player.log

It should look something like this:
Getting All Mod Files Adding Enabled Mod Directory: Mods/Enabled/Enable Achievements Mods/Enabled/Enable Achievements/Enable Achievements.png Mods/Enabled/Enable Achievements/EnableAchievements.dll Mods/Enabled/Enable Achievements/EnableAchievements.dll.49586.cache Mods/Enabled/Enable Achievements/ItemData.txt Mods/Enabled/Enable Achievements/ModInfo.json Mods/Enabled/Enable Achievements/WorkshopItemInfo.xml ... [Manager] Starting. [Manager] Parsing mods. [Manager] Reading file 'D:\Steam\steamapps\common\Terra Invicta\Mods/Enabled\Enable Achievements\ModInfo.json'. [Manager] Sorting mods. [Manager] Loading mods. [EnableAchievements] Version '1.2.0'. Loading. [EnableAchievements] EnableAchievements set to True [EnableAchievements] Active. [EnableAchievements] Loading time 0.01 s.
< >
Showing 1-15 of 22 comments
Vincent__2k3 [FR] 25 Feb, 2024 @ 2:12am 
Hi! I'm having some issues with the mod as it does not seem to work at all. Here is the logs:

[Manager] Injection... [Manager] Initialize. [Manager] Version: 0.27.10.0. [Manager] OS: Microsoft Windows NT 10.0.22631.0 AMD64. [Manager] Net Framework: 4.0.30319.42000. [Manager] Unity Engine: 2020.3.481. [Manager] Game: Terra Invicta. [Manager] IsSupportOnSessionStart: False. [Manager] IsSupportOnSessionStop: False. [Manager] Mods path: D:\Steam\steamapps\common\Terra Invicta\Mods/Enabled. [Manager] [Error] Method 'EntryPoint' not found. [Manager] Injection canceled. Initializing Logging Log Config Loaded Logger ready TerraInvicta v0.3.125 Initializing global bindings AltSavePath = Found Profile Config File Use Mods:True Setting Up Directories Getting All Mod Files Adding Enabled Mod Directory: Mods/Enabled/Enable Achievements Mods/Enabled/Enable Achievements/Enable Achievements.png Mods/Enabled/Enable Achievements/EnableAchievements.dll Mods/Enabled/Enable Achievements/ItemData.txt Mods/Enabled/Enable Achievements/ModInfo.json Mods/Enabled/Enable Achievements/WorkshopItemInfo.xml Done Staging Mod Templates . . . Getting All Mod Files Adding Enabled Mod Directory: Mods/Enabled/Enable Achievements Mods/Enabled/Enable Achievements/Enable Achievements.png Mods/Enabled/Enable Achievements/EnableAchievements.dll Mods/Enabled/Enable Achievements/ItemData.txt Mods/Enabled/Enable Achievements/ModInfo.json Mods/Enabled/Enable Achievements/WorkshopItemInfo.xml Setting up 10 worker threads for Enlighten. Thread -> id: 2290 -> priority: 1 Thread -> id: 3584 -> priority: 1 Thread -> id: 3d70 -> priority: 1 Thread -> id: 29e0 -> priority: 1 Thread -> id: 2858 -> priority: 1 Thread -> id: 1a44 -> priority: 1 Thread -> id: 1d9c -> priority: 1 Thread -> id: 128c -> priority: 1 Thread -> id: 79c -> priority: 1 Thread -> id: 1790 -> priority: 1 Init LoadWidget Unloading 6 Unused Serialized files (Serialized files now loaded: 45) UnloadTime: 30.988800 ms Init LoadWidget Found Profile Config File Use Mods:True Setting Up Directories Getting All Mod Files Adding Enabled Mod Directory: Mods/Enabled/Enable Achievements Mods/Enabled/Enable Achievements/Enable Achievements.png Mods/Enabled/Enable Achievements/EnableAchievements.dll Mods/Enabled/Enable Achievements/ItemData.txt Mods/Enabled/Enable Achievements/ModInfo.json Mods/Enabled/Enable Achievements/WorkshopItemInfo.xml Done Staging Mod Templates <color=#00cc00>LoadTime:</color> Load All Templates: 2.386s <color=#00cc00>LoadTime:</color> Solar System Bootstrap:: 2.401s

In the meantime I'll keep on probing the internet to see if someone else got this problem and managed to fix it.
I can't help but notice the "[Manager] [Error] Method 'EntryPoint' not found.
[Manager] Injection canceled.".
I followed your post in the main discussion to install the mod, is it outdated or am I missing something?
I've tried both Assembly and DoorstopProxy installs by the way for UMM.
sq_paradox  [developer] 26 Feb, 2024 @ 9:21am 
Disable the mod in-game, then relaunch and see if that solves the error or not. That will tell you if the issue is with the mod or UMM.
Vincent__2k3 [FR] 27 Feb, 2024 @ 1:37am 
Originally posted by sq_paradox:
Disable the mod in-game, then relaunch and see if that solves the error or not. That will tell you if the issue is with the mod or UMM.

I launched the game, disabled the mod, relaunched. Here is the new log:

[Manager] Injection... [Manager] Initialize. [Manager] Version: 0.27.10.0. [Manager] OS: Microsoft Windows NT 10.0.22631.0 AMD64. [Manager] Net Framework: 4.0.30319.42000. [Manager] Unity Engine: 2020.3.481. [Manager] Game: Terra Invicta. [Manager] IsSupportOnSessionStart: False. [Manager] IsSupportOnSessionStop: False. [Manager] Mods path: D:\Steam\steamapps\common\Terra Invicta\Mods/Enabled. [Manager] [Error] Method 'EntryPoint' not found. [Manager] Injection canceled. Initializing Logging Log Config Loaded Logger ready TerraInvicta v0.3.125 Initializing global bindings AltSavePath = Found Profile Config File Use Mods:True Setting Up Directories Getting All Mod Files Adding Disabled Mod Directory: Mods/Disabled/Enable Achievements Done Staging Mod Templates
sq_paradox  [developer] 27 Feb, 2024 @ 10:40am 
That means the problem is with the UMM install.

I don't know what the problem is given that you have tried both Assembly and DoorstopProxy. But hopefully that will help you find the answer.

The only recommendation I could offer would be to completely remove UMM, then verify your game files to make sure nothing is amiss there, and then redownload the newest version of UMM and completely reinstall it.
Vincent__2k3 [FR] 28 Feb, 2024 @ 2:56am 
I will try that as a last resort solution, I'll keep you updated. Thank you!
Vincent__2k3 [FR] 28 Feb, 2024 @ 3:12am 
Ok so I did the following:

- Uninstalled from the UMM menu
- Restored original files, from the same menu
- Deleted the entire folder it was in
- Verified file integrity for Terra Invicta (1 was missing)
- Downloaded UMM again
- Installed it as suggested
- Tried an Assembly install, same issue as before (Injection cancelled, entry point method not found)
- Uninstalled, restored files, verified integrity of TI: all good
- Reinstalled with DoorstopProxy, still the same issue

One thing I noticed is that UMM tells me I need game version 0.3.126 at minimum but the latest official build is 0.3.125? https://imgur.com/a/HiItyer
Vincent__2k3 [FR] 28 Feb, 2024 @ 3:31am 
Found the issue! The versions gave it away: you shouldn't download the last UMM version from the nexus!
Instead, download the one published on 13 Sep 2023, 12:25AM (version 0.27.7).

I have then followed your instructions on the 2nd comments page on the workshop page, and it works!!
It would be fantastic if you could update the description or post a message containing the "fix", I'm probably not the only one getting those errors.

Thank you for everything.
DuckingDuke 25 Apr, 2024 @ 5:20pm 
UMM fails to save the settings.xml
Installed everything according to the instructions but when I want to change the settings to allow achievements on skirmish and with the console enabled it throws this in the log.

[EnableAchievements] [Error] Can't save E:\SteamLibrary(E)\steamapps\common\Terra Invicta\Mods/Enabled\Enable Achievements\Settings.xml. [EnableAchievements] [Exception] InvalidOperationException - EnableAchievements.Main+Settings is inaccessible due to its protection level. Only public types can be processed.

And with a quick glance at the code on Github it seems that the Settings class being "internal" seems to cause this hiccup.
shimmer 6 Jul, 2024 @ 11:15am 
Can not save mod setting.

[EnableAchievements] [Error] Can't save C:\Program Files (x86)\Steam\steamapps\common\Terra Invicta\Mods/Enabled\Enable Achievements\Settings.xml.
[EnableAchievements] [Exception] InvalidOperationException - EnableAchievements.Main+Settings is inaccessible due to its protection level. Only public types can be processed.
sq_paradox  [developer] 6 Jul, 2024 @ 5:53pm 
Originally posted by shimmer:
Can not save mod setting.

[EnableAchievements] [Error] Can't save C:\Program Files (x86)\Steam\steamapps\common\Terra Invicta\Mods/Enabled\Enable Achievements\Settings.xml.
[EnableAchievements] [Exception] InvalidOperationException - EnableAchievements.Main+Settings is inaccessible due to its protection level. Only public types can be processed.

My guess is that this is due to being in Program Files. There are special protections and permissions on Program File which can cause issues.

Either that or maybe the conflicting / between Mods and Enabled, but that's not something controlled by the mod.
Last edited by sq_paradox; 6 Jul, 2024 @ 5:54pm
shimmer 6 Jul, 2024 @ 9:00pm 
Originally posted by sq_paradox:
Originally posted by shimmer:
Can not save mod setting.

[EnableAchievements] [Error] Can't save C:\Program Files (x86)\Steam\steamapps\common\Terra Invicta\Mods/Enabled\Enable Achievements\Settings.xml.
[EnableAchievements] [Exception] InvalidOperationException - EnableAchievements.Main+Settings is inaccessible due to its protection level. Only public types can be processed.

My guess is that this is due to being in Program Files. There are special protections and permissions on Program File which can cause issues.

Either that or maybe the conflicting / between Mods and Enabled, but that's not something controlled by the mod.



But all other mods are working fine, able to save their setting.
shimmer 6 Jul, 2024 @ 9:03pm 
Also this mod can generate an enpty Settings.xml file.
Spliffy 1 Aug, 2024 @ 4:38pm 
Could it be the "internal class" setting in main.cs that causes the failure to save?
I'm not a programmer but thats the only setting I found in the source code:

internal class Settings : UnityModManager.ModSettings, IDrawable
{
public override void Save(UnityModManager.ModEntry modEntry)
{
Save(this, modEntry);
}

public void OnChange()
{
}

[Draw("Enable Achievements when console is enabled")]
public bool allowConsole = false;
[Draw("Enable Achievements when in Skirmish")]
public bool allowSkirmish = false;
Spliffy 1 Aug, 2024 @ 4:42pm 
could this cause the trouble in "main.cs"?

internal class Settings : UnityModManager.ModSettings, IDrawable
{
public override void Save(UnityModManager.ModEntry modEntry)
{
Save(this, modEntry);
}

public void OnChange()
{
}

[Draw("Enable Achievements when console is enabled")]
public bool allowConsole = false;
[Draw("Enable Achievements when in Skirmish")]
public bool allowSkirmish = false;

should it be public class settings maybe?
Last edited by Spliffy; 1 Aug, 2024 @ 4:44pm
sq_paradox  [developer] 1 Aug, 2024 @ 4:56pm 
Originally posted by Spliffy:
should it be public class settings maybe?

I'm sure I copied and pasted that from somewhere but the example on the wiki does use:
public class Settings : UnityModManager.ModSettings, IDrawable

I don't think that would cause any issues, but it can't hurt to try the change.
It's open source, Visual Studio Community edition is free.
I'm not sure it's worth an update it's not fixing a specific issue.
But if it fixes something let me know and I'll make an update.


Edit: Saw the other post. Merged it into this one.

Edit2: Not sure if I should laugh or cry. I did this 4 months ago, it's version 1.3.1.
I just didn't upload it anywhere.

Edit3: Version 1.3.1 updated, here on Nexus and on Gihub... only 4 months late.
Last edited by sq_paradox; 1 Aug, 2024 @ 5:37pm
< >
Showing 1-15 of 22 comments
Per page: 1530 50