Search:

Type: Posts; User: Pikmeir

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Went ahead and re-read a few tutorials on arrays,...

    Went ahead and re-read a few tutorials on arrays, and lo and behold something clicked. I think I've got a new idea that should work, so I'll implement it and give it a try. I think I can just stick...
  2. 11790 I'll go back to the tutorials on arrays...

    11790
    I'll go back to the tutorials on arrays and see if I can't learn something new this time. I'm still a beginner so maybe this is still above my head until I learn some more.
  3. Any recommended tutorials for how I could learn...

    Any recommended tutorials for how I could learn how to use an array for my inventory system instead of a linked list? I've been able to find tutorials for everything except making inventory systems,...
  4. I thought about that (though I have no idea how...

    I thought about that (though I have no idea how I'd do that), but in the case of my game, my code is simple enough to just program it manually, rather than using a spreadsheet. Here's how my room...
  5. Wow, thank you for the long, detailed post! I'll...

    Wow, thank you for the long, detailed post!
    I'll have to think how to incorporate what you wrote with SFML (SFML is nice, but it sometimes doesn't play well with others).
    As for the game, I'd...
  6. How to implement an inventory system for a 2D game?

    Making my first game, a 2D RPG, using C++ and SFML for the graphics, and everything works so far, but I'm stuck now at the inventory system.

    I looked up linked lists, but I'm not sure how to...
  7. Replies
    3
    Views
    3,738

    Thank you~ I'll look into ncurses.

    Thank you~ I'll look into ncurses.
  8. Replies
    3
    Views
    3,738

    Text based RPG with GUI

    I'm trying to make a text based RPG with a simple GUI, kind of like this: http://i.imgur.com/w0P7g.jpg. The buttons on the side will bring up a small pop-up window which will either display a...
  9. I solved the problem by downloading the...

    I solved the problem by downloading the Portforward Static IP program, and changed my dynamic IP to a static IP (I also did port forwarding on my router, and left the IP in my code at my regular,...
  10. EDIT: it works when I leave the IP address at...

    EDIT: it works when I leave the IP address at 127.0.0.1 on the client, but if I change that to my actual IP address and put the client on another computer outside of my home network, it fails to...
  11. Yeah, that's exactly what I did and it worked....

    Yeah, that's exactly what I did and it worked. Unfortunately now I have to worry about how to make the other computer actually able to connect to my computer using IP (not as easy for me).
  12. Aaah, is there any way to compile the program so...

    Aaah, is there any way to compile the program so that it will run on a computer that doesn't install it? I think my friends would prefer a larger file instead of having to install an extra package.
    ...
  13. Off-related question, but does anyone have any...

    Off-related question, but does anyone have any idea why my console program doesn't work (doesn't even open the console at all) on any other computer but my own?
    I'm running Windows Vista, and I...
  14. Yes!!!! Thank you everyone for your help!...

    Yes!!!! Thank you everyone for your help! Everything works great now. I think I can handle it from here. If I get any more hiccups I'll post again here. Thanks!!
  15. When I change it, I get a new error: ...

    When I change it, I get a new error:

    1>WinServer.obj : error LNK2001: unresolved external symbol "int __cdecl secondaryCommand(class std::basic_string<char,struct std::char_traits<char>,class...
  16. Aaah, that makes sense to use reference instead...

    Aaah, that makes sense to use reference instead >.<

    I'd like to just use std::string object, and not buffer, since it'd be much easier to just work with strings instead of chars.

    edit: the...
  17. So if((bytecount = send(*csock, buffer,...

    So if((bytecount = send(*csock, buffer, strlen(buffer), 0))==SOCKET_ERROR){ is the code that's actually sending the data to the client (meaning I've been looking at the wrong function)? If so, what...
  18. secondaryFunction() only acts as a middleman, and...

    secondaryFunction() only acts as a middleman, and nothing else. When it receives 'buffer', it will just call another function (I wrote some other functions in another file, but I'm not using them...
  19. I don't know how to send a string (called...

    I don't know how to send a string (called 'sString') to the client in this situation. Currently it sends 'char buffer[1024]' to the client:

    strcat_s(buffer, "MESSAGE");

    But after I send the...
  20. If you read my whole post (sorry it's so long),...

    If you read my whole post (sorry it's so long), you'll understand what my problem is now (my first problem was caused by gotos, but I removed some of those and it fixed it). Currently it will run,...
  21. I understand gotos aren't evil, but I see how...

    I understand gotos aren't evil, but I see how they can easily screw everything up in a program. Either way, I'd much rather have a solid programs so I'll make sure I never start using gotos.
  22. Replies
    5
    Views
    1,001

    The code after 'cout

    The code after 'cout <<' is performing operations (ie checking if variables are equal ==, etc), so you need parentheses to let the compiler know the formatting so it knows exactly what you want...
  23. Replies
    5
    Views
    1,001

    It'll compile at least, if you simply add...

    It'll compile at least, if you simply add parentheses here: (N%5 == 0 && N%-1 ? N/5 : -1) But I'm not sure if that's what you'd like it to do. I'm also a beginner.
  24. I went ahead and replaced malloc and free with...

    I went ahead and replaced malloc and free with new and delete, and the code runs perfectly fine (Thank you!!!). Now I can send buffer to Secondary.cpp and manipulate it (this is where my entire...
  25. Oh wow, that's clearly much simpler in C++. Thank...

    Oh wow, that's clearly much simpler in C++. Thank you for the explanation too~! I'll be sure to put those in my code instead.
Results 1 to 25 of 29
Page 1 of 2 1 2