Page 1 of 1

Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 22 Feb 2011, 02:33
by charlie
Any reason why development goes on behind closed doors?

Haha :D at the very least, it is a way to alleviate exasperation, frustration, tantrums, and other troll-like behaviour in the periods between releases?

Possible popular hosts:
- http://sourceforge.net (SVN/Git) - much better after the latest updates
- http://code.google.com/ (SVN/Mercurial) - simple with a nice issue tracking system
- http://bitbucket.org/ (Mercurial)
- http://github.com/ (Git)

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 22 Feb 2011, 10:04
by hc
You named some reasons but just a few, and don't forget tension. ;)

Think distributed: The release is the non-live decentralised repository. No, for real, there is a local GIT repository for a short while (about end of last year) and it may get released or get put live online sometime. But putting source code online isn't a call for core staff. And having a public repository online doesn't mean you necessarily can see all the local changes I make, too.


Intentions smallprint:
I don't want to manage staff and stuff in a hobby project, I want to develop, not discuss changes and decissions or micromanage this and whatnot, don't want to make promisses about future features and how it will be cool - that keeps decissions unbiased. There are a lot of projects (not few dead by now) that suffer from Ubermanaging and Uberpromises. What I imagine fits to decentralised development and GIT (SVN out of the question). You may get the source, you may fiddle with your source, you may patch my source in your source - all in your own local repository - and then you may say "hey, I've got this great change".

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 23 Feb 2011, 05:31
by michalg
hc {l Wrote}:You named some reasons but just a few, and don't forget tension. ;)
You may get the source, you may fiddle with your source, you may patch my source in your source - all in your own local repository - and then you may say "hey, I've got this great change".


In that case maybe github would be best?

https://github.com/

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 23 Feb 2011, 13:29
by hc
Yes, github, developer.berlios.de and a bunch of others would come to mind...
What you may expect for the near future, is a linwarrior.git.tar.gz on hackcraft.de (beside lacking online browsing/analysis, this is basically the same as a usual hosted read-only git-repository just compressed).

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 23 Feb 2011, 13:57
by hc
Have to consider this: http://forum.freegamedev.net/viewtopic.php?f=38&p=10193#p10177 too:
Until this point I tried to keep game data small and put it into the same (git) repository.

So far I have just separated the "data"-folder further into a "base" directory and "packages".

"base" contains critical small footprint data, without which the game would not "boot" and "testrun" at all - this should be considered part of the code.

"packages" are in the form of "opengameart.org"-, "freesound.org"-, and "blendswap.com"-directories and contain contributed data/art with large memory footprint without which the game could still run (but without all funkiness).

So separating package-data from source-code + base-data is a point I should consider for version-control.

This takes me to another possible topic and requirement:
The game shall be able to replace crude base-data with refined package-data when available.
Maybe just overwrite base-data at package-installation or decide at runtime.
Eg. Foliage textures in the base-directory are 64x64 pixels large, and there may be a hi-res replacement file in a package.

Release of public GIT archive (Re: Public repository ...)

PostPosted: 17 Apr 2011, 16:16
by hc
The latest release (today's) is available as linwarrior.git.tar.gz (8.7 MB).
Instructions for usage of this ftp-/http-archived public GIT-repository are online:
http://hackcraft.de/games/linwarrior_3d/downloads.htm

The name of this release #19 is Radiant Nature.

Basically this is my local repository zipped and uploaded. It contains all data files necessary to run the game. And it will stay that way but larger (optional) 3rd-party datafile packages will be factored out eventually.

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 17 Apr 2011, 23:18
by charlie
Looking forward to a changelog :D

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 18 Apr 2011, 17:53
by hc
You're ruining the surprise...it was supposed to be a sneak preview. :(
Have a look:http://forum.freegamedev.net/viewtopic.php?f=50&t=1313&p=12975#p12975

;)

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 04 Aug 2011, 15:13
by qubodup
could somebody provide me with a step-by-step instruction on what to do with the git repository 'dump' ( http://hackcraft.de/games/linwarrior_3d ... git.tar.gz ) to be able to test LW?

It contains a .git dir and I don't know where to go from there.

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 04 Aug 2011, 15:34
by Knitter
Download the file;
Unpack it anywhere you like;
Using a terminal, navigate to new extracted the folder;
Issue the command: git reset --hard HEAD

This will provide you with the usable files to compile and run the game. You need to have git installed. After running the git command to reset your repository (the folder .git) all the files will be available and it's a matter or running the usual "make clean all" command.

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 04 Aug 2011, 20:27
by qubodup
Thanks a lot, Knitter!

hc: quick note: source/de/hackcraft/proc/noise.h needs to be uppercased

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 05 Aug 2011, 21:08
by hc
Another interesting thing may be to hit "gitk" at the console.
If you have done any source editing then you'll see a red spot "local changes not commited" above a yellow "master" spot.
What "reset --hard HEAD" does is "revert" your red local changes to the master head version of the repository -
ie. overwrite your changes with the most recently commited version - undoing all your changes since the last commit.

I usually commit changes in the following style (all at the linwarrior root directory):
Add new (or moved/renamed) files: git add .
Commit: git commit -a -m "Verb'ed this and that."

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 23 May 2012, 22:13
by hc
There's a public repository on github now, which may allow to follow changes more easily.
Unlike SVN, with GIT commits are still local until pushed online (=uploaded) push are easily as well.

git://github.com/hackcraft-de/linwarrior.git

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 24 May 2012, 10:14
by qubodup
Yay!

Please update http://hackcraft.de/games/linwarrior_3d/downloads.htm with the command

{l Code}: {l Select All Code}
git clone git://github.com/hackcraft-de/linwarrior.git

and a link to https://github.com/hackcraft-de/linwarrior , since having an online browser and the social(?) features of github should be interesting to users

Re: Public repository e.g. SVN, Mercurial, Git, etc

PostPosted: 24 May 2012, 22:57
by Knitter
I'm already following the repo (and cloned it :D ), should really help keeping track of what is going on. All we need now are some frequent pushes ;)