Post by one89 on Jul 25, 2019 16:35:32 GMT -5
Hi everyone,
After a long brake i've decided to to try again with modding.
so i create the spit in the face mod, your sim will be able to spit in the face of the other sims, in the mean interactions...
you can see here the mod, (but i have improved the animations now thisi n the video are the old one)
here is the link to download the mod www.mediafire.com/folder/mb33kl2m402lz/Sputa
NOW.. the problem is the script (of course.......)
because i want to share this mod and more in the future! :D
i have tried this code from Andrew:
(the snippets and the mixer codes in it, aren't from my mod.. ive just copied from the andrew's message now has an example)
then this is my code:
the 2 snippets are the mean_touching and the mean_touching_forReference
but the problem is that it isnt working.. i cant find my animation...
i compiled it with this guide: sims4studio.com/thread/15145/started-python-scripting
im doing something wrong?
another thing that you have to know is:
im working on another mod (hospitality mod) that allow your sim to ask to their guests if they wants to use the bathroom or sleep etc...
so ive created just the first interaction (ask if wants to use the bathroom) and the script seems to work fine with this one... but this one has the original animations and not the custom one that are in the Spit mod... so maybe this is the problem?
the spit interaction isnt showing up because it has custom animations?
i need the last key...
i have so many ideas, and i know even how to do that but if i cant put the right script then its a waste of time because i cant share them and helps to expand this game :(
thank u very much god bless u
After a long brake i've decided to to try again with modding.
so i create the spit in the face mod, your sim will be able to spit in the face of the other sims, in the mean interactions...
you can see here the mod, (but i have improved the animations now thisi n the video are the old one)
here is the link to download the mod www.mediafire.com/folder/mb33kl2m402lz/Sputa
NOW.. the problem is the script (of course.......)
because i want to share this mod and more in the future! :D
i have tried this code from Andrew:
(the snippets and the mixer codes in it, aren't from my mod.. ive just copied from the andrew's message now has an example)
from sims4.tuning.instance_manager import InstanceManager
from sims4.resources import Types
import services
SNIPPET_IDS = (24511, 163706)
MIXER_ID = 12617662110556936800
def add_mixer_to_snippet(self: InstanceManager):
affordance_manager: InstanceManager = services.affordance_manager()
# Just get the mixer tuning once, outside the loop
mixer_tuning = affordance_manager.get(MIXER_ID)
if mixer_tuning is None:
return
# Loop through all the snippets in the SNIPPET_IDS and add the mixer
for snippet_id in SNIPPET_IDS:
snippet_tuning = self.get(snippet_id)
if snippet_tuning is not None:
snippet_tuning.value = frozenset(set(snippet_tuning.value) | {mixer_tuning})
snippet_manager: InstanceManager = services.get_instance_manager(Types.SNIPPET)
snippet_manager.add_on_load_complete(add_mixer_to_snippet)
Read more: http://sims4studio.com/thread/16371/confess-cheating-stuck-python-script#ixzz5uj3c3s00
then this is my code:
the 2 snippets are the mean_touching and the mean_touching_forReference
from sims4.tuning.instance_manager import InstanceManager
from sims4.resources import Types
import services
SNIPPET_IDS = (24506, 163721)
MIXER_ID = 11873397372961303122
def add_mixer_to_snippet(self: InstanceManager):
affordance_manager: InstanceManager = services.affordance_manager()
# Just get the mixer tuning once, outside the loop
mixer_tuning = affordance_manager.get(MIXER_ID)
if mixer_tuning is None:
return
# Loop through all the snippets in the SNIPPET_IDS and add the mixer
for snippet_id in SNIPPET_IDS:
snippet_tuning = self.get(snippet_id)
if snippet_tuning is not None:
snippet_tuning.value = frozenset(set(snippet_tuning.value) | {mixer_tuning})
snippet_manager: InstanceManager = services.get_instance_manager(Types.SNIPPET)
snippet_manager.add_on_load_complete(add_mixer_to_snippet)
Read more: http://sims4studio.com/thread/16371/confess-cheating-stuck-python-script#ixzz5uj3c3s00
but the problem is that it isnt working.. i cant find my animation...
i compiled it with this guide: sims4studio.com/thread/15145/started-python-scripting
im doing something wrong?
another thing that you have to know is:
im working on another mod (hospitality mod) that allow your sim to ask to their guests if they wants to use the bathroom or sleep etc...
so ive created just the first interaction (ask if wants to use the bathroom) and the script seems to work fine with this one... but this one has the original animations and not the custom one that are in the Spit mod... so maybe this is the problem?
the spit interaction isnt showing up because it has custom animations?
i need the last key...
i have so many ideas, and i know even how to do that but if i cant put the right script then its a waste of time because i cant share them and helps to expand this game :(
thank u very much god bless u