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 » Sun Dec 10, 2017 8:18 pm

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

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

Re: Compile Script into .RPYC?

#2 Post by Imperf3kt » 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.
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

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

Re: Compile Script into .RPYC?

#3 Post by CellHG » Mon Dec 11, 2017 8:00 am

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: 1729
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
Projects: Slumberland
Location: Brazil
Contact:

Re: Compile Script into .RPYC?

#4 Post by Donmai » Mon Dec 11, 2017 8:31 am

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
Miko-Class Veteran
Posts: 849
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Compile Script into .RPYC?

#5 Post by Ocelot » Mon Dec 11, 2017 11:24 am

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 » 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?

User avatar
Ocelot
Miko-Class Veteran
Posts: 849
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Compile Script into .RPYC?

#7 Post by Ocelot » Mon Dec 11, 2017 12:47 pm

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
Miko-Class Veteran
Posts: 837
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I cannot draw very well)
Projects: An un-named 3d anime based trainer game
Contact:

Re: Compile Script into .RPYC?

#8 Post by Remix » Mon Dec 11, 2017 1:52 pm

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

This post has some examples

User avatar
xavimat
Eileen-Class Veteran
Posts: 1272
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: xavimat
Location: Italy
Contact:

Re: Compile Script into .RPYC?

#9 Post by xavimat » Wed Dec 13, 2017 3:18 pm

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)
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

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

Re: Compile Script into .RPYC?

#10 Post by sarka » Sun Jul 15, 2018 8:49 am

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

User avatar
xavimat
Eileen-Class Veteran
Posts: 1272
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: xavimat
Location: Italy
Contact:

Re: Compile Script into .RPYC?

#11 Post by xavimat » Mon Jul 16, 2018 5:19 am

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
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users