Answer the question
In order to leave comments, you need to log in
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
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 ..
malsup.com/jquery/form/#ajaxSubmit
Or just send a request via ajax.
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('Ошибка!'); // запуститься при ошибке
}
});
}
Through AJAX, like jQuery:
$(document).on('submit', 'form', function(){
$.post($(this).attr('action'), $(this).serialize(), function(data){ alert(data); }); // в data ответ сервера, сюда и вывести сообщение об успешной отправке или ошибке
});
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>
<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>
<?
if($_GET['name'] && $_GET['phone']){
// что-то делаем: базу заносим, смс-ку отправляем себе итп
exit('
<script>
alert("Принято");
</script>
');
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question