question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Voice filenames got updated again

See original GitHub issue

New keys for voiceLineKeys in https://github.com/KC3Kai/KC3Kai/blob/master/src/pages/strategy/tabs/mstship/mstship.js:

[604825,607300,613847,615318,624009,631856,635451,637218,640529,643036,652687,658008,662481,669598,675545,685034,687703,696444,702593,703894,711191,714166,720579,728970,738675,740918,743009,747240,750347,759846,764051,770064,773457,779858,786843,790526,799973,803260,808441,816028,825381,827516,832463,837868,843091,852548,858315,867580,875771,879698,882759,885564,888837,896168]

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
gakadacommented, Mar 13, 2016

Don’t know if it helps, but if voice_line_id is known (on a mismatch), then it’s possible to automatically update the keys without going through Core decoding every time

if (getVoiceLineFileName(ship_api_id, voice_line_id) !== filename) {
  var newKey = solveForKey(ship_api_id, filename);
  if (newKey) {
    voiceLineKeys[voice_line_id - 1] = newKey;
  }
}

function solveForKey(ship_api_id, filename) {
  var k = 17 * (ship_api_id + 7), r = filename - 100000;
  for (var i = 0; i < 1000; ++i) { // 17 * (500 + 7) * 10000 / 99173 = 869
    var a = r + i * 99173;
    if (a % k === 0) {
      return a / k;
    }
  }
  // log ship_api_id, filename somewhere
  return undefined;
}
1reaction
dragonjetcommented, Mar 12, 2016

thanks again for finding this out every time 👍

this might become a problem once we start detecting voice numbers for subtitling.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac Message changing audio file names when sending...
I'm dragging the files directly from the Finder onto the Messages window. Again, this behavior has just cropped up—dragging and dropping from ...
Read more >
Names of voice memos wiped after iOS8 upgrade - can I get ...
I double-checked and it looks like all of my voice memos are backed up to my PC via iTunes with the original names...
Read more >
Logic Pro 9 - audio file names changed?
I checked the song again on my main Mac Pro and the names were the correct original file names. The files in the...
Read more >
File NAME vs. File TITLE for audio files - Microsoft Community
I've made some audio recordings on an external device, then copied into iTunes to edit the file info, before moving the recordings elsewhere ......
Read more >
Retrieving orginal sound file names? - The Post Place
Is there any way to get the audio used in the edit to revert back to its original name?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found