RenCloud / scs-sdk-plugin

ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files.
MIT License
185 stars 35 forks source link

Freight Names #92

Closed thommy1972deNeu closed 2 years ago

thommy1972deNeu commented 2 years ago

For some time now, my charges and locations in the C # code have been in English, but are being transmitted in German. I am in the client, for example. "medvaccine" is displayed as a load, but "Medizinische Impfstoffe" is entered in the database. As a value I use -> JobValues/CargoValues/Name Does anyone else have this phenomenon?

Pnaop commented 2 years ago

The value you're getting currently is a translated String. I suspect you're playing in German? If you were to change the language to English this value would change to the English language.

I think you are looking for the value -> JobValues/CargoValues/Id, that would give you the "medvaccine" 'code'

thommy1972de commented 2 years ago

I am aware of that, it also went on for 1-2 years, so I was surprised that it is no longer possible :-) It is also entered in German in the database that is the strange thing. I'll test the values

RenCloud commented 2 years ago

Based on the SDK comments in the header the language is the in-game language for most of the values e.g. for the cargo name the comment says

Name of the cargo for display purposes. Localized using the current in-game language.

To handle the same stuff in multiple languages, there is the ID field. For the Cargo ID, the comments says

Id of the cargo for internal use by code. Limited to C-identifier characters and dots.

I mostly did not test this, because it is the handling of the SDK itself and I can not do anything if that does not work and run the game in English.