Git and OHRRPGCE?

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Git and OHRRPGCE?

Post by marionline »

Hi,
is it possible to use Git with the OHR?
I really don't know much about git, and maybe I'm asking an odd question...
As Far as I know Git keeps track of the things one changes and allows to share these changes with others.

I'm using my Netbbook and other times I'm using my PC, I need a way to keep trak of the things I changed.

An OHRfile is a single file and not a colltetion of files, - or am I wrong? - so I'm not sure if I could use git with the OHR.

Do you have other ideas how I could document the changes and versions while making a game?
Chronoboy
Slime Knight
Posts: 281
Joined: Tue Nov 30, 2010 6:01 am
Location: Canada

Post by Chronoboy »

I brought up a similar question before, it should be possible to use a version control system to keep track of changes in an OHRRPGCE game, but it has yet to be tested. An RPG file is technically a collection of files, in order to optimize how GIT or another revision system would track changes, you should unlump the RPG file into what is called an RPGDir. You can find the unlump tool on this website:
http://rpg.hamsterrepublic.com/ohrrpgce/UNLUMP

Then run git init on that resulting RPGDir. Both custom and game can use RPGDirs.

If all you need to do is keep your RPG file insync between two computers, it might be easier to use a service like DropBox, or the Windows Briefcase. On Linux or Mac, you can use the excellent rsync tool.
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Yes, this works. I keep my games in subversion for this very reason.

First you should use the unlump.exe to convert your .rpg file into a .rpgdir folder.

Custom and Game are both able to open .rpgdir folders exactly the same as .rpg files.

You can add the rpgdir to a git or subversion repository. Each time you do an important change, you can commit it.

EDIT: oops! Chronoboy types faster than me! :)
Last edited by Bob the Hamster on Sun Jun 09, 2013 11:01 pm, edited 1 time in total.
Chronoboy
Slime Knight
Posts: 281
Joined: Tue Nov 30, 2010 6:01 am
Location: Canada

Post by Chronoboy »

Bob the Hamster wrote:EDIT: oops! Chronoboy types faster than me! :)
Close, but I used my handy Epoch to go through time, thus knowing this question will appear at this exact point, so I naturally had a reply already crafted for marionline.
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

You might like to use Mercurial instead of Git, it's designed to be a bit easier to use. However, if you just want to keep files in sync between different computers without a history of changes, something like Dropbox or Bittorrent Sync would be better.

You can't easily use this to merge together different changes to a game. It's possible to some degree, but only if you really know what you're doing.
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

Thanks for you answers and suggestions. :D

I'll try dropbox, I think.
I didn't consider that I need git to be online on a server or such... :angel:
User avatar
crowtongue
Slime Knight
Posts: 115
Joined: Mon Feb 25, 2013 4:57 pm

Post by crowtongue »

I use dropbox personally, and it works just fine for my purposes.
User avatar
BMR
Metal King Slime
Posts: 3310
Joined: Mon Feb 27, 2012 2:46 pm
Location: The Philippines
Contact:

Post by BMR »

marionline wrote:Thanks for you answers and suggestions. :D

I'll try dropbox, I think.
I didn't consider that I need git to be online on a server or such... :angel:
Well, you don't really need git to be online actually. I'm using git to keep track of Legacy and I don't have it online (though I prolly should) and it's been working brilliantly so far.

But to each his own, and if dropbox works, then go for it.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

Do you you use git on/with two computers? Or just on one?
I'd need to have git on one PC comunicate with the other, so I'd need internet.

I have been using git in a project were it keept track of a repro and the changes on other persons' PCs, (so I thought it has to be online) but I really don't know much about git, I'd like to learn while using it, and maybe i'm overlooking something.
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

If you want to copy changes between two git (or mercurial) repositories on different computers it would be easiest to set up a remote private git/mercurial repository for free on an external server like bitbucket.org. Then to copy changes from one computer to the other you commit all your changes ("git add gamename.rpgdir", "git commit"), then do "git push" on one, and "git pull" on the other. And as a bonus you'll have an extra backup of your game.
User avatar
BMR
Metal King Slime
Posts: 3310
Joined: Mon Feb 27, 2012 2:46 pm
Location: The Philippines
Contact:

Post by BMR »

TMC wrote:If you want to copy changes between two git (or mercurial) repositories on different computers it would be easiest to set up a remote private git/mercurial repository for free on an external server like bitbucket.org. Then to copy changes from one computer to the other you commit all your changes ("git add gamename.rpgdir", "git commit"), then do "git push" on one, and "git pull" on the other. And as a bonus you'll have an extra backup of your game.
If it's only being done in one location (e.g. two different computers in the same house) wouldn't it be possible to just set up a local server? Though yeah, you would need to have an external server if it's two different locations.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Oh, yeah. I'm so used to using computers on different LANs.
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

Thanks for all you help and ideas. :D

bitbucket.org sounds interesting. I'll tyr that. A own local server at home sounds too complicated for me. But maybe one day that will change... ^^"

So, thanks for your help again, guys!
Post Reply