How To Do Steam Achievements With Ren'py?

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.
Message
Author
User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

How To Do Steam Achievements With Ren'py?

#1 Post by Dollarluigi »

I've been wanting to add Steam achievements to one of my projects and I found a guide here but it didn't work, at all. I'd always end up with errors when launching the project.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#2 Post by Triority »

What sort of errors ? It works just fine with one simple command

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#3 Post by Dollarluigi »

It'll say stuff like "sayer 'x' is not a valid command".

And what is the command I'm supposed to use?
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#4 Post by Triority »

You need to use $ achievement.grant
It'll say stuff like "sayer 'x' is not a valid command".
Have you got an example of the line ?

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#5 Post by Dollarluigi »

Unfortunately, I do not. I stopped working on it a while ago because I couldn't figure out what I was doing wrong and then I had a hard drive failure so I'm gonna have to redownload some stuff whenever I decide to get back to work on this.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#6 Post by Triority »

Ah, right. Fair enough

If you have the problem again, post the code !

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#7 Post by Dollarluigi »

Okay, I've got the project running fine but I'm very confused as to how I can upload the project to Steam. I've got the game page set up and all that stuff, but I really don't understand how I'm supposed to upload the game's files.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#8 Post by Triority »

You've got two choices : Upload the file(s) as a ZIP file through the web interface or upload the files via a commandline interface. For the latter, you need to setup two sets of .VDF files that determine where everything goes, and something to run it.

I use a batch file to get everything uploaded

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#9 Post by Dollarluigi »

Triority wrote: Fri Sep 03, 2021 6:02 am You've got two choices : Upload the file(s) as a ZIP file through the web interface or upload the files via a commandline interface. For the latter, you need to setup two sets of .VDF files that determine where everything goes, and something to run it.

I use a batch file to get everything uploaded
I couldn't find a way to simply upload the files like that. I did find a guide that brought up the .VDF files but I'm so lost.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#10 Post by Triority »

I setup something like the following batch file :

Code: Select all

@Echo Building Axiom
..\..\builder\steamcmd.exe +login "" "" +run_app_build_http ..\scripts\app_build_123455.vdf
pause
exit

and the appropriate VDF files :

app_build_123455.vdf
"appbuild"
{
	"appid"	"123455"
	"desc" "The Mansion" // description for this build
	"buildoutput" "..\output\" // build output folder for .log, .csm & .csd files, relative to location of this file
	"contentroot" "..\content\" // root content folder, relative to location of this file
	"setlive"	"" // branch to set live after successful build, non if empty
	"preview" "0" // to enable preview builds
	"local"	""	// set to flie path of local content server 
	
	"depots"
	{
		"123456" "depot_build_123456.vdf"
	}
}

depot_build_123456.vdf
"DepotBuildConfig"
{
	// Set your assigned depot ID here
	"DepotID" "123456"

	// Set a root for all content.
	// All relative paths specified below (LocalPath in FileMapping entries, and FileExclusion paths)
	// will be resolved relative to this root.
	// If you don't define ContentRoot, then it will be assumed to be
	// the location of this script file, which probably isn't what you want
	"ContentRoot"	"C:\sdk\tools\ContentBuilder\content\windows_content\The Mansion (Paid)"

	// include all files recursivley
  "FileMapping"
  {
  	// This can be a full path, or a path relative to ContentRoot
    "LocalPath" "C:\sdk\tools\ContentBuilder\content\windows_content\The Mansion (Paid)\*"
    
    // This is a path relative to the install folder of your game
    "DepotPath" "."
    
    // If LocalPath contains wildcards, setting this means that all
    // matching files within subdirectories of LocalPath will also
    // be included.
    "recursive" "1"
  }

	// but exclude all symbol files  
	// This can be a full path, or a path relative to ContentRoot
  "FileExclusion" "*.pdb"
}
and then just run the batch file (filling in your username and password)

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#11 Post by Triority »

What you were looking for is this screen :
Attachments
Untitled.png

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#12 Post by Dollarluigi »

So how do I make it so the store page will actually download these files? Because all it's doing now is creating an empty folder.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#13 Post by Triority »

You need to copy all your files (unzip them into a folder) and modify the "ContentRoot" to point to the folder. Once it's been upload (and all other parts completed), it then needs to be checked with Valve to be generally available, but after uploading, the developer account can download it in Steam

User avatar
Dollarluigi
Regular
Posts: 63
Joined: Mon Aug 15, 2016 10:06 pm
Completed: Winter Dream, School For The Friendless
Tumblr: Rehnchoro
Deviantart: Dollarluigi
Skype: Dollarluigi
Soundcloud: Dollarluigi
Location: Probably Earth
Contact:

Re: How To Do Steam Achievements With Ren'py?

#14 Post by Dollarluigi »

I don't get it.
Suffering a rare condition is one of the worst things you could ever experience because no one understands a thing.

YouTube Twitter Tumblr Reddit deviantArt

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: How To Do Steam Achievements With Ren'py?

#15 Post by Triority »

Steam SDK provides a directory in \tools\ContentBuilder\content. This can have windows_content and perhaps linux_content and maybe mac_content directories as well.

These are where the programs are usually placed ready for uploading, and where you would unzip the build distributions from RenPy

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]