porisius / FicsitRemoteMonitoring

54 stars 12 forks source link

Items marked as <MISSING STRING TABLE ENTRY> #107

Open featheredtoast opened 2 weeks ago

featheredtoast commented 2 weeks ago

Initially reported here: https://github.com/featheredtoast/satisfactory-monitoring/issues/2

I think some 1.0 item or items get named to this, it's worth looking into which item is causing this.

Should be reproducible by putting the affected item in storage and looking at /getGlobalInv (but I have not figured out what that item is atm).

porisius commented 2 weeks ago

Reported, fix not found. https://discord.com/channels/555424930502541343/862002356626128907/1296532373646606429

porisius commented 2 weeks ago

That's it... restructuring the .cpp code... I think it is because of this function.

image

porisius commented 2 weeks ago

Can you get me a log file? I am going to check against my own. I am curious about something.

porisius commented 2 weeks ago

I'm looking for lines like this:

[2024.10.22-02.12.51:445][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Categories/Compounds'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:445][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Concrete'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:445][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Concrete/Description'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:445][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Concrete/Abbreviation'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:446][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Silica'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:446][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Silica/Description'. Did you forget to add a string table redirector? [2024.10.22-02.12.51:446][ 0]LogStringTable: Warning: Failed to find string table entry for 'Items_Data' 'Materials/Silica/Abbreviation'. Did you forget to add a string table redirector?

porisius commented 2 weeks ago

Also, check the API output, see if all of those items are doing that... if so, I think either I need to do something special, or CSS has a bug.

featheredtoast commented 2 weeks ago

@Aureliolo would you be able to submit your logs for the above issue?

Aureliolo commented 2 weeks ago

Hi there :D would gladly do so!

Where can I find them? are they generated as files somewhere or do I need to enable an option for them? as I'm assuming mod/plugin specific. or general Satisfactory logs? (not quite familiar with the way this game and its mods work together)

featheredtoast commented 2 weeks ago

First, what's the output from: localhost:8080/getGlobalInv

Second, log location - I'm assuming it's in the game log files at a location like: C:\Users\{username}\AppData\Local\FactoryGame\Saved\Logs. Unless you're on a dedicated server and/or linux, in which case the logs will be somewhere else.

Aureliolo commented 2 weeks ago

I am on dedicated server and linux, for the getGlobalInv, i remaped my monitoring plugin port to 7778

{
        "HTTP_Port": 7778,
        "Web_Autostart": true,
        "Web_Root": "",
        "SML_ModVersion_DoNotChange": "1.0.10"
}

But i get invalid endpoint when i try to curl it:

:~# curl 127.0.0.1:7778/getGlobalInv
{"error": "Endpoint not found. Please consult Endpoint's documentation for more information."}

For the logs, did find that folder with a Game logfile in it.

Don't see any tough for what you mentioned with "Items_Data" in it, those the only 2 lines mentioning it:

# grep Items_Data FactoryGame.log
[2024.10.22-21.37.25:046][  0]LogLocaTools: Loading up stringtable as Items_Data at: ../../../FactoryGame/Content/Localization/StringTables/Items_Data.csv
[2024.10.22-21.37.25:046][  0]LogLocaTools: Loading up stringtable: Content/Localization/StringTables/Items_Data.csv

Full Logfile from that server: FactoryGame.log

featheredtoast commented 2 weeks ago

Thanks for that.

And sorry, misspoke - https://docs.ficsit.app/ficsitremotemonitoring/latest/json/Read/getWorldInv.html

/getWorldInv is the endpoint we're interested in.

Aureliolo commented 2 weeks ago

That indeed shows that Missing Entry at top :D

[
  {
    "Name": "<MISSING STRING TABLE ENTRY>",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 10760
  },
  {
    "Name": "Quartz Crystal",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 10810
  },
  {
    "Name": "FICSIT Coupon",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 500
  },
  {
    "Name": "Hoverpack",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 1
  },
  {
    "Name": "Jetpack",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 1
  },
  {
    "Name": "Paleberry",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 29
  },
  {
    "Name": "Mercer Sphere",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 1
  },
  {
    "Name": "Biomass",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 164
  },
  {
    "Name": "Leaves",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 280
  },
  {
    "Name": "Wood",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 47
  },
  {
    "Name": "Cable",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 14600
  },
  {
    "Name": "Wire",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 61085
  },
  {
    "Name": "Rotor",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 7400
  },
  {
    "Name": "Steel Ingot",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4807
  },
  {
    "Name": "Packaged Fuel",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 9631
  },
  {
    "Name": "Limestone",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 272
  },
  {
    "Name": "<MISSING STRING TABLE ENTRY>",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 29903
  },
  {
    "Name": "Reinforced Iron Plate",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 16997
  },
  {
    "Name": "Screw",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 61086
  },
  {
    "Name": "Steel Beam",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 15102
  },
  {
    "Name": "Steel Pipe",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 34522
  },
  {
    "Name": "Plastic",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 48000
  },
  {
    "Name": "Empty Canister",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4800
  },
  {
    "Name": "Rubber",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 28800
  },
  {
    "Name": "Iron Ore",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 643
  },
  {
    "Name": "Coal",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 5028
  },
  {
    "Name": "Raw Quartz",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 5
  },
  {
    "Name": "SAM",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 50
  },
  {
    "Name": "Alien DNA Capsule",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4
  },
  {
    "Name": "Beryl Nut",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 156
  },
  {
    "Name": "Hog Remains",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 11
  },
  {
    "Name": "Bauxite",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 9640
  },
  {
    "Name": "Encased Industrial Beam",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4900
  },
  {
    "Name": "Copper Ingot",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 14430
  },
  {
    "Name": "Stator",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 9600
  },
  {
    "Name": "Motor",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4850
  },
  {
    "Name": "Quickwire",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 165413
  },
  {
    "Name": "Circuit Board",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 28800
  },
  {
    "Name": "High-Speed Connector",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 9048
  },
  {
    "Name": "AI Limiter",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 9600
  },
  {
    "Name": "Aluminum Scrap",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 24000
  },
  {
    "Name": "Aluminum Ingot",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4800
  },
  {
    "Name": "Alclad Aluminum Sheet",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 29000
  },
  {
    "Name": "Aluminum Casing",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 28800
  },
  {
    "Name": "Reanimated SAM",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 10232
  },
  {
    "Name": "SAM Fluctuator",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4800
  },
  {
    "Name": "Iron Rod",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 19386
  },
  {
    "Name": "<MISSING STRING TABLE ENTRY>",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 24500
  },
  {
    "Name": "Caterium Ingot",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4800
  },
  {
    "Name": "Battery",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 19200
  },
  {
    "Name": "Copper Sheet",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 14400
  },
  {
    "Name": "Crystal Oscillator",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 4800
  },
  {
    "Name": "Radio Control Unit",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 2400
  },
  {
    "Name": "Iron Ingot",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 7200
  },
  {
    "Name": "Assembly Director System",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 251
  },
  {
    "Name": "Computer",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 2400
  },
  {
    "Name": "Supercomputer",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 2400
  },
  {
    "Name": "Heavy Modular Frame",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 2450
  },
  {
    "Name": "Modular Frame",
    "ClassName": "BlueprintGeneratedClass",
    "Amount": 1200
  }
]
porisius commented 2 weeks ago

Oh, nice... can't even tell what items they are from the BlueprintGeneratedClass, I'll take care of that. However, this does confirm it isn't just me, and it confirms those specific items. I'll see what I can argue (figuratively speaking) over on the modding discord.

porisius commented 2 weeks ago

Post: https://discord.com/channels/555424930502541343/1298450001999036519

porisius commented 1 week ago

Per request of a CSS Developer, created a post: https://questions.satisfactorygame.com/post/671b97eaddb9d97e072085d3