Linux: Getting previously installed Ren'py games to run on a converted HDD partition NTFS -> Ext4

Draakaap23

Dying is always an option
Donor
Jul 5, 2017
1,245
2,817
I had a lot of installed VN's on a big NTFS formatted drive,
Then I switched to Linux Mint (the games kept working)
Now I moved all those games to a backup location before I converted the HDD partition to EXT4, then I moved all the files back. Now those games simply refuse to run anymore.
Installing anew games on the disk: those works fine.
I think it is a Rights Issue, but can't find what gums up the works. I looked into making sure the .sh files are set to run as a program: won't start. Re-Setting ownership of the Map with games to my User account: no help. (trying to run those games through Lutris works, but I just want to run the .sh natively)

any ideas/help appreciated since I have no desire to download all those games all over again
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,793
18,259
I think it is a Rights Issue, but can't find what gums up the works. I looked into making sure the .sh files are set to run as a program: won't start.
You also need to ensure that the Python interpreter and all the lib are seen as executable.
 
  • Like
Reactions: Draakaap23

Draakaap23

Dying is always an option
Donor
Jul 5, 2017
1,245
2,817
You also need to ensure that the Python interpreter and all the lib are seen as executable.
Thank you, that fixed it. Any insight in how or why those got turned off (or wasn't on in the first place?) and how do I set an entire map worth of games, with each their own interpreter, to do this without having to go into each and every directory and mess with each and every file's properties manually?
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,793
18,259
Any insight in how or why those got turned off (or wasn't on in the first place?)
You almost said the answer. It was on inside the archive, but like the files were stored on a NTFS drive, it disappeared at that moment.


and how do I set an entire map worth of games, with each their own interpreter, to do this without having to go into each and every directory and mess with each and every file's properties manually?
It's probably not too difficult to make a shell script that would automate this, but it's been way too long that I haven't wrote one, so I prefer to not give it a try and risk to mess your files.
 

Draakaap23

Dying is always an option
Donor
Jul 5, 2017
1,245
2,817
You almost said the answer. It was on inside the archive, but like the files were stored on a NTFS drive, it disappeared at that moment.




It's probably not too difficult to make a shell script that would automate this, but it's been way too long that I haven't wrote one, so I prefer to not give it a try and risk to mess your files.
I should look into learning how to make shell scipts myself, but I am being too lazy right now :)
I don't get it: the games were already unpacked and working while on the NTFS drive, everything already worked. I made no changes to my OS and the HDD with games is a separate one. The back-up location I copied everything to was a Btrfs disk in my NAS. I did not compress/zip/archive anything, I just copied the map and sub-maps over wholesale. I then formatted the NTFS to Ext4 and just dumped those unpacked files back again from the back-up location. I never changed any file settings. How did that got lost along the way?
 

gojira667

Member
Sep 9, 2019
352
344
The back-up location I copied everything to was a Btrfs disk in my NAS. I did not compress/zip/archive anything, I just copied the map and sub-maps over wholesale. I then formatted the NTFS to Ext4 and just dumped those unpacked files back again from the back-up location. I never changed any file settings. How did that got lost along the way?
Most likely the copy commands either to or from the NAS. The mount options may matter too.
 
  • Like
Reactions: Draakaap23

zonesamabaka

Member
Feb 5, 2018
172
420
files on ntfs partitions don't have permissions that linux can use, on mint the ntfs-3g driver in linux sets global full access (777) "configuration type 7" for everything on an ntfs partition while it's mounted which is why everything just worked, but now they need real permissions
I'm assuming that linux/ntfs-3g/whatever doesn't send the temporary mounted permission data that it's giving to the ntfs files when they were transferred to the nas, so they had no permission data & I'm guessing they were assigned defaults there

how do I set an entire map worth of games, with each their own interpreter, to do this without having to go into each and every directory and mess with each and every file's properties manually?
a quick fix is to recursively change permissions to be readable/writeable/executable by you, but only readable by any other user, open a terminal and
chmod 744 -R /path/to/games/folder

which should be /media/USER/DRIVE/folder for you
just make sure you're only doing this to self contained games, and not like config files for steam or something, segregate that shit first

general warnings here... don't be root & don't use sudo, your user should be the owner of the files beforehand,
this also makes sure you aren't accidentally gonna recursively do this to the root folder or something cuz of a typo, that's a bad time
also don't go recursively doing this somewhere in your /home directory without extreme caution, you don't need sudo to mess shit up in there
 
  • Like
Reactions: Draakaap23