Farm Together

Farm Together

View Stats:
Invalid JavaScript property identifier character
Hi. I've searched for a topic of my error but without success...
I'm with a javascript/json bug when i try to log in my unique farm, but i can log without problems in farms from another persons.
See below the error that i found in output log file:
Trying to load backup

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

Loading farm from Farms/farm_0.bak (65835 bytes)

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

Exception loading farm backup!!!Invalid JavaScript property identifier character: /. Path 'FarmRandom', line 1, position 361.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

JsonReaderException: Invalid JavaScript property identifier character: /. Path 'FarmRandom', line 1, position 361.
at Newtonsoft.Json.JsonTextReader.ParseUnquotedProperty () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonTextReader.ParseProperty () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonTextReader.ParseObject () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom (Newtonsoft.Json.JsonReader r, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings options) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Linq.JToken.ReadFrom (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00000] in <filename unknown>:0
at Logic.Farm.FarmData.TryLoad (IPlayerStorageFile container, System.String savePath, Milkstone.Utils.Future`1 loadResult) [0x00000] in <filename unknown>:0
at Logic.Farm.FarmData.Load (IPlayerStorageFile container, System.Object parameters, Milkstone.Utils.Future`1 debugInfo) [0x00000] in <filename unknown>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logic.Farm.FarmData:Load(IPlayerStorageFile, Object, Future`1)
Milkstone.Game.Storage.StorageManager:performPlayerOperation(Object, Future`1)
Milkstone.Game.Tasks.TaskManager:performOperation(TaskData)
Milkstone.Game.Tasks.TaskManager:PumpTasks()
Milkstone.Game.Tasks.TaskManager:work()

(Filename: Line: -1)
< >
Showing 1-1 of 1 comments
Illiminator31 Dec 26, 2020 @ 4:49am 
Hello,
this seems to be an Issue with your Farm File. So my first Question is: Did you try and edit your Farm? Like Money, Diamonds etc? (be honest please).

If not please do the following:
1) Go into your Steam Installation Folder, where Steam is Installed (Default is C:\Programms(x86)\Steam).

2) Open the userdata folder, inside that the folder with only Numbers in its name (like 4587675, its your Account ID), In that folder open the Folder 673950, in that then the remote folder.

3) If you have a ZIP Program Installed (like 7zip, Winrar etc) please ZIP the "Farms" Folder into a Archive for Backup. If you dont know how to use it, please copy (not move) the Farms folder to your Desktop and check if in the folder on the Desktop are Files like farm_0.data etc

4) Now in the Original Folder (not the one you Copied to the Desktop) go into the Farms Folder. You should see Files like farm_0.data as well

5) Now it gets a bit tricky. If you have a ZIP Program, please Unzip the farm_0.data File and go into the Unzipped Folder. There should be a File called "farm_0", Open this with any Text Editor (like Notepad, Notepad ++) and search for FarmRandom. Is that word in Single Quotation Marks in your File? (like 'FarmRandom') If not please follow the Code and you should see WelcomeMessage:. There you should see your Welcome Messages that look like Id:"PleaseHarvestCrops". Is any of these Welcome Messages in Single Quotation Marks? (like Id:'PleaseHarvestCrops').
If you have any Single Quotation Marks please remove them from FarmRandom or replace them, in case of Welcome Messages, with Double Quotations Marks (but only the Welcome Messages !)

If you are not Comfortable doing the 5. Step, please Post here again.

TldR of your Issue: The Game Complains that some Value didn't get stored correctly. It got stored in Single Quotation Marks (like 'test') instead of Double Quotation Marks (like "test") and the Game cant use that properly since Single and Double Quotation Marks have different functions in Unity and the Data Processing (Single Quotation Marks is used to reference a Variable, Double Quotation Marks are used to Store a String (text) Value).

Hope this helps
< >
Showing 1-1 of 1 comments
Per page: 1530 50