Jump to content
  • Advertisement

hawkk

Member
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

100 Neutral

About hawkk

  • Rank
    Newbie
  1. Server..It works well only when all clients have left server.
  2. Hello, I am faced with a small problem, which I could not solve myself. Therefore, I go to you with a request to help out. The fact is that clients connecting to servers, it starts to slow down and at the end it crashes. Where could be the problem? Server: Link Client: Link Thanks in advance.
  3. hawkk

    2D tile map loading from file

    Im sorry about double post.. [font="arial, sans-serif"]I really need help. I, for 3 days trying to find the correct code. And I can not .. I have tried all the diverse options and no success .. [/font]
  4. hawkk

    2D tile map loading from file

    [font="arial, sans-serif"]Hmm. I changed map size to [/font][font="arial, sans-serif"]150 , and then I run game.. all squares were covered with the texture id = 1. Then later checked fields.. [/font][font="arial, sans-serif"]all [/font][font="arial, sans-serif"] was changed ...[/font][font="arial, sans-serif"] A[/font][font="arial, sans-serif"]t maps bottom [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]I noticed [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]strange[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]squares [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]which [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]id [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]was 0.( pic)[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]I also[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]tryed [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]UltimaX [/font][font="arial, sans-serif"]given [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]code, but[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]I don't know[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]why [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]it seems[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]that[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]it does not work[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]as [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]needed[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]..[/font] Code Pic
  5. hawkk

    2D tile map loading from file

    [size="4"]Thanks ,it works [color="#000000"][font="arial, sans-serif"]but there is only one problem is when I changed all numbers in file to 1. program thrown error. [/font] [font="arial, sans-serif"][color="#888888"][/font][color="#888888"][font="arial, sans-serif"] [/font]
  6. hawkk

    2D tile map loading from file

    what shoud i put in num ? and how to use LocX,LocY? [font=arial, sans-serif]Sorry,about that i am asking so many questions, just.. I'm Newbie in OpenGL[/font]
  7. hawkk

    2D tile map loading from file

    [font="arial, sans-serif"]I put 6[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]just to[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]check that it[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]will[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]place[/font][font="arial, sans-serif"] with [/font][font="arial, sans-serif"]a white[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]square[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]or[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]error[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]..[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]instead,[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]the game[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]did not show[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]anything[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"].. [/font] [font="arial, sans-serif"]Yes[/font][font="arial, sans-serif"], I tried[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]at the end[/font][font="arial, sans-serif"],[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]add[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]1[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]and[/font][font="arial, sans-serif"] i put pause to check where it stops..[/font] [font="arial, sans-serif"]Obtained the[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]following[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]results[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]..[/font] [font="arial, sans-serif"][/font] [font="arial, sans-serif"] void LoadMap(void)[/font] [font="arial, sans-serif"][size=2] { const char * MapR; string STRING; ifstream infile; infile.open ("ed_w_mp.txt"); while(!infile.eof()) { int tilel; getline(infile,STRING); MapR = STRING.c_str(); tilel = atoi(MapR); cout<<tilel; for (int y = 0; y < MAP_SIZEY; y++) { for (int x = 0; x < MAP_SIZEX; x++) { map[y][x] = tilel; } } } infile.close(); system("pause"); } [/font]
  8. [font="arial, sans-serif"]Hello[/font][font="arial, sans-serif"], I am[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]faced[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]with a small[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]problem.[/font] [font="arial, sans-serif"]The fact is[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]that I want[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]save[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]the map[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]file[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]and then[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]read it.[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]I[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]created a[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]code[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]by which [/font][font="arial, sans-serif"]game should[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]read [/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]map and[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]display[/font][font="arial, sans-serif"].[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]But[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]something[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]is not[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]as[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]it[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]should[/font][font="arial, sans-serif"].[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]Map[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]can not be properly[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]read[/font][font="arial, sans-serif"].[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]Figures[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]are often[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]doubled[/font][font="arial, sans-serif"], and[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]the tiles[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]are not[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]shown[/font][font="arial, sans-serif"],[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]by map [/font][font="arial, sans-serif"]coordinates.[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]It would be[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]nice[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]if someone[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]could help[/font][font="arial, sans-serif"] [/font][font="arial, sans-serif"]me[/font][font="arial, sans-serif"].[/font] [font="arial, sans-serif"]Image:[/font] [font="arial, sans-serif"][/font] [font="arial, sans-serif"] [/font] [font="arial, sans-serif"]Code[/font]
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!