Cities: Skylines

Cities: Skylines

162 ratings
Asset ItemClass Changer
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
332.427 KB
4 Jun, 2015 @ 9:24am
7 Jul, 2015 @ 6:11pm
3 Change Notes ( view )

Subscribe to download
Asset ItemClass Changer

In 1 collection by Snow_Cat
Snow_Cat's questionable Asset Editor mods
7 items
Description
Reassign an asset's ItemClass (and main category / toolbar used to access).
DANGER - Assets can be broken

Broken assets will fail to load and cannot be fixed with the asset editor
It is strongly recommended that ItemClass changes be made to a new save file.
Duplicate files can be deleted; backups made after the fact are extraordinarily unlikely to fix anything.
for example While testing, a powerplant was reclassified as an industrial building, but left on manual placement.

Instead of loading, this asset now causes the error message:
Custom Assets: Meow Wind Turbine.Elevated Wind Turbine_Data: Private building cannot have manual placement style
While code has been added to prevent this from happening again, it is not perfect.

This is your warning to always keep a backup while using this mod-tool.

Asset ItemClass Changer
This mod adds a dropdown box to the Asset Property Editor that allows the reassignment of a given asset's ItemClass.

The intended use of this mod is to ease the reassignment of assets into main categories using (mostly) safe known ItemClass types.

While this mod does change the Placement appropriately for the given service indicated by the ItemClass, It does not delete paths, roads and other net types inappropriate for privately owned (zoned) buildings. For these it will either refuse to make the change from a player building (government) or will emit a warning.

Additional ItemClass types introduced by mods dynamically could potentially be incompatible.

Future changes in validation rules could also render assets created with this mod broken .

Use
  • Load asset to be reassigned in Asset Editor.
  • Click on the drop box labeled Item Class
  • Select new asset class.
  • Verify this is the intended value before saving to a new file.
  • Verify that new file loads as desired before deleting original file.

Source code & Issues
Currently ItemClasses are sorted by Service, Sub Service, Level, and Name.

It was considered sorting by existing prefab type {Building, Citizen, Net, Prop, Transport, Tree, Vehicle, (other)}, and offering an "Are you sure?" warning when setting across types, but this would require scanning all assets and populating a new list, and could produce a sense of false security (as in the above example) because the validation rules are not known to be set in stone.

This sorting might be added later as future plans will require collecting UICategory (subgroup tab) data in a similar manner and this will make such mishaps less likely.

I forgot if concat was safe to use, so the list building is less than optimal, and the code has not been beautified or sanitized once working.

Toggle Asset Properties Panel is suggested to access the Properties panel where the Asset Editor automatically hides it.
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=451710073
If not automatically downloaded through the workshop, the source code of this mod is might eventually be available through
https://github.com/dluechoy/

This is derived from "Building AI Changer" Copyright (c) 2015 Stefan Kaufhold– source availble from
https://github.com/cerebellum42/BuildingAIChanger

I might respond to comments and discussion on the steam workshop, but will not forward discussion to the original author who has expressly requested contact via github.

javascript:ValidateForm()
Access Denied

Sorry, some kind of error has occurred: There was an error communicating with the network. Please try again later.

Help Desk Error
Steam servers are under maintenance. Normal operations will resume shortly. Thank you for your patience.

ಠ_ಠ
65 Comments
Still_Claire 8 Feb, 2023 @ 6:38pm 
A possible replacement/update available here:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2930517551
Elivenya 9 Apr, 2020 @ 8:46pm 
Could you plese updat the mod. It's aat the moment not possible to add buildings to the new industrial ares or campus/ park areas class.
BrowncoatTrekky 4 Feb, 2020 @ 5:30pm 
@Gabriel this mod has not been updated since 2015. That is 10dlcs back from the most recent update.
Gabriel 4 Feb, 2020 @ 2:39pm 
Great mod!
I got a request: is it possible to change the class of other road types such as elevated, bridge, slope and tunnel? Currently the mod only changes the basic road type class.

Also, it would be PERFECT if you could create your own classes, although I don't know if it's possible
Lennep 30 Dec, 2018 @ 12:20pm 
what a great mod, this is gonna save me so much work in the Asset Editor...!
Droidhacker 19 Oct, 2018 @ 10:36am 
I am having issues changing an asset into a taxi, in particular the ultra prt pod, do you think it is the asset at fault (I am going to try deleting and re subscribing to the asset, or does this mod have a known issue with taxi vehicles? It worked fine on other vehicles and I am very appreciative of this mod so far! I am just asking to narrow down the source of the problem
orion 5 Oct, 2018 @ 6:46am 
underrated
mjm92150 7 Jun, 2018 @ 1:55am 
Hello,
Is this working with the latest verions of CS MT (all DLC included ParkLife) ?
Satsuma 12 Feb, 2018 @ 5:44am 
still working fine. deaktivated all mods except this and MoveIt!
Riddler 17 Nov, 2017 @ 8:54pm 
Will someone update this mod for newest game version/ DLC? When i edit my old buildings the asset editor menu has no icons and i read somewhere that it is because of mods that do this like this