- Mar 3, 2018
- 1,462
- 476
This is why you should never use ren'py to write code. Can do this in like 1 or 2 lines in C#, and never have to change the code when you add more files.After you have the WTM system using renpy's movie system. The _tag here is passed to findWebm() as "find me whatever .webm fits this action"
findWebm() will select a random .webm from a list according to the _tag u've asked (that's where you put the name of the .webm file) :
But : the game is in renpyThis is why you should never use ren'py to write code. Can do this in like 1 or 2 lines in C#, and never have to change the code when you add more files.
It works. Screen me your findWebm() function and your vids folder.I tried this, added several new vids with the correct name, but no random choice is made. Only the first one is shown for all actions.
As I said, file path are present in the clothing class to avoid redoing an I/O check every time.The game will crash if you have added and/or renames images/vids while loading a saved game. Somehow the list is not refreshed at game start, but only at init.
It uses Python as the programming code. And like any languages, renpy will provide libraries to use.So you can choose.This is why you should never use ren'py to write code.
Okay, so here we have a difference of expectation.As I said, file path are present in the clothing class to avoid redoing an I/O check every time.
Never coded python and don't know what falsy is, but IMO it shouldn't be a great task to dynamically check the folders each time the game starts and construct a list of available files for reference later. Hard-coding the available files/tags is very limiting and harder to update going forward.As I said, file path are present in the clothing class to avoid redoing an I/O check every time.
Changing file paths will make them falsy, crashing the game. An update function would be necessary for that case.
It's obv hardcoded, I'm already using renpy.list_files() for some I/O code, in the context is better than doing a python lisdir() I guess. Clothing classes are using it at init bc it's possible.Okay, so here we have a difference of expectation.
I was expecting that a list was generated from a read action. This is easily done in python/renpy. Then select the items from tags. See eg Brothel King (You must be registered to see the links)
But now I realise it is hardcoded....
Pain for nothing. Doing a "dynamic" system don't really mean anything and is just not efficient in term of time spent.Never coded python and don't know what falsy is, but IMO it shouldn't be a great task to dynamically check the folders each time the game starts and construct a list of available files for reference later. Hard-coding the available files/tags is very limiting and harder to update going forward.
Just dump me the .webmNinoss HelotGames I will leave the coding to you. For now, the system is to hard to add stuff to easily (modable). I assume you also do not have a git repo so others can work together?
So, don't want to loose my hours of searching for pics/vids: how can I share it with you? It was quite a bit of work, looking for faceless videos.
You're free to make any sorts of configs, cheats and/or modsVery nice game HelotGames!
I've created a little cheat for the game with the RenPy Cheat Generator of Aziien
HelotGames: Please, let me know if you do not approve, and I will delete the post. - OR - if you prefer me to post it in the MODs sections to give more visibility to your game.
Download: View attachment 1785875
Instructions:
* The cheat only works in a loaded/started game. Do not try it in the main menu because you will get an error.
- Place the neoCheat.rpy file in the Game folder (inside the ExaminationDay-0.1.2-pc folder).
- Once in the game press "k" and you will be able to change the Amount of Rounds and Requested Answer
View attachment 1785822