Post new topic    
Metal Slime
Send private message
Git and OHRRPGCE? 
 PostSun Jun 09, 2013 7:08 pm
Send private message Reply with quote
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?
Slime Knight
Send private message
 
 PostSun Jun 09, 2013 10:49 pm
Send private message Reply with quote
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.
Liquid Metal King Slime
Send private message
 
 PostSun Jun 09, 2013 11:01 pm
Send private message Reply with quote
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! :)
Slime Knight
Send private message
 
 PostMon Jun 10, 2013 12:41 am
Send private message Reply with quote
Bob the Hamster wrote:
EDIT: oops! Chronoboy types faster than me! Smile

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.
Metal King Slime
Send private message
 
 PostMon Jun 10, 2013 5:38 am
Send private message Reply with quote
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.
Metal Slime
Send private message
 
 PostTue Jun 11, 2013 6:24 pm
Send private message Reply with quote
Thanks for you answers and suggestions. Grin

I'll try dropbox, I think.
I didn't consider that I need git to be online on a server or such... Angel
Slime Knight
Send private message
 
 PostTue Jun 11, 2013 7:41 pm
Send private message Reply with quote
I use dropbox personally, and it works just fine for my purposes.
Metal King Slime
Send private message
 
 PostTue Jun 11, 2013 8:09 pm
Send private message Reply with quote
marionline wrote:
Thanks for you answers and suggestions. Grin

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
Metal Slime
Send private message
 
 PostWed Jun 12, 2013 5:59 am
Send private message Reply with quote
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.
Metal King Slime
Send private message
 
 PostWed Jun 12, 2013 6:09 am
Send private message Reply with quote
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.
Metal King Slime
Send private message
 
 PostWed Jun 12, 2013 6:51 am
Send private message Reply with quote
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
Metal King Slime
Send private message
 
 PostWed Jun 12, 2013 8:50 am
Send private message Reply with quote
Oh, yeah. I'm so used to using computers on different LANs.
Metal Slime
Send private message
 
 PostSat Jun 15, 2013 9:22 am
Send private message Reply with quote
Thanks for all you help and ideas. Grin

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!
Display posts from previous: