Hello thanks for posting, but as far as I could test, the mod is working fine with game version 1.9.1-686R and with MODTEK V0.7.7 installed. I've tested both date format HBS and Terran, and both worked fine. I've let a full month pass with each format using one of my saves and it worked correctly. My guess is that you may have an incompatibility in your mod list. But the issue does not seem to come from my mod. At least if used as the only active mod there was no issue that I could see. To try to fix your issue you may want to change you load order to see if this mod can work properly when loaded last in the list.
Thank you for reporting this. I've only just seen it was not working anymore. I've taken a look at it and updated the code to accommodate the changes made by HBS. It should now work correctly with the latest version of the game to date 1.7.1-598R and ModTek 0.7.3
I've just tested the latest version of the mod (V1.2) with the game version 1.9.1-686R and with MODTEK V0.7.7 installed. I've tested only with the mod installed to be sure that something was wrong with the code, and everything is working fine.
So I'm afraid there is something I don't understand with your issue or there is an incompatibly with your active mod list. Please note that this mod is meant to be used with ModTek not the default in game mod support. So if you use the default mod support only, you should try to use Modtek instead. Also please note that by default my mod should not be compatible with the Timeline mod from the BattletechModders group.
If you're still having issue you may try to change you load order to see if this mod can work properly when loaded last in the list. Otherwise I'm afraid there's little I can do to help since the last version of the mod available is working fine from what I could test on my side.
i get the message that it didnt load at the start of the game. installed manually and second time installed with b mod manager.
ModTek v0.7.2 -- 6/8/2019 6:49:41 PM Loaded config. Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\AddYearToTimeline\mod.json Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19. at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0 Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\BattletechPerformanceFix\mod.json Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19. at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0 Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\RandomCampaignStart\mod.json Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19. at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0 Loaded cached load order.
i figured it out...the json need some editing thats all, check it yourself in line two right after true it says "name":.... you just get the "name" ....below and add a comma after true. I had the same problem with other mod.jsons ....somehow when i opened them with notepad++ the third line always gets stuck up wards to the second and the comma disappears...thats very weird. I think that modtek somehow is corrupting the jsons
Thanks for the report. I've only just seen it. That's very weird as you said. I think you had some corruption on your side somehow. I didn't encounter any issue on my side so far. Even after updating ModTek to 0.7.2 I'm glad you figured it out yourself.
Just to be sure, I tried to deleted my folder, download the archive from the Nexus and install it from the downloaded source again. The latest version of the archive is fine as far as I'm concerned. So the mod works normally with BT version 1.6.1-542R with ModTek 0.7.2.
The week number is only used with the HBS format of date. The setting is expecting an integer value but I use decimal values and the Math.truncate method in the code. In short, no you cannot use decimal value for the week.
I tried to make things simple, so I preferred to calculate the year based on a fixed number of days per year, this number is the number of weeks multiplied by 7. Simple, convenient and it works nice.
love this mod, I'm using from the beginning on. However, there seems to be now a funny, unbelievable bug with the newer game versions, 1.3.2 and upwards.
The silent blip-sound that is played everytime a day has passed, is now being multiplied by that mod... In 1.3.2. it much louder, though acceptable, but in 1.4.x it results in a loud clanking sound, making the time passing a hell of a bad time and is really annoying, nearly forces you to tune down the speakers.
I know this mod is technically just a format mod, so I can't say for sure what's happening, but at least in my case this mod seems to be responsible. After removing it, the time passing is again only playing the subtile ping sound. I just wanted to try informing you, in case you still update this mod :)
Frankly with the vast majority of the human race no longer living on Earth/Terra I would have standardized an even 52 week year as well and just adjusted to correct for "remainder drift" every century or so. It's the twenty-ninth century for most of our in-game galaxies, after all.
18 comments
Edit: This only semi works now. You can't use the terran format no matter what you do.
I've tested both date format HBS and Terran, and both worked fine.
I've let a full month pass with each format using one of my saves and it worked correctly.
My guess is that you may have an incompatibility in your mod list.
But the issue does not seem to come from my mod. At least if used as the only active mod there was no issue that I could see.
To try to fix your issue you may want to change you load order to see if this mod can work properly when loaded last in the list.
I've only just seen it was not working anymore.
I've taken a look at it and updated the code to accommodate the changes made by HBS.
It should now work correctly with the latest version of the game to date 1.7.1-598R and ModTek 0.7.3
I've tested only with the mod installed to be sure that something was wrong with the code, and everything is working fine.
So I'm afraid there is something I don't understand with your issue or there is an incompatibly with your active mod list.
Please note that this mod is meant to be used with ModTek not the default in game mod support.
So if you use the default mod support only, you should try to use Modtek instead.
Also please note that by default my mod should not be compatible with the Timeline mod from the BattletechModders group.
If you're still having issue you may try to change you load order to see if this mod can work properly when loaded last in the list.
Otherwise I'm afraid there's little I can do to help since the last version of the mod available is working fine from what I could test on my side.
ModTek v0.7.2 -- 6/8/2019 6:49:41 PM
Loaded config.
Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\AddYearToTimeline\mod.json
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19.
at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\BattletechPerformanceFix\mod.json
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19.
at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
Error: Caught exception while parsing mod.json at path E:\Steam\steamapps\common\BATTLETECH\Mods\RandomCampaignStart\mod.json
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: ". Path 'Enabled', line 2, position 19.
at Newtonsoft.Json.JsonTextReader.ReadAsBoolean () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
Loaded cached load order.
i figured it out...the json need some editing thats all, check it yourself in line two right after true it says "name":.... you just get the "name" ....below and add a comma after true.
I had the same problem with other mod.jsons ....somehow when i opened them with notepad++ the third line always gets stuck up wards to the second and the comma disappears...thats very weird. I think that modtek somehow is corrupting the jsons
That's very weird as you said. I think you had some corruption on your side somehow.
I didn't encounter any issue on my side so far. Even after updating ModTek to 0.7.2
I'm glad you figured it out yourself.
Just to be sure, I tried to deleted my folder, download the archive from the Nexus and install it from the downloaded source again.
The latest version of the archive is fine as far as I'm concerned.
So the mod works normally with BT version 1.6.1-542R with ModTek 0.7.2.
The week number is only used with the HBS format of date.
The setting is expecting an integer value but I use decimal values and the Math.truncate method in the code.
In short, no you cannot use decimal value for the week.
I tried to make things simple, so I preferred to calculate the year based on a fixed number of days per year, this number is the number of weeks multiplied by 7. Simple, convenient and it works nice.
love this mod, I'm using from the beginning on. However, there seems to be now a funny, unbelievable bug with the newer game versions, 1.3.2 and upwards.
The silent blip-sound that is played everytime a day has passed, is now being multiplied by that mod... In 1.3.2. it much louder, though acceptable, but in 1.4.x it results in a loud clanking sound, making the time passing a hell of a bad time and is really annoying, nearly forces you to tune down the speakers.
I know this mod is technically just a format mod, so I can't say for sure what's happening, but at least in my case this mod seems to be responsible. After removing it, the time passing is again only playing the subtile ping sound. I just wanted to try informing you, in case you still update this mod :)
This was my fault for keeping additional code where it was not needed at all. Sorry about that !
Tested with the latest version of the game to date 1.5.1-477R and ModTek 0.7.1