Obtaining old code

Hi. I want to make a mini mod for myself to re-enable crafting of caseless ammo. I thought I’d grab the old recipes, tweak them a little, and paste them in.

However the links for 0.C on https://cataclysmdda.org/releases/ no longer work, and it turns out that I’m far too stupid to successfully navigate Github to get old versions - I can see changes people make to a file, but I haven’t figured out how to get a snapshot of an entire file as of a certain date.

Can anyone help me? I mean I could write the recipes from scratch, but that would mean looking up a bunch of IDs and figuring out how the recipe-in-a-certain-book system works.

Thanks

Thank you, but if I click on an actual download link it goes to http://assets.cataclysmdda.com/downloads/windows_binaries/cddasdl-0.C.zip , which doesn’t work.

Edit: Actually wait, the Source Code link /does/ work. Got it now, thanks.

If you create a new branch of the repo based on commit X, the repo will contain all of the code as it was when that change was committed.

so using the git command line:
git checkout -b 0.C-review 0.C
will create a new branch called “0.C-review” that contains the exact code from the 0.C release. If you’re using other git interfaces, you’ll need to do something similar.

Also,
https://github.com/CleverRaven/Cataclysm-DDA/tree/0.C-branch is a web viewable version of the 0.C tree; if you follow the links from there, you can see the old, unformatted ammo recipes and the 8mm bootleg recipe in that file.

Hope that helps!

1 Like