Compile Script into .RPYC?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
CellHG
Regular
Posts: 61
Joined: Fri May 05, 2017 3:01 pm
Contact:

Compile Script into .RPYC?

#1 Post by CellHG »

How do I compile my coding into a .rpyc file?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Compile Script into .RPYC?

#2 Post by Imperf3kt »

You don't, renpy does that automatically anytime you run the game from the launcher or compile a release.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

CellHG
Regular
Posts: 61
Joined: Fri May 05, 2017 3:01 pm
Contact:

Re: Compile Script into .RPYC?

#3 Post by CellHG »

Imperf3kt wrote: Sun Dec 10, 2017 9:03 pm You don't, renpy does that automatically anytime you run the game from the launcher or compile a release.
I've seen a few games where if you use rpaextractor on it, you won't be able to see the games coding.

Hoe do I do that?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Compile Script into .RPYC?

#4 Post by Donmai »

That's just because people wisely hadn't included rpy files in their final build. Once compiled, a game only needs its rpyc files to run. The authors did that on purpose because they want to make difficult for people to cheat on the game, or steal "learn from their ideas".
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Compile Script into .RPYC?

#5 Post by Ocelot »

I've seen a few games where if you use rpaextractor on it, you won't be able to see the games coding.
As Donmai said, you just need to not include .rpy files when building distribution. An important note: it is still quite trivial to decompile .rpyc files and retrieve original .rpy.
< < insert Rick Cook quote here > >

CellHG
Regular
Posts: 61
Joined: Fri May 05, 2017 3:01 pm
Contact:

Re: Compile Script into .RPYC?

#6 Post by CellHG »

So when building it all I really need is the .rpyc files? I can just delete all the .rpy files?

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Compile Script into .RPYC?

#7 Post by Ocelot »

Yes. It will be easier to just not include them. Make sure that .rpyc files are up to date beforehand. You just need to run game once before building distribution for that.

And do not delete .rpy files from project itself, if you intend to improve your game further.
< < insert Rick Cook quote here > >

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Compile Script into .RPYC?

#8 Post by Remix »

You might also want to look at ways to exclude certain files and ways to group archive repositories:

This post has some examples
Frameworks & Scriptlets:

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Compile Script into .RPYC?

#9 Post by xavimat »

CellHG wrote: Mon Dec 11, 2017 12:06 pm So when building it all I really need is the .rpyc files? I can just delete all the .rpy files?
As others say, you only need to "not include" the rpy files in the build, don't need to actually "delete" them.
This is how I do it:

Code: Select all

build.classify('game/**.rpy', None)
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

sarka
Newbie
Posts: 15
Joined: Tue Mar 06, 2018 9:04 pm
Contact:

Re: Compile Script into .RPYC?

#10 Post by sarka »

I need to compile into .rpyc but without launch the game.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Compile Script into .RPYC?

#11 Post by xavimat »

sarka wrote: Sun Jul 15, 2018 8:49 am I need to compile into .rpyc but without launch the game.
You have the option to Force Recompile in the launcher
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Zodiac_Stories