10 Lines of Code to be able to save Custom Light Props! Please

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Shroomblaze

Major
7 Badges
Mar 8, 2015
600
481
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • PDXCon 2017 Awards Winner
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
Us builders have wanted color lights from the start even suggesting full color illumination maps, but it looks like we can modify the custom light props but we just can't save them! Will you please code it in so that we can modify the Light type (point, spot, ...), Color, Intensity, Range, Spot Angle, Spot Leaking, Blink type, position and direction in prop? It will make Cities Skylines look sooo cool!!

Originally posted over at Simtropolis by Boformer, Reposting here instead of linking information.
-----------------------------------------------------------------------------------------------------------------------------
Looks like we are stuck with the default light props.

Here are my findings:

You can create completely custom light effects with mod tools, but it is NOT possible to save a prop with applied effects. CO did not implement that (It would have been 10 lines of code for them!!!).

Here are the 2 mod tools scripts which I created for it: https://gist.github.com/boformer/1ede360cc0531eff5f07

The only way to get the light props into the game: Create a mod that saves the light effect information in a separate (xml) file, then remove the effect for successful saving. When a player loads the game, read the file and create/apply the custom light effects again. Drawback: The player has to install the mod, or the assets will appear without custom lights.

There are many things which can be modified: Light type (point, spot, ...), Color, Intensity, Range, Spot Angle, Spot Leaking, Blink type, position and direction in prop... You can even put multiple light effects into one prop (like a row of lights, a fountain illuminated from 4 sides).







 
  • 14
  • 1
Reactions:
Upvote 0

nyirog

Corporal
29 Badges
Mar 5, 2015
37
19
  • Sword of the Stars II
  • Stellaris
  • Age of Wonders III
  • Stellaris: Necroids
  • Crusader Kings II
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Cities: Skylines - Campus
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
Originally quoted from me, from reddit:

"New lighting effects, such as lasers and searchlights on top of buildings?

I dont know if its possible or already exists in the game, but as I can see these features are not in the vanilla game. So it would be really nice and cool if someone could achieve it, a disco building with lasershows on the top will make cims really crazy and the party hardcore :)"

I am raising my hat for the modders hard work, not just for trying to solve this mod, but for every modes that is already done and in progress, Thank you. :) !!!
 

TPB

Sergeant
27 Badges
Mar 31, 2015
83
62
  • Cities: Skylines Deluxe Edition
  • Magicka 2
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings III
  • Age of Wonders: Planetfall
  • Cities: Skylines - Campus
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines Industries
  • Shadowrun: Dragonfall
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Green Cities
  • Victoria 2
  • Surviving Mars
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Cities: Skylines
  • Cities: Skylines - Parklife Pre-Order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
Adding my voice to this request.

Also taking the opportunity to thank you all for your hard work, modders and asset creators in updating your mods for AD.
And of course, once more, thank you CO for a wonderful game and for listening to our concerns/requests/suggestions.
Rock on!
 
  • 1
Reactions:

boformer

Captain
15 Badges
Apr 15, 2015
450
544
  • Magicka
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
The general problem is that the asset editor does not support the serialization of certain object arrays.

Here is an overview which of these arrays are not supported:

Building:
subMeshes - additional meshes (with separate texture) for buildings
subBuildings - used by oversizes assets made of several pieces

Prop:
variations - used by randomized props (like random billboards)
effects - used for light effects, but possibly also sound effects, particle effects
Not tested: parkingSpaces - quite obvious

Tree
:
variations - used by randomized trees (multiple different models)


There are probably more. It would be great if CO would add a GUI to use these advanced features. And of course, a way to save them.
 

Shroomblaze

Major
7 Badges
Mar 8, 2015
600
481
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • PDXCon 2017 Awards Winner
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
Hello Colossal Order! @co_martsu @Co_Karoliina @CO_Dae @co_damsku @co_fiirdraak

I know you guys have been working very hard on the next expansion. Thanks for continuing to develop the game and I look forward to the new features that come. This game has pretty much become the majority of my life. I enjoy making and uploading stuff on the Steam Workshop and hope you bring more modding tools for us to use in the future. I won't go into a list of all the requested features now as I know @Azurespecter has already reported a lot of those so I will just wait and see what Snowfall brings and respond afterwards.

There is one feature though that I really want to see make it into the Snowfall expansion which is the ability to save custom light props. boformer has already shown in the screenshots in this thread that it is possible to make custom colored lights with varying sizes. In the post above this one as well he even states how modifying the code would be able to do much more than just saving custom lighting effects.

So is there any way you can please edit the code that boformer says would only take 10 lines of code to fix? Many of us modders would really like this functionality. We are not asking for you to make a custom GUI for people to make custom lighting. Just as long as the code is there for modders to be able to save the settings using our own tools.

Please seriously consider this, Thank you very much! :)
 
  • 1
Reactions:

co_martsu

Colossal Order CEO
Colossal Order Dev
1 Badges
Aug 25, 2010
1.907
1.393
  • Colossal Order Staff
Generally it's never just 10 lines of code with the testing and though process required, not as easy and quick fix as one might think ;)

Then to the issue at hand: I will discuss about this specific request with the team and see if this kind of support can be added to the asset editor at some point.
Unfortunately for Snowfall it is too late as no new requests can be taken for it to finish on time for the release.

I will keep you updated on this after I have heard the estimates from the team. And as with all the requests the following options are considered:
a) No
b) Maybe
c) Yes
d) If yes, when?
 
  • 1
  • 1
Reactions:

co_martsu

Colossal Order CEO
Colossal Order Dev
1 Badges
Aug 25, 2010
1.907
1.393
  • Colossal Order Staff
Quick update from the programmers: "Could be possible but not nearly as simple as one might think". So when we look at our options this is such a strong maybe that the CEO in me reads it as a yes, but the producer in me doesn't want to give any time estimates as to when it might happen.

So we will log this request to the modding improvements and hopefully it can be looked into at some point. Thanks for the suggestion everyone!
 
  • 3
Reactions:

Shroomblaze

Major
7 Badges
Mar 8, 2015
600
481
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • PDXCon 2017 Awards Winner
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
So we will log this request to the modding improvements and hopefully it can be looked into at some point. Thanks for the suggestion everyone!

Ok Thanks for adding it to the log. Modders definitely want more lighting options. I'm Looking forward to the dev diaries and more communication from CO about what is happening with the future of the game. @Mr Maison told me about your plans to communicate more and I think that will be really great for the community all around. The more you guys communicate, the more invested we become in your company as players. Being left in the Dark after the release of After Dark made many of us feel sort of abandoned. Thanks again for responding. :D

Also if you haven't noticed these before on the Workshop I've created a couple things that shows my support for CO.
I made an Colossal Order Ice Truck and some Cities Skylines related flags.

Colossal Order Ice Truck
http://steamcommunity.com/sharedfiles/filedetails/?id=534134266&searchtext=colossal order
A626206156AB881698C1D168F3087DD894A6ED25


Other Flags!
http://steamcommunity.com/sharedfiles/filedetails/?id=596557137
6186D41C7E8F2E0736C0F93AE7FC5DC3B90C5265
 
  • 1
Reactions:

co_martsu

Colossal Order CEO
Colossal Order Dev
1 Badges
Aug 25, 2010
1.907
1.393
  • Colossal Order Staff
Ok Thanks for adding it to the log. Modders definitely want more lighting options. I'm Looking forward to the dev diaries and more communication from CO about what is happening with the future of the game. @Mr Maison told me about your plans to communicate more and I think that will be really great for the community all around. The more you guys communicate, the more invested we become in your company as players. Being left in the Dark after the release of After Dark made many of us feel sort of abandoned. Thanks again for responding. :D

Also if you haven't noticed these before on the Workshop I've created a couple things that shows my support for CO.
I made an Colossal Order Ice Truck and some Cities Skylines related flags.

Colossal Order Ice Truck
http://steamcommunity.com/sharedfiles/filedetails/?id=534134266&searchtext=colossal order
A626206156AB881698C1D168F3087DD894A6ED25


Other Flags!
http://steamcommunity.com/sharedfiles/filedetails/?id=596557137
6186D41C7E8F2E0736C0F93AE7FC5DC3B90C5265

I LOVE THESE! So cool!

And yes, we were slightly short on staff last year and the communication part is something that is easily left to a publisher when game development requires all hands on deck. However to my delight we have now a dedicated person handling communication (currently mainly company social media/emails) and she will be taking a bigger role in talking with you guys in the future as well. You will continue seeing me avoiding my real job (CEO stuff is sometimes really boring) and the devs around when time allows.

So we are looking into modding Q&A, but we have to figure out a way that doesn't interfere too much with the programmers work. More on this later after the biggest hassle with Snowfall is over at our office :)
 
  • 3
Reactions: