Customising Shops

This article will guide you through making your own item setups for the in-game shops. You will need to know how to compile NewerSMBW's source code.

Note: This does not guide you through changing the interface of the shop. To do so, see here.

Step 1: Opening shop.cpp
In the Newer sources, go to the folder below. NewerSMBW-cw/Kamek/src/koopatlas

If you're using the  or the   branch, the file path will be identical, besides the name of the root folder.

If you've done this correctly, you'll see the folder to the right.

Now, open the  file with Notepad++ or another text-editing software.

Changing Shop Contents
In the shop.cpp file, go the the 428th line and you'll see what the shops contain:

Now, you just need to replace the power-ups values, which are:


 * MUSHROOM for the red mushroom.
 * FIRE_FLOWER for the fire flower.
 * ICE_FLOWER for the ice flower.
 * PROPELLER for the propeller shroom.
 * PENGUIN for the penguin suit.
 * MINI_SHROOM for the mini mushroom.
 * HAMMER for the hammer suit.
 * STARMAN for the invincibility star.
 * ONE-UP for the 1UP mushroom.

Note: There can only be exactly 12 items in a shop. Having more than 12 listed will cause a error when compiling, while less then 12 will cause missing items to be replaced with regular mushrooms. It's possible to change the total amount of items, however further code edits will be required to do so.

Also worth noting, the items do not have to be split into three rows in the code. The first four listed items will always be on the first row in-game, the next three will always be on the second row, and the last five will always be on the third row.

Moving Shop Items
In shop.cpp, on the 492nd line, the numerical values here position the items on the screen. The position values are split into groups for each row, and the order that they are in corresponds to which item is affected by it. For example, the first position is used by the first item, and so on.



Item Prices
Every shop is made with 12 items. The prices are as follows:


 * First Item costs 1 Star Coin
 * Second & Third Items cost 2 Star Coins
 * Fourth Item costs 3 Star Coins
 * Fifth, Sixth, and Seventh Items cost 5 Star Coins
 * Eighth, Ninth, Tenth, Eleventh, and Twelfth Items cost 8 Star Coins

Other Shop Changes
To rename the title of the Shop, you can find the name in, located in. You can edit it with Level Info Editor.

To edit the model of the shop's Lakitu, look in, located in.

To edit the looks of the shop window itself, look in, in. A guide to editing the layout can be found here.

Step 3: Testing In-Game
Now, you just need to compile your edited source code.

After recompiling it, just copy the bin files into the  folder and launch the game, now you can see the edited shops you just made!