Search:

Type: Posts; User: Blizzarddog

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. I fixed it. It semms i wasn't initializeing...

    I fixed it. It semms i wasn't initializeing certain objects.
  2. SDL segfault when trying to draw to screen

    if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 )
    {
    printf("Unable to init SDL: %s\n", SDL_GetError());
    exit(1);
    }
    atexit(SDL_Quit);...
  3. Okay, I traced it away from the csprite and that...

    Okay, I traced it away from the csprite and that particular function. Since it no longer has to do with this subject, Ill make a new thread.
  4. Update: Anything done with the x and y values...

    Update: Anything done with the x and y values after teh cout << x << y line segfaults it, including



    drawString(screen, font, 0, 0, "X: %d, Y: %d", x, y);


    I don't think it likes me.

    I...
  5. SDL CSprite.draw segfault. Very confusing.

    if (map->used[i][a] == 1)
    {
    cout << "Used tile!\n";
    int x = (i * tile_width) - CamOffX;
    int y = (a * tile_height) - CamOffY;
    map->tile[i][a].set(x, y);
    cout...
  6. I did, the foo function was in the main source...

    I did, the foo function was in the main source file, and I removed all other remmanants of the old program. Still got the same result. I think CodeForge may have a bug, but then, it's not the program...
  7. Ah this program just went Foo-bar. Absolutely...

    Ah this program just went Foo-bar. Absolutely will not work. I madea new function,


    void foo()
    {
    cout << "foo";
    }

    Just once. "Redefined here" on it. First function. Which is BS. C++...
  8. Yea I know about the typedef being useless......

    Yea I know about the typedef being useless... habit from my Atari ST days.

    I'm using namespace std in all other files.. I'm amazed that I forgot it in this one... lol.

    Well, that got rid of...
  9. Replies
    5
    Views
    1,200

    Also check your spelling. I noticed a "conect"...

    Also check your spelling. I noticed a "conect" command, later used as "connect". I can't really do socket prorgamming myself, but I can still spot a typo in it. I'm assuming that most of your errors...
  10. Error: "String does not name a type", confused

    #ifndef CLASS_H_
    #define CLASS_H_
    #include <string>
    #include "stat.h"

    typedef struct
    {
    string name;
    Stat_Set stats;
    string desc;
  11. Replies
    7
    Views
    720

    1) planetsourcecode.com 2) cprogramming.com 3)...

    1) planetsourcecode.com
    2) cprogramming.com
    3) dimensionalrift.tk/ (these guys give you person to person lessons)
  12. Replies
    3
    Views
    1,394

    Just for the record, what exactly is it supposed...

    Just for the record, what exactly is it supposed to be? (I might have forggoten to mention this, but I'm helping a friend out, and I know nothing about Win32 programming)
  13. Replies
    3
    Views
    1,394

    DialogBox(...) error

    DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);

    when i compile i only get this error:

    87 ...\Main.cpp `AboutDlgProc' undeclared (first use this function)
    ...
  14. Replies
    1
    Views
    2,456

    OpenGL: Errors in GL.h

    I am trying to compile something in OGL, but I get these errors:

    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'...
  15. I have everything working now except for the word...

    I have everything working now except for the word frequencies. it says 0 for every word. the wrods.size() worked fine, and I fixed it all by making ToLower a gloabal function, that link just got me...
  16. Errors with insert_iterator with a vector string handler

    Here are my errors:


    /usr/include/c++/3.3.2/bits/stl_algo.h: In function `_OutputIter std::transform(_InputIter, _InputIter, _OutputIter, _UnaryOperation) [with _InputIter =...
  17. Replies
    10
    Views
    1,335

    When i made my Space Shooter, i have the user set...

    When i made my Space Shooter, i have the user set how many FPS he wants, then leave it all to SDL_Delay(TIMER);

    How that worked is i'd wait for a set amount of milliseconds, and I could limit it...
  18. Replies
    4
    Views
    4,947

    Okay, I didn't really understand any of that......

    Okay, I didn't really understand any of that... but i'll keep studying it!
  19. Replies
    4
    Views
    4,947

    This may seems a little noob of me (and can you...

    This may seems a little noob of me (and can you believe I've been programming for almost 5 years now??) but what is texture quad? And also, how do i rotate one?
  20. Replies
    3
    Views
    1,022

    You COULD use a vector array of word and...

    You COULD use a vector array of word and "puchback" tehm into the array, then map them out. That is how I believe chatterbots do it, and it allows for wordlist[i] to be used and all that.
  21. Replies
    7
    Views
    3,390

    I like SDL. Allegro is such a pin to set up. I...

    I like SDL. Allegro is such a pin to set up. I also find SDL much easier to understand (as opposed to allegro's weaird transparency/screen slcearing methods that I never quite understood...)

    Also,...
  22. Replies
    5
    Views
    1,247

    If you go via SDL, cone3d.gamedev.net has some...

    If you go via SDL, cone3d.gamedev.net has some realy good tutorials.

    I've tried OGL, but failed miserably, 6 times... yea.. i know, thats pitiful...

    Anyway, If you get abook for SDL, I suggest...
  23. Replies
    4
    Views
    1,247

    I know this is kinda on the side, but heres what...

    I know this is kinda on the side, but heres what I use when I do that.



    #include <iostream>
    #include <fstream>
    #include <unistd.h>
    using namespace std;

    int main()
  24. Replies
    4
    Views
    1,247

    I know this is kinda on the side, but heres what...

    I know this is kinda on the side, but heres what I use when I do that.

    [code]
    #include <iostream>
    #include <fstream>
    using namespace std;

    int main()
    {
  25. Replies
    6
    Views
    1,128

    I spend lot of time making classes to use with...

    I spend lot of time making classes to use with FMOD, so that it's as easy as:



    CSound s1;
    s1.init("song.mp3", SAMPLE, LOOP_ON);
    s1.play();


    If you'rte interested, I could whip one up for...
Results 1 to 25 of 377
Page 1 of 16 1 2 3 4