Source: youtube.com
Pseudo-tutorial-thingy for on-screen love meter bars for Ren’py.
If the bar is moving too fast or too slow, change the “delay”.
Como hacer una novela visual en Ren’Py - Como cambiar la imagen del menú principal
Empezando el proyecto
Para este momento ya habrás configurado Ren’Py a tu gusto, y junto con el, tu nuevo proyecto. Ahora la duda, es como personalizarlo, bien, aquí te mostrare como cambiar la imagen del menú principal.
~ Personalización básica
Para empezar a personalizar Ren'Py solo hace falta tener lo necesario, música, imágenes, sonidos y lo mas importante, creatividad.
• imagen del menú principal
Para personalizar la imagen del menú principal o de inicio, solo hace falta tener la imagen que queremos usar para esta pantalla. Normalmente la altura es de 800 y la anchura es de 600 por defecto en Ren'Py, pues es la resolución en nuestros proyectos normalmente (podemos verificarlo en el script “options.rpy” ahí aparecerá la resolución, en el apartado “control de la anchura y altura de la pantalla” como “config.screen_width” y “config.screen_heigth”). Teniendo la resolución de nuestro proyecto y el tamaño indicado para la imagen, solo tenemos que copiarla al directorio “game” de nuestro proyecto, y nombrarla.
Una vez nombrada y en el directorio, solo hace falta dirigirnos al script “options.rpy” y bajar hasta el apartado “Temas”, ahí encontraras el código “mm_root”, en el que remplazaras el texto (el codigo hex) entre comillas, por el nombre de tu imagen.
Una vez hecho esto, tu imagen estará lista, y aparecerá en la pantalla de inicio.
Como hacer una novela visual en Ren‘Py - Como agregar música al menú principal
Empezando el proyecto
Para este momento ya habrás configurado Ren’Py a tu gusto, y junto con el, tu nuevo proyecto. Ahora la duda, es como personalizarlo, bien, aquí te mostrare como agregar música al menú principal.
~ Personalización básicaPara empezar a personalizar Ren'Py solo hace falta tener lo necesario, música, imágenes, sonidos y lo mas importante, creatividad.
• música del menú principal
Para personalizar la música del menú principal de nuestro proyecto, solo hace falta tener nuestro archivo en el formato indicado. Normalmente el formato que Ren'Py recomienda para musica de fondo (Background music) es “ogg”, pero nosotros podemos utilizar “mp3” o “wav”. Una vez tengamos nuestro archivo de sonido, debemos copiarlo al directorio “game” de nuestro proyecto, y nombrarlo. Habiendo hecho esto, solo nos hace falta ir al script “options.rpy” ahí encontraremos el apartado “Ajustes de algunos de los sonidos utilizados por Ren'Py”. Al llegar a esta parte, encontraras un código llamado “config.main_menu_music”, el cual encontraras bloqueado o deshabilitado por un símbolo “sharp” o “#”, solo hace falta borrarlo, y así podremos habilitar esta opción. Una vez habilitada, solo tendremos que remplazar el texto entre comillas (“main_menu_theme.ogg”) por el nombre de nuestro archivo. Una vez hecho todo lo anterior, listo, ahora tendremos música de fondo en el menú principal de nuestro proyecto.
Visual Novel Creation Masterlist
Or: “So you want to create a visual novel.” A bunch of resources and tutorials i’ve collected, unfortunately I dont have any tutorials for non-ren’py engines fave. its long so under a cut
Como hacer una novela visual en Ren’Py - Tutorial Básico
Descargar el Software
Para empezar tu propia novela visual, primero tienes que tener el programa necesario, en este caso Ren’Py. Supongo que si estas viendo este post, ya tienes el programa instalado en tu pc o laptop, y si ese no es el caso, te invito a descargarlo en este link (has click, para descargar Ren’Py).
Las ventajas de este programa son tan únicas como el mismo, ya que es totalmente gratis, y puede ser usado para fines comerciales, como personales, sin necesidad de pagar alguna licencia. Además el programa es fácil de usar, y puedes acostumbrarte a el rápidamente.
En este curso, te mostrare pequeños tutoriales y consejos que te ayudaran a darle un uso practico.Instalación y Configuración
Una vez hayas descargado el software, solo hace falta abrir el ejecutable, y te preguntara en donde quieres extraer el contenido (el programa y sus archivos). Cuando cuando se haya extraído todo en el lugar que elegiste, el ejecutalbe se cerrara automáticamente, dejando el contenido en el directorio que previamente se escogió. Una vez hecho esto, tendrás que abrir el programa por primera vez, y configurarlo.
Para esto, tendrás que ir al menú “preferences“ y dar click en el. Una vez dentro aparecerán todas las opciones que tienes para configurar el programa, de acuerdo a tus necesidades.
Cambiar el idioma - para cambiar el idioma, tienes que ir al apartado “Language“ y elegir el idioma con el que te sientas mas comodo, en este caso “Spanish“ (Español), y dar click en el. ¡Listo! tenemos nuestro programa en español.
Directorio de Proyectos - Cuando hayas cambiado el idioma, podrás cambiar el directorio de los proyectos que crearas. Para esto, solo tienes que ir al apartado “Carpeta de proyectos“, y dar click en el directorio que viene por defecto. Al abrirlo, aparecerá un menú, en el tendrás que escoger el directorio de tus proyectos.
Editor de Texto - Hay un apartado llamado “Editor de texto“, en el que tendrás que elegir entre tres diferentes editores. El mas comúnmente usado, es “jEdit“, un editor que requiere java, pero es muy útil a la hora de trabajar, aunque en este caso recomiendo usar “Editra“, ya que viene con funciones y herramientas, que te harán el trabajo mucho mas fácil. Cuando lo elijas, Ren’Py se actualizara, descargando el editor para permitirte usarlo.
Una vez hecho esto, no habrá necesidad de configurar o editar nada mas, pues la configuración que viene por defecto esta mas que bien. Ahora lo demás queda a tu parecer. ¡Suerte!
Automatically testing a Ren'Py game using Travis CI
If you have a Ren’Py game that you want to test with the Lint script given in the Ren’Py launcher and test building it but don’t want to have to do so manually then you may want to read this tip.
If you didn’t already know, Travis CI is a website that allows people to test their program by running user-written scripts and attempting to build the program. It creates a log of the checks that it does, and gives you a notification if it comes across any errors or problems. Travis CI is often used with Github, a service that allows you to host the source code of programs using Git repositories. When you host your game on a Github repository and set up Travis CI to work with it, whenever you push any changes you make to to the game to Github, Travis CI will check over the code using the scripts that you set it to use.
Note that if you are unfamiliar with Github and Git, you may want to look up some tutorials on how to use them, as they are somewhat complex, but are very useful tools for development.
In this guide I will show you how to set up Travis CI to run Ren’Py’s Lint script which will check your game for various types of errors in its coding. I will also show you how to setup Travis CI to have it attempt to build your game using the Ren’Py launcher, which will check to make sure that the game can be built without any errors occurring. Travis CI won’t fully test your game, but it will perform a number of checks on it to look for possible errors.
Note that Github and Travis CI are free for open source programs, so you can use them for free if you make your game’s source code public. But if you don’t want to make your source code public, they do offer paid plans for private repositories and testing.
Note that the following implementation of this system works with the game’s source code being hosted on Github and using Travis CI, but you may be able to find other ways to implement this system.
First you are going to want to enable Travis CI for the repository of the game. This can be done by going to Travis CI and logging in with your Github account, then going to your profile page and selecting the grey box next to the repository for the game so that it becomes green with a check-mark in it.
Next you are going to want to make a “.travis.yml” file for the repository. The one I used for a game I was working on (Ganbatte) is below:
Note that due to Tumblr having issues displaying pieces of code, the code may be a bit messed up, see the following page for the proper appearance of the code: https://gist.github.com/ExcaliburZero/1e79f2077241c88dec4b
language: python
python:
- "2.7"
# command to install dependencies
install:
- cd ..
- wget http://www.renpy.org/dl/6.99.1/renpy-6.99.1-sdk.tar.bz2 - tar xf renpy-6.99.1-sdk.tar.bz2 - rm renpy-6.99.1-sdk.tar.bz2 - mv renpy-6.99.1-sdk renpy - cd renpy # command to run tests script: ./renpy.sh "../ganbatte/" lint && ./renpy.sh launcher distribute "../ganbatte/"The script that I used should be able to be easily adapted for your game. But you should replace all instances of “ganbatte” with the name of your repository. For instance if your repository was “user123/fun_visual_novel”, then you would change all instances of “ganbatte” to “fun_visual_novel”.
I will now go over what the different parts of the script do.
language: python python: - "2.7"This section of the script lets Travis CI know to use Python 2.7 when testing code for the game. This section is not necessarily needed, but may come in handy if you want to run anything related to Ren’Py using Python.
Note that if you do not include a language declaration like this one, Travis CI will default to Ruby as the language it loads by default.
install: - cd .. - wget http://www.renpy.org/dl/6.99.1/renpy-6.99.1-sdk.tar.bz2 - tar xf renpy-6.99.1-sdk.tar.bz2 - rm renpy-6.99.1-sdk.tar.bz2 - mv renpy-6.99.1-sdk renpy - cd renpyThis section of the code tells Travis CI to install Ren’Py. This specific implementation of the script has Travis CI install Ren’Py 6.99.1 . You can change the version of Ren’Py that it installs by changing the download link in the “wget” statement and the names of the “renpy-6.99.1-sdk” and “renpy-6.99.1-sdk.tar.bz2” folders to match the appropriate names of the corresponding folders in the version of Ren’Py that you want to use.
script: ./renpy.sh "../ganbatte/" lint && ./renpy.sh launcher distribute "../ganbatte/"This section of the code is what actually tests the game. First it runs the game through Lint via the Ren’Py Launcher “./renpy.sh”. Then if it passes through the Lint script it attempts to build the game.
Note that it is in this section of the code that you will need to change all instances of “ganbatte” to the name of the game you are testing.
Once you have the “.travis.yml” file setup, and Travis CI enabled for the game’s repository the system should now be working. Now whenever you push changes to your Github repository, or when someone makes a pull request, the repository or pull request respectively will be run through the Lint script and will be test built by Travis CI.
For more information on working with Ren’Py in a setting similar to this, you may want to check out Tumblr user dlksk’s guide on getting Ren’Py to run on the Raspberry PI. Even if you aren’t working with Raspberry PI it is a helpful guide. I used it to help put together the “.travis.yml” file above.
If you need to find more information on using Travis CI, then you may want to check out the Travis CI Documentation.
Getting Ren'Py to run on the Raspberry Pi
The Raspberry Pi is an awesome little computer that costs $35 and can do a lot of things. Mine, for example, hosts a Minecraft server, but people do much more interesting things with their Pi’s. One of the possible usages of a Pi is using it as a regular desktop computer — after all, you can browse the web, use office suites and so on. The problem comes when you look at the games. There aren’t a whole lot of games that are going to run on a Raspberry Pi, and it’s not surprising since it’s a very low-end machine. Many people have successfully emulated things like the NES on the Raspberry Pi though, and that makes perfect sense — that doesn’t need a lot of resources. So I was thinking, what other games don’t need a lot of resources? And a thought popped into my mind - why, visual novels, of course! And we have just the tool for that! Ren’Py, that is. After following these instructions, you’ll be able to run most games made with Ren’Py on the Raspberry Pi, and you will be able to make your own games as well. I have to point out, though, that the “Build Distributions” tool of the launcher is broken, so you can only run those games you made yourself on another computer only if you have Ren’Py installed there. That is, however, a minor issue, since it’s possible to simply transfer the project folder of the game to another machine that runs a full version of Ren’Py, capable of building the game. Also, the “update” button will be missing from the launcher, quite obviously — it can’t update if we build it ourselves since it won’t have the appropriate binaries.
First, we will need to fetch dependencies of Ren’Py. This is actually pretty simple since all of them are in the Raspbian repositories, so just run the following command:
sudo apt-get install python-dev python-pygame libavcodec-dev libavformat-dev libavresample-dev libfreetype6-dev libglew1.6-dev libsdl1.2-dev libsdl-image1.2-dev libfribidi-dev libswscale-dev libesd0-dev libpulse-devNext, we have to install Cython. Unfortunately, Cython is missing from the Raspbian repositories, so we’ll have to build it manually. This step is perhaps the longest one in terms of the amount of time it takes. To build and install Cython, run the following commands:
sudo apt-get install python-pip sudo pip install -U cythonThis will take a long time to complete, so you can safely leave it to do its work and do something else yourself. Once that’s done, we can actually start building and installing Ren’Py itself. First, we need to fetch the latest “Source Code” download Ren’Py provides — you can usually find it on their download page near the very bottom. As of this writing, the latest version is 6.18.3. Download it with your browser and extract it, or simply issue the following commands:
wget http://www.renpy.org/dl/6.18.3/renpy-6.18.3-source.tar.bz2 tar xf renpy-6.18.3-source.tar.bz2 rm renpy-6.18.3-source.tar.bz2Now you should end up with a directory called renpy-6.18.3-source. Rename it to something less confusing, move it to whereever you want, and then change to the “module” directory within:
mv renpy-6.18.3-source renpy cd renpy/moduleAnd then there’s just one final step left!
export RENPY_DEPS_INSTALL=/usr::/usr/lib/arm-linux-gnueabihf/ export RENPY_CYTHON=cython sudo -E python setup.py installWhen this finishes, Ren’Py is ready to go! Now, to run the Launcher, use
python -O renpy.pyand to run a Ren’Py game (that is outside your project directory), usepython -O renpy.py /path/to/your/game. For example, to run the example game that comes with Ren’Py, you can do:python -O renpy.py the_question
Tutorials: All Those Empty Pockets
Hello everyone! This is the Ren’PyHelpDesk, coming to you live from your dashboards! I’m your host, codewhisperer, and all around answer genie. Welcome to the ninth tutorial and fourth step by step tutorial. On this lovely occasion, we are going over how to make a simple inventory system! As always, there’s more than one way to crack an egg, but here’s a basic way to do so. Actual tutorial under the cut.
