Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
Trying to find which direction the user is facing - will pay if you can do this

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    3

    Question Trying to find which direction the user is facing - will pay if you can do this

    Hi, I am not sure if this is the right place to post this but i will go ahead and post it. I am sorry if it is not.

    I am looking at trying to find a memory location that has references in a game about which direction the user is facing (North, South, East, or West) 360 degree view.

    I can get all the other information like grid location in the X,Y,H planes but I still cannot tell which direction the user is facing?

    The game has a radar and a map that shows N,S,E, and W direction and shows which way the user is pointing by showing an arrow. This arrow moves along the grid on the map and rotates as the user rotates. So this value must be stored somewhere in memory. This is what I want to get.

    The game Radar image will rotate the N, W, S, E image to orient it so that whichever direction you're traveling in becomes directly at the top of the image and re-orients it to match the direction the plane is traveling in.




    Please ignore the center as the map takes the full screen when I enlarge it in the game that why you can see the airplane in the background. The map can be made smaller as well or hidden complete by pressing the m key.



    My real goal is to try to make automatic pilot that can fly to a given coordinate X,Y,H.

    The game is called AirRivals as its a simple game has no protection and its free. (AirRivals - Homepage)

    I need some one to show me how to obtain this information or send me a sample application that i can learn from.

    I hope someone can help me, and of cause i will pay them for the time they spent. If you can help me please send me a pm with your price but please make sure you can do it first

    Thank you very much

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    3

    Question Re: Trying to find which direction the user is facing - will pay if you can do this

    I have been trying to get it to work but i have not got any results yet that i can use

    What i did do is i managed to do screen cap and patten recognition to get the information but the issue is the letter W looks like letter N, letter S looks like letter N, and letter E looks like letter W some times as the image rotates. And it create more false hits than positive hits.

    What i might be able to do is if i can modify the game assets to something more solid i can change the app to calculate direction.

    I cant open the game assets i am not sure what they are. The file extensions seem to be .tex in the RES-TEX folder and it says its a paint shop pro texture file when i did some research into the file extension online but i still cant open it. I also tried to open the text file in a text editor and found out that some files have "TRUEVISION-XFILE" in them at the end but that lead me to nowhere.

    Maybe you can figure out how to open up the asset instead and let me know how?

    I still prefer if we can read the memory but this is another way i thought off. The cpu takes a big hit as it has to do calculations.

    BTW the image patten recognition came from the Victor Image Processing Library: ***** Victor Image Processing Library ***** Image toolkit supporting TIFF, LZW, PackBits, GIF, JPEG, lossy, PCX, PNG, TGA, Targa, BMP, DIB, BIF, raw data, bitmap, TWAIN, scanning, image processing, and printing. Source code available.

    Please tell me if you can help me I need to do something soon.

    Regards

  3. #3
    "Blah blah blah..." Blah's Avatar
    Join Date
    May 2007
    Posts
    900

    Re: Trying to find which direction the user is facing - will pay if you can do this

    question how does the coordinate system work? if you fly JUST north it will increase just y coordinate?

  4. #4
    Junior Member
    Join Date
    Jul 2008
    Posts
    3

    Re: Trying to find which direction the user is facing - will pay if you can do this

    Yes as you go directly North the Y would actually decrease as north is the top of the map.

    If you go North West Y would decrease and X would increase as the 0 coordinates is on the Top Right hand corner of the map.

    The rate of which Y decrease would be less as we cover less ground towards the North going North West than going North directly which would result in a greater decrease as we are only moving in that direction.

    Regards

    *
    Ok I managed to split the files apart and now i have some information.

    On the above picture of the map the yellow arrow i am looking for has the resource name: gear1 (in hex: 67 65 61 72 31) Its located at address: D9F4 in the filename: mini.tex in the folder: AirRivals\Res-Tex

    I don't know if this will help anyone locate the address the direction is held in?

    One thing i learned from my experiment so far is that i can change any texture in the game now

    Please let me know if you can help me solve my problem of the direction.

  5. #5
    Coders jmpnop's Avatar
    Join Date
    May 2007
    Posts
    330

    Re: Trying to find which direction the user is facing - will pay if you can do this

    This game is a serious pain to install / run. Would've helped you, but I gave up since it refuses to run. A good guess would that the direction is located near the coordinates themselves.
    int *(*(*(*x)()) [10]) ();

  6. #6
    Junior Member
    Join Date
    Aug 2008
    Posts
    1

    Cool Re: Trying to find which direction the user is facing - will pay if you can do this

    if the game cant run uninstall AVG; AVG dont sit right with air rivals

  7. #7
    Veteran Member Cory's Avatar
    Join Date
    Jan 2007
    Posts
    2,527

    Re: Trying to find which direction the user is facing - will pay if you can do this

    Quote Originally Posted by 09vl1603 View Post
    if the game cant run uninstall AVG; AVG dont sit right with air rivals
    Hi.

    Nice information..

    Next time, please look at the last post's date

    July 17th, 2008

Similar Threads

  1. Replies: 4
    Last Post: September 3rd, 2011, 13:16
  2. Vista user
    By gundum in forum Windows
    Replies: 1
    Last Post: November 15th, 2009, 11:40
  3. New user
    By Aurelzzz78 in forum Introduce Yourself
    Replies: 3
    Last Post: August 21st, 2008, 02:14
  4. How to take away the User Interface?
    By altorchio in forum Enemy Territory Cheats
    Replies: 1
    Last Post: August 19th, 2008, 01:53
  5. Replies: 10
    Last Post: June 8th, 2008, 16:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •