How to extract locale.scs

ScuL81
Posts: 535
Joined: 20 Dec 2012 21:31
Location: Auckland, New Zealand

Re: How to extract locale.scs

#11 Post by ScuL81 » 23 Dec 2012 21:30

Maybe I can rephrase the question.

Can anybody that has access to the contents of locale.scs tell me what the sii file looks like that contains the names of the countries? (or send me that file/those files).

I have no interest in the rest of the pack, only the country names.

Thx
ProMods ETS2 mod - Official ProMods website www.promods.net
ThumperLegs
Posts: 4
Joined: 21 Dec 2012 07:39

Re: How to extract locale.scs

#12 Post by ThumperLegs » 25 Dec 2012 12:18

Change all country names to plain text in normal quotation marks (including the default countries) then you're done.
Note you will also have to do the same with the original countries if extending the default map & reassign all country related data (borders etc.) in map editor.
Do not use @@blahblah@@ string pointers in other words.
User avatar
ohaha
Posts: 11345
Joined: 07 Dec 2012 06:31
Location: Watchin' y'all
Contact:

Re: How to extract locale.scs

#13 Post by ohaha » 30 Dec 2012 19:04

JCV wrote:Unfortunatelly, it seems that they dont work on it anymore
There is completed section Greek Languages, in GetLocalization system. They are, probably, satisfied with it.
Retired, but still loving it.
Dimitris
Posts: 1
Joined: 07 Dec 2012 16:54
Location: Thessaloniki - Greece

Re: How to extract locale.scs

#14 Post by Dimitris » 12 Jan 2013 09:14

JCV wrote:You can take part on the Localization process through here..

http://www.getlocalization.com/EuroTruck2/start/

Unfortunatelly, it seems that they dont work on it anymore, because I signed up to get the game localized to Greek, but they havent contacted with me yet, and I suppose they wont..
But, ehh :D
Greek language is ready and not in progress. I am one of the three translators of Greek language and I think every language is limited to three translators.
yadigar
Posts: 2
Joined: 18 Jan 2013 13:33

Re: How to extract locale.scs

#15 Post by yadigar » 18 Jan 2013 13:39

Why this file(locale.scs) is encrypted? :?:
unreasonable.... What is the purpose here???
User avatar
Reinhard
Posts: 4711
Joined: 20 Dec 2012 16:46
Location: Berlin, Germany

Re: How to extract locale.scs

#16 Post by Reinhard » 18 Jan 2013 16:05

Unreasonable? If it is only to distract noob modders from wrecking the base and call for help without mentioning what they have done, it is well enough reason for me.

EDIT: sorry, I had bases.scs in mind when wrote this. Seems I lost context.
Last edited by Reinhard on 18 Feb 2013 21:46, edited 1 time in total.
User avatar
Araripe
Posts: 2352
Joined: 22 Dec 2012 19:35
Location: Juiz de Fora, Minas Gerais, Brazil
Contact:

Re: How to extract locale.scs

#17 Post by Araripe » 18 Feb 2013 20:36

I think the locale.scs isn`t needed to it. Look to the Gobba32 map for example, than adds Portugal, Spain and Greece. No signal of locale.scs. And the TruckSim v1.5 also don`t have the locale folder. I think that name is just a coincidence, but the locale.scs isn`t responsible to add or remove name of countries. Looks like someting about the game engine (encrypted).
ScuL81
Posts: 535
Joined: 20 Dec 2012 21:31
Location: Auckland, New Zealand

Re: How to extract locale.scs

#18 Post by ScuL81 » 06 Mar 2013 19:16

I don't have those maps, can you please post a screenshot of the map where the country names are depicted correctly?

According to what I have found the names of the countries are language dependant. If you run the game in German, Germany would be called "Deutschland" whereas in French it's called "Allemagne". This must be saved in a locale string at some stage, it is certainly not in the country def's!!
ProMods ETS2 mod - Official ProMods website www.promods.net
hawkbs
Posts: 1136
Joined: 28 Aug 2014 07:52
Location: Gold Coast, QLD, Australia

Re: How to extract locale.scs

#19 Post by hawkbs » 13 Jan 2015 03:14

If you extract the DEF.scs you should have a file called country.sii which gives the identifiers for each country

example

Code: Select all

SiiNunit
{
# For modders: Please do not modify this file if you want to add a new entry. Create in
# this directory a new file "<base_name>.<idofyourmod>.sii" where <base_name> is name of
# base file without the extension (e.g. "city" for "/def/city.sii") and <idofyourmod> is
# some string which is unlikely to conflict with other mod.
#
# Warning: Even if the units are specified in more than one source file, they share the
# same namespace so suffixes or prefixes should be used to avoid conflicts.

@include "country/usa.sii"  [color=#BF8000]#NOTE MY CUSTOM COUNTRY THIS FILE IS SAVED AS COUNTRY.CUSTOM.sii#[/color]
}

# Recommended country identifiers for currently unused countries. Using those indices
# is not required however it improves compatibility with future DLCs or with other
# mods utilizing indices from this table.

# **** EUROPE ****

# 14 Albania
# 15 Andorra
# 16 Belarus
# 17 Bosnia and Herzegovina
# 18 Bulgaria
# 19 Croatia
# 20 Cyprus
# 21 Denmark
# 22 Estonia
# 23 Finland
# 24 Georgia
# 25 Greece
# 26 Iceland
# 27 Republic of Ireland
# 28 Latvia
# 29 Liechtenstein
# 30 Lithuania
# 31 Malta
# 32 Moldova
# 33 Monaco
# 34 Montenegro
# 35 Norway
# 36 Portugal
# 37 Romania
# 38 Russia
# 39 San Marino
# 40 Serbia
# 41 Slovenia
# 42 Spain
# 43 Sweden
# 44 Turkey
# 45 Ukraine
Then you simply goto the country folder create the sii for your country like this by copying another countries sii.
example

Code: Select all

country_data: country.data.usa
{
	name: "@@usa@@"
	country_code: "USA"
	pos:(-193466, 0, 80182)
	fuel_price: 1.02
	country_id: 149
	lights_mandatory: false
	car_speed_limits: (30.0f, 60.0f, 80.0f) # MPH
	truck_speed_limits: (30.0f, 40.0f, 60.0f) # MPH
	imperial_units: true
	
	driving_tired_offence: true

	[color=#BF8000]all the licence plate stuff goes below here[/color]
}

[ external image ]
Quote from Lisa Kelly on Ice Road Truckers
"When you least expect it the road will get ya"
jarvik79
Posts: 2700
Joined: 06 Nov 2013 09:01

Re: How to extract locale.scs

#20 Post by jarvik79 » 13 Jan 2015 09:00

Well done hawkbs for replying to a post that's almost 2 years old, but that is exactly what ScuL81 said he didn't want.
As he's a developer now, I doubt this is a particular problem any more :)
Post Reply

Return to “Game Localization”

Who is online

Users browsing this forum: No registered users and 1 guest