What application do you use to make your .bin files for musics?
i've been losing my mind trying to find one that isn't long since dead, doesn't work or even supports .bin files
i even just tried opening a .bin file, putting the .ogg files in there and saving but that doesn't work either for starsector
i'm making a hullmod that makes the game play a music during combat but it doesn't work except for playUISound, which won't pause when the game is paused
here's an excerpt of code:
boolean ranOnce = false;
boolean startnext = false;
float fastcounter = 0;
List<Beat> beatList; //timecode, size
@Override
public void advanceInCombat(ShipAPI ship, float amount) {
Global.getLogger(this.getClass()).info("corburn spam");
Global.getSoundPlayer().playSound("system_corrupt_burn_drive_activate", 1f, 1f, ship.getLocation(), ship.getVelocity());
if(Global.getCombatEngine().getTotalElapsedTime(false) < 5f){
return;
}
if(startnext){//runs once, starts at false until ranOnce check ran
Global.setSoundPlayer(Global.getSoundPlayer());
Global.getLogger(this.getClass()).info("cara2");
Global.getSoundPlayer().playSound("caramelldansen", 1f, 1f, ship.getLocation(), ship.getVelocity());
Global.getSoundPlayer().pauseMusic();
startnext = false;
}
if(!ranOnce){//runs once, starts at false
Global.getLogger(this.getClass()).info("cara1");
Global.getSoundPlayer().playSound("caramelldansen", 1f, 1f, ship.getLocation(), ship.getVelocity());
ranOnce = true;
startnext = true;
}
startCounter += amount;
if(isFuntime(startCounter)){
counter += amount;
if(counter>0.4f){
counter -= 0.4f;
Global.getLogger(this.getClass()).info("corrburn loop");
Global.getSoundPlayer().playSound("system_corrupt_burn_drive_activate", 1f, 1f, ship.getLocation(), ship.getVelocity());
ship.getSpriteAPI().setColor(Color.getHSBColor((float) Math.random(), 1f, 1f));
createRipple(ship, 1f);
}
}
for some unknown reason, the game won't play that first everyframe spam, the startnext check nor the ranOnce
but will happily run the "corrburn loop" done every 0.4s (no it's not a clipping issue i think, that sound is like 5s long)
here's what the log looks like (with some excerpts for ease of read
Spoiler
40957 [Thread-9] INFO sound.public - Creating streaming player for music with id [miscallenous_main_menu.ogg]
40958 [Thread-9] INFO sound.OooO - Playing music with id [miscallenous_main_menu.ogg]
61123 [Thread-3] INFO com.juj.hullmods.RaveMod - cara1
61125 [Thread-3] INFO com.juj.hullmods.RaveMod - cara2
62127 [Thread-7] INFO sound.public - Cleaning up music with id [miscallenous_main_menu.ogg]
62478 [Thread-9] INFO sound.public - Creating streaming player for music with id [miscallenous_main_menu.ogg]
62479 [Thread-9] INFO sound.OooO - Playing music with id [miscallenous_main_menu.ogg]
63906 [Thread-3] INFO exerelin.combat.RestoreCommanderPlugin - Fleet data is null, skipping
(...)
63910 [Thread-3] INFO exerelin.combat.RestoreCommanderPlugin - Fleet data is null, skipping
65207 [Thread-7] INFO sound.public - Cleaning up music with id [miscallenous_main_menu.ogg]
65481 [Thread-9] INFO sound.public - Creating streaming player for music with id [battle_ambience_01.ogg]
65482 [Thread-9] INFO sound.OooO - Playing music with id [battle_ambience_01.ogg]
85370 [Thread-3] INFO com.juj.hullmods.RaveMod - corrburn loop
85770 [Thread-3] INFO com.juj.hullmods.RaveMod - corrburn loop
86169 [Thread-3] INFO com.juj.hullmods.RaveMod - corrburn loop
86554 [Thread-3] INFO com.juj.hullmods.RaveMod - corrburn loop
(...)
i thought it was the sound player wanting to get some air at first as the combat starts, so i gave it a 5s delay before starting, but it did precisely nothing extra, it's like the thread waits for the hullmod to play a sound to somehow wipe it off the face of the earth until it decides only the loop is allowed
(it does the same if i swap that other sound with the music)