[Client Modding Tutorial]How to duplicate a map

07/12/2019 19:04 @LRevolution#1
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
10/10/2024 23:05 3rJoselu#2
Hi, i know this is old, but do u know how to fix the minimap? it shows a random png
10/11/2024 13:37 Apourtartt#3
It's not random, it is calculated by the client. Last time I checked the function was:
Code:
    if (map_id == 0x20) {
      *(undefined4 *)(param_1 + 0x51) = 0x55521e24;
    }
    else {
      if (map_id == 0x40) {
        *(undefined4 *)(param_1 + 0x51) = 0x55521e25;
      }
      else {
        if (map_id == 0x60) {
          *(undefined4 *)(param_1 + 0x51) = 0x55521e26;
        }
        else {
          if (map_id == 0x80) {
            *(undefined4 *)(param_1 + 0x51) = 0x55521e27;
          }
          else {
            if (map_id == 0xc0) {
              *(undefined4 *)(param_1 + 0x51) = 0x55521e23;
            }
            else {
              *(int *)(param_1 + 0x51) = map_id + 0x5551d000;
            }
          }
        }
      }
    }
with *(undefined4 *)(param_1 + 0x51) being the image ID
So if your map_id is 12345, the image ID needs to be 1 431 437 369