Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#632782 22/10/17 06:37 AM
Joined: Apr 2013
S
stranger
OP Offline
stranger
S
Joined: Apr 2013
Hello,

I'm wondering which folder/files I need to check into version control if I want to use Gitlab or Github for my WIP mods. I noticed multiple folders in multiple locations being created with new mods.

Thanks.

Joined: Jan 2010
Location: USA
F
enthusiast
Offline
enthusiast
F
Joined: Jan 2010
Location: USA
All plain text files in:
  • Data\Mods\<your_mod>
  • Data\Projects\<your_mod>
  • Data\Public\<your_mod>
  • Data\Editor\Mods\<your_mod>
Setting up a Git repo with symbolic links or hardlinks is kind of a pain, but it can be done. But to make this easy, you just want to move those folders to your repo outside the game directory, and then create junction points where they should be in the game directory. The game and editor won't know the difference, and you'll have everything in one place for your repo.

If you're working with binary assets, you must use Git LFS for binary assets. GitHub offers 1 GB of free LFS space and bandwidth. Never ever commit binary assets to a non-LFS repo unless you want to end up with massive Git performance issues down the road.

If you're not working with binary assets, use .gitignore to force Git to not track files with these extensions:

Code
*.bik
*.bnk
*.bshd
*.bullet
*.cur
*.dat
*.data
*.dds
*.fnt
*.gr2
*.iggy
*.iggytex
*.lsb
*.lsf
*.lsfx
*.osi
*.patch
*.png
*.swf
*.tga
*.tmpl
*.ttf

That list is itself the .gitignore file you need to commit to your non-LFS repo. (Note: There is a single .lsfx file that should be an .lsmg file in the editor data, but you'll never see that file in your project data, so #trivia.)

You can otherwise use that list to set up the binary files you want to track with LFS.

Joined: Apr 2013
S
stranger
OP Offline
stranger
S
Joined: Apr 2013
Thanks for the detailed answer fireundubh, I'll give it a try. Good idea with junction points, I didn't think about them.

Out of curiosity, do you use version control or do you simply zip the files and upload to dropbox (or other solution)?

Joined: Jan 2010
Location: USA
F
enthusiast
Offline
enthusiast
F
Joined: Jan 2010
Location: USA
Originally Posted by Sashenka
Thanks for the detailed answer fireundubh, I'll give it a try. Good idea with junction points, I didn't think about them.

Out of curiosity, do you use version control or do you simply zip the files and upload to dropbox (or other solution)?

I don't use version control for my mods, but I have the game data, editor data, and patch data in local Git repos so I can see what changes between patches. I don't use Git for my current mods because I wrote Python scripts to automatically generate the largest ones, which makes them too simple for a commit history to be helpful.


Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5