G
G
GREAT DNG2021-09-18 17:42:49
Unity
GREAT DNG, 2021-09-18 17:42:49

How to fix Unity error (FSBTool ERROR)?

Hello.

I installed Unity 5.5.6f1, but when I add audio files (.mp3, .wav) to the project, I get an error:
Errors during import of AudioClip Assets/Sounds/Sound.mp3:
FSBTool ERROR: Could not find encoder library 'libvorbis.dll', please copy it from the FMOD SDK to the application directory.
FSBTool ERROR: Encoder initialization failed.
FSBTool ERROR: Encoder initialization failed.

UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()


How can I fix this error?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
G
GavriKos, 2021-09-18
@GavriKos

Do what is written in the error - copy the dll from sdk.
Better yet, put a fresh stable unit. Why is everyone so drawn to the old version ..

A
Alexander Borisovich, 2014-09-25
@Alexufo

malsup.com/jquery/form/#ajaxSubmit
Or just send a request via ajax.

E
Evgeniy Samoilenko, 2014-09-25
@samoilenkoevgeniy

An example code for submitting data from a form without reloading.

function send_form(form_id) {
    var form = $('#'+form_id);
    var msg   = form.serialize();
    $.ajax({
        type: 'GET', // для вас гет, может быть и пост и json
        url: '../handlers/hSentEmailCall.php', // Обработчик собственно
        data: msg,
        success: function(data) {
            // запустится при успешном выполнении запроса и в data будет ответ скрипта
        },
        error:  function(){
            alert('Ошибка!'); // запуститься при ошибке
        }
    });

}

P
PaulZi, 2014-09-25
@PaulZi

Through AJAX, like jQuery:

$(document).on('submit', 'form', function(){
  $.post($(this).attr('action'), $(this).serialize(), function(data){ alert(data); }); // в data ответ сервера, сюда и вывести сообщение об успешной отправке или ошибке
});

D
dmitryosipov, 2014-09-25
@dmitryosipov

Use location header

M
Mikhail Alekseev, 2014-09-25
@alexeev

Better through ajax. Plug in jquery and do something like this:

<script src="http://yandex.st/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>	
<form class="myForm">
  <p>Имя: <input name=name></p>
  <p>Телефон: <input name=phone></p>
  <input type=submit value=Отправить>
</form>
<script>
  $(function(){
    $('.myForm').submit(function(e){
      e.preventDefault();
      $.get('myScript.php', {
        name: $(this).find('input[name=name]'),
        phone: $(this).find('input[name=phone]'),
      },
      function(data){
        alert('Принято');
      })
    })
  })
</script>

Well, or without ajax, but with iframe:
index.php
<iframe id="myIframe" style="display: none;"></iframe>	
<form class="myForm" target="myIframe" action="myScript.php">
  <p>Имя: <input name=name></p>
  <p>Телефон: <input name=phone></p>
  <input type=submit value=Отправить>
</form>

myScript.php
<?
  if($_GET['name'] && $_GET['phone']){
    // что-то делаем: базу заносим, смс-ку отправляем себе итп
    exit('
      <script>
        alert("Принято");
      </script>
    ');
  }
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question