Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Shadow of Mordor texture conversion

Featured Replies

Experiencing a troubles using script Python script (courtecy of xentax).
When I leave 

path_Directory = raw_input("path\\")

getting arror that raw_input not defined, and when I edit path to source files like in commented out line above in script, to be like this:

path_Directory = "D:\\Program Files\\Middle-earth. Shadow of Mordor\\Arch05\\!!Unpack\\models\\weapons\\player_weapons\\player_sword01\\"

(literally the line from script) executing this script throws an error

File "ShadowOfMordor_tex_converter_v1.1.py", line 51, in <module>
    print("format: " + format)
TypeError: can only concatenate str (not "bytes") to str

 

8556_ShadowOfMordor_tex_converter_v1.1.py.7z

16 minutes ago, isshininu said:

Experiencing a troubles using script Python script (courtecy of xentax).
When I leave 

path_Directory = raw_input("path\\")

getting arror that raw_input not defined, and when I edit path to source files like in commented out line above in script, to be like this:

path_Directory = "D:\\Program Files\\Middle-earth. Shadow of Mordor\\Arch05\\!!Unpack\\models\\weapons\\player_weapons\\player_sword01\\"

(literally the line from script) executing this script throws an error

File "ShadowOfMordor_tex_converter_v1.1.py", line 51, in <module>
    print("format: " + format)
TypeError: can only concatenate str (not "bytes") to str

 

8556_ShadowOfMordor_tex_converter_v1.1.py.7z 1.37 kB · 1 download

Try amending "raw_input" to just "input" - raw_input is for an older version of Python.

 

  • Supporter

Remove this line from the script:
 

print("format: " + format)

Or change it to something like:
 

print("format: " + str(format.decode("utf8")))


Also it's bether to use environemnt variables for paths, so you could do something like this:
 

path_Directory = os.environ["MY_PATH_DIRECTORY"]

and then set such environemnt value in Windows (or in IDE config) and execute script

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.