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: Weapon sounds?  (Read 4122 times)

Hyph_K31

  • Admiral
  • *****
  • Posts: 1605
  • O' Hear My Name and Tremble! Ug Ug.
    • View Profile
Weapon sounds?
« on: November 04, 2012, 09:45:13 AM »

Simple question; is there a library of all the weapons sounds available? that is so say, where can I find them? I seem to be having trouble with that.

Ah! I've found the relevant folders... but they don't seem to work?
« Last Edit: November 04, 2012, 09:51:48 AM by Hyph_K31 »
Logged

"GEDUNE, stop venting in front of your classmates!"

TheHappyFace

  • Admiral
  • *****
  • Posts: 1168
  • The critic
    • View Profile
Re: Weapon sounds?
« Reply #1 on: November 04, 2012, 10:32:48 AM »

you mean in-game? or are you trying to just play the sound with a sound opening program?
i can just open them up and listen to them using vlc media player.
Logged
Fractalsoftworks limited edition ban hammer.

Hyph_K31

  • Admiral
  • *****
  • Posts: 1605
  • O' Hear My Name and Tremble! Ug Ug.
    • View Profile
Re: Weapon sounds?
« Reply #2 on: November 04, 2012, 11:08:34 AM »

I can listen to them, I just can't seem to use them.
Logged

"GEDUNE, stop venting in front of your classmates!"

ValkyriaL

  • Admiral
  • *****
  • Posts: 2145
  • The Guru of Capital Ships.
    • View Profile
Re: Weapon sounds?
« Reply #3 on: November 04, 2012, 10:29:18 PM »

have a folder structure like this, starfarer/mods/YourfactionID/sounds/fx/guns and place the sound files in here, you cannot change the sound files from their original sound format.

have a config folder in Data with a sounds.json

inside it should look like this.
Quote
{
  "mplasc.ogg":[{"file":"sounds/nephalem/fx/guns/mplasc.ogg","pitch":1,"volume":1.0}],
  "kaefire (3).ogg":[{"file":"sounds/nephalem/fx/guns/kaefire (3).ogg","pitch":1,"volume":1.0}],
  "calfire.ogg":[{"file":"sounds/nephalem/fx/guns/calfire.ogg","pitch":1,"volume":1.0}],
  "kaefire (1).ogg":[{"file":"sounds/nephalem/fx/guns/kaefire (1).ogg","pitch":1,"volume":1.0}],
  "rflfire (1).ogg":[{"file":"sounds/nephalem/fx/guns/rflfire (1).ogg","pitch":1,"volume":0.50}],
  "plloop.ogg":[{"file":"sounds/nephalem/fx/guns/plloop.ogg","pitch":1,"volume":2.0}],
  "ocdown.ogg":[{"file":"sounds/nephalem/fx/guns/ocdown.ogg","pitch":1,"volume":1.0}],
  "hlc (2).ogg":[{"file":"sounds/nephalem/fx/guns/hlc (2).ogg","pitch":1,"volume":1.5}],
  "kiofire (2).ogg":[{"file":"sounds/nephalem/fx/guns/kiofire (2).ogg","pitch":1,"volume":1.0}],

}

and chose the weapon sound from one you have in the sound.json, my own weapon as an example.
Quote
{
   "specClass":"beam",
   "id":"particle_cannon",
   "type":"ENERGY",
   "size":"LARGE",
   "displayArcRadius":1250,
   "turretSprite":"graphics/weapons/particle_cannon_turret_base.png",
   "turretGlowSprite":"graphics/weapons/particle_cannon_turret_glow.png",
   "hardpointSprite":"graphics/weapons/particle_cannon_turret_base.png",
   "hardpointGlowSprite":"graphics/weapons/particle_cannon_turret_glow.png",
   "turretOffsets":[18, 0],
   "turretAngleOffsets":[0],
   "hardpointOffsets":[18, 0],
   "hardpointAngleOffsets":[0],
   "fringeColor":[255,0,255,255],
   "coreColor":[255,255,255,255],
   "glowColor":[255,0,255,255],
   "darkCore":false,
   "width":20.0,
   "textureType":ROUGH,
   #"textureType":["graphics/fx/emp_arcs.png","graphics/fx/emp_arcs.png"],
   "textureScrollSpeed":200.0,
   "pixelsPerTexel":5.0,
   "pierceSet":[PROJECTILE_FF,PROJECTILE_NO_FF,PROJECTILE_FIGHTER,MISSILE_FF,MISSILE_NO_FF],
   #"pierceSet":[PROJECTILE_FF,PROJECTILE_NO_FF,PROJECTILE_FIGHTER,MISSILE_FF,MISSILE_NO_FF,FIGHTER],
   #"collisionClass":HITS_SHIPS_AND_ASTEROIDS,
   #"collisionClassByFighter":HITS_SHIPS_AND_ASTEROIDS,
   "fireSoundOne":"kiofire (2).ogg",
}
Logged

Hyph_K31

  • Admiral
  • *****
  • Posts: 1605
  • O' Hear My Name and Tremble! Ug Ug.
    • View Profile
Re: Weapon sounds?
« Reply #4 on: November 05, 2012, 03:20:49 AM »

Ah, I get it now! Thanks a bunch! :D
Logged

"GEDUNE, stop venting in front of your classmates!"