About this mod

A simple Texture, Meshes and Products Replacer. Create your own!

Requirements
Permissions and credits
Changelogs
Donations
TextureReplacer


A simple Texture, Meshes and Products Replacer.

Install:
Download BepInEx and put the mod into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\

Download Packs or create your own!

Folders:
Obj Meshes go to:
TextureReplacer\objects_meshes\
(you can even create subfolders for more sorting order)

Png Textures go to:
TextureReplacer\objects_textures\
(you can even create subfolders for more sorting order)

Product Icons go to:
TextureReplacer\products_icons\

Product Brands and Names go to:
TextureReplacer\products_names\

Examples are in:
TextureReplacer\_templates\
(The mod will ignore the _templates folder)


QUICK TUTORIAL


You will need an Extractor, I use AssetStudio:
https://drive.google.com/file/d/1hs64KP7VA9KOPFUrbPM9oHVpzxqUx1hw/view?usp=sharing

For the new version of Supermarket Simulator I recommend:
AssetRipper 1.1.4
(Start it and in browser you select File/Open File
Open: Supermarket Simulator\Supermarket Simulator_Data\sharedassets0.assets
Then click on Export/Export All Files
(click on select Folder, choose a folder for the extracted textures and then 'Export Primary Content')
This will take a very long time..
Your textures are then in your extracted Folder / Texture2D)


Do you want to change the brandname, name and/or icon of a product?
For example the name for the Susu (Sugar Powdered) Product

1. Open products_list.txt in
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\_templates\
2. Search for Susu. We need the Sugar Powdered. We can see it has the ID 147
3. Close products_list.txt. We know now we need the ID 147 for Susu (Sugar Powdered)
4. Go to
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\_templates\vanilla\products_names\
   and copy the files 147_Brand.txt and 147_Name.txt
   paste both to
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\products_names\
5. Open your copied 147_Brand.txt and 147_Name.txt and change the brandname and name like you want
6. This step is only if you want to change the icon of a product. If not, skip this step. In our case, we change the icon:
   Go to
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\_templates\vanilla\products_icons\
   and copy the 147_Icon.png
   paste it to
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\products_icons\
7. Open your copied 147_Icon.png with a graphics program and edit it like you want
8. Start the game and see your new Product names and/or icon


Do you want to change the texture and/or mesh of a product?
You cannot change individual products, you have to change an entire license.
Each license contains 4-6 products.
More info here:
https://supermarket-simulator.fandom.com/wiki/Licenses

1. Download under Files the Modder Pack
2. Extract it and go to the folder:
    \_templates\vanilla\objects_textures\licenses
3. In this example we want to change the first license
    _templates\vanilla\objects_textures\licenses\21\
   You can see it contains products: 33, 70, 83, 84, 85 and 147
   All these products share the same texture (T_License1_AlbedoTransparency.png)
   Open and edit T_License1_AlbedoTransparency.png as you want with any graphics program
   Or, if you edit them separately, use the textures in their subfolder.
   For example Product 33: T_License1_AlbedoTransparency_SM_Cereal_Chokipik 1.png (licenseName_objName.png)
   And for the transparent part (if it has one) add _transparent.
   (For example, this makes sense for the Sandwich Bread: T_licence13_alb_SM_Sandwich Bread_Ron.png and T_licence13_alb_SM_Sandwich Bread_Ron_transparent.png)

    Note: If you want to increase the quality, then resize it to 2048x2048!

4. If you want to change the mesh of a product, go to their subfolder and edit the obj file with any 3D program
5. When you are done, place the texture (T_License1_AlbedoTransparency.png) into:
    X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\
    and meshes (obj files):
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_meshes\
6. Start the game and see your edited product


Do you want to change the texture of non-Product 3D Object?
For example the texture of the trash bin.

1. Open AssetStudio
2. Open the gamefile sharedassets0.assets in
   X:\Steam\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\
3. After the long loading you will see a List with all Objects.
   In our Case we search for trash bin:
   
 
  and we mark it:
 

4. Click on 'Model' 'Export selected objects (split)', and choose any folder (maybe create one on the Desktop)

5. The extracted Folder will open automatically after exporting
6. You will see a png file (in our case Dumpster_A.png), edit it with a graphic program like you want
7. Then place your Dumpster_A.png into the mod folder:
   X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\
8. Start the game and see your new texture
Note: Sometimes objects share the same texture, so be careful!


Do you want to change the texture of the floor?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\vanilla\objects_textures\floor\
3. You can see all 13 types. Edit one or more as you want with a graphics program and when you done place the pngs into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\
4. Start the game and see your new floor


Do you want to change the texture of the ceiling?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\vanilla\objects_textures\ceiling\
3. Edit the pngs as you want and when you are done place them into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\
4. Start the game and see your new ceiling


Do you want to change the Store Sign?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\vanilla\objects_textures\shop_sign\
3. Open Emissive_blue.txt and Emissive_red.txt with notepad
    The first line is for the color hex code: more info here: https://www.color-hex.com/color/00ffff
    The second line is for the intensity (default 10)
4. When you done place both txt files into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\


Do you want to change the Store Stairs Textures?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\sample\objects_textures\stairs
3. Edit the 3 pngs as you want and place into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\

Textures with patterns look a bit strange because the UV map of the 3d object was not done correctly. Unfortunately I can't change that!
Optional you can place a Bumpmap (Place a Store_Stairs_n.png) and MetallicGlossMap (Place a Store_Stairs_m.png).
Same for the frame: Store_Stairs_Frame_n.png and Store_Stairs_Frame_m.png


Do you want to change the Store Stairs Meshes?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\vanilla\objects_meshes\
3. Edit Store_Stairs.obj as you want with any 3d program and place into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_meshes\


Do you want to change the checkouts?
T_Cashregister_AlbedoTransparency.png
T_Checkout_1_AlbedoTransparency.png
T_Checkout_2_AlbedoTransparency.png
T_PosTerminal_alb.png
T_SelfCheckout_alb.png
T_SelfCheckout_alb_mirrored.png


Do you want to change the Computer Desktop ingame?
1. Download the modder pack under Files
2. Extract it and go to the folder:
    _templates\vanilla\objects_textures\computer\
3. Edit the files as you want and place the whole folder into:
X:\Steam\steamapps\common\Supermarket Simulator\BepInEx\plugins\TextureReplacer\objects_textures\


Does your custom mesh look weird ingame?
Maybe it's because of the _OcclusionMap (png with _o at the end) or MetallicGlossMap (png with _m at the end).
Open it with a graphics program and fill the _o.png completely with white and/or _m.png transparent 50% black, then the mesh should look normal again.






Note:
The more textures, the longer it takes to start the game because everything has to be loaded.
It is best to leave out _BumpMap, MetallicGlossMap and _OcclusionMap if they are the same as the original or have changed little.

The mod uses Runtime OBJ Importer:
https://assetstore.unity.com/packages/tools/modeling/runtime-obj-importer-49547