Mlp logo.png Congratulations /mlp/! Mlp logo.png
Winners of the 2024 4chan Spring Babby Cup

Difference between revisions of "Pro Evolution Soccer 2015/Strings"

From Rigged Wiki
Jump to navigation Jump to search
(Removed PES16 reference as well as some other minor things)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Pes2015 TOC}}
{{Template:Pes2015 TOC}}
''This page is still under construction.''


'''Strings''' are a sequence of characters that make up words or texts.
'''Strings''' are a sequence of characters that make up words or texts.
PES has a huge amount of strings; almost every word on screen that is not part of a texture is stored as a string.
PES has a huge amount of strings; almost every word on screen that is not part of a texture is stored as a string.
If you want to suggest a game tip to be used for major cups, please use the [http://implyingrigged.info/gametips/| game tip submission form].


== Prerequirements ==
== Prerequirements ==
Line 12: Line 9:
== Strings in PES ==
== Strings in PES ==
Generally speaking, strings that can be edited in-game (like player and team names) are stored within the save file.
Generally speaking, strings that can be edited in-game (like player and team names) are stored within the save file.
Most other strings (like menu items, explanations, game tips) however are stored in the game data.
Most other strings (like menu items, explanations, game tips), however, are stored in the game data.


This article does not cover strings that are stored in the save file.
This article does not cover strings that are stored in the save file.
Edit those strings in-game whenever possible or use an external tool.
Edit those strings in-game whenever possible or use an external tool.
See [[Pro_Evolution_Soccer_2015/PES_Next-Gen_Editor_2015]] for more details.
See [[Pro_Evolution_Soccer_2015/PES_Next-Gen_Editor_2015]] for more details.
Note that are a few inconsistencies when it comes to devision names, as those appear in the save game as well as in the game data and might be used interchangeably.
Note that there are a few inconsistencies when it comes to division names, as those appear in the save game as well as in the game data and might be used interchangeably.


PES stores strings in files ending in ''.str'' which are in turn packed into ''.cpk'' containers.
PES stores strings in files ending in ''.str'' which are in turn packed into ''.cpk'' containers.
All string files are sorted by the containers they are found in below.
Within the string files there are named blocks, usually indicating where the strings within that block are used.
All string files are sorted by the containers they are found in as listed below.
You can find these files in the ''Data'' folder of your PES installation.
You can find these files in the ''Data'' folder of your PES installation.


Line 51: Line 49:


=== dt20_''xxx''.cpk ===
=== dt20_''xxx''.cpk ===
Most of the languages found in ''dt17.cpk'' have their own version of this container, with ''xxx'' corresponding to the same abbreviation as above.
Most (but not all) of the languages found in ''dt17.cpk'' have their own version of this container, with ''xxx'' corresponding to the same abbreviation as in the above list.
Unlike in ''dt17.cpk'', all files bear the same name but are placed within different subdirectories:
Unlike in ''dt17.cpk'', all files bear the same name but are placed within different subdirectories:


* xxx''/string/all.str'' - all more in-depth text, including game tips
* xxx''/string/all.str'' - almost all strings used in the game, including game tips
* xxx''/string/common.str'' - most top level menu items and very general terms
* xxx''/string/common.str'' - most top level menu items and very general terms
* xxx''/string/staff_list.str'' - staff roll
* xxx''/string/staff_list.str'' - staff roll
Line 60: Line 58:
Almost all modified strings are found within ''all.str'' and ''common.str''.
Almost all modified strings are found within ''all.str'' and ''common.str''.


== String Editing Tools ==
== String editing tools ==
There are currently two known string editing tools.
There are currently two known string editing tools.
Both come with their own set of flaws which make them a pain to use.
Both come with their own set of flaws which make them a pain to use.
Line 68: Line 66:
While originally written for PES14, Jenkey's File Explorer can still be used for modifying certain aspects of PES15.
While originally written for PES14, Jenkey's File Explorer can still be used for modifying certain aspects of PES15.
However, there are some incompabilities and issues:
However, there are some incompabilities and issues:
* A string file has to be unpacked ('''unzlib'ed''') with another tool first due to changes between PES14 and PES15.
* A string file has to be unpacked ('''unzlib'ed''') with another tool first due to changes between PES14 and PES15.
* Clicking the wrong button at the wrong time might irreversibly damage the file. This is made evident by missing block names or all strings being replaced with ''~''.
* Clicking the wrong button at the wrong time might irreversibly damage the file. This is made evident by missing block names or all strings being replaced with ''~''.
Line 73: Line 72:
* After applying modifications, the file becomes unreadable by other known editors as Jenkey injects a custom string into the file.
* After applying modifications, the file becomes unreadable by other known editors as Jenkey injects a custom string into the file.
* Importing from an *.ini file does not support new line or other special characters (umlauts, unicode, ...).
* Importing from an *.ini file does not support new line or other special characters (umlauts, unicode, ...).
It is not recommended to use this tool for editing strings in PES15. For PES14 however, it remains the best option.


=== STR Editor PES2015 ===
=== STR Editor PES2015 ===
Line 82: Line 83:
* Under unknown circumstances, blocks might get shortened, losing some string entries at the end. This cannot be reversed.
* Under unknown circumstances, blocks might get shortened, losing some string entries at the end. This cannot be reversed.


Fortunately, PES handles missing strings without crashing. Losing the block after ''Tip2C'' (the second block used for game tips) for example does not seem to be an issue. If ''Tip2C'' however gets cleared for example, ''No String'' might show up instead of a game tip.
Fortunately, PES handles missing strings without crashing. Losing the block after ''Tip2C'' (the second block used for game tips) for example does not seem to be an issue. If ''Tip2C'' however gets cleared for example, ''NoString'' might show up instead of a game tip.


== Game Tips ==
== Game tips ==
Game tips show up during the loading screen before a match starts. While the game actually cycles through them while loading, usually only one will show up before it is done.
Game tips show up during the loading screen before a match starts. While the game actually cycles through them while loading, usually only one will show up before it is done.


Line 90: Line 91:
These are stored as two separate string entries in the blocks ''Tip1C'' and ''Tip2C'' of ''all.str''.
These are stored as two separate string entries in the blocks ''Tip1C'' and ''Tip2C'' of ''all.str''.
Unfortunately, it is not always obvious which body belongs to which caption.
Unfortunately, it is not always obvious which body belongs to which caption.
In fact they are so scrambled in PES15 that it is not safe to assume that a caption and a body are a pair just because their neighbours are.
In fact, they are so scrambled in PES15 that it is not safe to assume that a caption and a body are a pair just because their neighbours are.


=== Known pairs ===
=== Known pairs ===
Line 98: Line 99:
It should be noted that finding yet unknown pairs is unlikely and not necessary at this moment.
It should be noted that finding yet unknown pairs is unlikely and not necessary at this moment.


=== Known Issues ===
=== Known issues ===
The following issues with Game Tips in PES15 are currently present:
The following issues with Game Tips in PES15 are currently present:


* Despite intensive testing, not all pairs are known (and might never be). This can be handled by using an empty caption for these.
* Despite intensive testing, not all pairs are known (and might never be). This can be handled by using an empty caption for these.
* Not all captions are found in ''Tips1C'' and ''Tips2C''. Rarily, certain game terms are shown instead. It is unclear at this point where those are taken from.
* Not all captions are found in ''Tips1C'' and ''Tips2C''. Rarely, certain game terms are shown instead. It is unclear at this point where those are taken from.
* The string tools currently available are bugged and/or are missing features.
* The string tools currently available are bugged and are missing features.


== Workflow ==
== Workflow ==
Line 112: Line 113:
Furthermore, always make a backup of the string file before editing it, as it might get irreversible damaged in the process.
Furthermore, always make a backup of the string file before editing it, as it might get irreversible damaged in the process.
Keep a little backup history in case you did not catch a file corruption right away.
Keep a little backup history in case you did not catch a file corruption right away.
{{Note|Always reopen the string file you modified and check for signs of corruption listed below.|Remember}}


=== Editing single entries ===
=== Editing single entries ===
Replacing single strings is an easy task and can be done with just the tool mentioned above.
Keep in mind however that PES might use the same string in multiple places, but also might keep separate strings for the same words.
Other strings are leftovers from development and might never show up under normal circumstances.


As a result, you have to test your modifications thoroughly to make sure you are actually changing what you want without breaking anything else in the process.


=== Bulk editing for Game Tips ===
=== Bulk editing for game tips ===
With hundreds of string entries used for game tips, editing them all by hand would be too much work.
With hundreds of string entries used for game tips, editing them all by hand would be too much work.


There are  scripts and tools written by 4CC staff that automatise this process to a certain extent.
They might be released at a later date.


=== Spotting a corrupt file ===
=== Spotting a corrupt string file ===
While this list might be incomplete, make sure to check for these signs:
While this list might be incomplete, these are known signs for a corrupt string file:
*  
 
* A block that used to have content does not have a single entry; however, there might be some blocks that have no entries by default (caused by and found in STR Editor PES2015).
* A block has less entries than it had before (caused by and found in STR Editor PES2015).
* A block has no name (caused by and found in File Explorer).
* All entries of a block are replaced with ''~'' (caused by and found in File Explorer).
* Editing one entry actually changes another instead (caused by and found in File Explorer).
* File cannot be opened with STR Editor PES2015 (caused by File Explorer).
 
If you spot one of these signs, cease using this file for further modifications and rollback to an uncorrupted version.
It might still work with PES, but keep in mind that PES shows ''NoString'' if it cannot find the needed entry.


=== Handling languages ===
=== Handling languages ===
Line 133: Line 151:


To resolve both of these issues, simply put duplicates of ''common.str'' and ''all.str'' in all language folders. Check the available versions of ''dt20_''xxx''.cpk'' for a full list.
To resolve both of these issues, simply put duplicates of ''common.str'' and ''all.str'' in all language folders. Check the available versions of ''dt20_''xxx''.cpk'' for a full list.
=== Special characters ===
Strings may include special character sequences which influence the way PES handles the string.
Most of these are used to display game pad buttons within text.
* ''\10 (unix-style line feed)'' - new line
* ''(more to come)''


== Contributing ==
== Contributing ==
As the game strings affect PES on a global level, they are handled by someone appointed by the 4CCC.
As the game strings affect PES on a global level, they are handled by someone appointed by the 4CCC.
Check with them if you have any questions.
Check with them if you have any questions.
You can find their contact info [[Contact|here]].
You can find their contact info [[Contact#String_files_handler|here]].
 
If you just want to submit game tip ideas for a major cup, use the [http://implyingrigged.info/gametips/| game tip submission form].


== Links ==
== Links ==
* [http://juliancames.blogspot.nl/2015/01/tool-julian-cames-str-editor-pes2015.html| STR Editor PES2015]
* [http://juliancames.blogspot.nl/2015/01/tool-julian-cames-str-editor-pes2015.html| STR Editor PES2015]

Latest revision as of 22:03, 1 January 2016

2014 4chanlogo.png
Pro Evolution Soccer 2015
Game Installation · File List
Rules Rules · Aesthetic Exports · Auto-ATF
Info Team IDs · Tactical · FAQ
Modding Save Editor · DLC · Hex-editing · Managers · Stadiums · Faces · Kits · Boots · GK Gloves · Adboards · Team Colors · Strings · zlib · Aesthetics

Strings are a sequence of characters that make up words or texts. PES has a huge amount of strings; almost every word on screen that is not part of a texture is stored as a string.

Prerequirements

To retrieve the original string files and ultimately get custom strings into the game, you should be familiar with DLC.

Strings in PES

Generally speaking, strings that can be edited in-game (like player and team names) are stored within the save file. Most other strings (like menu items, explanations, game tips), however, are stored in the game data.

This article does not cover strings that are stored in the save file. Edit those strings in-game whenever possible or use an external tool. See Pro_Evolution_Soccer_2015/PES_Next-Gen_Editor_2015 for more details. Note that there are a few inconsistencies when it comes to division names, as those appear in the save game as well as in the game data and might be used interchangeably.

PES stores strings in files ending in .str which are in turn packed into .cpk containers. Within the string files there are named blocks, usually indicating where the strings within that block are used. All string files are sorted by the containers they are found in as listed below. You can find these files in the Data folder of your PES installation.

dt17.cpk

There are 19 string files in dt17.cpk, each representing the same strings in a different language. Not all of the languages present actually have strings available in other places, and even less might be selectable within the game. Here is a full list:

  • common/string/sys_ara.str
  • common/string/sys_bra.str
  • common/string/sys_chi.str
  • common/string/sys_eng.str
  • common/string/sys_fra.str
  • common/string/sys_ger.str
  • common/string/sys_gre.str
  • common/string/sys_ita.str
  • common/string/sys_ipn.str
  • common/string/sys_kor.str
  • common/string/sys_mex.str
  • common/string/sys_nld.str
  • common/string/sys_por.str
  • common/string/sys_rus.str
  • common/string/sys_spa.str
  • common/string/sys_swe.str
  • common/string/sys_tur.str
  • common/string/sys_use.str
  • common/string/sys_zha.str

Currently, these string files are left untouched, as all strings modified so far are found somewhere else.

dt20_xxx.cpk

Most (but not all) of the languages found in dt17.cpk have their own version of this container, with xxx corresponding to the same abbreviation as in the above list. Unlike in dt17.cpk, all files bear the same name but are placed within different subdirectories:

  • xxx/string/all.str - almost all strings used in the game, including game tips
  • xxx/string/common.str - most top level menu items and very general terms
  • xxx/string/staff_list.str - staff roll

Almost all modified strings are found within all.str and common.str.

String editing tools

There are currently two known string editing tools. Both come with their own set of flaws which make them a pain to use. Futhermore, they are not compatible with one another.

Jenkey's File Explorer

While originally written for PES14, Jenkey's File Explorer can still be used for modifying certain aspects of PES15. However, there are some incompabilities and issues:

  • A string file has to be unpacked (unzlib'ed) with another tool first due to changes between PES14 and PES15.
  • Clicking the wrong button at the wrong time might irreversibly damage the file. This is made evident by missing block names or all strings being replaced with ~.
  • Changes are not always applied and saved as expected. Always reopen the file to make sure.
  • After applying modifications, the file becomes unreadable by other known editors as Jenkey injects a custom string into the file.
  • Importing from an *.ini file does not support new line or other special characters (umlauts, unicode, ...).

It is not recommended to use this tool for editing strings in PES15. For PES14 however, it remains the best option.

STR Editor PES2015

This tool (also known as STREditor or TestSTR) written by Julian Cames focuses, like the name suggests, on string files for PES15 exclusively. While it seems to be easy to use and reliable at first glance, it also comes with some issues:

  • When replacing a string with a shorter one, the string is padded with zeros to avoid rebuilding the file. While PES accepts this lazy solution, this might a be sign of a lack of understanding by the tool creator.
  • After replacing a string, the tool might clear all data from the following block. This cannot be reversed. It is unclear why and when this happens, but it might be partially related to replacing a string with a longer one.
  • Under unknown circumstances, blocks might get shortened, losing some string entries at the end. This cannot be reversed.

Fortunately, PES handles missing strings without crashing. Losing the block after Tip2C (the second block used for game tips) for example does not seem to be an issue. If Tip2C however gets cleared for example, NoString might show up instead of a game tip.

Game tips

Game tips show up during the loading screen before a match starts. While the game actually cycles through them while loading, usually only one will show up before it is done.

Each Game Tip in PES has two parts: a caption and a body. These are stored as two separate string entries in the blocks Tip1C and Tip2C of all.str. Unfortunately, it is not always obvious which body belongs to which caption. In fact, they are so scrambled in PES15 that it is not safe to assume that a caption and a body are a pair just because their neighbours are.

Known pairs

A list of all known pairs can be found here. This list will later be replaced with the one used by the internal 4cc game tip tool.

It should be noted that finding yet unknown pairs is unlikely and not necessary at this moment.

Known issues

The following issues with Game Tips in PES15 are currently present:

  • Despite intensive testing, not all pairs are known (and might never be). This can be handled by using an empty caption for these.
  • Not all captions are found in Tips1C and Tips2C. Rarely, certain game terms are shown instead. It is unclear at this point where those are taken from.
  • The string tools currently available are bugged and are missing features.

Workflow

The tool of choice is STR Editor PES2015. As already implied above, the bugs present in the available tools force us to follow a strict workflow.

As string files cannot be merged, get hold of a version of the file you want to modify first that already has other wanted modifications present. Furthermore, always make a backup of the string file before editing it, as it might get irreversible damaged in the process. Keep a little backup history in case you did not catch a file corruption right away.

Remember: Always reopen the string file you modified and check for signs of corruption listed below.

Editing single entries

Replacing single strings is an easy task and can be done with just the tool mentioned above. Keep in mind however that PES might use the same string in multiple places, but also might keep separate strings for the same words. Other strings are leftovers from development and might never show up under normal circumstances.

As a result, you have to test your modifications thoroughly to make sure you are actually changing what you want without breaking anything else in the process.

Bulk editing for game tips

With hundreds of string entries used for game tips, editing them all by hand would be too much work.

There are scripts and tools written by 4CC staff that automatise this process to a certain extent. They might be released at a later date.

Spotting a corrupt string file

While this list might be incomplete, these are known signs for a corrupt string file:

  • A block that used to have content does not have a single entry; however, there might be some blocks that have no entries by default (caused by and found in STR Editor PES2015).
  • A block has less entries than it had before (caused by and found in STR Editor PES2015).
  • A block has no name (caused by and found in File Explorer).
  • All entries of a block are replaced with ~ (caused by and found in File Explorer).
  • Editing one entry actually changes another instead (caused by and found in File Explorer).
  • File cannot be opened with STR Editor PES2015 (caused by File Explorer).

If you spot one of these signs, cease using this file for further modifications and rollback to an uncorrupted version. It might still work with PES, but keep in mind that PES shows NoString if it cannot find the needed entry.

Handling languages

The default language used in the 4chan Cup is eng (British English), rather than use (US English). You might have to change your in-game language to British English first (this can be done in the settings within the game).

Nevertheless, it is advised to provide at least common.str for all languages as PES loads the language settings after the title screen. This means that the title screen is always shown in the system language, which depends on the operating system and varies from host to host. Furthermore, some hosts might forget to change their in-game language as it is easy to miss.

To resolve both of these issues, simply put duplicates of common.str and all.str in all language folders. Check the available versions of dt20_xxx.cpk for a full list.

Special characters

Strings may include special character sequences which influence the way PES handles the string. Most of these are used to display game pad buttons within text.

  • \10 (unix-style line feed) - new line
  • (more to come)

Contributing

As the game strings affect PES on a global level, they are handled by someone appointed by the 4CCC. Check with them if you have any questions. You can find their contact info here.

Links