[Plugin] MapAndreas plugin v1.0 beta
#81

Does anyone still have the SAmin.hmap file or is there another plugin like this which uses less memory space? I tried to convert the SAfull.hmap to SAmin.hmap myself but I failed (I get wrong values - not just inaccurate, I even get 9.0 when I'm at 30.0 - when using my SAmin.hmap with Y Less' minimal version). I'd use the NOCACHE with SAfull as well, but I can't upload a 70mb file to my host >.>

Or maybe you can find out what I'm doing wrong when converting:
Код:
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv)
{
    FILE* fileInput = fopen("SAfull.hmap", "rb");
    FILE* fileOutput = fopen("SAmin.hmap", "wb");
    for(int x = 0; x < 6000; x += 3)
    {
        for(int y = 0; y < 6000; y += 3)
        {
            int iGridX = x + 3000;
            int iGridY = (y - 3000) * -1;
            int iDataPos = ((iGridY * 6000) + iGridX) * 2;
            unsigned short PointData;
            fseek(fileInput, iDataPos, SEEK_SET);
            fread(&PointData, 1, sizeof(unsigned short), fileInput);
            fwrite(&PointData, 1, sizeof(unsigned short), fileOutput);
        }
    }
    fclose(fileOutput);
    fclose(fileInput);
}
Thanks, Blay09
Reply
#82

Good job Kalcor
Reply
#83

This is by far one of the best plugins available
Reply
#84

gud job kalcor
Reply
#85

very nice job kalcor
Reply
#86

This the plugin if I am putting it in and I use it one of the codes, it does not let it join then artificial players(NPC)!
Problem?
Reply
#87

If this can read data from a height map image, could you somehow make it create polygons with textures ingame? if so, all servers could have custom height-map created terrains, and anyone with MSpaint or other simple software could make their own new maps for the game with just a few clicks.
Reply
#88

Nice! Greate job.
Reply
#89

Error choosing topic, sorry :/
Reply
#90

How did you extracted the high data from gtaa?
I would like to use this for GTA:United, too.
Reply
#91

My MapAndreas.cpp (I made loading into memory on init, and added function for more precise Z calculation).
Whole ZMap loads into memory in ~1 second.
Function "GetAverageZ" returns quite accurate values. (I found someone similar function, but it's broken, so I decided to rewrite it again).

Example: (red balls are "laying" on the ground in straight line, coord. Z got by function GetAverageZ)


High resolution images are available on click.

http://pastebin.com/fkhFgq9u
Reply
#92

Great indeed!
Reply
#93

Nice
Reply
#94

Great Job !
Reply
#95

The download link does not work, it always comes to a connection timeout
Reply
#96

Quote:
Originally Posted by seegras
Посмотреть сообщение
The download link does not work, it always comes to a connection timeout
Here is the version you want.

Or you can click ColAndreas in my signature for a plugin that can do what this one does and so much more.
Reply
#97

Quote:
Originally Posted by seegras
Посмотреть сообщение
The download link does not work, it always comes to a connection timeout
sa-mp.com currently is offline. It will probably be up again in a few days.
Reply
#98

MapAndreas_FindZ_For2DCoord
Causes my compiler to crash when ever I call it..


any help?
Reply
#99

Quote:
Originally Posted by Prokill911
Посмотреть сообщение
MapAndreas_FindZ_For2DCoord
Causes my compiler to crash when ever I call it..


any help?
Are you using any plugins that include mapandreas, e.g. RNPC?
Reply

Код:
Inc's
#include <a_samp>
#include <core>
#include <dns>
#include <streamer>
#include <a_mysql>
#include <foreach>
#include <sscanf2>
#include <progress>
#include <mapandreas>
Код:
Plugins
whirlpool
streamer
sscanf
nativechecker
mysql
filefunctions
dns
crashdetect
MapAndreas
That's it.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)