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 ... 23 24 [25] 26 27 ... 706

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

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #360 on: March 29, 2013, 10:35:10 AM »

Hmm. Try spawning EMP arcs with the API, I suppose - that's about as close as you can get.

Was it really necessary to post this here and send me a PM with the same exact thing? :)
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #361 on: March 29, 2013, 11:03:47 AM »

I didn't know if it was possible, so if it wasn't, you could make a note :P

I would rather if it was just a case of "mini laser A begin point A" in the weapons file, with an offset as the start and a "Mini laser A end point A" desired length and rotation

Would "somehow" make it a lot easier for this sorta thing :D
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #362 on: March 29, 2013, 06:32:45 PM »

You'll need to create a complex animation for the firing while you "Spam" the emps from the side, another great way would be to make the emp arc range very small and fast in the point where it will fire the beam to make it look like "IMMA FIRING MAH LAZOR"
Logged

Doom101

  • Admiral
  • *****
  • Posts: 641
  • Doom will always find you.
    • View Profile
    • Youtube channel
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #363 on: March 29, 2013, 10:10:20 PM »

here's a question, how would i go about adding in music to the game? i dug through the files in the core, to try and learn like i did with ships and such but i got nothing. anyone willing to lend a hand?
Logged
When you can't go on, just accept your doom. It comes to all, it is inevitable.

Also I totally had the name BEFORE the cruiser.

PCCL

  • Admiral
  • *****
  • Posts: 2016
  • still gunnyfreak
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #364 on: March 30, 2013, 01:46:11 AM »

on data/config/sounds:

Quote
   "music":{
      # "source" can also be a directory
      "music_campaign":[
         {"file":"StianStark-Starfarer-Exploration_Alpha.ogg","source":"sounds/music/music.bin"}
      ],
      "music_title":[
         {"file":"StianStark-Starfarer-Exploration_Alpha.ogg","source":"sounds/music/music.bin"}
      ],
      "music_combat":[
         {"file":"battle_ambience_01_v02_loudest.ogg","source":"sounds/music/music.bin"}
      ],
   },
   

on data/sounds/music you can find the bin file it's referring to
Logged
mmm.... tartiflette

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #365 on: April 01, 2013, 03:35:16 PM »

Being the baddie I am at java, anyone know how to make a fleet spawn only once in the gen file?

      
Code
for (int i = 1; i == 1; i--)U1spawn.spawnFleet();
   

is my latest attempt but i have no idea what i'm doing anymore,
 
I've tried the line as this by itself

      
Code
U1spawn.spawnFleet();	
but it'll spew ships continuously just as if it was in a for loop above.
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #366 on: April 01, 2013, 03:39:35 PM »

Being the baddie I am at java, anyone know how to make a fleet spawn only once in the gen file?

      
Code
for (int i = 1; i == 1; i--)U1spawn.spawnFleet();
   

is my latest attempt but i have no idea what i'm doing anymore,
 
I've tried the line as this by itself

      
Code
U1spawn.spawnFleet();	
but it'll spew ships continuously just as if it was in a for loop above.

Why not a if i =! 1:

Spawnfleet
I++
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #367 on: April 01, 2013, 03:42:19 PM »

It'll just readd the ships once you defeat them on the map since i think it sets i = 0 when there's none on the  map
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #368 on: April 01, 2013, 03:55:07 PM »

It'll just readd the ships once you defeat them on the map since i think it sets i = 0 when there's none on the  map

Hmmm, message lazy wizard
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #369 on: April 01, 2013, 05:07:08 PM »

Is there a way to deny certain events from happening in the "battle" engine, for example, weapons cant be deactivated or overloading, this is mainly to do with Star Control mod, theres no such mechanic in that game, i intent to do the same with the mod

2nd Question, mainly directed to ze verylazywizard, on your work with the black hole, im trying to make the special weapon for the Avatar, that using energy (flux) you can pull ships to your ship, without using a beam and limited to one target (probably this part is not doable) and only enemy targets. I know by increasing the radius you set on the weapon u made i can make it, the problem is, to affect only enemy ships

3rd Question, how can i change the stats of the Asteroids, so it has 1 hp and 1 armor to avoid doing catastrophic damage to ships and still get one-shot by point-defense lasers
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #370 on: April 01, 2013, 07:28:04 PM »

Is there a way to deny certain events from happening in the "battle" engine, for example, weapons cant be deactivated or overloading, this is mainly to do with Star Control mod, theres no such mechanic in that game, i intent to do the same with the mod

Make the weapon slot hidden or decorative to make it not damageable. As far as overloading, you could have a script run every frame and call FluxTrackerAPI.stopOverload(), but that wouldn't work so well with shields - it'd make the ship more or less invulnerable.

3rd Question, how can i change the stats of the Asteroids, so it has 1 hp and 1 armor to avoid doing catastrophic damage to ships and still get one-shot by point-defense lasers

Can't.
Logged

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #371 on: April 02, 2013, 07:22:40 AM »

Alright, i guess ill have to make asteroids reaaaaaaaly rare to avoid unwanted "ramming", also anyone managed to have 2 drones deploying at the same time from 2 different directions? This is for the Dreadnought, it deployed a pair of fighters at the same time?
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #372 on: April 02, 2013, 08:18:52 AM »

I have a problem, i made two sounds for "outOfUsesSound" for a new shipsystem.
Only problem is it isnt working, no error message or anything just no sound at all. what am i missing?

Code
	"thule_hgno":{"sounds":[
{"file":"sounds/TL/fx/systems/thule_hgno01.ogg","pitch":1,"volume":0.75},
{"file":"sounds/TL/fx/systems/thule_hgno02.ogg","pitch":1,"volume":0.75},
]},
Logged

phyrex

  • Admiral
  • *****
  • Posts: 751
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #373 on: April 02, 2013, 09:46:09 AM »

I have a problem, i made two sounds for "outOfUsesSound" for a new shipsystem.
Only problem is it isnt working, no error message or anything just no sound at all. what am i missing?

Code
	"thule_hgno":{"sounds":[
{"file":"sounds/TL/fx/systems/thule_hgno01.ogg","pitch":1,"volume":0.75},
{"file":"sounds/TL/fx/systems/thule_hgno02.ogg","pitch":1,"volume":0.75},
]},

im not sure i should even try helping you due to my lack of experience but why add the extra {"sounds": ? and not just directly write

Code
{"thule_hgno":[
           {"file":"sounds/TL/fx/systems/thule_hgno01.ogg","pitch":1,"volume":0.75},
           {"file":"sounds/TL/fx/systems/thule_hgno02.ogg","pitch":1,"volume":0.75},
           ],
}

also, im just comparing to vanilla code but your } was in front of the comma instead of behind on the very last line

im not sure im qualified but i wrote this while comparing it to the vanilla coding

Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #374 on: April 02, 2013, 10:12:06 AM »

@Thule: that looks right to me. Can you make sure that the sounds actually play in-game if you use them elsewhere? (i.e. point one of the weapons to use "thule_hgno" as the firing sound - just to make sure they actually play.) Conversely, you could try pointing your new "thule_hgno" sound to existing oggs that are known to work.

What I'm getting at is there's a possibility that something about the ogg doesn't work with the game. Are the sounds super short, btw? IIRC there was some issue with loading really, really small oggs, and I don't remember if it was fixed or not.
Logged
Pages: 1 ... 23 24 [25] 26 27 ... 706