Made it for when I was playing, sharing in case anyone else wants to use it - Allows using the console without a warning/disabling achievements.
Extract to UBOAT\UBOAT_Data\Managed
Also made it so if your save already had achievements disabled, then it will show the popup and after confirming it will re-enable achievements for the save again.
Edit: Figured it out - tested with budget over 1 million and it gave the achievement. Enable console with Excel sheet. Feel free to dload and replace the file as above. Essentially I removed the check whether your game used the dev console. Helps to have savefile without the devconsole flag - can be fixed with dnSpy.
Method I changed for people who want to poke around - likely will have to do it after every update:
namespace UBOAT.Game.UI.DevConsole
{
// Token: 0x02000284 RID: 644
[NonSerializedInGameState]
public partial class DevConsole : MonoBehaviour, ICreateListener
{
// Token: 0x06001621 RID: 5665 RVA: 0x000B908C File Offset: 0x000B728C
public static void Submit(string cmd)
{
//REMOVED BOTH IF STATEMENTS
if (DevConsole.confirmationPopupUI && DevConsole.confirmationPopupUI.IsOpen)
{
return;
}
if (!DevConsole.playerCareer.IsPlaythroughLockedOutOfAchievements)
{
DevConsole.confirmationPopupUI.Confirmed += DevConsole.ConfirmationPopupUI_Confirmed;
DevConsole.confirmationPopupUI.Open(DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation Title"], DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation"]);
return;
}
...... where the command executes leave that be.
Edit(disregard):
It crashes likley due to different offsets. Used dnSpy to make update to IsPlaythroughLockedOutOfAchievements from "value" to "false" in the dll as with above file and game loaded fine. Issue is when using console the warning pops up but does not let the command be used - just keeps popping up anytime i enter anything - did enable the console via their janky Excel file. I am still tinkering so if I get it to work Ill upload the file.
Edit(disregard):
It crashes likley due to different offsets. Used dnSpy to make update to IsPlaythroughLockedOutOfAchievements from "value" to "false" in the dll as with above file and game loaded fine. Issue is when using console the warning pops up but does not let the command be used - just keeps popping up anytime i enter anything - did enable the console via their janky Excel file. I am still tinkering so if I get it to work Ill upload the file.
Did the table I made that do this stop working? Seems easier to just patch the code than recompile the dll (and patch has a bigger chance of surviving an update in my experience)
Edit(disregard):
It crashes likley due to different offsets. Used dnSpy to make update to IsPlaythroughLockedOutOfAchievements from "value" to "false" in the dll as with above file and game loaded fine. Issue is when using console the warning pops up but does not let the command be used - just keeps popping up anytime i enter anything - did enable the console via their janky Excel file. I am still tinkering so if I get it to work Ill upload the file.
Did the table I made that do this stop working? Seems easier to just patch the code than recompile the dll (and patch has a bigger chance of surviving an update in my experience)
I tried few tables, none did anything so I figured it was all out of date. You are completely right about dlls being more of a pain(dlls will get undone if game validates itself although there other tools that keep it from happening) but I have less experience with CE to try to mod things as opposed to modding dlls.
Made it for when I was playing, sharing in case anyone else wants to use it - Allows using the console without a warning/disabling achievements.
Extract to UBOAT\UBOAT_Data\Managed
Also made it so if your save already had achievements disabled, then it will show the popup and after confirming it will re-enable achievements for the save again.
Edit: Figured it out - tested with budget over 1 million and it gave the achievement. Enable console with Excel sheet. Feel free to dload and replace the file as above. Essentially I removed the check whether your game used the dev console. Helps to have savefile without the devconsole flag - can be fixed with dnSpy.
Method I changed for people who want to poke around - likely will have to do it after every update:
namespace UBOAT.Game.UI.DevConsole
{
// Token: 0x02000284 RID: 644
[NonSerializedInGameState]
public partial class DevConsole : MonoBehaviour, ICreateListener
{
// Token: 0x06001621 RID: 5665 RVA: 0x000B908C File Offset: 0x000B728C
public static void Submit(string cmd)
{
//REMOVED BOTH IF STATEMENTS
if (DevConsole.confirmationPopupUI && DevConsole.confirmationPopupUI.IsOpen)
{
return;
}
if (!DevConsole.playerCareer.IsPlaythroughLockedOutOfAchievements)
{
DevConsole.confirmationPopupUI.Confirmed += DevConsole.ConfirmationPopupUI_Confirmed;
DevConsole.confirmationPopupUI.Open(DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation Title"], DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation"]);
return;
}
...... where the command executes leave that be.
Edit(disregard):
It crashes likley due to different offsets. Used dnSpy to make update to IsPlaythroughLockedOutOfAchievements from "value" to "false" in the dll as with above file and game loaded fine. Issue is when using console the warning pops up but does not let the command be used - just keeps popping up anytime i enter anything - did enable the console via their janky Excel file. I am still tinkering so if I get it to work Ill upload the file.
Made it for when I was playing, sharing in case anyone else wants to use it - Allows using the console without a warning/disabling achievements.
Extract to UBOAT\UBOAT_Data\Managed
Also made it so if your save already had achievements disabled, then it will show the popup and after confirming it will re-enable achievements for the save again.
Edit: Figured it out - tested with budget over 1 million and it gave the achievement. Enable console with Excel sheet. Feel free to dload and replace the file as above. Essentially I removed the check whether your game used the dev console. Helps to have savefile without the devconsole flag - can be fixed with dnSpy.
Method I changed for people who want to poke around - likely will have to do it after every update:
namespace UBOAT.Game.UI.DevConsole
{
// Token: 0x02000284 RID: 644
[NonSerializedInGameState]
public partial class DevConsole : MonoBehaviour, ICreateListener
{
// Token: 0x06001621 RID: 5665 RVA: 0x000B908C File Offset: 0x000B728C
public static void Submit(string cmd)
{
//REMOVED BOTH IF STATEMENTS
if (DevConsole.confirmationPopupUI && DevConsole.confirmationPopupUI.IsOpen)
{
return;
}
if (!DevConsole.playerCareer.IsPlaythroughLockedOutOfAchievements)
{
DevConsole.confirmationPopupUI.Confirmed += DevConsole.ConfirmationPopupUI_Confirmed;
DevConsole.confirmationPopupUI.Open(DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation Title"], DevConsole.locale["UI/DevConsole/Achievements Turn Off Confirmation"]);
return;
}
...... where the command executes leave that be.
Edit(disregard):
It crashes likley due to different offsets. Used dnSpy to make update to IsPlaythroughLockedOutOfAchievements from "value" to "false" in the dll as with above file and game loaded fine. Issue is when using console the warning pops up but does not let the command be used - just keeps popping up anytime i enter anything - did enable the console via their janky Excel file. I am still tinkering so if I get it to work Ill upload the file.
Any luck fixing this for latest update?
The issue with this is that you have to keep modifying the dll every little hotfix. Its best to try doing it with dnspy yourself - I can upload once i update the dll for the recent hotfix.
It was broken with the Patch #14. Please try it again.
Now the pointer to the PlayerCareer is captured when you enter the supply depot. From that on, you should be able to edit your career values...