• Moose
  • Announcements

    • Dirktator

      Please help us for July   06/30/2017

      This month we're hoping for a little bit of a boost this month or next, in addition to covering the regular bills, we could benefit from some hardware upgrades. STEX Collector's Set gifts can now be sent to you via digital download as well as regular mail if you wish! Every donation dollar goes toward keeping Simtropolis online and humming along. Your contribution counts! Hardware Upgrades As our website community software improves with more and more features, and as we bolt on additional features such as chat, the increased load to handle all these new toys is taking the server a bit to task. You may have noticed that we'd been forced to temporarily disable the chat as we worked out allocating resources for more optimal performance. Following this, we've applied a number of 'soft' changes such as caching options and experimented with server configurations (nginx as proxy, for example), so the hardware aspect is also an area we'd like to focus on. The last time we upgraded hardware was back in 2012, prior to the release of SC13. Your contribution means a lot! Your donation will go toward helping us to 1.) migrate to a newer server or 2.) at least get some ram/cpu/storage updates and any other infrastructure hardware or services. Donate and Get a Gift or Donate Any Amount Thanks so much! - Dirktator & The Admins
AmiPolizeiFunk

How to add lights to a prop?

35 posts in this topic

2 hours ago, AmiPolizeiFunk said:

Well I noticed that there are variables in the light effects to say which axis to rotate and at what speed. I was able to edit them in ModTools, and the spotlight started animating round and round... looking just like a lighthouse or movie searchlight. If I knew how to make a quick .gif of it, I would have, cause it was really cool looking.

Right, but those values can not be saved, so you would need an additional mod that creates a new light effect.

Share this post


Link to post
Share on other sites

 

Released a new asset, which is a collaboration with vasimr22 (who has been making some great airport assets). It's a runway threshold lights prop. Originally we wanted to do some green lights, but 

Aircraft Light Right
  Type: Spot
  Intensity: 1
  Blink Type: None
  Base Color: A0FFA0

 

from the list on github didn't work.

 

In fact, many of the light types didn't work. Is there a special trick to get the vehicle light effects to work on a prop?

 

PreviewImage.png.242be86b477105e2cf770cbff1fafe43.png

https://steamcommunity.com/sharedfiles/filedetails/?id=908980935

 

FINAL WORKING SCRIPT FOR FOUR LIGHT EFFECTS:

 

// --- FIRST LIGHT EFFECT ---
// Used light effect
var lightEffect1 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
// Final position in prop
Vector3 pos1 = new Vector3(0f,1f,0f); 
// 
// Final direction in prop
Vector3 dir1 = new Vector3(0f,0.2588f,0.9659f);
// pointing forward about 15deg
var propEffect1 = new PropInfo.Effect {m_effect = lightEffect1, m_position = pos1, m_direction = dir1 };
	
// --- SECOND LIGHT EFFECT ---
// Used light effect
var lightEffect2 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
// Final position in prop
Vector3 pos2 = new Vector3(-1.7f,1f,0f); 
// 
// Final direction in prop
Vector3 dir2 = new Vector3(0f,0.2588f,0.9659f);
//  
var propEffect2 = new PropInfo.Effect {m_effect = lightEffect2, m_position = pos2, m_direction = dir2 };
	
// --- THIRD LIGHT EFFECT ---
var lightEffect3 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
Vector3 pos3 = new Vector3(-3.4f,1f,0f);
// ..
Vector3 dir3 = new Vector3(0f,0.2588f,0.9659f);
// ..
var propEffect3 = new PropInfo.Effect {m_effect = lightEffect3, m_position = pos3, m_direction = dir3 };
	
// --- FOURTH LIGHT EFFECT ---
var lightEffect4 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
Vector3 pos4 = new Vector3(-5.1f,1f,0f);
// ..
Vector3 dir4 = new Vector3(0f,0.2588f,0.9659f);
// ..
var propEffect4 = new PropInfo.Effect {m_effect = lightEffect4, m_position = pos4, m_direction = dir4 };
	
// Apply effects to prop
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_effects = new PropInfo.Effect[] { propEffect1, propEffect2, propEffect3, propEffect4};
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_hasEffects = true;

 

Share this post


Link to post
Share on other sites
6 hours ago, AmiPolizeiFunk said:

Any ideas, anyone? green light effects on props?

You can find all available effects (also sound effects) in the EffectCollection in the ModTools scene explorer.

Share this post


Link to post
Share on other sites

I'm liking this script. Here's one with eighteen light effects. :)20170514232642_1.thumb.jpg.0d2f58dfdfce4c2a05b0496e5b541b45.jpg

Spoiler

// --- FIRST LIGHT EFFECT ---

// Used light effect
var lightEffect1 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;

// Final position in prop
Vector3 pos1 = new Vector3(0f,16f,0f); 
// 

// Final direction in prop
Vector3 dir1 = new Vector3(0f,-2.00f,-1f);
// pointing up 

var propEffect1 = new PropInfo.Effect {m_effect = lightEffect1, m_position = pos1, m_direction = dir1 };


// --- SECOND LIGHT EFFECT ---

// Used light effect
var lightEffect2 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;

// Final position in prop
Vector3 pos2 = new Vector3(-1.923f,16f,0f); 
// 

// Final direction in prop
Vector3 dir2 = new Vector3(0f,-2.00f,-1f);
//  

var propEffect2 = new PropInfo.Effect {m_effect = lightEffect2, m_position = pos2, m_direction = dir2 };


// --- THIRD LIGHT EFFECT ---

var lightEffect3 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos3 = new Vector3(-3.817f,16f,0f);
// ..
Vector3 dir3 = new Vector3(0f,-2.00f,-1f);
// ..

var propEffect3 = new PropInfo.Effect {m_effect = lightEffect3, m_position = pos3, m_direction = dir3 };


// --- FOURTH LIGHT EFFECT ---

var lightEffect4 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos4 = new Vector3(-5.751f,16f,0f);
// ..
Vector3 dir4 = new Vector3(0f,-2.00f,-1f);
// ..
var propEffect4 = new PropInfo.Effect {m_effect = lightEffect4, m_position = pos4, m_direction = dir4 };


// --- 5 LIGHT EFFECT ---

// Used light effect
var lightEffect5 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;

// Final position in prop
Vector3 pos5 = new Vector3(1.923f,16f,0f); 
// 

// Final direction in prop
Vector3 dir5 = new Vector3(0f,-2.00f,-1f);
// pointing up 

var propEffect5 = new PropInfo.Effect {m_effect = lightEffect5, m_position = pos5, m_direction = dir5 };


// --- 6 LIGHT EFFECT ---

// Used light effect
var lightEffect6 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;

// Final position in prop
Vector3 pos6 = new Vector3(3.817f,16f,0f); 
// 

// Final direction in prop
Vector3 dir6 = new Vector3(0f,-2.00f,-1f);
//  

var propEffect6 = new PropInfo.Effect {m_effect = lightEffect6, m_position = pos6, m_direction = dir6 };


// --- 7 LIGHT EFFECT ---

var lightEffect7 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos7 = new Vector3(5.751f,16f,0f);
// ..
Vector3 dir7 = new Vector3(0f,-2.00f,-1f);
// ..

var propEffect7 = new PropInfo.Effect {m_effect = lightEffect7, m_position = pos7, m_direction = dir7 };


// --- 8 LIGHT EFFECT ---

var lightEffect8 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos8 = new Vector3(7.666f,16f,0f);
// ..
Vector3 dir8 = new Vector3(0f,-2.00f,-1f);
// ..
var propEffect8 = new PropInfo.Effect {m_effect = lightEffect8, m_position = pos8, m_direction = dir8 };


// --- 9 LIGHT EFFECT ---

var lightEffect9 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos9 = new Vector3(-7.666f,16f,0f);
// ..
Vector3 dir9 = new Vector3(0f,-2.00f,-1f);
// ..
var propEffect9 = new PropInfo.Effect {m_effect = lightEffect9, m_position = pos9, m_direction = dir9 };


// --- 10 LIGHT EFFECT ---

var lightEffect10 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos10 = new Vector3(0f,3.25f,-1.6f);
// ..
Vector3 dir10 = new Vector3(0f,3f,-1f);
// ..
var propEffect10 = new PropInfo.Effect {m_effect = lightEffect10, m_position = pos10, m_direction = dir10 };

// --- 11 LIGHT EFFECT ---

var lightEffect11 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos11 = new Vector3(1.923f,3.25f,-1.6f);
// ..
Vector3 dir11 = new Vector3(0f,3f,-1f);
// ..
var propEffect11 = new PropInfo.Effect {m_effect = lightEffect11, m_position = pos11, m_direction = dir11 };

// --- 12 LIGHT EFFECT ---

var lightEffect12 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos12 = new Vector3(-1.923f,3.25f,-1.6f);
// ..
Vector3 dir12 = new Vector3(0f,3f,-1f);
// ..
var propEffect12 = new PropInfo.Effect {m_effect = lightEffect12, m_position = pos12, m_direction = dir12 };

// --- 13 LIGHT EFFECT ---

var lightEffect13 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos13 = new Vector3(3.817f,3.25f,-1.6f);
// ..
Vector3 dir13 = new Vector3(0f,3f,-1f);
// ..
var propEffect13 = new PropInfo.Effect {m_effect = lightEffect13, m_position = pos13, m_direction = dir13 };

// --- 14 LIGHT EFFECT ---

var lightEffect14 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos14 = new Vector3(-3.817f,3.25f,-1.6f);
// ..
Vector3 dir14 = new Vector3(0f,3f,-1f);
// ..
var propEffect14 = new PropInfo.Effect {m_effect = lightEffect14, m_position = pos14, m_direction = dir14 };

// --- 15 LIGHT EFFECT ---

var lightEffect15 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos15 = new Vector3(5.751f,3.25f,-1.6f);
// ..
Vector3 dir15 = new Vector3(0f,3f,-1f);
// ..
var propEffect15 = new PropInfo.Effect {m_effect = lightEffect15, m_position = pos15, m_direction = dir15 };

// --- 16 LIGHT EFFECT ---

var lightEffect16 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos16 = new Vector3(-5.751f,3.25f,-1.6f);
// ..
Vector3 dir16 = new Vector3(0f,3f,-1f);
// ..
var propEffect16 = new PropInfo.Effect {m_effect = lightEffect16, m_position = pos16, m_direction = dir16 };

// --- 17 LIGHT EFFECT ---

var lightEffect17 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos17 = new Vector3(7.666f,3.25f,-1.6f);
// ..
Vector3 dir17 = new Vector3(0f,3f,-1f);
// ..
var propEffect17 = new PropInfo.Effect {m_effect = lightEffect17, m_position = pos17, m_direction = dir17 };

// --- 18 LIGHT EFFECT ---

var lightEffect18 = EffectCollection.FindEffect("Flood Light Short White") as LightEffect;
Vector3 pos18 = new Vector3(-7.666f,3.25f,-1.6f);
// ..
Vector3 dir18 = new Vector3(0f,3f,-1f);
// ..
var propEffect18 = new PropInfo.Effect {m_effect = lightEffect18, m_position = pos18, m_direction = dir18 };


// Apply effects to prop
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_effects = new PropInfo.Effect[] { propEffect1, propEffect2, propEffect3, propEffect4, propEffect5, propEffect6, propEffect7, propEffect8, propEffect9, propEffect10, propEffect11, propEffect12, propEffect13, propEffect14, propEffect15, propEffect16, propEffect17, propEffect18};
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_hasEffects = true;

 

 

boformer likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  :thumb:


Register a New Account

Sign In  

Already have an account? Sign in here.


Sign In Now


  •  
  • Similar Content

    • By CT14
      26 lowrider car models in HD. Each model has an Orthogonal and Diagonal variation.
      Represented marques are Chevrolet, Buick, Oldsmobile, Pontiac, Cadillac, Chrysler, Dodge, Plymouth, Ford.
      In the Lot Editor, props are found under the prefix CT14_LRP_O_ and CT14_LRP_D_, respectively.
      Four named prop families have been included:
      0x5F85E919 - CT14 LRP Ortho - Doors Open, Man 0x5F85E91A - CT14 LRP Ortho - Squattin' 0x5F85E91B - CT14 LRP Diag - Doors Open, Man 0x5F85E91C - CT14 LRP Diag - Squattin' One dat file is included with all the models and props.

      Installation

      Place the folder "Lowrider Props" into your plugins folder - for example as "Plugins/CT14/Lowrider Props".
      Remove the folder to uninstall. Any lots which use these props will be a little more empty.

      History

      04162017 - initial release version 1.0

      Bugs

      Please report bugs to the development thread:
      http://community.simtropolis.com/forums/topic/69360-ct14s-railroad-lots-and-bat/

      Credits
       
      Credits and big thanks to these authors without whose work this would not have been possible, as well as to authors further acknowledged on source pages:
      1946 Ford Bomb by Coyote56
      https://3dwarehouse.sketchup.com/model/u4b39fdad-b115-4f4e-a9a9-7afba136a519/1946-Ford-Coupe
      1957 Chevrolet Bel Air by eezerz ..
      https://3dwarehouse.sketchup.com/model/e8440dbc6f7058427fb91362a54be751/1957-Chevrolet-Bel-Air-Lowrider
      1957 Dodge Lancer by Coyote56
      https://3dwarehouse.sketchup.com/model/u7b89e23b-f81c-4abd-abce-2c12453942d3/1957-Dodge-Coronet-Lancer-Lowrider
      1958 Chevrolet Impala by Coyote56
      https://3dwarehouse.sketchup.com/model/uf69d4fce-a1d0-456b-a6cc-2e20dd2af943/1958-Chevy-Impala-Lowrider
      1959 Chevrolet Impala by Coyote56
      https://3dwarehouse.sketchup.com/model/u69bdbb26-3308-4eeb-91bb-449bea3d74f6/1959-Chevy-Bel-Air-Lowrider
      1963 Chevrolet Impala by captainkirk
      https://3dwarehouse.sketchup.com/model/u0182e4f6-771f-4d7d-a3e3-d0cf455fda47/1963-impala
      1967 Chevrolet Impala by eezerz ..
      https://3dwarehouse.sketchup.com/model/fcf91dda00cd7fd1afe1d4530f4c6e24/1967-CHEVROLET-IMPALA-LOWRIDER
      1970 Dodge Charger by Coyote56
      https://3dwarehouse.sketchup.com/model/4cf5cfe0a7728a461c2639aea037fbfc/1970-Dodge-Charger-Lowrider
      1971 Chrysler New Yorker by Coyote56
      https://3dwarehouse.sketchup.com/model/ub8b38c5b-77c1-4367-aabe-f267db975160/1971-Chysler-New-Yorker-Lowrider
      1972 Ford Gran Torino by Coyote56
      https://3dwarehouse.sketchup.com/model/u8d39ce13-fa87-46ef-a581-cd4f3691d0e0/1972-Ford-Torino-Fastback-Lowrider
      1972 Plymouth Valiant Lowrider by Coyote56
      https://3dwarehouse.sketchup.com/model/u64ac3e2a-95eb-4ec3-aba2-3e606d37324c/1972-Plymouth-Valiant-Lowrider
      1976 Ford Torino by Coyote56
      https://3dwarehouse.sketchup.com/model/u03e5dbf4-f13b-401a-9403-3cfdc5ca930a/1976-Ford-Torino-Lowrider
      1977 Cadillac Sedan Deville Convertible by lowriderfreak
      https://3dwarehouse.sketchup.com/model/19932caa71a4c3666a9c18480b4632cb/gang-green-caddy

      1979 Chevrolet Monte Carlo by Coyote56
      https://3dwarehouse.sketchup.com/model/uecbc5350-7f8b-49db-828f-c4dc1836f591/1979-Chevy-Montecarlo-Lowrider
      1979 Chrysler LeBaron by Coyote56
      https://3dwarehouse.sketchup.com/model/u91fdc64a-1f4f-4ace-865f-9a83997e7140/1979-Chrysler-LeBaron-Lowrider
      1980 Oldsmobile Ninety Eight by lowriderfreak
      https://3dwarehouse.sketchup.com/model/7ec56ddbe609f61919071f84fdfae8d0/1980-olds-98-lowrider
      1980s Buick Regal by eezerz ..
      https://3dwarehouse.sketchup.com/model/6b33d2f326f28f7f1c59d7dc6d87eb5/Buick-Regal-Lowrider
      1980s Cadillac Fleetwood Brougham by Sonoma ZR-2
      https://3dwarehouse.sketchup.com/model/a7065cc33270e551a3049d0dcf503cdf/Cadillac-Fleetwood-Brougham-Lowrider
      1980s Cadillac Fleetwood Series 75 Limousine by eezerz ..
      https://3dwarehouse.sketchup.com/model/a86ab6f8af60c6afe1d4530f4c6e24/CADILLAC-LIMO-LOWRIDER
      1980s Chevrolet Caprice by eezerz ..
      https://3dwarehouse.sketchup.com/model/b999fe086a608fd57fb91362a54be751/Chevrolet-Caprice-Lowrider
      1980s Oldsmobile Custom Cruiser by eezerz ..
      https://3dwarehouse.sketchup.com/model/a21b8057221c0f0141469a68ac888def/Oldsmobile-Wagon-Lowrider
      1980s Pontiac LeMans by Coyote56
      https://3dwarehouse.sketchup.com/model/86adce0cf5a214e21c2639aea037fbfc/1979-Pontiac-Lemans-Lowrider
      Chevrolet Square Body Blazer by Muhammed A.
      https://3dwarehouse.sketchup.com/model/9a537a2e6f8ced4463739f01ec1d22b0/chevy-blazer-lowrider
      Dodge Diplomat by eezerz ..
      https://3dwarehouse.sketchup.com/model/59fa7def1077fc1b2bf11e36619ee78e/DODGE-DIPLOMAT-LOWRIDER
      Dodge Monaco by Coyote56
      https://3dwarehouse.sketchup.com/model/d2de6d23a52106b1c2639aea037fbfc/1974-Dodge-Monaco-Lowrider
    • By Bullet Filter
      Hello!
      Although I have an odd feeling that no one will reply or bother to look at this thread, I would like to notify everyone that I am starting up a semi-serious simcity private region on Europe West 1. If you wish to join then add my origin: BulletFilter
      If you have any questions feel free to ask them with a simple reply.
      Thank you for taking the time to view this
      3/7 CITIES CURRENTLY IN USE
    • By tony56a1
      Hi all,

      Just wanted to share a mod that I released a few days back. Basically, it allows you to place props in your assets/in-game that doesn't count towards the global prop limits. I'd be really interested in getting some building asset makers to try it out( to get around the 64 prop limit ), and get some feedback/bug reports to help me try to improve the mod/fix bugs in the mod!

      To use this mod, basically hold shift when placing your prop, and it'll create a prop that doesn't count toward the global limit.
      For building makers, when you save the asset, you'll also get a PropUnlimiter.json file. That should be copied into the workshop asset folder, and buildings in-game should be recognized by the mod in-game.
    • By RandyE
      Transfer here from one route to another. Transit and network enabled.
       ___           _                 
      | _ )_  _ ___ | |   ___  ___ _ __
      | _ \ || (_-< | |__/ _ \/ _ \ '_ \
      |___/\_,_/__/ |____\___/\___/ .__/
                                  |_|  
      City Bus Loop 1 - 3x2. 
      Capacity: 2500.
      Medium Wealth
      Plop Cost: 350
      Monthly Cost: 150
      Landmark Effect: 10,5
      Park Effect: 5, 5
      Air Pollution: 3, 2
      Water Pollution, 2, 2
      Maxis Night Lighting
      Dependencies:
      Bus props used from: Glenni-buspack-
      RATP_Microbus-1
      RATP_Scania-Vest-HSD
      ORION-Old-MTAbus
      ORION-Old-MTAbusLongIsl
      Orion_VII_SacramentalRegionalTransit

      INSTALL to folder:
      C:\Users\<Username>\Documents\SimCity 4\Plugins
    • By vladsch
      Hello there! I hope someone can help me with this one.
      I'm trying to edit some streetlights with the Assets Editor and they all seem to load properly to the point I can select them, but when they have to be imported, nothing shows up, the "select a model to import" is empty, even though the same model has just been selected!
      I checked for other kind of items (buildings, parks) and there are no issues, only with the props, and this happens to absolutely all of them!


  • Recently Browsing   0 members

    No registered users viewing this page.