Tutorial - Extracting the assets from Shining Nikki for conversion for Sims games (or anything, really)
Finally! In advance I'm sorry for any errors since english isn't my first language (and even writing in my actual language is difficult for me so)
And first, a shoutout to The VG Resource forums, where I found initially info about this topic 😊 I'm just compilating all the knowledge I found there + the stuff I figured out in a single text, because boy I really wanted to find a guide like that when I first thought about converting SN stuff lol (and because there's a lot of creators more seasoned than me that could do a really good job with these assets 👀)
What this tutorial will teach you:
How to find and extract meshes and textures (when there's any) for later use, and some tips about how stuff are mapped etc on Shining Nikki.
What this tutorial will not teach you:
How to fully convert these assets for something usable for any sims game (because honestly neither I know how to do that stuff properly lol). It is assumed that you already know how to do that. If you don't know but has interest in learning about CC making (specially for TS3), I'd suggest you take a look at the TS3 Tutorial Hub, the MTS tutorials and This Post by Plumdrops if you're interested in hair conversion. Also take a look on my TS3 tutorials tag, that's where I reblog tutorials that I think might be useful :)
What you'll need:
An Android emulator (I recomend Nox)
A HEX editor (I recomend HxD)
Python and This Script for mass editing
AssetStudio
A 3D Modeling Software for later use. I use Blender 2.93 for major editing, and (begrudingly) Milkshape for hair (mostly because of the extra data tool).
Download everything you don't have and install it before starting this tutorial.
Now, before we continue, a little advice:
I wrote this tutorial assuming that people who would benefit from it will not put the finished work derivative from these assets behind a paywall or in any sort of monetization. These assets belong to Paper Games. So please don't be an ass and put your Shining Nikki conversions/edits/whatever behind a paywall.
The tutorial starts after the cut (and it's a long one).
Step 1:
Launch Nox, then open Play Store and log in with a Google account (if you don't have one, create it). Now download Shining Nikki from there.
After downloading the game, launch it. It will download a part of the game files. After that, log in on the game, or create a new account in any server (the server is only important if you want to actually play the game. For extracting it doesn't really matter since the game already has the assets for the upcoming events and chapters. It also doesn't matter if you actually own an item in game, you can extract the meshes and textures even if you don't have it in game).
If you're creating a new account, the game will lead you through the presentation of it etc (unfortunately there's no way to skip it).
After that, click on that little arrow button on the main screen. There, you can download the actual clothing assets. Wait for the download to finish (at the date I'm writing this tutorial, it is around 13GB). When finished, close the game (not the emulator).
Step 2:
Now we're going to copy the assets to our computer. Click on Tools, then on Amaze File Manager. Navigate to Android > data > com.papergames.nn4.en > files > DownloadedBundle > art > character. This is the folder where (I believe) most of the assets are stored.
Now, where the stuff is located respectively:
Meshes are on the meshes > splitmeshs folder
Textures are on the textures > cloth folder
Tip: Want to really data dump everything? Just select the folders you want and copy to your PC! 😉
Click on the three dots on the side of the wished folder, then in copy. Then click on the three lines on the left upper corner to open the menu, and then click on Download. Now just pull the header of the app to show the Paste option and click on it. It might take a while to copy completely (the cloth folder might take longer since it's bigger, so be patient).
If you're confused, just follow the guide below:
The copied folder will be located at C:\Users\{your username}\Nox_share\Download
Step 3:
Now that we got the files, we need to make them readable by AssetStudio.
For this, we need to open the desired .asset file on a hex editor, and then delete the first 8 bytes of the file, and then save.
You can see it is a pain to do that manually to a lot of files right? This is why I asked my boyfriend to create a script to mass edit them. (I only manually edit when I'm grabbing the textures I want, because afaik the script won't work with .tga and the .png files, more about that forward this tutorial)
How to use the script:
Make sure Python is already installed, grab the nikki-fix-headers.py file and place it on the folder where you copied the folder from the game (mine is still the Nox_Share Download folder).
It should look like this, the meshs folder and the script.
Let's open the Command Prompt. Hit Windows + R to open the Run dialog box, then type in cmd and hit Enter.
Now follow the instructions pictured below:
The folder with the edited files will be at the same location:
Now, we finally can open it all on AssetStudio and see whats inside 👀
Step 4:
Open AssetStudio. Now click on File > Load Folder and select the folder where your edited meshes are (mine is "splitmeshs-fixed"). Wait the program load everything. Click on Filter Type > Mesh, and the on the Asset List tab, click twice on the Name to sort everything by the right order, and now we can see the meshes!
To extract any asset, just select and right-click the desired groups, click in Export selected assets and select a folder where you wish to save it.
Stuff you need to know about the meshes:
Step 4-A: Everything is separated by groups.
Of course you'll have to export everything to have a complete piece. Only a few pieces has a single group. When exporting, you have to select every group with the same name (read below), and the result will be .obj files of each group that you have to put together in a 3D application.
Step 4-B: The names are weird.
They're a code that indicates the set, the piece, the group.
Items that doesn't belong to a set won't have the "S...something", instead they'll have another letter with numbers, but the part/piece type and group logic is the same.
As for the parts, here are the ones I figured out so far:
D = Dress
H = Hair
AEA = Earrings
ANE = Necklace
BS = Shoes
ABA = Handheld accessory
AHE and AHC = Headpieces/hats/hairpins
AFA = Face accessory (as glasses, eyepatches, masks)
(maybe I'll update here in the future with the ones I remember)
Step 4-C: The "missing pearls" issue.
Often you'll find a group that seems empty, and it has a weird name like this:
I figured out that it's referent to pearls that a piece might contain (as in a pearl necklace, or a little pearl in a earring, pearls decorating a dress, etc). The group seems empty, but when you import it to Blender, you can see that it actually has some vertices, and they're located where the aforementioned pearls would be. I think that Unity (SN engine) uses this to generate/place the pearls from a master mesh, but I honestly have no idea of how the game does that. So you'll probably have to model a sphere to place where the pearls were located, I don't know 🤷♀️ (And if you know how to turn the vertices into spheres (???) please let me know!)
Step 5:
Now that you already extracted a mesh, we're gonna extract the textures (when any). Copy the textures > cloth folder to your PC like you did with the splitmeshs folder.
Open it, and in the search box, type the name of the desired item like this. If the item has textures, it will show in the results.
Grab all the files and open them in HxD (I usually just open HxD and drag the files I want to edit there), and edit them like I teached above. Then you can open them (or load the cloth folder) on AssetStudio, and export them like you did with the meshes.
Stuff you need to know about the textures, UV map, etc:
Step 5-A: The UV mapping is a hot mess (at least for us used to how things works in sims games).
See this half edited hoodie and the UV map for a idea:
So for any Sims game, you'll have to remap everything 🙃 Also, stencil-like textures all have their own separated file.
As for hair, they all use the same texture and mapping! BUT sometimes they are arranged like this...
Here's the example of a very messed one (it even has some WTF poly). Most of them aren't that messy, but be prepared to find stuff like this.
Shining Nikki just repeat the texture so it end up covering everything, for Sims you'll need to remap, and the easiest way is by selecting "blocks" of hair strands, ticking the magnet button to make your seletion snap to what is already placed (if you have familiarity with blender, you know what I'm saying). Oh, some clothes are also mapped with the same logic.
Regarding the hair texture, I couldn't locate where they are, but here is a pack with all of them ripped and ready to use. You can also grab the textures from any SN hair I already converted :)
The only items with a fine UV map are the accessories, at least for TS3 that the accessory has a UV map independent from the body.
"But I typed the ID for the set and piece and couldn't find anything!"
A good thing to do is to search with only the set ID and edit all the files with it, because some items (especially accessories) share the same texture file. But if even then you can't find anything, it means that there's no texture for this particular item/group because Shining Nikki use material shaders* to render different materials like metal, crystal, some fancy fabrics, etc. So you'll have to bake or paint a texture for it.
*I believe that those shaders are located on the other cloth folder in the game files. This one is way bigger than the other one and once I copied it to see what it was, AssetStudio took ages to load everything, almost used all my 16GB of RAM, and then there was only code that the illiterate me didn't know what it was 🤷♀️
So that was it! I hope I explained everything, although it is a little confusing.
If you have any questions, you can comment on this post or send me a PM!
16 notes
·
View notes
🪑 4t2 kkb's my cherish things ☕
hi everyone, happy wednesday! as promised, here is kkb's my cherish things set converted for ts2. i thought i was more finished than i truly was, there ended up being lots of little fixes. anyway, i was finally able to complete it over the holiday break! i do apologize for being fairly absent the past few months, i hope to get back into the sims again. that is if my game will stop crashing but we all know how that story goes- as always, please lmk if you run into any issues. enjoy!~⋆ ˚。⋆୨୧˚
addt'l photos + object list under the cut. files are compressed.
update 2/24/2024: fixed sink cutout, no longer linked to veranka's vanadium sink. download the file separately here.
download: [sfs] | [box] ♡
credits: @kkbsmm, veranka's vanadium sink as a base.
OBJECT LIST:
Cushion Chair
Induction Burner
Iron Basket
-> Pastel Teacup + Powder Case Repo'd
Kitchen Towel
Pastel Fridge [Functional + Animated]
Pot Hanger
-> Bread Box, Drink Box, + Cushion Stool Repo'd
Ribbon Kettle
-> Ribbon Bowl, Low Pot, Pan w Handle, Pasta Pot, Stew Pot, + Teacup Repo'd
Kitchen Sink [Functional]
Tablecloth Table
-> Wooden Chair Repo'd
Three-Tier Lunch Box
-> Two-Tier Lunch Box Repo'd
Two-Tier Dish Dryer
note: there is no dirty state, i cloned from veranka's which didn't include one. also, i didn't include the cupboard, idk i guess i spaced it out sry!
940 notes
·
View notes