Forum Discussion
11 years ago
Hi SimGuruEugi,
Thanks for your answer but it still doesn't work...
I reduced the alarm creation to the bare minimal and still nothing. I guess i missed something obvious! The log file shows ALRM is set.
Whatever i put in _dojob(_), nothing is executed and no errors returned.
DoJob performs some buffers checks and display something on the player's notice wall. I tested it and it works when called manually.
Is there something wrong in that code and for my education, what could be a minimal display/log i can use to see if the function is called ?
Thanks
def _setup_alarm():
def _dojob(_):
write_debug_log('dojo called called ')
DoJob()
write_debug_log('_setup called called ')
ALRM=alarms.add_alarm(_setup_alarm,clock.interval_in_sim_minutes(10),_dojob,repeating=True)
if ALRM is None:
write_debug_log('alarm not set')
else:
write_debug_log('alarm set {}'.format(ALRM))
write_debug_log('_setup called called *')
Thanks for your answer but it still doesn't work...
I reduced the alarm creation to the bare minimal and still nothing. I guess i missed something obvious! The log file shows ALRM is set.
Whatever i put in _dojob(_), nothing is executed and no errors returned.
DoJob performs some buffers checks and display something on the player's notice wall. I tested it and it works when called manually.
Is there something wrong in that code and for my education, what could be a minimal display/log i can use to see if the function is called ?
Thanks
def _setup_alarm():
def _dojob(_):
write_debug_log('dojo called called ')
DoJob()
write_debug_log('_setup called called ')
ALRM=alarms.add_alarm(_setup_alarm,clock.interval_in_sim_minutes(10),_dojob,repeating=True)
if ALRM is None:
write_debug_log('alarm not set')
else:
write_debug_log('alarm set {}'.format(ALRM))
write_debug_log('_setup called called *')
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,680 PostsLatest Activity: 2 hours ago
Community Highlights
Recent Discussions
- 2 hours ago
- 2 hours ago
- 2 hours ago