SA-MP Forums Archive
[Plugin] MapAndreas plugin v1.0 beta - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] MapAndreas plugin v1.0 beta (/showthread.php?tid=120013)

Pages: 1 2 3 4 5 6


AW: MapAndreas plugin v1.0 beta - Blay09 - 01.06.2011

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


AW: MapAndreas plugin v1.0 beta - Forbidden - 01.06.2011

Good job Kalcor


AW: MapAndreas plugin v1.0 beta - Arrows73 - 05.06.2011

This is by far one of the best plugins available


Re: MapAndreas plugin v1.0 beta - Abinesh™ - 06.06.2011

gud job kalcor


Re: MapAndreas plugin v1.0 beta - styleo1995 - 06.06.2011

very nice job kalcor


Re: MapAndreas plugin v1.0 beta - (HUN)GangSteR] - 07.06.2011

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?


Re: MapAndreas plugin v1.0 beta - knutzor - 27.06.2011

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.


Re: MapAndreas plugin v1.0 beta - Adil - 08.07.2011

Nice! Greate job.


Re : MapAndreas plugin v1.0 beta - ludesert - 16.07.2011

Error choosing topic, sorry :/


AW: MapAndreas plugin v1.0 beta - Shadow_Gengar - 13.08.2011

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


Re: MapAndreas plugin v1.0 beta - therainycat - 04.05.2014

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


Re: MapAndreas plugin v1.0 beta - punklord - 13.05.2014

Great indeed!


Re: MapAndreas plugin v1.0 beta - Meyokie - 13.05.2014

Nice


Re: MapAndreas plugin v1.0 beta - Hwang - 17.05.2014

Great Job !


Re: MapAndreas plugin v1.0 beta - seegras - 19.10.2015

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


Re: MapAndreas plugin v1.0 beta - Crayder - 19.10.2015

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.


Re: MapAndreas plugin v1.0 beta - Mauzen - 19.10.2015

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.


Re: MapAndreas plugin v1.0 beta - Prokill911 - 13.01.2016

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


any help?


Re: MapAndreas plugin v1.0 beta - Mauzen - 13.01.2016

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?


Re: MapAndreas plugin v1.0 beta - Prokill911 - 14.01.2016

Код:
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.