yothsoggoth's Profile User Rating: -----

Reputation: 23 Tradesman
Active Posts:
60 (0.05 per day)
19-June 12
Profile Views:
Last Active:
User is offline Nov 22 2015 12:54 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   yothsoggoth has not set their status

Posts I've Made

  1. In Topic: char string array problem

    Posted 7 Oct 2015

    I'd recommend you do some reading on C-strings (which is a name commonly used for char array strings).
    http://www.cprogramm.../c/lesson9.html seems reasonable (which is also the first result on google, by the way.)

    Firstly, using round brackets is not the correct notation for an array in C. You should be using square brackets, for example char fame[14];

    Secondly, you cannot set the contents of a C-string using the assignment operator (=), because it's not really a string type, it's actually an array of chars. You probably want strcpy. strcat or sprintf depending on your needs (see the link I gave for some examples of using those).

    If you want a non-modifiable (literal) string you can store is as a pointer to a char array, as follows char const* fame = "Bucky Roberts";

    [Edit] In fact, you should look at the count-limited versions of those functions strncpy. strncat or snprintf which allow you to ensure you don't write outside the bounds of your array.
  2. In Topic: code Is right but get unresolved ES error....

    Posted 6 Sep 2015

    "unresolved external symbol" means that you're not linking against the required library (or if it's an unresolved symbol in your own code you haven't defined the symbol, but that isn't the case here).
    It looks like you've correctly set up the include paths for Allegro, but haven't set the library path, or aren't linking against it's library.

    What platform/IDE/tools are you using? Also, if you could provide a link to the tutorial you said you followed we may be able to advise based on that.

    If you're using something like Visual Studio, it should be a case of ensuring you've correctly set the Library Directories and Additional Dependencies in the project settings.
  3. In Topic: DirectX11 Shader issue (DX11, HLSL, C++)

    Posted 5 Apr 2015

    Even though you've already answered your question, this may be useful to point out...

    If I recall correctly, HLSL structures are actually aligned to 16-byte boundaries, and by default MSVC compiler will align data to 4-byte boundaries.

    You can change this behaviour by adding the following to your structs in C++:

    For example:
    __declspec(align(16)) struct FrameData
    	Vector3	SomeVector;
    	float	Time;
    	float	AnotherVar;
    	// ...

    Further reading:
  4. In Topic: Should i migrate to android studio?

    Posted 1 Mar 2015

    If you're hesitant, and you're comfortable with Eclipse, you may as well stay with Eclipse.

    If I were trying to decide I'd just download both and try them and use whichever I prefer.
  5. In Topic: Learning game devlopment - SFML vs. DirectX

    Posted 27 Jan 2015

    View PostVerses, on 26 January 2015 - 12:10 PM, said:

    View Postmodi123_1, on 26 January 2015 - 11:56 AM, said:

    Then I would advocate avoiding the initial pitfall of trying to build a game from scratch and go use an existing engine to get the lay of the land first. I am a fan of Unity.

    Thanks for this (as I think) well-intended advice, but actually building a game from scratch has quite a big appeal with me. Maybe I am bit naive, but I'd really like to develop a game without Unity or similar. Also to train my C++ skills. :scooter:/>

    If you just want to make a game without having to do a hell of a lot of programming, go for something like Unity, as modi123_1 suggested.

    If you do want to write everything from scratch (which is a good way to learn about game programming and rendering etc.) then my recommendation is to go with SFML or SDL first, as they're very easy to get set up and start working with. They also both focus on 2D rendering, which allows you to start learning some of the basics without any knowledge of 3D maths.
    Then, once you've started to make some progress with those, and perhaps made a couple of simple games (or cloned some popular ones like Tetris and Space Invaders), start looking at learning DirectX and/or OpenGL and writing some 3D rendering code, and try making a game with that.

My Information

Member Title:
D.I.C Head
23 years old
October 14, 1992
Full Name:
Years Programming:
Programming Languages:
C++, C#, Python, PHP, Javascript, Java, VB.Net

Contact Information

Website URL:
Website URL  http://www.robotgoblin.co.uk/


yothsoggoth has no profile comments yet. Why not say hello?