• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

levijgraham

Members
  • Content count

    42
  • Joined

  • Last visited

Community Reputation

100 Neutral

About levijgraham

  • Rank
    Member
  1. amazing thank u i couldnt figure that out for the life of me
  2. Hello im trying to save the chuncks of my map in in the folder called level each chunk is supposed to be represented by a diffrent file but i cant seem to figure out how to get what number my loop is on to save in with my file name so i end up getting files called all sorts of names that i dont want. [code] void Map::Save() { for(int loop = 0; loop < Map::AmountOfChuncks;loop++) { for(int loop2 = 0; loop2 < Map::AmountOfChuncks;loop2++) { ofstream file( "Level/Chunck"+loop+"_"+loop2".Data" ); Map::GenerateChunck(); for(int loop3 = 0; loop3 < Map::AmountOfChuncks;loop3++) { for(int loop4 = 0; loop4 < Map::AmountOfChuncks;loop4++) { file << Map::Data[loop3][loop4]; } } file.close(); } }} [/code]
  3. Project Dark Ages is a medieval sim game In Development [color="#0000ee"][u][url="http://projectdarkages.weebly.com/"]My link[/url] [/u][/color]
  4. i have attached a picture of the error i get it when i send my map between the server and the client. theres my main [code]#include <iostream> #include <string> #include "GameState.h" #include "Socket.h" #include "Level.h" using namespace std; GameState CurrentGameState; const int STRLEN = 256; const int MAPLENGTH = 250; Level CurrentLevel; int main() { CurrentLevel.init(); int port = 666; char *ipAddress = "127.0.0.1"; char recMessage[STRLEN]; char sendMessage[STRLEN]; bool run = true; while (true) { int a = CurrentGameState.run(); if(a == 1) { bool run2 = true; ServerSocket sockServer; cout << "HOSTING..."<<endl; sockServer.StartHosting(port); sockServer.Listen(); while (run2) { char sendMap[MAPLENGTH]; CurrentLevel.draw(); CurrentLevel.Edit(true); int id = 0; for(int y = 0;y < 10;y++) { for(int x = 0;x < 25;x++) { sendMap[id] = CurrentLevel.map[x][y]; id++; } } sockServer.SendData( sendMap ); sockServer.ReceiveData(sendMap,MAPLENGTH); id = 0; for(int y = 0;y < 10;y++) { for(int x = 0;x < 25;x++) { CurrentLevel.map[x][y] = sendMap[id]; id++; } } if (strcmp(recMessage,"end") == 0 || strcmp(sendMessage,"end") == 0) { run2 = false; } } } else if(a == 2) { ClientSocket sockClient; cout << "ATTEMPTING TO CONNECT" << endl; sockClient.ConnectToServer(ipAddress,port); bool run2 = true; while (run2) { char sendMap[MAPLENGTH]; CurrentLevel.draw(); sockClient.ReceiveData(sendMap,MAPLENGTH); int id = 0; for(int y = 0;y < 10;y++) { for(int x = 0;x < 25;x++) { CurrentLevel.map[x][y] = sendMap[id]; id++; } } CurrentLevel.Edit(false); id = 0; for(int y = 0;y < 10;y++) { for(int x = 0;x < 25;x++) { sendMap[id] = CurrentLevel.map[x][y]; id++; } } sockClient.SendData( sendMap ); if (strcmp(recMessage,"end") == 0 || strcmp(sendMessage,"end") == 0) { run2 = false; } } sockClient.CloseConnection(); } else if(a == 3) { exit(0); } } return 0;}[/code]
  5. Thanks
  6. Hey i am trying to run a simple chat program in c++ and a keep getting this error. Can anyone tell me how to fix it? 1>------ Build started: Project: RTS, Configuration: Debug Win32 ------ 1>Build started 8/8/2011 5:43:59 PM. 1>InitializeBuildStatus: 1> Touching "Debug\RTS.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1> Socket.cpp 1>c:\users\levi\desktop\game\testfolder\rts\socket.cpp(19): warning C4551: function call missing argument list 1> Generating Code... 1>Socket.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: __thiscall Socket::Socket(void)" (??0Socket@@QAE@XZ) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "public: __thiscall Socket::Socket(void)" (??0Socket@@QAE@XZ) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function "public: __thiscall Socket::Socket(void)" (??0Socket@@QAE@XZ) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: bool __thiscall Socket::SendData(char *)" (?SendData@Socket@@QAE_NPAD@Z) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: bool __thiscall Socket::ReceiveData(char *,int)" (?ReceiveData@Socket@@QAE_NPADH@Z) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "public: void __thiscall Socket::CloseConnection(void)" (?CloseConnection@Socket@@QAEXXZ) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__accept@12 referenced in function "public: void __thiscall ServerSocket::Listen(void)" (?Listen@ServerSocket@@QAEXXZ) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__listen@8 referenced in function "public: void __thiscall ServerSocket::StartHosting(int)" (?StartHosting@ServerSocket@@QAEXH@Z) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "public: void __thiscall ServerSocket::StartHosting(int)" (?StartHosting@ServerSocket@@QAEXH@Z) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: void __thiscall ServerSocket::StartHosting(int)" (?StartHosting@ServerSocket@@QAEXH@Z) 1>Socket.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function "public: void __thiscall ServerSocket::StartHosting(int)" (?StartHosting@ServerSocket@@QAEXH@Z) 1>C:\Users\levi\Desktop\Game\TestFolder\RTS\Debug\RTS.exe : fatal error LNK1120: 11 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:03.97 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  7. i just cant get the text file to go into a char array
  8. Hello I am trying to get a text file to load up through this bit of code here and get put into a char array but it wont let me, It says my array is corrupt ... any ideas? [code]int MenuRead(string SaveFileNameInfo) { char FILE[255]; char acTemp; ifstream in(SaveFileNameInfo, ios::in | ios::binary); if(!in) { cout << "can't open file! " << SaveFileNameInfo << endl; return 1; } while(in) { in.get(acTemp); if(in) cout << acTemp; FILE[255] = acTemp; } in.close(); cout << FILE; return 0;}[/code]
  9. I have the same problem, every tutorial i found sucked
  10. Hello i'm having a problem with fstream im trying to make it read whats on the mainmenu file i have it all loading into line but i want to be able to read sections. If anyone could help that would be great <My mainmenu.txt file> MenuTitle: MainMenu MenuSaveFileName: MainMenu.txt MenuID: 1 SubMenus: 1 MenuItems: 2 MenuItem0: NewGame <SubMenu>NewGame.txt MenuItem1: LoadGame <SubMenu>LoadGame.txt MenuItem2: Quit <SubMenu>Quit.txt [code]#include <iostream> #include <fstream> #include <string> #include "Menus.h" using namespace std; int MenuDraw(string SaveFileNameDraw) { string line; //the variable of type ifstream: ifstream myfile (SaveFileNameDraw); //check to see if the file is opened: if (myfile.is_open()) { //while there are still lines in the //file, keep reading: while (! myfile.eof() ) { //place the line from myfile into the //line variable: getline (myfile,line); //display the line we gathered: cout << line << endl; } //close the stream: myfile.close(); } else cout << "Unable to open file"; return 0; } int MenuSave(string MenuTitle,int MenuItems,bool SubMenus,int MenuID,string SaveFileName) { cout << "Saving MenuFile " << SaveFileName << "\n\n"; ofstream file; file.open(SaveFileName); file << "MenuTitle: " << MenuTitle << "\n\n"; file << "MenuSaveFileName: " << SaveFileName << "\n\n"; file << "MenuID: " << MenuID << "\n\n"; file << "SubMenus: " << SubMenus << "\n\n"; file << "MenuItems: " << MenuItems << "\n\n"; int counter; for (counter = 0; counter <= MenuItems; counter++) { cout << "What do you want to call menu item " << counter << "\n"; string sName; cin >> sName; file << "MenuItem" << counter << ": " << sName; if (SubMenus == true) { cout << "Type in File name of menu you want it to be linked to\n"; string sFileName; cin >> sFileName; file << " <SubMenu>" << sFileName << "\n"; } else { file << "\n"; } } file.close(); return 0;}[/code]
  11. yeah i know opengl will have to be used
  12. hello i need a substitute for win32 on windows mac and Linux operating systems that i can implement in direct X does anyone know of any?
  13. very good game gj!
  14. i did the tutorials i found were horrible
  15. can someone tell me were there are some good pathfinding tutorials?