Skip to content

Check for presence of additional language files #323

@SnowyWhite

Description

@SnowyWhite

What happened?

When a user wants to play the game in a language other than English, several files need to be updated or added:

  • All files in main/video/ must be replaced
  • localized_<languagename>_iw0X.iwd files must be added to main
  • The zone/<languagename>/ folder must be added
  • localization.txt must be replaced

Typically, users change the game's language through Steam and then copy over the necessary files. However, if the main folder still contains localized_english_iw0X.iwd files alongside the new ones, the game will crash on startup with the following error:

Image

To fix this, users need to manually remove or rename the localized_english_iw0X.iwd files. While this works, it's not ideal.

It would be great if the game could automatically detect when a different language is being used (e.g., by checking the localization.txt file), and then ignore or bypass whatever causes this error. That way, users wouldn't have to delete or rename otherwise valid English files just to switch languages.

Expected behavior

Switching to a different language should not require removing valid English language files to prevent the game from crashing.

Steps to reproduce the behavior

  1. Have an English copy of the game in a separate directory
  2. Change the language of the game via Steam and let it download new language files
  3. Replace main/video/ and localization.txt, add the zone/<languagename>/ folder and the localized_<languagename>_iw0X.iwd files
  4. Launch iw4x.exe

How often does this occur?

  • Always
  • Sometimes
  • Rarely
  • Only once

IW4x Version

r4930

Operating System

  • Windows 10
  • Windows 11
  • Other:

CPU

No response

GPU

No response

RAM

No response

Did IW4x crash?

  • Yes
  • No

Crash address

No response

Minidump file

No response

Error message

Couldn't load image 'specialty_new_nonenglish'

Console output or error messages

Mods or custom content

No response

Screenshots/Videos

No response

Additional information

No response

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I am using the latest version of IW4x from the develop branch
  • I have read the documentation and troubleshooting guides
  • I have provided all the requested information above

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions