Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: 1 [2]

Author Topic: [0.98a] Music Switcher - V1.4 - 07/04/25  (Read 22292 times)

Tyrak

  • Ensign
  • *
  • Posts: 6
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #15 on: June 07, 2024, 05:02:20 AM »

This looks extremely neat! Gonna give it a whirl, thank you.  ;D
Logged

Dev2150

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #16 on: September 08, 2024, 04:45:39 AM »

1. When I play with mods that have factions, the encounter music plays on top of the campaign/space music

2. I know there is core and non-core space music.
Is there a way to play a different space music for every faction? I have played 17y ago Freelancer and I like how faction music gives space personality.
Logged

Remedy

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #17 on: January 13, 2025, 08:42:09 AM »

Game loads just fine but no music plays at all. Not even vanilla. Is there a certain amount of time that the tracks can be? I've done exactly how it says in the explanation.
Logged

Gantradies

  • Ensign
  • *
  • Posts: 39
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #18 on: February 17, 2025, 06:29:04 PM »

it seems to semi-randomly break,
and knocks out all vanilla music until a restart-
uncertain if its a conflict or something else, will provide logs next time
Logged

Gantradies

  • Ensign
  • *
  • Posts: 39
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #19 on: February 19, 2025, 07:34:51 PM »

had a music problem outright crash my game twice today-
here:
https://pastebin.com/PzyaPTwK
Logged

Emanon6

  • Ensign
  • *
  • Posts: 22
  • Read more Liu Cixin
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #20 on: February 23, 2025, 12:42:43 AM »

had a music problem outright crash my game twice today-
here:
https://pastebin.com/PzyaPTwK

Looks like a conflict with something else that modifies player faction’s music (when visiting a market)
Unfortunately, my code in its current form can’t automatically detect and avoid conflict with mods that modify the same thing, and neither can the other mod it seems, whichever one you had installed.

I might update a version to do that in the future but can't guarantee when.
Try setting the player music to vanilla for now. If that doesn’t work, then one of the mods would have to be disabled
Logged

Emanon6

  • Ensign
  • *
  • Posts: 22
  • Read more Liu Cixin
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #21 on: February 26, 2025, 04:07:44 AM »

Game loads just fine but no music plays at all. Not even vanilla. Is there a certain amount of time that the tracks can be? I've done exactly how it says in the explanation.

The custom music has to be .ogg format, which is what the game supports. You could try to rule out the problem by replacing one of the certainly working existing music (for example, menu music) with your track, if that doesn't work, its a problem with the track.

The mod doesn't limit music file size, the game doesn't either afaik, but it is generally not advisable to stuff hour-long giant files into your RAM, things could break.
Logged

Gantradies

  • Ensign
  • *
  • Posts: 39
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #22 on: March 01, 2025, 04:57:46 PM »

on the, subject of the first issue i have,
is there a console command or the like that could be used for a forced restart/to force the game to check if something should be playing?
you were right- it was a conflict causing the crashes, but i still have -all- music just die sometimes, and im not sure the cause-
im not seeing any errors in the console log when it says its trying to play a track, just, nothing happens
Logged

Seti

  • Ensign
  • *
  • Posts: 45
  • A friendly AI core
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #23 on: March 21, 2025, 12:00:42 PM »

Hi!

I made an armored core 6 music pack for music switcher!
Logged
Can you help me buy some milk?

Emanon6

  • Ensign
  • *
  • Posts: 22
  • Read more Liu Cixin
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #24 on: March 25, 2025, 03:47:53 AM »

on the, subject of the first issue i have,
is there a console command or the like that could be used for a forced restart/to force the game to check if something should be playing?
you were right- it was a conflict causing the crashes, but i still have -all- music just die sometimes, and im not sure the cause-
im not seeing any errors in the console log when it says its trying to play a track, just, nothing happens

The same Pastebin log you provided should have that already:

When the log says "faction id combined into XXX" and a bunch of stuff (without a log number and [Thread-X] number), it's Music Switcher trying to figure out which faction's music to tell the game engine to play, the info here
When the log says "Creating streaming player for music with id XXX" (with a log number and [Thread-X] number), it's the game now trying to play that music.

If you're playing with Mikohime's Java,
https://fractalsoftworks.com/forum/index.php?topic=29320.75
you will have a command prompt window opened automatically to see the log feed in real time.

this code should get the music to restart to help diagnose
Spoiler
runcode Global.getSoundPlayer().restartCurrentMusic()
[close]
Logged

Emanon6

  • Ensign
  • *
  • Posts: 22
  • Read more Liu Cixin
    • View Profile
Re: [0.97a] Music Switcher - V1.2a - 17/05/24
« Reply #25 on: March 25, 2025, 03:56:17 AM »

Hi!

I made an armored core 6 music pack for music switcher!

Neat stuff!

You might want to turn this into a mod of your own to maintain it because, in its current form, it is quite likely that future versions would break compatibility (when either Music Switcher or the game itself updates and changes the music-playing logic)

To do that, you could make a token faction with a specific ".faction" file and a "sounds.json", this would be safer in terms of compatibility to future updates.
Logged

Kazutsu

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.98a] Music Switcher - V1.4 - 07/04/25
« Reply #26 on: May 18, 2025, 04:34:19 AM »

Um not sure if your mod breaks stuff in vanilla abyss but I kept getting crashes from just doing anything there. At first I thought it was Object Analysis which turning off the mod did stop my game from crashing after one round of testing but then I crashed again and decided to turn off this mod as I noticed it crashed right after doing something with music. And yeah I can now do stuff in the abyss again. I was able to fly over into Limbo and create a save there but after crashing and trying to reload that save I kept crashing hence me turning off music switcher I was able to load that save which leads me to believe there's some conflict with vanilla abyss music?

I didn't save the log before relaunching the game again but I did something with music files before this error:

441687 [Thread-8] ERROR com.fs.starfarer.D.return  - Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
   at com.fs.starfarer.D.oOoO.õ00000(Unknown Source)
   at com.fs.starfarer.D.oOoO.class(Unknown Source)
   at com.fs.starfarer.D.return.?00000(Unknown Source)
   at com.fs.starfarer.D.return$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
442188 [Thread-8] ERROR com.fs.starfarer.D.return  - Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
   at com.fs.starfarer.D.oOoO.õ00000(Unknown Source)
   at com.fs.starfarer.D.oOoO.class(Unknown Source)
   at com.fs.starfarer.D.return.?00000(Unknown Source)
   at com.fs.starfarer.D.return$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
442690 [Thread-8] ERROR com.fs.starfarer.D.return  - Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
   at com.fs.starfarer.D.oOoO.õ00000(Unknown Source)
   at com.fs.starfarer.D.oOoO.class(Unknown Source)
   at com.fs.starfarer.D.return.?00000(Unknown Source)
   at com.fs.starfarer.D.return$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
442698 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.b.o00000()" because "this.?00000" is null
   at com.fs.starfarer.D.oOoO.õ00000(Unknown Source)
   at com.fs.starfarer.D.oOoO.o00000(Unknown Source)
   at com.fs.starfarer.D.return.o00000(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
443195 [Thread-8] INFO  sound.O  - Creating streaming player for music with id [campaign_abyssal_system.ogg]
443195 [Thread-8] INFO  sound.H  - Playing music with id [campaign_abyssal_system.ogg]
« Last Edit: May 18, 2025, 04:36:06 AM by Kazutsu »
Logged
Pages: 1 [2]