altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

Custom Map on Radar is not Full Loading. #956

Open Ingo1997 opened 3 years ago

Ingo1997 commented 3 years ago

Client/server version Build #4.0-DEV8, branch DEV

Current behavior The Custom Map/Minimap is not Showing at many Points on the Radar after Spawn. (see Screenshot) When i drive arround the Map and come back to the point he is not Loading, is she loaded. On the ESC/Paused Menu is the Map Full Showing without Issues.

Expected behavior The Custom Minimap would full loading at spawn and show it right. and on the ESC/Paused Menu is the Map Full Showing without Issues.

Steps to reproduce I use the Tutorial at the Discord from Channel #scripting-info. and i use the MapZoomData API with right data from my old FiveM Project and under FiveM its work the Minimap without issues.

Context (environment) Screenshots: minimap Issue 1

minimap Issue 2

ESC/Paused Menu

Possible solution

csipkesz commented 3 years ago

I have this problem too, but i saw the same unloaded area on the Pause menu map before using MapZoomData API. Maybe it gives some starting point.

maphole maphole_1
csipkesz commented 3 years ago

Sometimes when we go to the pause menu map and zoom in fully, the minimap is fixed

MickMelon commented 3 years ago

At the moment we also cannot stream minimaps that are outwith default map quadrants, for example: https://www.gta5-mods.com/misc/atlas-colored-map-with-radar-for-vice-cry-lorenvidican

Would be awesome if we could have this functionality. If not possible server-side, then perhaps allow players to load these mods themselves client-side?

Ingo1997 commented 2 years ago

It's a long time ago, but give new information for a fix ? or can planned for the next update ?

ZackaryH8 commented 2 years ago

After driving about for some time, the minimap displays properly, it seems it's very hit or miss

NeekoDev commented 1 year ago

Hi, any news ?

vanlueckn commented 1 year ago

I can confirm this issue

image

C0kkie commented 1 year ago

Works in dev/15.0-dev11

xtance commented 12 months ago

I don't know if I did something wrong but 15.16 release still has some of it Map tested be the https://github.com/omgugly/dlk_maps_fivem/tree/main/map-atlas

Running following code (with/without does same thing)

static setMapZoomDataLevel(level: string, zoomScale: number, zoomSpeed: number, scrollSpeed: number, tilesX: number, tilesY: number) {
        const zoomData = alt.MapZoomData.get(level);
        zoomData.fZoomScale = zoomScale;
        zoomData.fZoomSpeed = zoomSpeed;
        zoomData.fScrollSpeed = scrollSpeed;
        zoomData.vTilesX = tilesX;
        zoomData.vTilesY = tilesY;
    }

    static async fixMap() {

        this.setMapZoomDataLevel('ZOOM_LEVEL_0', 0.96, 0.9, 0.08, 0.0, 0.0);// -- Level 0
        this.setMapZoomDataLevel('ZOOM_LEVEL_1', 1.6, 0.9, 0.08, 0.0, 0.0);// -- Level 1
        this.setMapZoomDataLevel('ZOOM_LEVEL_2', 8.6, 0.9, 0.08, 0.0, 0.0);// -- Level 2
        this.setMapZoomDataLevel('ZOOM_LEVEL_3', 12.3, 0.9, 0.08, 0.0, 0.0);// -- Level 3
        this.setMapZoomDataLevel('ZOOM_LEVEL_4', 24.3, 0.9, 0.08, 0.0, 0.0);// -- Level 4
        this.setMapZoomDataLevel('ZOOM_LEVEL_GOLF_COURSE', 55.0, 0.0, 0.1, 2.0, 1.0);// -- ZOOM_LEVEL_GOLF_COURSE
        this.setMapZoomDataLevel('ZOOM_LEVEL_INTERIOR', 450.0, 0.0, 0.1, 1.0, 1.0);// -- ZOOM_LEVEL_INTERIOR
        this.setMapZoomDataLevel('ZOOM_LEVEL_GALLERY', 4.5, 0.0, 0.0, 0.0, 0.0);// -- ZOOM_LEVEL_GALLERY
        this.setMapZoomDataLevel('ZOOM_LEVEL_GALLERY_MAXIMIZE', 11.0, 0.0, 0.0, 2.0, 3.0);// -- ZOOM_LEVEL_GALLERY_MAXIMIZE

        const radarZoomLevel: number = 1100;
        alt.setInterval(() => {
            const onFoot = native.isPedOnFoot(player);
            if (onFoot) return native.setRadarZoom(radarZoomLevel);
            const insideVehicle = native.isPedInAnyVehicle(player, false);
            if (insideVehicle) return native.setRadarZoom(radarZoomLevel);
        }, 0);
    }

2023-10-23_03-34 2023-10-23_03-34_1

(I'm sorry for testing on release but I read in this issue that it is fixed in v15...)

vanlueckn commented 12 months ago

It was fixed in early v15-dev but is now broken again

Ingo1997 commented 10 months ago

Is another bug fix planned?

Ingo1997 commented 6 months ago

The status fixed has been removed, but why has it not been included on a new roadmap? I mean it was fixed why is the error back?

Ingo1997 commented 4 months ago

gives newer Information ?