Git Product home page Git Product logo

prtomod's Introduction

PRToMod

This script attempts to convert a pull request from the fa repo into a sim mod. The purpose of this is to allow potential contributers to test and show off their ideas while not requiring it to be remade in PR form if the idea is accpeted.

How To Use

  1. Install Python https://www.python.org/downloads/ or sudo apt install python3

  2. Install Github Dependancy pip install PyGithub

  3. Generate a Personal Access Token access token from here and put it into the Token field in the Token.yml file

  4. Run main.py

  5. Hit enter to automatically fill your token

  6. Input your target pull request ID

Drawing-24 sketchpad(1)

  1. Copy the generated mod out of the script directory and into your FAF mod directory or upload it to the vault

Limitations

One change per file

This system entirly overwrites any file it modifies, this means that you cannot overwrite a file twice or play on a diffrent branch than the mod was intended for. For example you cannot play with a PR for FAFBeta on FAFDevelop. Also you cannot play with 2 diffrent PRToMods that work with the same file.

Removing BP Values

While this script entirly overwrites any bp file it modifies, it is still merging the new file with the old. This means that if you remove a value from a BP file it will default back to the old value. This causes PRs like the Bubble Shield PR to not work in mod form. It sees the removal of Prerequisite = 'Shield', and defaults to the current base game value of Prerequisite which is of course 'Shield', thus the mod does not work.

Tested PRS

  • SACU Change
  • Reclaim Change
  • A fun sub PR

prtomod's People

Contributors

spikey84 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.