How To See Other Games' Code (current info posted in OP and Post 146 on 6/18/19)

Also sidenote least for those who purchase on google play when you click the upper corner while in the app/game where you look at achievements click on about instead where it will open the browser and take you to credits click on the url and it should be:

Replace credits.html with scenes/startup.txt like so

I haven’t seen a way to get past the block, just briefly looking at it, but for me just seeing the startup.txt helped a lot when i first started learning to code but you can restore purchases to your CoG account from the apple/google store and log in via browser.

Sorry if this doesnt make sense im running on very little sleep right now with no caffeine


It’s ok, it makes total sense!

The reason there’s a block is because you haven’t purchased the game. There’s no way around that, as far as I know, except to buy it.

And yeah, the rest of your explanation is pretty much what I explained above, but thanks for including the links! I think that’ll help mobile users a lot in seeing what I’m talking about instead of trying to blow up my pics and being all—


mobile users @ me after my explanation


:joy_cat::joy_cat: i will admit that was pretty much me when i was reading your reply above :joy_cat::joy_cat:

When i meant the block i meant when the user leaves the app/actual game to open the browser the block is there even if they purchased it which can be fixed by logging in to their CoG account and restoring/linking their googleplay/apple purchases

  • I havent linked my stuff since theyre different emails but i plan on rebuying all my games with my email account that is connected to this account. Convoluted but im wierd and hey its my way of supporting these amazing writers :joy_cat: -

Yeah, that’s what I meant too. The block is a purchase (?) block. Unless you’re logged into an account that’s connected to a purchase—well, you already know, lol.

oh worm? That’s what I’m doing with Steam! Just throwing all my love cash at authors.

1 Like

Ok, so I tried to follow @CJW’s method of looking at WIP games’ code and uhhhhhhhhhhhhhhh…

W e l l. . .

Um…I’m just gonna let you all judge…?

The following tutorial can be done on any browser. I did it in both Chrome and Firefox, but I’m pretty sure you can do it in any browser, like…

oh my god i dont know any other browsers


How to look at a WIP game's code on Dashingdon (Browser Only)

Go to the WIP whose code you want to look at:

I’ll be using Wayhaven Chronicles as an example because why not, fren?




Right-click and go down to Inspect

On Firefox, this is known as Inspect Element:

Depending on what your settings are, your inspector will appear in different places. Personally, I prefer having the inspector in a different window:





But you do you, frendo. I believe in you :heart:

Now you just have to enter the console!



Again, the screenshots above are if you have the inspector open as a separate window.

And now here's the tricky part. In your console, manually type in (yeah, I know, there's no copypasta-ing—so sad) allScenes["startup"].lines.join.("")no, I have no idea what it means either, just do it.



No, as far as I know, there’s no way to clear your console history on Firefox like in Chrome, but uh…if you’ve made it this far…well…this is gonna be the least of your worries, frendo. :eyes:

And then you hit enter and all hell breaks loose:

Oh boy.

O h   b o y

From here you can copy and paste the whole thing if you want, but like...why tho?

You can paste it onto a separate program, like Notepad++ or even CSIDE, but lemme tell you frendo, it's. not. worth. it.


Notepad++ (please note how tiny the scrollbar is):

also pls forgive and ignore my CK2 files, i like to cheat a lot and at one point my ruler went off to fight a bear that i tried to recruit to court but it was automatically killed after the encounter and i was trying to see if i could revive it because who doesn’t want a bear courtier???

Anyway, if you have patience, you can indent it to something resembling ChoiceScript and perhaps learn some coding along the way but if I were you I would just watch paint dry—

Oh yeah, and also there’s n’s everywhere???

? ? ?

It’s because when we went into SuperHacker mode, we wrote allScenes["startup"].lines.join("n") and for some reason the n puts in…n’s…everywhere???

Anyway, don’t do that. Stop. Don’t. Just leave the "" undefined, mkay? Don’t do what I did. Learn from my mistakes, fren.

Anyway, I tried. :woman_shrugging:


Anyway, I hope you all enjoyed witnessing my descent into madness! :kissing_heart:


About extracting the code on Steam:

For starters, you will need to locate the games installation folder. By default the path should look somewhat like this:

Program Files\Steam\SteamApps\common\insertgamename

Installation path

Older games like Tin Star will have simpler folder contents than newer ones. To extract the code of these older games, we will basically extracting the gamename.exe file to view its contents. You will need to have 7-zip installed. I do not know if this works with other extraction tools as well, it doesn’t work with WinRAR for me.

Right-click the gamename.exe, go to 7-zip, then “Extract to gamename\”.

Right-click the exe

This will create a new folder with all the contents of the .exe file. In there is a folder “scenes” which holds all the .txt files with the game’s code. I’d recommend opening them in Notepad++ if you’ve got that installed.

Scenes folder

About newer games:

idonotlikeusernames has linked two methods to extract a game’s code earlier in this thread and you can find more detailed explanation to the nodejs method in a reply to that post:

This method will ultimately also result in a new folder being created where all the files have been extracted to and you’ll find the game’s code again in the folder “scenes”.


Is there a way to view the stats screen?

Instead of writting scenes/startup.txt, use scenes/choicescript_stats.txt

You can see the directory with all scenes of the game by adding scenes at the end of the link

That’s really clear info, thanks! Anyways just wondering how do you make sure you’re logged in? Is it the google play account etc that you bought the game on? Becuz I don’t seem to see any log in button on CoG main page

To see a game's code online, you need to have bought it from the CoG webstore, aka, this thing:

To purchase it, you hit the *Play Online* button,

and you will be transferred to the game page. From there you can purchase it.

But Rose! What if I didn’t by the game from the webstore? Will I have to buy it twice? :thinking:


CoG is very generous, and you can send them an email to have your purchases from other platforms be transferred to the CoG webstore. This way, you can access a game online as though you bought it there yourself. The steps to doing so are detailed below:

Step 1: You need to email and provide the following information:

  • The email address you want it associated with
    • No, it doesn’t have to be the same email you use to log into the forum, it’s whatever email you want it to be associated with.
  • Receipts or other proof of purchase for the games

For Google Play, you can find receipts using the steps below:
  • If you didn’t delete them, you might still have your receipts in your inbox


  1. Go to while signed into your Google account
  2. Find “Other purchase activity”
  3. Click on “View Purchases”
  4. Select an order to see your receipt
    • Any games you purchased through Google Play should show up there. Chrome Webstore purchases will be there too.
  5. Take a screenshot of the receipt and attach it to the email you send to CoG

For the Apple App Store, you can find receipts using the steps below:
  1. On your device, open the App Store
  2. Select the profile icon in the top right
  3. Select your name, you may need to use Touch ID or enter your passcode to authenticate.
  4. Select Purchase History
  5. Find and select the purchase you want to see the receipt
    • For purchases older than 90 days, make sure you’re on the correct month and year that you purchased it as the App Store shows your most recent purchases first, so you may not see your receipt at fire
  6. Take a screenshot of the receipt and attach it to the email you send to CoG

For Steam, you can find receipts using the steps below:
  1. Open Steam
  2. Click your name in the upper right hand corner
  3. Select Account Details.
  4. Under Store and Purchase History click the link to View Purchase History
  5. Find the purchase you want and click on it to see the receipt
  6. Take a screenshot of the receipt and attach it to the email you send to CoG

For the Amazon App Store, you can find receipts using the steps below:
  1. Go to Your Orders
  2. Click View Order Details next to the order.
  3. Search through your orders until you find the order you want
  4. Click on Order Details to see the receipt
  5. Take a screenshot of the receipt and attach it to the email you send to CoG

And that should be it! In a day or two they’ll send their reply and you just log into the CoG webstore and boom! You got the game, lol.

If you're logged in, you'll see your email and the `logout` option below:

And the restore purchases option essentially works as a longform login:



Does it have to be pc? Cuz i click on it on the buy it now on phone and it redirects me to a playstore page

Nope, you can see the codes in phone too. How about try to search the game in browser instead?

Yea i can see the code but is the purchase of the game as stated by impeccably-stressed through CoG itself or from apple/google/steam, because on phone the “buy it now” button links me to google play and also I’m logged in on forum but not in the game not sure if its same acc

I don’t think you can buy CoG games from the website if you in phone, not from my experience at least. Though it doesn’t really matter since CoG staff would unlock it for you if you emailed them the receipt you received after purchase.

The forum and website is not the same. To see the codes of the game beyond the demo, you need to log in (or make a account) in the website.

Where do you make the acc though? Don’t see a lgoin button anywhere .-.

On your phone you can try “request desktop site” in the browser options if purchase button redirects you to play store. Then you can input email and register.

1 Like

Usually, I log in through the restore purchase in the beginning page of the game, you got the option to sign up through “No, I’m new” after entering your email (pretty weird why they didn’t make it any easier to be honest :woman_shrugging: not sure if that the only way or not)

To add to the options for phone purchase registering with the CoG site, there’s an Omnibus app available for Android via GooglePlay that if you restore the game into your Omnibus library or purchase it in the Omnibus, it’ll register the game as purchased on CoG site too. For Hosted Games, anyway. Don’t think the CoG games android omnibus is released yet.

Almost all of my HG titles were purchased before I figured out the “view site as website” option in my phone browser, and they are all available via the site now, without staff intervention.

Is there a way to see codes of older games like Heroes Rise?

Okay, I’ve managed to get to the code for my Steam CoG games, but I’ll be damned if I can get the WIP games on dashingdon to work with the following command: allScenes[“startup”].lines.join("\n"); (or variations of it).

No matter what browser I use, it returns an error that allScenes is not defined. I tried Scenes and got the same error. Anyone have any advice on how to get this to work?