Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 15 Jun 2012
Offline Last Active Feb 28 2014 09:12 PM

Topics I've Started

Git Commit Review - Project: Radium-218

29 September 2013 - 03:57 PM

I was wondering if anyone would be able to give me a hand with my general commit messages in Git.


Specifically, my project's history is here: https://github.com/MiniAl/Radium-218/commits/development/.


My question is basically: What kind of quality would you rate these messages?


General goals and thoughts when I write commits:

  • Explain what changed (as a brief overview), explain why it changed, and finally explain how this might affect the project in the near future;
  • Attempt to make commits minimal and focused ('git add -u -p'); and
  • Write messages in Markdown (http://daringfireball.net/projects/markdown/) to provide a structured way of providing links and emphasis without bloat.

I was hoping someone could take a brief outside look at let me know if I'm actually achieving these goals or if there's something huge that I should be doing and are not.


Brutal, constructive criticism is welcome. smile.png.

Separating Windows folders

21 April 2013 - 01:31 PM

Not really a coding topic but I'm a little confused.


When you install Windows (specifically 7 x64 in this case) the drive contains 4 folders: Program Files, Program Files (x86), Users, and Windows. Now I know that you can point User Profiles to wherever you like so that isn't a problem.


What I'm doing is building my first PC and I'm just looking into a method of having the operating system on an SSD (because they're kind of expensive right now) and everything else on a standard HDD. My current idea was to purchase a 40GB SSD and some arbitrarily sized drive for everything else.


The thing is that most of the space is likely to be rapidly taken up by programs and not Windows. Probable solution: 2 drives (one containing the Windows folder and another containing Program Files, Program Files (x86), and Users). How does Windows react to fresh installs with programs on separate drives?


If I wiped the Programs drive or the Windows drive how badly would Windows implode?

Code generation (VS2012)

06 April 2013 - 08:50 AM

I'm going through and learning how to use Visual Studio properly and I've recently discovered its modelling tools (hooray!). I already knew UML so I've set about creating the layout of the engine/game I'm building.


Now I found it's possible to generate code from these diagrams but the code is always in a C# project. I'm happy to write out the T4 files to generate C++ and not C# but I can't find a way to simple dump the files in a directory.


I know how to write MSBuild files fairly well but I don't know how to achieve what I want...


To summaries: Does anyone know how to prevent the generation of a C# project file and simply dump the generated header files in a different project directory.


I want to make the engine project dependent on modelling project so that I can regenerate structure quickly and simply.

Component programming. I think?

05 March 2013 - 10:07 AM

Everytime I talk to someone about game programming they always say "just do it". So "just doing it I am". However, I was wondering if I could get a slight bit of feedback on my current idea. I'm going to keep pursuing it until I hit a brick wall for educational purposes but I was curious how common this kind of structure in a game is.


I was recently reading a book that brought up the concept of a 'system'. Systems have inputs, outputs, feedback mechanisms, etc. It occured to me that all game engines are just a series of systems (and the award for over-simplification of the year goes to...!).


My current structure simply involves all game parts (input manager, rendering engine, networking) inheriting from an interface ISystem. This makes all systems completely isolated from each other.


Systems can also contain subsystems. If the game itself is a system then it can contain a input manager system, a rendering system, and so on.


The way I've defined the interface means that systems can communicate via a message passing interface. Messages derived from an IMessage interface and carry their type with them so that certain systems can receive specific information. I've previously looked at DOOM-3's source in brief and after reading 'All Signs Point to "No-No"' here (http://www.gamasutra.com/view/feature/132500/dirty_coding_tricks.php?page=2) I figured this was a better idea than enforcing simple packing.


Systems keep an output-restricted deque to allow important messages to skip to the front of the message handling process.


This is my first real project and I was really wondering what someone with actual experience thought of this idea. Have I been paying attention to everything I've been reading in books/online or have I missed the point entire and should probably be shot.


Thank-you for any comments.

Git Hooks on Windows using batch

23 December 2012 - 06:24 PM

I'm currently attempting to construct a simple automated build server so that I can move towards a form of continual delivery on one of my projects. This involves an automated building system.

I use Git and I found this topic on hooks that allows Git to execute scripts based on events. The issue is that I'm using Windows ('$(GIT_DIR)\cmd' is on my path and I execute everything in the command line native to Windows) and I want to write the scripts in batch (rather than learning Bash or whatever).

However, I can't get any of the scripts to work. Surely they're automatically executed in the environment Git is being run in? I've only tried experiments like:

ECHO hello, world!

But nothing ever appears in the console. I've tried naming the hook 'post-commit' and 'post-commit.bat' but nothing ever happens when I make a commit.

I'm working off the assumption that I can use batch. My justification is based on the Git book on the website:

All the examples are written as shell scripts, with some Perl thrown in, but any properly named executable scripts will work fine — you can write them in Ruby or Python or what have you.

What am I doing wrong?

EDIT: Git spits out "error: cannot spawn .git/hooks/post-commit: No such file or directory" when I commit.