Skip to content

This is a template for Ren'Py projects in VSCode that can call the Ren'Py SDK via Tasks.

License

MIT, Unlicense licenses found

Licenses found

MIT
LICENSE
Unlicense
TEMPLATE-LICENSE.md
Notifications You must be signed in to change notification settings

DRincs-Productions/renpy-template-old

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

184 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Debug and Template (VSCode) Ren'py

This template includes VSCode launchs and extensions for developing Ren'Py projects.

File

  • bin/renpy: macOS/linux script for calling Ren'Py SDK renpy.sh
  • bin/renpy.ps1: Windows script for calling Ren'Py SDK renpy.exe
  • bin/set-origin.sh: Git setup helper to configure your local folder to sync to a remote host
  • .vscode/launch.json: Launch for launching Ren'Py SDK commands without opening the Ren'Py launcher.
    • Setup (custom file for remembering your project's SDK path for commands to work)
    • Run
    • Force Recompile & Run
    • Delete Persistent
    • Lint
    • Distribute
  • .vscode/extensions.json: Optional extensions that VSCode will offer to install for you
  • .vscode/settings.json: For Test Formatting, and other settings
  • .gitignore: Git configuration file for ignoring certain file paths and types.
  • /game/tool/utility.rpy: Useful functions such as: isNullOrEmpty
  • /game/tool/flags.rpy: Flags System
  • /game/tool/notify.rpy: Notify System
  • /game/tool/log_system.rpy: Log System

How Run Debug (F5)

image

Setup

( Necessary only in the beginning )

Paste the path to your Ren'Py SDK folder

Exemple: /home/username/renpy

Run

Select:

  • Run or
  • Force Recompile & Run

And Play!

For Linux first:

Installing PowerShell on Ubuntu https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.3

# Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Download the Microsoft repository GPG keys
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of packages after we added packages.microsoft.com
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell

give renpy permission

chmod +x renpy.sh
chmod +x renpy.py
chmod +x renpy.exe
chmod +x lib/py3-linux-x86_64/renpy
chmod +x lib/py3-linux-x86_64/pythonw
sudo apt-get install -y xdg-utils

when opening the text with error info via terminal, write:

:q

if this:

image

them:

sudo apt-get install -y yad

For microsoft wsl

https://docs.microsoft.com/it-it/windows/wsl/tutorials/gui-apps

Insert Template in your Project

I recommend the following ways to include it in your project:

  • Pull branch (to insert it into your game and update it easily)
  • Fork (to improve the repo or create a Toolkit based on mine)
  • Manually (not recommended)

Pull branch

To insert or update the Toolkit in your repo with Pull branch I recommend the following procedure:

(only if you want to insert the repo) Create a new empty branch, in the example I'll use vscode-template

git checkout -b vscode-template
git checkout vscode-template
git config pull.rebase false
git pull https://github.com/DRincs-Productions/renpy-template-old.git tool-only --allow-unrelated-histories
git submodule update --init --recursive

At the end make a merge inside the arm of the project.

About

This is a template for Ren'Py projects in VSCode that can call the Ren'Py SDK via Tasks.

Topics

Resources

License

MIT, Unlicense licenses found

Licenses found

MIT
LICENSE
Unlicense
TEMPLATE-LICENSE.md

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages

  • Ren'Py 83.1%
  • PowerShell 14.9%
  • Shell 2.0%