Forum Discussion

kazahcheater's avatar
2 months ago

my mod doesn't work when i pack it in ts4script format

Hello everyone. I decided to create my own mods for The Sims 4. I found a guide on how to create my own mods. I encountered the main problem at the stage when I archived two files in pyc and py formats in ts4script (I needed two files of different formats so that if the pyc file crashes, the py file should replace it, but that's not the main thing). So I copied this mod to the Mods folder, open the game, load the lot and... it doesn't work. The mod consisted of one script, which, when the "hellow" command is issued, should enter "Hello World" in the command line.
I thought for a long time what the problem could be. I initially thought that the problem was in the code itself, but after I used another method of loading the script into the game, I realized that the script was working as it should (this method consisted of creating a Helloworld folder in the Mods folder, and in it I created a special Scripts folder for checking scripts, and there I copied the script in py format, which output "Hello World" to the command line of The Sims 4).
After I realized that the script was working, I tried to put py and pyo files into the archive according to the guide. The Sims 4 should have automatically skipped the pyo file, and then loaded the py. However, this did not work either.
Finally, I tried to simply load the mod into a regular zip archive. The result remained the same.

please help me with my problem

links to the guides I relied on:

https://medium.com/analytics-vidhya/the-sims-4-modern-python-modding-part-2-hello-world-77c5bfd3ce4e

https://medium.com/@junebug12851/the-sims-4-modern-python-modding-ultimate-loading-guide-77ce1b68f1e7

 

1 Reply

  • EA_Yafo's avatar
    EA_Yafo
    Icon for Community Manager rankCommunity Manager
    2 months ago

    Здравствуйте kazahcheater​ 

    Вы находитесь на русскоязычной ветке форума.
    В данном случае вам стоит подождать ответов от пользователей, кто уже делал что-то подобное и уже сталкивался с подобными вопросами.

About The Sims 4 Моды & Пользовательский контент

Найдите на нашем форуме советы экспертов, помощь в устранении неполадок, руководства по модам и пользовательскому контенту, а также файлы исправлений для The Sims 4.39 PostsLatest Activity: 6 hours ago