Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: how do custom engines work?  (Read 1743 times)

medikohl

  • Admiral
  • *****
  • Posts: 854
    • View Profile
how do custom engines work?
« on: August 19, 2012, 04:32:00 PM »

how do custom engines work?

what needs to be added and where?
Logged
"Captain! You can't call our greatest dreadnought 'The Parrot'"
"Watch me"
Spiral Arms: Ship Sprites for Everyone

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: how do custom engines work?
« Reply #1 on: August 19, 2012, 05:58:44 PM »

It Substitute the line on the *.ship

Code
"style": "MIDLINE",
"styleSpec"
With these:
Code
"style": "CUSTOM",
      "styleSpec": {
        "type": "GLOW",
        "engineColor": [
          100,
          30,
          230,
          255
        ],
        "contrailColor": [
          100,
          30,
          230,
          80
        ],
        "contrailParticleSizeMult": 1.0,
        "contrailParticleDuration": 0.25,
        "contrailMaxSpeedMult": 0.075,
        "contrailAngularVelocityMult": 0.0
      },
The "engineColor" and "contrailColor" have a RGB and Alpha colored base;
The contrails allows you to change the proprieties of the engine trail glow depending on the "type"
Logged

medikohl

  • Admiral
  • *****
  • Posts: 854
    • View Profile
Re: how do custom engines work?
« Reply #2 on: August 19, 2012, 06:00:53 PM »

so we can't define a custom graphic for the engine flame?
Logged
"Captain! You can't call our greatest dreadnought 'The Parrot'"
"Watch me"
Spiral Arms: Ship Sprites for Everyone

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: how do custom engines work?
« Reply #3 on: August 19, 2012, 06:28:32 PM »

That, i dont know, probably not, since i havent seen anyone doing it so i guess not...
Logged