Forum Discussion
11 years ago
After few more hours and lots rewriting, still no luck. I really don't understand what i'm doing wrong. As i can't use formatting, i pastbin the full little code there pastebin.com/RtgjV9Hf (link edited to avoid a post error due to be a noob )
extract:
cpt is never incremented...
I have no idea what i'm doing wrong here as i read different code in the game like travel_group.py and can't see any fundamental difference.
A big thanks and a virtual beer for your help!
extract:
def SetupAlarm(self):
global output
def _callback():
self.cpt=self.cpt+1
#output('cpt {}'.format(self.cpt))
global alarm_handle
alarm_handle=alarms.add_alarm(self,clock.interval_in_sim_minutes(10),_callback,repeating=True)
write_debug_log('creating alarm done')
cpt is never incremented...
I have no idea what i'm doing wrong here as i read different code in the game like travel_group.py and can't see any fundamental difference.
A big thanks and a virtual beer for your help!
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,684 PostsLatest Activity: 2 hours ago
Community Highlights
Recent Discussions
- 11 hours ago