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 (for windows: AssetRipper_win_x64.zip)
-Start it and select File->Open Folder
Open: Supermarket Simulator\Supermarket Simulator_Data
-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 Assets/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?
1. Download under Optional Files "TextureReplacer 1.2.1 TEMPLATES FOR MODDERS"
2. Extract it and go to the folder:
    \_templates\vanilla\objects_textures\products\
3. All products of the same type share 1 png file.
    For example you want to change the textures of all cereals, then go to the folder:
    _templates\vanilla\objects_textures\products\T_Cereal_A_BCA\
    and edit this pngs:
    T_Cereal_A_BCA.png
    T_Cereal_A_N.png
    T_Cereal_A_RGBA.png

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

    If you want to change ONLY 1 cereal, for example only Cereal_Chokipik, the go the subfolder "33"
    and edit this pngs:
    T_Cereal_A_BCA_Cereal_Chokipik.png
    T_Cereal_A_N_Cereal_Chokipik
    T_Cereal_A_RGBA_Cereal_Chokipik

4. If you want to change the mesh of a product, edit the obj file with any 3D program
5. When you are done, place the texture 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 mesh of a Shelf, Fridge or Freezer?
This it's a little bit complex.
First, you need the .glb file of the original mesh from the game because only the .glb files have the vertex color informations.

If you use AssetRipper, it's essential to use Export Primary Content to obtain .glb files.

Import the .glb mesh into Blender.
There you can see the vertex colors:
https://i.imgur.com/MUhC0DD.png

red = always visible
black = game can switch to visible/invisible
blue = for the product icon
green = for price tag


Edit the mesh as you want.
Then export it as .obj.
BUT in the export window, select 'Colors' and 'Object Groups'
https://i.imgur.com/I96f7bg.png 




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