Search found 215 matches

by drKlauz
Sat Nov 21, 2020 12:40 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Python to Ren'Py Translation
Replies: 2
Views: 219

Re: [Question] Python to Ren'Py Translation

Code: Select all

screen test_history():
  frame:
    vbox:
      for entry in _history_list[-3:]:
        text str(entry.who)+": "+str(entry.what)

label start:
  show screen test_history
  ...
Works even if there is less that 3 history entries or it is empty.
by drKlauz
Tue Nov 17, 2020 8:25 am
Forum: I am a Programmer, Director, or Other
Topic: [AVAILABLE] Programming
Replies: 12
Views: 2030

Re: [AVAILABLE] Programming

Available, hire me.
by drKlauz
Fri Nov 13, 2020 8:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] adding new files
Replies: 8
Views: 304

Re: adding new files

Type \\ instead of single \. \ is escape character in python. Or better use / instead of \\.
Also avoid using hardcoded paths, use config.gamedir and/or config.savedir.
by drKlauz
Fri Nov 13, 2020 2:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Game lags and unresponsive after playing half the game
Replies: 9
Views: 318

Re: Game lags and unresponsive after playing half the game

When you do "show frame123" it does not replace previous frame, but just show frame123 on top of frame122, frame 121 etc. This likely reason why you game is lagging. As Alex pointed out either rename your images so renpy treat them as having same image tag or use "scene frame123" instead of "show fr...
by drKlauz
Thu Nov 12, 2020 1:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu Coding Trouble - Syntax Error [solved]
Replies: 5
Views: 241

Re: Menu Coding Trouble - Syntax Error

Same error

Code: Select all

        "Handling Shock or Trauma" if homeworld = "spaceship":
by drKlauz
Wed Nov 11, 2020 7:17 am
Forum: Ren'Py Questions and Announcements
Topic: Strange behaviour of if
Replies: 2
Views: 227

Re: Strange behaviour of if

Your conditions are wrong, use if tClockVal == 1 or tClockVal == 7 or ...: or if tClockVal in [1,7,13,19,20,21,25,26,28]: P.S.: reason why condition is wrong is: if tClockVal == 1 or 7: works next way: - check if tClockVal equal to 1 - if not then check if 7 is truthy, which is always So your condit...
by drKlauz
Thu Oct 08, 2020 11:45 pm
Forum: Ren'Py Questions and Announcements
Topic: are these gui elements compatible with renpy?
Replies: 1
Views: 342

Re: are these gui elements compatible with renpy?

Yes, you can use these (nice looking) assets with renpy ui elements. mainwindow images can be used as Frame("mainwindowC.png",borders) for example. Similar with volume/scroll bars, toggle and normal buttons. Helpful links: https://www.renpy.org/doc/html/screens.html https://www.renpy.org/dev-doc/htm...
by drKlauz
Thu Oct 01, 2020 11:48 am
Forum: Ren'Py Questions and Announcements
Topic: Menu from another label
Replies: 10
Views: 380

Re: Menu from another label

Well, i'm not sure it is best way, but as long as it works for you... :D
by drKlauz
Wed Sep 30, 2020 4:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Finding X and Y Coordinates
Replies: 4
Views: 288

Re: Finding X and Y Coordinates

I use this default show_mouse_pos_info=False init python: class DevtoolMouseposDisplayable(renpy.Displayable): def render(self,width,height,st,at): tr=Text("{}x{}".format(*renpy.get_mouse_pos()),color="#F00",font="DejaVuSans.ttf").render(width,height,st,at) bgr=Solid("#0004").render(max(160,tr.width...
by drKlauz
Wed Sep 30, 2020 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu from another label
Replies: 10
Views: 380

Re: Menu from another label

list+=list will extend first list with second's values, so [1,2,3]+[4,5] will be [1,2,3,4,5]
list.append(list) with add second list to first as single element, so [1,2,3].append([4,5]) will be [1,2,3,[4,5]]
list+=tuple works same way.

Can you show example of list+=list working as you said?
by drKlauz
Tue Sep 29, 2020 12:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu from another label
Replies: 10
Views: 380

Re: Menu from another label

display_menu will show menu even if you set interact=False, it is different thing, mostly used to show more than just menu before you start interaction. If by checking you mean adding (or not adding) choices depending on conditions, then you just want to replace park_questions+npc_questions with act...
by drKlauz
Tue Sep 29, 2020 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Menu from another label
Replies: 10
Views: 380

Re: Menu from another label

If you need to combine menus often, renpy.display_menu may be useful. https://www.renpy.org/doc/html/statement_equivalents.html#renpy.display_menu python: park_questions=[ ["Weather","talk_about_weather"], ["Nature","talk_about_nature"], ] npc_questions=[ ["Favorite color","ask_about_favorite_color"...
by drKlauz
Wed Sep 16, 2020 10:23 am
Forum: I am a Programmer, Director, or Other
Topic: [AVAILABLE] Programming
Replies: 12
Views: 2030

Re: [AVAILABLE] Programming

Got free time slots - available.
by drKlauz
Wed Sep 02, 2020 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: Save Ren'py game as single .exe file?
Replies: 6
Views: 393

Re: Save Ren'py game as single .exe file?

You can make web version and send link to it. No need to download and run things, everything is in browser. Tho that loading time...
by drKlauz
Mon Aug 24, 2020 4:50 pm
Forum: Ren'Py Questions and Announcements
Topic: (Solved) Compiling Python as C -> .os / .dll, and using in Ren'Py?
Replies: 12
Views: 467

Re: Compiling Python as C -> .os / .dll, and using in Ren'Py

No one will steal your code. People sometimes steal art, very rarely they even reuse it to release another game. Code is pointless to steal, if thief know how to steal he probably code it faster himself, if thief don't know how to code himself then he fail to steal/reuse properly. Someone have to sa...