Software Inc.

Software Inc.

BetterContracts
55 Comments
Still nobody 30 Mar @ 11:37am 
Problem:
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.PauseWorkItem (WorkItem w) [0x0000d] in <ff7c862dab66420abf706c52685d2064>:0

Workaround:
Try to finish all your current contracts before closing the game.
With there are no contracts to load when you start the game, the mod works fine.
GamerJSP  [author] 3 Feb @ 11:40am 
SamAres,
This may depend on what other contracts are in progress. If there is already a contract in the next stage, with the same team, it will wait to promote so only 1 contract is focused on at a time.
SamAres 24 Jan @ 1:46am 
When it goes to promote from alpha to beta I can't click yes. Restarting didnt help.
TwotoolusFLY_LSh.st 24 Jan @ 1:05am 
i think, need update
SpaceLatch 30 Dec, 2024 @ 9:45am 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.PauseWorkItem (WorkItem w) [0x0000d] in <ff7c862dab66420abf706c52685d2064>:0
GamerJSP  [author] 15 Oct, 2024 @ 12:12pm 
@Demon Lord Lucifer
Unfortunately i don't think its possible at the moment to add new roles. At least not fully. Maybe if i get some time, i will look to implement a light version of this, or pester the devs to get modding support on this.
Demon lord Lucifer 11 Oct, 2024 @ 6:47am 
I'm loving the Mod so far and i hope you can expand it a little so we can auto accept contracts, your idea for a contract manager is great i like it, and it's useful for both early and late game, i tend to spam out contracts in late game when i'm between big releases if i have teams that are idle or low workload
Vivladius 4 Jun, 2024 @ 12:27pm 
I was able to reproduce the error as well.

I played with the mod for a week without encountering any problems, and no game updates were released during that time. However, today I noticed that it appears every time I load a save while having two contract jobs: one in the design stage and another in the Alpha or Beta phase.
When I load the game with all contract jobs in a single phase, the error does not occur.

```
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <86b6300171a7418cb3ca5e55563fca91>:0
```
GamerJSP  [author] 24 May, 2024 @ 9:17am 
Thanks for the info guys, I will take a look.

Rfmz - all configuration options are in the options. Simply go on the mods tab and each mod is in its own expandable box.
rfmz 23 May, 2024 @ 6:32pm 
How do I open the mod config in game?
sage20500 3 May, 2024 @ 10:54am 
Thats weird, my current game I was playing had the mod activated when I started, the error only happened I think after the most recent game update when I reloaded my save
Rethink 1 May, 2024 @ 8:22am 
@GamerJSP, I've managed to reproduce the issue mentioned. It occurs when a save is initially made without the mod installed or activated, and then the mod is installed midway through the save. To replicate this, try creating a save without the mod and then adding it afterward. Hope this helps.
sage20500 27 Apr, 2024 @ 1:51pm 
I can try to figure out where my save data is to be able to share it with you
SierraAlpha84 27 Apr, 2024 @ 11:27am 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <33610f29a92d454c93e0592349773ec5>:0



i received the same error today as Sage20500.


i will try and revert to a Beta Branch and see if it is the game update causing the issue.
GamerJSP  [author] 23 Apr, 2024 @ 3:13pm 
I'm currently at a loss with this error. I subscribed on a different machine and the correct code is there. Also the way I've done the code, it shouldn't be possible for that method to throw the error. Unfortunately I have not managed to reproduce this error locally so its hard to test. If anyone can share a save that does this via a Google drive link or something, it would help a ton.
icbogue 21 Apr, 2024 @ 12:43am 
Hey, I'm also still not seeing an update for April 9 :/
sage20500 16 Apr, 2024 @ 7:45am 
is there any other way to get the latest update you had posted? Steam is still showing that the last update for this mod was back in February?
sage20500 15 Apr, 2024 @ 1:33am 
have attempted to unsubscribe and resubscribe to mod multiple times as well as delete mod folder from workshop folder and then resubscribe to have fresh download of mod; still getting that error?
sage20500 13 Apr, 2024 @ 12:30pm 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <31b4c2678f7545df8963e1a4add871e3>:0

New message showing when I tried to load it today? It was working yesterday so I'm not sure whats going on
GamerJSP  [author] 9 Apr, 2024 @ 12:53am 
UnPauseWorkItem should no longer crash

Mod update seems to be taking a while so give it some time to update locally
Da5h1n 22 Mar, 2024 @ 5:25pm 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <c72d1caf78174a3c9ba65128ab4155ec>:0


my game keeps crashing after a contract is past due
TTVxbluedreamerx 7 Mar, 2024 @ 11:42am 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <d90b30023aa442deb1d17c4e40f70317>:0

Also getting this error when loading a save game. Mod is up to date. Even tried to re-download it.
GamerJSP  [author] 26 Feb, 2024 @ 3:21pm 
Could you check the mod is up to date on your save, as that's the issue I fixed in the latest release, and shouldn't be able to crash the mod anymore.
FireStorm 26 Feb, 2024 @ 8:49am 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x0000d] in <eeebc0890be541a28056a7bc8a0dd650>:0

Getting this when loading a save game with the mod enabled. When I disable the mod and load the save, then load the mod, it makes a contract progress from design to alpha. The mod was loaded at the time of the save, so it was presumably sent to alpha sooner than intended. The teams on the contract pushed into alpha early, were also on another previous paused contract.
GamerJSP  [author] 5 Feb, 2024 @ 1:24pm 
Some new bug fixes are out. This should fix the pause / unpause issue and Input string was not in a correct format issue in the PrioritiseAllContracts method. This was caused by a difference in how some data is produced in different languages. Anyone who was seeing these issue, please ensure the mod is updated, and reload the save to see if the issue persists.
wynillo 4 Feb, 2024 @ 5:24am 
Oh its because its unable to parse a number format like 1.000,00 and expects the format 1,000.00
Could you fix it? Don't know if you can access language/culture settings at that point.
wynillo 3 Feb, 2024 @ 12:29pm 
Doesn't seem to work? Getting an error when i check the mod :(
PossibleTango 25 Jan, 2024 @ 8:20pm 
Anyway you can auto accept contracts if I want a team that works on them always.
JackSpade 19 Jan, 2024 @ 7:55am 
i keep getting errors when I load a game. If I start a new game it's fine, but if I load a game with a contract pause it crashes with the same error big brain luigi had. Happened in three games now
JackSpade 17 Jan, 2024 @ 1:40am 
System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.PauseWorkItem (WorkItem w) [0x00007] in <091da1da7e0d4e9d8767194358707727>:0
GamerJSP  [author] 9 Jan, 2024 @ 11:36pm 
I'll take a look when I can but be careful using code directly from peoples git hub. This has not been reviewed by myself, and can not fix bugs from that version.
Big Brain Luigi 4 Jan, 2024 @ 3:33pm 
so it looks like if you have a contract paused you get this error (System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.UnPauseWorkItem (WorkItem w) [0x00007] in <38dc572e3d64421095db5d5a7fa3985a>:0 ) when you load a save, hopefully you get around to fixing it
Derp Troll 2 Jan, 2024 @ 3:39pm 
I tried using the Github fix you posted, and all I got was it going into the 'Error' tab of Mods with this exception: 'System.Exception [CS1525] Unexpected symbol 'end-of-file' in BetterContractsBehaviour.cs at [430, 246]'

I have no idea what this means, and the instructions on the Github page are non-existent, so I can't even tell if I did anything wrong. I can't find any 'end-of-file' thing anywhere in the doc.
demosdemon 29 Dec, 2023 @ 11:18pm 
@GamerJSP: see https://gist.github.com/demosdemon/5aacb831ab58af0b7426db6e7ca306ae to fix the two bugs others have mentioned
LinkAirlines 29 Dec, 2023 @ 12:22pm 
The same thing is happening to me.
daz_ian 27 Dec, 2023 @ 11:47am 
I tried this mod for the first time today. When it came time to automatically move the first contract from alpha to beta, the normal "are you sure you want to move to beta" dialog box appeared repeatedly, freezing the game.
Danarca 27 Dec, 2023 @ 5:13am 
Just got an error using this mod, on the unstable branch. Worked 2 hours ago :s

System.NullReferenceException: Object reference not set to an instance of an object
at Core.Utilities.WorkItemUtilities.PauseWorkItem (WorkItem w) [0x00007] in <9b7afb6e43cd4f8b8aaa9c91bac6e9e4>:0
FLATRATE 24 Nov, 2023 @ 8:15pm 
Hey dear author , thanks for the mod. Gotta error with a code. i am going to send it to you: https://pastebin.com/1iaWaHKt

Its the same issue someone wrote before. Since i set the language to english, it was german before, there was no error.

Thanks a lot <3
GamerJSP  [author] 21 Nov, 2023 @ 11:22pm 
I'm afraid I have no idea how the language could cause an error ! There does seem to be a few really random, rare error cases, but can't pin point what causes them.
지구는 평평하다 15 Nov, 2023 @ 7:11am 
i got an error when my language was in german
switch to english and now i works! Good Mod :3
19Peej 9 Nov, 2023 @ 5:14pm 
This is so cool
19Peej 9 Nov, 2023 @ 5:14pm 
Thank you!!
Derrick 7 Oct, 2023 @ 6:42pm 
Interesting, that could explain why I couldn't find the pattern in whether it would load or not, if sometimes it randomly loaded too fast maybe. I'll try and share if I see more issues later, because these mods basically make the game playable in my opinion.
GamerJSP  [author] 7 Oct, 2023 @ 12:31am 
@LuneFox @Derrick
At a guess i'd say these errors are because the updates are trying to run before the game has been fully loaded. There must be a split second where the game is "valid" and loaded but its still loading in some of the company details. I will have a go at reproducing but looks tricky !
Derrick 6 Oct, 2023 @ 12:39pm 
@GamerJSP
Perfect, thanks so much!

If it helps you, I also was getting errors with two of your mods when I loaded into my saved games after the game updated to 1.7.11, but I just tried a couple times with your mod updates today and didn't have a problem, so you maybe already fixed it. I'm not sure exactly what the issue was because the game would complain and unload the mods sometimes, but if I tried reloading the mods and the game then eventually they still seemed to work? Kinda weird.

https://pastebin.com/Y5YcwJgF
LuneFox 6 Oct, 2023 @ 12:29pm 
@GamerJSP
Yes, this error happen after I select 'Prioritise individual contracts based on team and deadline'.
and my game language is Chinese.
GamerJSP  [author] 6 Oct, 2023 @ 12:25pm 
@LunaFox
Do you know what was happening when this error appeared. Did you just reload the game etc?
GamerJSP  [author] 6 Oct, 2023 @ 12:12pm 
@derrick,
I have just released a bug fix to how the quality was being determined in the design phase, so this should reduce the amount of inadequate contracts.

Optimal does target satisfactory but as its such a small window you will still get outstanding's.
LuneFox 3 Oct, 2023 @ 9:54pm 
get an error.
please take a look
https://pastebin.com/RdxpbjiS
Derrick 3 Oct, 2023 @ 2:45am 
These mods look like they could be massive QOL, thank you!

I just tried a new game in unstable branch (med settings, 2 days per month), and my contracts were being completed in various qualities, including some below satisfactory. I had the mod set to Optimal. I'm not sure if this is a bug or I'm misunderstanding what that setting does, but I would have guessed Optimal would target a Satisfactory contract result? I would like to raise my reputation (or at least keep it neutral) with contracts.