-
Notifications
You must be signed in to change notification settings - Fork 144
How to git gud?
This a reference sheet for the common development tasks that you need to do to work on your mod.
I want to start
- Install Node LTS
- Install GitHub Desktop
- Install VS Code
- Open GitHub Desktop and clone repository https://github.com/IvarK/AntimatterDimensionsSourceCode
- Open a cloned repository in VS Code, open a terminal (Terminal -> New Terminal)
- In terminal run
npm ci
, wait for it to finish - In terminal run
npm run serve
, wait for it to finish - Open http://localhost:8080/ in your browser
- You should see the game running on your local server
Now you can start edit the code is src
folder, or
images/sounds/css in public
folder.
I want to start and I don't want to lose my changes when my PC dies of cardiac arrest after it sees my code
Do everything listed above, but fork the repository, and clone it instead. When working on the code, commit and push your changes often.
I restarted my PC and I want to continue where I left off
- Open a repository in VS Code, open a terminal (Terminal -> New Terminal)
- Run
npm run serve
, wait for it to finish - Open http://localhost:8080/
- You should see the game running on your local server
New changes were pushed to the main AD repository and I want to update my mod to these changes
- Pray to the highest powers that you don't get merge conflicts
If you did the stuff in I want to start section:
- Open GitHub Desktop and commit all your local changes.
- After that, sync your branch with the master branch
- (Optional) If you've got merge conflicts, go to Something's not working / I'm stuck section
If you did the stuff in the fork section:
- From the GitHub website you can sync your fork
- (Optional) If you've got merge conflicts, go to Something's not working / I'm stuck section
Something's not working / I'm stuck
Go to Discord channel #modifications-development and ask your question there.