/| Mario Kart PC |\

Replace MKPC assets with Local Overrides | Tutorial

This topic has been locked

smile

Page :  1 

Messages 11 - Koopa Koopa
vs63492 pts ★ Titan
battle8675 pts ★ Expert
Poland
Tutorial for local overrides in Chromium based browsers

Preparing
1. You NEED to have a Chromium based browser for this (Check if yours is compatible here) why? i am not sure if other browser engines have the same development features the Chromium engine has.
2. Open DevTools with either F12 or Ctrl+Shift+I.
3. Check is device emulation is off. If it isn't, turn it off.
4. Open the three dot menu and click the option to have DevTools as a separate window, if you don't, the DevTools window will obstruct half of your screen. It works best if you have multiple screens so you don't need to alt-tab.
Spoiler [ShowHide]
https://i.postimg.cc/6qbtsgsK/image.png

Getting files
5. Open the game page (/mariokart.php) and go into the network page in the DevTools window. Make sure that it's recording. You might want to turn on filters to search for images/audio files. Replacing images is a lot more time consuming though.
6. Go into a stage (when recording) and look at the files that appear.
Spoiler [ShowHide]
Example with the audio file filter on:
https://i.postimg.cc/g2VvPXqg/image.png

7. Right-click one of the files you want to replace, and click override headers. A prompt will appear, asking you to choose a folder for overrides. After you choose, a prompt will pop up asking you for access to that directory. Click allow. The header file will pop up. Delete it. It was just to create directories for us. You can also use the MKPC Github (the images and musics folders) as a reference.
Spoiler [ShowHide]
https://i.postimg.cc/YqZK7QP1/image.png

Replacing the files
8. Let's replace selection-remix.mp3 (char select) for this example. Get the file that you want to replace the char select with and put it in the correct directory. IT NEEDS TO BE IN THE SAME FORMAT AS THE ONE USED NORMALLY e.g If you're replacing a .mp3 file, you NEED to replace it with a .mp3 file. Renaming doesn't work, the codec must be the same. If you want to replace a .mp3 file with a .wav file, you need to use tools like ffmpeg to change the codec.
You can check if the directory is correct here:
Spoiler [ShowHide]

https://i.postimg.cc/9QkGJQrX/image.png

If the directory is not correct, you need to create the folders.
For example: if the directory created was /musics/events, but the file i want to replace is in /musics/menu, you need to create a menu folder in the musics directory.
9. If everything is correct and you put the files correctly, refresh the page.
Spoiler [ShowHide]
https://i.postimg.cc/qM4VvkB7/image.png

10. If these gray/purple icons appear in the network tab, you have replaced the files CORRECTLY. Congrats!
Spoiler [ShowHide]
https://i.postimg.cc/J73vg93C/image.png

Misc and optional things
11. Note: You need to have DevTools open 100% of the time if you want these overrides to work. just keep the separate DevTools window open all the time. TURN OFF NETWORK RECORDING OR YOU WILL EXPERIENCE TERRIBLE FRAMEDROPS
You can also combine audio replacements with Stylebot to make the game look even better!

Stylebot example here:
Spoiler [ShowHide]
https://i.postimg.cc/6qZh2HnX/image.png

Example replacements folder:
Spoiler [ShowHide]
here.
(chose a random russian song for the replacement (idk russian btw 🤔))

Known issues
Either some sfx won't be replaced, or the music cuts off after 5 seconds.
How to fix: Refresh the page until it works (lmao). Blame Wargor for not storing the sfx and downloading them every time e.g menu sounds
Feel free to comment/dm me if you did something wrong or the tutorial isn't working and like if the tutorial worked correctly.

If you need a little more help:
Spoiler [ShowHide]
A lil' cheat sheet for replacing music.
All files go in the musics/maps folder.
SNES Maps [map1-8]
map1.mp3: SNES Mario Circuit
map2.mp3: SNES Donut Plains
map3.mp3: SNES Koopa Beach
map4.mp3: SNES Choco Island
map5.mp3: SNES Vanilla Lake
map6.mp3: SNES Ghost Valley
map7.mp3: SNES Bowser Castle
map8.mp3: SNES Rainbow Road
map9.mp3: SNES Battle Mode
GBA Maps [map10-23]
map10.mp3: GBA Peach/Mario/Luigi Circuit
map11.mp3: GBA Shy Guy Beach/Cheep Cheep Island
map12.mp3: GBA Riverside Park
map13.mp3: GBA Bowser Castle
map14.mp3: GBA Boo Lake/Broken Pier
map15.mp3: GBA Cheese Land
map16.mp3: GBA Sky Garden
map17.mp3: GBA Sunset Wilds
map18.mp3: GBA Snow Land
map19.mp3: GBA Ribbon Road
map20.mp3: GBA Yoshi Desert
map21.mp3: GBA Lakeside Park
map22.mp3: GBA Rainbow Road
map23.mp3: GBA Battle Mode
DS Tracks [map24-41]
Race tracks
map24.mp3: DS Figure-8-Circuit/Mario Circuit
map25.mp3: DS Yoshi Falls
map26.mp3: DS Cheep Cheep Beach
map27.mp3: DS Luigi's Mansion
map28.mp3: DS Desert Hills
map29.mp3: DS Delfino Square
map30.mp3: DS Waluigi Pinball/Wario Stadium
map31.mp3: DS Shroom Ridge
map32.mp3: DS DK Pass
map33.mp3: DS Tick Tock Clock
map34.mp3: DS Airship Fortress
map35.mp3: DS Peach Gardens
map36.mp3: DS Bowser's Castle
map37.mp3: DS Rainbow Road
Battle tracks
map38.mp3: DS Nintendo DS
map39.mp3: DS Twilight House
map40.mp3: DS Palm Shore
map41.mp3: DS Tart Top
Hopefully it will make your customizing/replacing music experience better.
thumbsup7
surprised7
Messages 142 - Buzzy Beetle Buzzy Beetle
vs61930 pts ★ Titan
battle8383 pts ★ Expert
United States
Hi,

It worked very well actually and I'm surprised by how easy it was- however my only complaint about this is that I have to keep DevTools open, and if I was in an online match it would probably lag my computer, so I was wondering if there was any possible workaround so you wouldn't have to keep DevTools open the whole time.
Messages 142 - Buzzy Beetle Buzzy Beetle
vs61930 pts ★ Titan
battle8383 pts ★ Expert
United States
Thanks for the suggestions, it helped a lot.

By looking at the FPS counter, I observed a huge drop near the start of the race, but after that it started to become significantly better. Any thoughts on why this occurs?
Messages 2804 - King Mario King Mario
vs12012 pts ★ Champion
battle9486 pts ★ Expert
France
Mmmmmmm...
Messages 2804 - King Mario King Mario
vs12012 pts ★ Champion
battle9486 pts ★ Expert
France
What does it serve ???
Messages 2487 - Golden Mario Golden Mario
vs26689 pts ★ Legend
battle10076 pts ★ Champion
United Kingdom
How is this better than just playing your own build of the game edited from the og source code?
Messages 142 - Buzzy Beetle Buzzy Beetle
vs61930 pts ★ Titan
battle8383 pts ★ Expert
United States
osc-omb wrote:
How is this better than just playing your own build of the game edited from the og source code?


I'd argue it's easier and less time consuming.

Page :  1 

Back to The game
Back to the forum