Search found 28 matches
- Mon May 28, 2018 4:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] List of days cycles only through Sunday to Monday
- Replies: 5
- Views: 639
Re: List of days cycles only through Sunday to Monday
Thank you Kivik and Xavimat. I implemented your suggestions and the code is working correctly. For anyone curious for the solution: def which_day(day=0): global days day_num = (days % 7) day_name = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', ' Fri', 'Sat') day = day_name[day_num] return day and then on the ...
- Mon May 28, 2018 6:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] List of days cycles only through Sunday to Monday
- Replies: 5
- Views: 639
[SOLVED] List of days cycles only through Sunday to Monday
Hi, I'm having issues getting my days to cycle. init: default days = 0 screen ui_text: if 0 <= float(minn/60)%24 < 1: $ days = days + 1 $ day_num = (days % 7) $ day_name = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', ' Fri', 'Sat') $ day = day_name[day_num] zorder 101 text "[day]" size 36 color "#ffffff" fon...
- Mon Apr 09, 2018 8:49 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Image Location Picker TypeError? Help!
- Replies: 4
- Views: 610
Re: Image Location Picker TypeError? Help!
My guess: You have a variable called min, which is an integer. (Solution would be don't call it min.) You are a genius, thank you! I had an init variable called min which was part of a function for my in-game clock. Changing it to minn fixed it. Now I understand the error code. Developer.rpym has a...
- Sun Apr 08, 2018 6:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Image Location Picker TypeError? Help!
- Replies: 4
- Views: 610
Re: Image Location Picker TypeError? Help!
I'm confused on what to even look for. So far my game is functioning properly with everything I've implemented. I'm only getting this TypeError when using Image Location Picker in dev mode.
I'll take a look into my ui screen, maybe something's going on there.
I'll take a look into my ui screen, maybe something's going on there.
- Sun Apr 08, 2018 11:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Image Location Picker TypeError? Help!
- Replies: 4
- Views: 610
[Solved] Image Location Picker TypeError? Help!
Hi, my game is getting a TypeError whenever I use the Image Location Picker. Only my game has this error, the tutorial and other games don't experience it. Whenever I use the Image Location Picker, I am able to successfully load the image. As soon as I click anywhere on the image with my cursor, I g...
- Mon Mar 26, 2018 2:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Math calculation problem. Float is rounding as if int?
- Replies: 5
- Views: 728
Re: [SOLVED] Math calculation problem. Float is rounding as if int?
That's good info to know trooper. I have no experience with python 2.x so I'll be sure to keep that on my mind next time I run into a problem.
- Mon Mar 26, 2018 2:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Math calculation problem. Float is rounding as if int?
- Replies: 5
- Views: 728
Re: Math calculation problem. Float is rounding as if int?
That did it, thanks! Guess I'm just used to Python, but I thought I could force the type value using float(value).guiltyGG wrote: ↑Mon Mar 26, 2018 1:44 amThanks,Code: Select all
min_check = ((min * 1.0) / 60.0) % 24.0
Thanks again!
- Mon Mar 26, 2018 12:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Math calculation problem. Float is rounding as if int?
- Replies: 5
- Views: 728
[SOLVED] Math calculation problem. Float is rounding as if int?
Hello! I'm running an in-game clock that runs in the background on the basic idea of (min/60)%24 #min short for minute. The problem is, this does not display anything other than ints. So if I have 1080 minutes, this translates to 18 pr 6:00pm. 1140 mintes is 19 or 7pm. However anything in between 10...
- Sat Mar 03, 2018 3:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variables created in a screen not found in labels?
- Replies: 2
- Views: 324
Re: Variables created in a screen not found in labels?
Thank you remix. I was also trying to use define but with your explanation it makes sense why it didn't work.
Much appreciated!
Much appreciated!
- Sat Mar 03, 2018 6:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variables created in a screen not found in labels?
- Replies: 2
- Views: 324
Variables created in a screen not found in labels?
Hello, I'm having trouble understanding how screens interact with regular labels. I have a screen that serves as a ui bar (day, time, stats, etc). I have a few variable calculations that need to be created at this screen in order to be constantly calculated. However, I have labels for certain locati...
- Thu Mar 01, 2018 1:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variable not updating on UI screen
- Replies: 3
- Views: 1375
Re: Variable not updating on UI screen
I'm so happy I could kiss you on the lips right now. That worked, thank you so much! I guess I need to read up on labels/screens more. Had no idea that calculations in labels will only be done once. So then it's not a bad idea to define variables in an init block, or even in a label. Yet any sort of...
- Thu Mar 01, 2018 3:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variable not updating on UI screen
- Replies: 3
- Views: 1375
Re: Variable not updating on UI screen
I've read the Runtime init block documentation that says ...variables created in init blocks are not saved (and don't participate in rollback) until you assign them a new value outside of an init block - in the runtime. After assigning them a new value, they work correctly and all changes will be tr...
- Thu Mar 01, 2018 12:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variable not updating on UI screen
- Replies: 3
- Views: 1375
Variable not updating on UI screen
Hi guys, apologize if this is a dumb question. I've spent 3 days losing my mind and scouring the boards/Google trying to figure this out. I have a UI screen at the top of the game that displays the day/time/stats. I'm able to make actions throughout the game that updates these variables and the new ...