Terra Invicta

Terra Invicta

Enable Achievements
sq_paradox  [udvikler] 26. okt. 2023 kl. 15:37
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.
< >
Viser 1-15 af 22 kommentarer
Vincent__2k3 [FR] 25. feb. 2024 kl. 2:12 
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  [udvikler] 26. feb. 2024 kl. 9:21 
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 kl. 1:37 
Oprindeligt skrevet af 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  [udvikler] 27. feb. 2024 kl. 10:40 
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 kl. 2:56 
I will try that as a last resort solution, I'll keep you updated. Thank you!
Vincent__2k3 [FR] 28. feb. 2024 kl. 3:12 
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 kl. 3:31 
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 kl. 17:20 
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. juli 2024 kl. 11:15 
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  [udvikler] 6. juli 2024 kl. 17:53 
Oprindeligt skrevet af 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.
Sidst redigeret af sq_paradox; 6. juli 2024 kl. 17:54
shimmer 6. juli 2024 kl. 21:00 
Oprindeligt skrevet af sq_paradox:
Oprindeligt skrevet af 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. juli 2024 kl. 21:03 
Also this mod can generate an enpty Settings.xml file.
Spliffy 1. aug. 2024 kl. 16:38 
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 kl. 16:42 
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?
Sidst redigeret af Spliffy; 1. aug. 2024 kl. 16:44
sq_paradox  [udvikler] 1. aug. 2024 kl. 16:56 
Oprindeligt skrevet af 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.
Sidst redigeret af sq_paradox; 1. aug. 2024 kl. 17:37
< >
Viser 1-15 af 22 kommentarer
Per side: 1530 50