Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 ... 24 25 [26] 27 28 ... 710

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

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #375 on: April 02, 2013, 10:41:39 AM »

the sound is working, just bound it to a weapon and it played in game just fine.
To be clear, i wouldn't have to specify the sound "outOfUsesSound" anywhere else besides the .system file right?

And to be clear it should play the moment the system is not active, recharging, or ist it specificly for systems that have lets say three uses per battle and i would have to use another "trigger"?

The sounds itself can be heard here, they are i would say normal in length.

https://soundcloud.com/invaderoz/thule-hgno01

Logged

Alex

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

And to be clear it should play the moment the system is not active, recharging, or ist it specificly for systems that have lets say three uses per battle and i would have to use another "trigger"?

Ah, that might be the problem. The "outOfUsesSound" plays whenever the player tries to use the system but can't because it's out of charges/ammo/whatever.
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #377 on: April 02, 2013, 10:54:47 AM »

The system itself is recharging. So "whatever" means anything system related as long as the system ist not "active". Then it should play, but it doesn't ;(
Logged

Alex

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

Looking at the code: it'll play in response to an failed attempted activation (i.e. not enough ammo or flux), but NOT if it's on cooldown.
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #379 on: April 02, 2013, 03:43:40 PM »

Oh, okay, then the mystery is solved i guess.
Didn't know that. Thanks for the help
Logged

maffo

  • Captain
  • ****
  • Posts: 306
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #380 on: April 03, 2013, 10:53:40 AM »

i am working on my first little step into a basic mod which will hopefully add some ships to the pirate faction. But i ran into an error that i do understand, but i cant find where to fix it:

Quote
229011 [Thread-6] ERROR com.fs.starfarer.combat.D  - org.json.JSONException: Expected a ':' after a key at 6 [character 7 line 1]
org.json.JSONException: Expected a ':' after a key at 6 [character 7 line 1]
   at org.json.JSONTokener.syntaxError(JSONTokener.java:423)
   at org.json.JSONObject.<init>(JSONObject.java:208)
   at org.json.JSONObject.<init>(JSONObject.java:311)
   at com.fs.starfarer.loading.LoadingUtils.void(Unknown Source)
   at com.fs.starfarer.loading.LoadingUtils.Ö00000(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.super(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.Ò00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.Ò00000(Unknown Source)
   at com.fs.starfarer.loading.H.super(Unknown Source)
   at com.fs.A.A.new(Unknown Source)
   at com.fs.starfarer.combat.D.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)

Could anyone help me?
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #381 on: April 04, 2013, 06:32:32 AM »

Syntax error at the point said at the top of that code :)

Question: How does one add a chargeup sound? :)
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 #382 on: April 04, 2013, 06:40:02 AM »

1. is it possible to have a script that would firstly replace the starsector_title_alpha.png and secondly randomize that with every start of starsector another title would appear?

2. The number of burst determines the times a certain sound is played when a weapon is fired, right?
Is it possible to have one fixed sound for a burst of 6 projectiles. This sound would then play only once the weapon is fired.
At the moment i have a premade sound for a burst of 6 and the game is staggering the sound 6 times and that sounds ugly.

1. No. All you can do is replace the image itself, but not dynamically via a script.

2. It's possible (using fireSoundOne - see heavymg.wpn for an example of something that plays a startup sound per burst and then individual sounds per shot). It's probably not a good idea to have all the shot sounds in the same file, though - it could desynced if the fps drops, or the gun could stop firing (due to ship being destroyed, weapon being disabled, flux running out, a vent or phase cloak being initiated, etc), but the full 6 sounds would play anyway.
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #383 on: April 04, 2013, 06:45:12 AM »

Danke! :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)

Sproginator

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

Anyone got a sound file for a heavy gauss rifle charge up lasting 10 seconds
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)

maffo

  • Captain
  • ****
  • Posts: 306
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #386 on: April 04, 2013, 12:19:57 PM »

i know sprog, but which file is it? Am i missing it and does there a shipspec loader existing or is it a other file?EDIT: nvm, found it with the help of lazy.
« Last Edit: April 05, 2013, 08:29:03 AM by maffo »
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #387 on: April 05, 2013, 09:51:42 AM »

The file that is used to do the chargeup sound is declared as FireSoundOne

The gun firing sound is FireSoundTwo
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)

Vinya

  • Captain
  • ****
  • Posts: 379
  • Vulgar at best...
    • View Profile
    • Mykyria Scifi/Zombie writing blog (Old site)
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #388 on: April 07, 2013, 12:27:17 AM »

Trying to load custom missile sound, got this error:
Code
47305 [Thread-6] ERROR com.fs.starfarer.combat.D  - java.lang.RuntimeException: java.io.IOException: Unable to load: sounds/starfighterfx/rocketfire1.ogg
java.lang.RuntimeException: java.io.IOException: Unable to load: sounds/starfighterfx/rocketfire1.ogg
at sound.Sound.<init>(Unknown Source)
at com.fs.starfarer.loading.H.super(Unknown Source)
at com.fs.A.A.new(Unknown Source)
at com.fs.starfarer.combat.D.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Unable to load: sounds/starfighterfx/rocketfire1.ogg
at sound.OoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
... 6 more

Here's what's in sounds.json:
Code
{
"light_rocket_fire":[{"file":"sounds/starfighterfx/rocketfire1.ogg","pitch":1, "volume":0.80}],
}

First time working with sounds, used NeutrinoCorp as a reference for what to do >.>

What do?

Logged
If by "good guys" you mean "elitist regime that suppresses colonial independence and thrives off of an overwhelmingly deep gap in wealth between social classes," then yes.

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #389 on: April 07, 2013, 05:15:50 AM »

Can you send me a copy of the mod as it is? I'll see if I can take a peak, check file structure etc
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)
Pages: 1 ... 24 25 [26] 27 28 ... 710