[QUOTE=Chandler;25741114]Here's a screenshot of the above program, run on my build system's primary module directory
[img_thumb]http://i.imgur.com/zCpnC.png[/img_thumb][/QUOTE]
Directory tree program?
Cool, sort of. But I think you could do this with a little shell script trickery, too, so I'm not sure how useful it is in reality.
[QUOTE=esalaka;25741134]Directory tree program?
Cool, sort of. But I think you could do this with a little shell script trickery, too, so I'm not sure how useful it is in reality.[/QUOTE]
I believe he's showing off Dao ("simple file system wrapper") and Hue ("cross platform color printing for the command line") with that picture and code :v:
[QUOTE=Chandler;25741114]
Here's a screenshot of the above program, run on my build system's primary module directory
[img_thumb]http://i.imgur.com/zCpnC.png[/img_thumb][/QUOTE]
Whats that font?
[QUOTE=Pirate Ninja;25741392]Whats that font?[/QUOTE]
I think it's the default Mac terminal font, which is Monaco
[QUOTE=CarlBooth;25741650]I think it's the default Mac terminal font, which is Monaco[/QUOTE]
Actually, I have it set to Consolas, from Windows. :)
[QUOTE=raBBish;25741268]I believe he's showing off Dao ("simple file system wrapper") and Hue ("cross platform color printing for the command line") with that picture and code :v:[/QUOTE]
Correct :)
Wow, looks really awesome Chandler!
Does that little program compile and work without modification on both Windows and Linux?
[QUOTE=Siemens;25741688]Wow, looks really awesome Chandler!
Does that little program compile and work without modification on both Windows and Linux?[/QUOTE]
...I think that was the point.
[editline]30th October 2010[/editline]
That it does.
[QUOTE=Chandler;25741673]Actually, I have it set to Consolas, from Windows. :)
[/QUOTE]
Funny how that is my Visual Studio font which i must have looked at for 300 hours+ but i yet fail to regcognize it.
[QUOTE=Siemens;25741688]Wow, looks really awesome Chandler!
Does that little program compile and work without modification on both Windows and Linux?[/QUOTE]
It should, but I didn't try it :v:
[QUOTE=Pirate Ninja;25741824]Funny how that is my Visual Studio font which i must have looked at for 300 hours+ but i yet fail to recognize it.[/QUOTE]
IIRC, OS X does a few extra effects with fonts compared to windows, specifically in the realm of anti-aliasing. :)
[QUOTE=Jallen;25740941]For OpenGL I'm sure there are loads of third party maths libraries and I highly doubt the D3DX helper libraries will be going anywhere any time soon.[/QUOTE]
Here's the one I've written for my own 3D render library:
[url]http://pastebin.com/pgDC0M3W[/url]
[QUOTE=Jallen;25740306]Well, there are helper functions in directX which make translation and rotation matrices for you, and multiply them together etc. I just use them.
If you wanted though and if you are a badass at maths, you could make some 3D programs programming all of the maths stuff yourself. There are definitions on all of the formulas on the internet but converting them into an algorithm can be a challenging task.[/QUOTE]
Oh okay, fair enough. I think I should learn to program at some point.
[QUOTE=andersonmat;25736323]Hey xAustechx, I got bored and made this in Photoshop. You can have the PSD and fonts if you'd like.
[img_thumb]http://anyhub.net/file/z-o.png[/img_thumb][/QUOTE]
That's awesome. :O
[editline]30th October 2010[/editline]
Remember a few pages back where I said that my game crashes in release mode but not debug? No? Well anyway.
[quote]Unhandled exception at 0x777fb727 in RTAdventure.exe: Microsoft C++ exception: std::length_error at memory location 0x003afb70..[/quote]
That's the message I get, and with the help of a debug logger I found that it crashes on:
[code]
mainLog.log("Initialising rooms");
rooms.push_back(testzone);
mainLog.log("Is it this?");[/code]
The middle line. "Is it this?" never gets logged, but "Initialising rooms" does. I've probably done something stupid with the vector initialisation or something, but then why wouldn't it crash in debug mode?
[QUOTE=BlkDucky;25743225]-Shippady shnip-[/QUOTE]
In debug mode, the compiler does certain things with memory (like initialising), that can stop things from breaking. You probably have an uninitialised variable somewhere, or you're trying to access beyond the length of something (im not hugely familiar with vectors.)
Is it worth creating a 2D game engine from scratch for C++? I can't find any non-crappy ones.
[QUOTE=Jookia;25744150]Is it worth creating a 2D game engine from scratch for C++? I can't find any non-crappy ones.[/QUOTE]
Depends on what you like doing. If you prefer spending your time programming the actual game I'd find an existing engine instead.
[QUOTE=BlkDucky;25743225]That's awesome. :O
[editline]30th October 2010[/editline]
Remember a few pages back where I said that my game crashes in release mode but not debug? No? Well anyway.
That's the message I get, and with the help of a debug logger I found that it crashes on:
[code]
mainLog.log("Initialising rooms");
rooms.push_back(testzone);
mainLog.log("Is it this?");[/code]
The middle line. "Is it this?" never gets logged, but "Initialising rooms" does. I've probably done something stupid with the vector initialisation or something, but then why wouldn't it crash in debug mode?[/QUOTE]
[url]http://www.cplusplus.com/reference/std/stdexcept/length_error/[/url]
Check the current and max size of rooms.
[QUOTE=Jookia;25744150]Is it worth creating a 2D game engine from scratch for C++? I can't find any non-crappy ones.[/QUOTE]
I suggest you create your own little engine in SFML. But remember, you're making a game, so you make your engine on the go, instead of creating an engine and then the game.
[QUOTE=Siemens;25740666]Matrices in a 2D game?[/QUOTE]
In order to get hardware acceleration in a 2D game, you can use the 3D graphics hardware. Each sprite is simply rendered as a quad (With one component representing the height in the scene.) and the four vertices are transformed using matrices. (Scale, Rotation, Translation. Not to mention combining them with a parent object's transformations.) You then use an orthogonal projection matrix to project it without perspective and you're set - No more working out where each pixel should be after the transformations.
[QUOTE=ZeekyHBomb;25744522][url]http://www.cplusplus.com/reference/std/stdexcept/length_error/[/url]
Check the current and max size of rooms.[/QUOTE]
rooms.size() = 4294834170
rooms.max_size() = 17318416
Oh.
Still don't know why this happens, but progress anyway.
Without the code it's going to be hard to remotely investigate.
You should also probably put the following posts concerning this error in the WDYNHW thread.
I want to get into programming, where should I begin?
[QUOTE=Mr. Gestapo;25747117]I want to get into programming, where should I begin?[/QUOTE]
At the very beginning, a very good place to start
When you read you begin with A-B-C
When you sing you begin with do-re-mi
When you program you begin with FUCK WHY WONT IT WORK
[QUOTE=CarlBooth;25747198]At the very beginning, a very good place to start
When you read you begin with A-B-C
When you sing you begin with do-re-mi
When you program you begin with FUCK WHY WONT IT WORK[/QUOTE]
This is so true.
[QUOTE=CarlBooth;25747198]At the very beginning, a very good place to start
When you read you begin with A-B-C
When you sing you begin with do-re-mi
When you program you begin with FUCK WHY WONT IT WORK[/QUOTE]
[url=http://en.wikipedia.org/wiki/A%2B_(programming_language)]A+[/url] [url=http://en.wikipedia.org/wiki/B_(programming_language)]B[/url] [url=http://en.wikipedia.org/wiki/C_(programming_language)]C[/url]?
Anyway, why did the sticky get moved, someone move it back D:
It's actually been away quite long, I wonder has no one asked a mod again?
[editline]30th October 2010[/editline]
[QUOTE=Mr. Gestapo;25747117]I want to get into programming, where should I begin?[/QUOTE]
Specify programming. What's the goal?
Perhaps websites? Or games? Those are probably the most common when wanting to start programming.
[QUOTE=ZeekyHBomb;25747327][url=http://en.wikipedia.org/wiki/A%2B_(programming_language)]A+[/url] [url=http://en.wikipedia.org/wiki/B_(programming_language)]B[/url] [url=http://en.wikipedia.org/wiki/C_(programming_language)]C[/url]?
Anyway, why did the sticky get moved, someone move it back D:
It's actually been away quite long, I wonder has no one asked a mod again?
[editline]30th October 2010[/editline]
Specify programming. What's the goal?
Perhaps websites? Or games? Those are probably the most common when wanting to start programming.[/QUOTE]
I expect it's not websites, else he'd have gone to the web-development subforum.
Could we perhaps have WAYWO stickied?
Mr. Gestapo in our WAYWO? Truly, this is a day of joy.
That aside, I'm trying to figure out how to implement something like the POSIX readdir using WinApi. Shit makes no sense.
[QUOTE=BlkDucky;25747438]I expect it's not websites, else he'd have gone to the web-development subforum.[/QUOTE]
There were enough people posting threads in here wanting HTML, PHP or other web-related help.
He might just seen 'Programming', then clicked and posted without looking further down. One could expect to also have web programming in the programming-section if you don't know there's a special section for that.
[img]http://www.fortfn.co.uk/images/ue2/ue2_20.png[/img]
Serverside movement, so other people can log in and see your... triangle... floating and moving around the terrain. The server is linked to MySql, and your position is saved when you log off.
Thing is, I don't really like where this is going - movement feels too restricted, you can only be in the center of a tile or be moving to another tile, and if you click a couple of tiles away from your location, your... triangle... will move all the way but it each time it moves to the next tile, it "freezes" for a bit while the next row of terrain tiles load and the server updates the database. I don't really know enough about networked game development in general and stuff to make a "proper" system.
I think I might step down from making a networked RPG thing and try a sidescroller thing, been wanting to make one for a while.
[QUOTE=esalaka;25747507]Mr. Gestapo in our WAYWO? Truly, this is a day of joy.
That aside, I'm trying to figure out how to implement something like the POSIX readdir using WinApi. Shit makes no sense.[/QUOTE]
Something like [url=http://msdn.microsoft.com/en-us/library/aa365200(VS.85).aspx]this[/url]?
Sorry, you need to Log In to post a reply to this thread.