The Lost Cities

The Lost Cities

59M Downloads

[Question] How do I access userassets.json? (1.12.2)

FernoXL opened this issue ยท 1 comments

commented

I'm not a modder and iv'e never done this before, but how do i get to the userassets.json file?
On the wiki it says it should be in the config folder because it has a $ in front of it, but all i see there are the profiles. Is there something i'm missing?

I'm trying to modify and create a new loot table ( I don't even know how to do that. )

commented

Open the lostcities .jar file with an unzipper like 7z and look for the citydata folder. userassets.json is a file you create from the .json files inside that folder, and you don't have to call it that if you don't want to. Some of those files are thousands of lines long, and it can be very confusing trying to read it all in one file.

Instead, I recommend this method:

  • Copy the contents of the citydata folder to somewhere on your hard drive.

  • Make a duplicate of the files (so if you mess up you have backups) and call them userbuildingparts.json, userconditions.json, etc. (Don't bother with highwayparts; you can't make new highway parts).

  • Now copy your user json files to the lostcities config folder and add to the general.cfg.

$lostcities/userbuildingparts.json
$lostcities/userconditions.json
And so on.

(Or you can do what I did and split out every single part, building, palette, and style into its own file. It took about 6 hours, but it really clarified the structure of the mod, and I've been able to add new palettes, change existing palettes, and add new buildings).

(I'm working on a tutorial for making new content, but I probably won't have it ready to go for at least a week).