Replace MKPC assets with Local Overrides | Tutorial
This topic has been locked
Page : 1
On 2023-12-03 at 12:24:42
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.
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.
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.
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:
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.
10. If these gray/purple icons appear in the network tab, you have replaced the files CORRECTLY. Congrats!
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:
Example replacements folder:
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:
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.
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.
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.
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:
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.
10. If these gray/purple icons appear in the network tab, you have replaced the files CORRECTLY. Congrats!
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:
Example replacements folder:
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:
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.
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.
7
7
On 2023-12-03 at 19:58:53
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.
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.
On 2023-12-03 at 20:27:13
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?
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?
On 2023-12-03 at 20:40:39
Mmmmmmm...
On 2023-12-03 at 21:20:04
What does it serve ???
On 2023-12-03 at 21:21:40
How is this better than just playing your own build of the game edited from the og source code?
On 2023-12-03 at 21:56:05
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