Utilities for Madden - Utilizing the madden-franchise API by bep713.
This repository is intended for developers with a basic understanding of bep713's madden-franchise API. Ensure you have Node.js installed to run these scripts.
-
Clone the repository:
git clone https://github.com/your-username/madden-franchise-utils.git
-
Navigate to the project directory:
cd madden-franchise-utils
-
Install dependencies:
npm install
Scripts in this repository can be executed using the following command:
node scriptName.js
For example:
node generateVisuals.js
To build a script into an executable, you can use nexe. To install nexe globally:
npm install -g nexe
Then run a command similar to the following:
nexe --build -i testScript.js -t x64-14.15.3 -r "PATH_TO_NODE_MODULES/node_modules/madden-franchise/data/schemas" -r "*.json" -o "test.exe" --verbose
Please note that nexe requires both Python and NASM to be installed. You can download Python here (version 3.9 is recommended). You can download NASM here.
The above example builds an executable (test.exe
) from testScript.js
, including schemas from the madden-franchise API and all JSON files in the current directory.
Replace PATH_TO_NODE_MODULES
with the actual path to your node_modules
directory.