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)

Pages: 1 ... 348 349 [350] 351 352 ... 706

Author Topic: Misc modding questions that are too minor to warrant their own thread  (Read 1700082 times)

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5235 on: September 28, 2019, 11:29:47 AM »

I removed the fighter tags from my beam because i think it must hit allies too to be balanced, like how the Imperium Titan nuke is only balanced because it has the potential to hurt you more than the enemy

I suppose custom AI for the module is the best way then, i have to remember how i did it last time i tried to replace a ship's AI
Logged
Check out my ships

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5236 on: September 28, 2019, 11:50:59 AM »

Ah, I meant a custom AI for the ship system; you wouldn't need to have it in a separate module then.
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5237 on: September 28, 2019, 01:30:07 PM »

Ah, I meant a custom AI for the ship system; you wouldn't need to have it in a separate module then.
Oh, so as long as the AI of the defensive right click system is custom then it will work? damn i don't believe i didn't try that, gonna test as soon as i finish work.
Logged
Check out my ships

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5238 on: September 28, 2019, 01:41:36 PM »

Yep, it should.
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5239 on: September 28, 2019, 03:40:27 PM »

Yep, it should.
It works! HAHAHAHA!
I overcame the no right click on modular ships glitch HAHAHAHAHA!
STATION DRONES ARE NOT A REAL TOGGLE SO I CAN ACTIVATE AND DEACTIVATE EVEN WITH THE GLITCH HAHAHAHA!
Logged
Check out my ships

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5240 on: September 28, 2019, 05:45:27 PM »

Ah problem! How do i activate the right click system by script? I can't use setPhased(true) and it is not a shield, also useSystem() will use the main ship system not the right click one, and ShipSystemAPI has deactivate(), but not activate()

Also seems like ship.getDeployedDrones() is not getting the drones, i always get null out of it
« Last Edit: September 28, 2019, 06:01:06 PM by Ed »
Logged
Check out my ships

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5241 on: September 28, 2019, 06:11:04 PM »

You'd have to use ship.giveCommand(ShipCommand.TOGGLE_SHIELD_OR_PHASE_CLOAK)

... and, yeah, looks like getDeployedDrones() also assumes its a regular and not right-click system, so you'd need to iterate over all the ships in the engine, and check what their .getAIFlags() has for AIFlags.DRONE_MOTHERSHIP - it should be the mothership for drones.
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5242 on: September 28, 2019, 06:48:29 PM »

You'd have to use ship.giveCommand(ShipCommand.TOGGLE_SHIELD_OR_PHASE_CLOAK)

... and, yeah, looks like getDeployedDrones() also assumes its a regular and not right-click system, so you'd need to iterate over all the ships in the engine, and check what their .getAIFlags() has for AIFlags.DRONE_MOTHERSHIP - it should be the mothership for drones.
Works! Thanks again Alex!
Logged
Check out my ships

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5243 on: September 30, 2019, 11:08:19 AM »

In the ship_data.csv file there are coloms that say "8/6/5/4%" and "range" what do these represent?
« Last Edit: September 30, 2019, 11:12:43 AM by connortron7 »
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5244 on: September 30, 2019, 11:51:11 AM »

In the ship_data.csv file there are coloms that say "8/6/5/4%" and "range" what do these represent?
"8/6/5/4%" is not really used, i don't remember what it does, just leave whatever value in there.
"range" is the fuel range of the ship, in light years, divide "fuel" by "fuel/ly" to get the value, i don't know what happens if you use a different value that doesn't match your fuel and fuel/ly values.
Logged
Check out my ships

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5245 on: September 30, 2019, 11:57:18 AM »

Right - both of these aren't actually used; in the spreadsheet I've got, they're set up to be populated using a formula, so that say I can see at a glance what the "range" of a ship is.

The 8/6/5/4% thing is meant for base flux capacity vs flux dissipation, based on hull size. I.E. a "typical" frigate ought to have its dissipation be 8% of its capacity. Most ships actually don't match this; it's just there as a baseline so for example if a ship's dissipation is better than this then it's either more expensive or is subpar in other areas.
Logged

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5246 on: September 30, 2019, 12:22:01 PM »

Thanks for the info! Didn't wanna mess with something without knowing what they did.

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5247 on: September 30, 2019, 05:37:38 PM »

Question on fireSoundOne on Beams.  It doesn't appear to play when we fire; it's just fireSoundTwo, looped.

Are there special circumstances?  PD Laser has laser_intro as fireSoundOne, PD Burst just has fireSoundOne, PhaseBeam has fireSoundOne commented out.  What are the rules for these?  I used to have cool Laser Intros, but they just don't appear to work now.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5248 on: September 30, 2019, 08:57:50 PM »

fireSoundOne plays when the beam fires initially; after that - if the beam continues to fire - it loops fireSoundTwo. Or, rather, it'll start playing both at the same time, but the volume of fireSoundTwo is modified by the current brightness level of the beam.

You can observe this by firing, say, repeatedly firing the PD Laser.
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #5249 on: September 30, 2019, 11:15:02 PM »

Weird.  Can't hear fireSoundOne at all.  Maybe it needs the volume turned up.
Logged
Please check out my SS projects :)
Xeno's Mod Pack
Pages: 1 ... 348 349 [350] 351 352 ... 706