Forum Discussion
Izarallia
7 years agoNew Rookie
> @k12345aden said:
> Is someone willing to post a step by step for the Python bit? It's not making any sense to me.
Copy/Paste your .py file in the main Python folder (Mine is "D://Python")
*I right click the file, select "rename" then ctrl+a ctrl+c to make the next step easier*
Type CMD in your search bar
Type the location of your python.exe file. (Mine is "D://Python/Python.exe"
Type "import yourfile.py" (if you copied the whole name from the folder you can just type import, a space, and the ctrl+v)
Go back to your main Python folder and cut your .py file
Paste the .py file in the _pyache_ folder
*There should be two files in this folder now*
One of the files should have a second extention that says .cypthon-37 or 33, or whatever version you are running. Remove that .cypthon-37 from the extention so it is your filename.pyc
Select both the .py and .pyc file and use a zip program to put them into an archive (I use 7-zip)
Rename the archive so that the extenstion is ".ts4script"
You should now have one file that says "yourfile.ts4script" that is the one you put in your mods folder along with your package from s4pe
> Is someone willing to post a step by step for the Python bit? It's not making any sense to me.
Copy/Paste your .py file in the main Python folder (Mine is "D://Python")
*I right click the file, select "rename" then ctrl+a ctrl+c to make the next step easier*
Type CMD in your search bar
Type the location of your python.exe file. (Mine is "D://Python/Python.exe"
Type "import yourfile.py" (if you copied the whole name from the folder you can just type import, a space, and the ctrl+v)
Go back to your main Python folder and cut your .py file
Paste the .py file in the _pyache_ folder
*There should be two files in this folder now*
One of the files should have a second extention that says .cypthon-37 or 33, or whatever version you are running. Remove that .cypthon-37 from the extention so it is your filename.pyc
Select both the .py and .pyc file and use a zip program to put them into an archive (I use 7-zip)
Rename the archive so that the extenstion is ".ts4script"
You should now have one file that says "yourfile.ts4script" that is the one you put in your mods folder along with your package from s4pe