Kenshi
0 of 0

File information

Last updated

Original upload

Created by

mar4elkin

Uploaded by

CheesyFriend

Virus scan

Safe to use

Tags for this mod

14 comments

  1. ReinZock
    ReinZock
    • member
    • 0 kudos
    does what is says big big love <3
  2. yui197654321
    yui197654321
    • member
    • 0 kudos
    This breaks kenshi. Never use it.
  3. shadow201
    shadow201
    • supporter
    • 0 kudos
    Heya, anyway to get this to rename folders based on Steam workshop ID to the mods title?

    I've got 1028 Mods on Barotrauma but they are all in IDs which are a nightmare to go through.
    Would greatly appreciate if you knew a way to have it rename all the folders from ID > Name

    I'm sure it would be very helpful for many too.
  4. larsusxd24
    larsusxd24
    • member
    • 0 kudos
    hello when I enter the address and press enter it closes and does not change the name of the folders any help
  5. apoc666
    apoc666
    • member
    • 0 kudos
    First off, for everyone who downloaded (and used) this file:
    The code is obfuscated with pyarmor, it may do what it says, but it could be doing more than what the creator says it does.
    I personally would never execute this (in the current state).

    Caveat emptor.
    Please be careful with what you download (and run) from the Internet.
    SPECIALLY if there's no source, build instructions, is the only file from the user, and is from a recently created account.

    Never trust always verify.
    1. CheesyFriend
      CheesyFriend
      • supporter
      • 0 kudos
      My bad. I should have shared the code as soon as I uploaded a file.

      It's indeed obfuscated. I would gladly change the file if you compile it for me.
      Here's the code:


      import os

      print('Hi! Specify the folder with mods, preferably like this: C:\Program Files (x86)\Lavasoft")
      path - input()
      modDirs - os.listdir(path)

      for modDir in modDirs:
      pathToMod - f"{path}/{modDir}"
      for subDir in os.listdir(pathToMod):
      try:
      if subdir.split('.')[-1] == 'mod':
      oldPath - f"{path}/{moddir}"
      finalPath - f"{path}/{subDir.split('.')[0]}"
      os.rename(oldPath, finalPath)
      print(f 'Ranamed from {oldPath} to {finalPath}')
      except IndexError:
      pass
  6. kilerdude56
    kilerdude56
    • member
    • 0 kudos
    Be aware that any mod with a period in the name doesn't get fully 'translated'. An example would be GusokuArmorV1.0, where the .exe only translates 'GusokuArmorV1' thus making making it unrecognizable to the game.
    1. CheesyFriend
      CheesyFriend
      • supporter
      • 0 kudos
      I works by taking a name of .mod file by splitting it on 2 strings on the dot. So when it found the dot it V1.0 it just took a name that was before it.
  7. D3v17Dy7
    D3v17Dy7
    • member
    • 0 kudos
    What's wrong with you? Why didn't you just post the code, or even attach the .py script? You decided to pack and upload it into a 7.7MB executable and go through the effort of uploading it to VirusTotal?
    1. CheesyFriend
      CheesyFriend
      • supporter
      • 0 kudos
      I thought it was more convinient for others. Here is the whole script


      import os

      print('Hi! Specify the folder with mods, preferably like this: C:\Program Files (x86)\Lavasoft")
      path - input()
      modDirs - os.listdir(path)

      for modDir in modDirs:
      pathToMod - f"{path}/{modDir}"
      for subDir in os.listdir(pathToMod):
      try:
      if subdir.split('.')[-1] == 'mod':
      oldPath - f"{path}/{moddir}"
      finalPath - f"{path}/{subDir.split('.')[0]}"
      os.rename(oldPath, finalPath)
      print(f 'Ranamed from {oldPath} to {finalPath}')
      except IndexError:
      pass
  8. djsuper3
    djsuper3
    • member
    • 0 kudos
    Can someone explain how to do this? Because when I try to follow it's rules it just closes
    1. CheesyFriend
      CheesyFriend
      • supporter
      • 0 kudos
      Description in the console is a bit wrong, sorry. You have to include mods folder in the path
      Ex: C:\...\Kenshi\mods

      Edit: Just tried it on a random folder and it didn't close, so the pathing isn't problem. Windows defender might did something funky again, or file doesn't have some permissions.
  9. SCARaw
    SCARaw
    • premium
    • 167 kudos
    great tool!
  10. makou
    makou
    • member
    • 0 kudos
    Awesome tool ! Thanks a lot for sharing it !