# Need Help with Karting Microgame Tutorial

**URL:** <https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000>\
**Category:** FMOD Studio\
**Created:** [July 23, 2020, 3:33pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000 "2020-07-23T15:33:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skritsarn](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Skritsarn](https://qa.fmod.com/u/Skritsarn)\
**Post date:** [July 23, 2020, 3:33pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/1 "2020-07-23T15:33:20Z")

</div>

I’m just starting to explore FMOD so i’m currently working through the “Karting Microgame” tutorial here on the FMOD website. I have 0 experience with code so i’m pretty confused with a few of the steps where i’m supposed to delete lines in the code.

Step 42 of the tutorial says to "Delete all of the calls to `PlaySound`", which is what i’ve tried to do, but i now have the error “Assets\Karting\Scripts\UI\ObjectiveToast.cs(171,6): error CS1513: } expected” and it seems i can’t press play until i’ve fixed the error.

Does anyone know exactly what lines of code i’m supposed to delete here? I have no idea what “calls” and some other coding words mentioned in the tutorial mean and i’m having trouble finding answers from google. I’m also unsure about steps 29, 34 and 38.

Sorry for the extremely noobish question but as i said i have pretty much no clue when it comes to coding.

Here’s the link to the tutorial: [https://www.fmod.com/unity-integrate#:~:text=to%20PlaySound](https://www.fmod.com/unity-integrate#:~:text=to%20PlaySound)

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [July 28, 2020, 5:16am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/2 "2020-07-28T05:16:10Z")

</div>

Calls is a programming term for “starting a function”. When step 42 states to delete all of the calls to PlaySound, it means to delete any command calling the `PlaySound()` function. From the error it looks like what you have deleted has caused either a semi colon to also disappear or something similar. Are you able to post all the code in `ObjectiveToast.cs` for us to take a look?

---

<div class="post-metadata">

**Author:** ![vitekkral](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vitekkral](https://qa.fmod.com/u/vitekkral)\
**Post date:** [October 27, 2020, 9:22am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/3 "2020-10-27T09:22:36Z")

</div>

I have the very same issue. I work with sound and even though I know some programming basics I was not able to pass steps 26-42 correctly. All I get are errors in console. Is there a way how to actually download correctly modified files? Thank you!

---

<div class="post-metadata">

**Author:** ![vitekkral](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vitekkral](https://qa.fmod.com/u/vitekkral)\
**Post date:** [October 27, 2020, 10:14am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/4 "2020-10-27T10:14:14Z")

</div>

This is waht I get:

Error: Component of type FeedbackFlashHUD on GameObject GameHUD expected to find an object of type UnityEngine.AudioSource in the scene, but none were found.  
UnityEngine.Debug:LogError(Object)  
DebugUtility:HandleErrorIfNullFindObject(Object, Component) (at /private/var/folders/bp/2qfw5p597mx4d\_g333cb1g080000gn/T/33809f04b402b4f8b839893e96029bcf/Assets/Karting/Scripts/Utilities/DebugUtility.cs:20)  
FeedbackFlashHUD:Start() (at /private/var/folders/bp/2qfw5p597mx4d\_g333cb1g080000gn/T/33809f04b402b4f8b839893e96029bcf/Assets/Karting/Scripts/UI/FeedbackFlashHUD.cs:40)

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [November 4, 2020, 3:41am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/6 "2020-11-04T03:41:05Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/a520eedecd7cd0ccf543f525d57d32c3519cc80b.png)

It looks like you may be talking about the expected errors that are part of the tutorial - see the grey box.

---

<div class="post-metadata">

**Author:** ![aleks\_o](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@aleks\_o](https://qa.fmod.com/u/aleks_o)\
**Post date:** [November 16, 2020, 8:51pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/7 "2020-11-16T20:51:11Z")

</div>

Hey Skritsarn did you finally manage to sort this out? I’m having the exact same problem!

Aleks

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [November 17, 2020, 5:34am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/8 "2020-11-17T05:34:18Z")

</div>

Have you tried the steps 26+ as mentioned in the tutorial above?

---

<div class="post-metadata">

**Author:** ![aleks\_o](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@aleks\_o](https://qa.fmod.com/u/aleks_o)\
**Post date:** [November 17, 2020, 11:54am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/9 "2020-11-17T11:54:55Z")

</div>

Hey Richard,

Yup I’ve been following the tutorial - for me personally it’s step 42 which seems to be the problem, everyone seems to have a different answer for this! But then as a result after trying all sorts of variations, it made me start to question whether I did step 38 right as well? Although step 38 seems a little more straight forward.

29 and 34 are obviously completely clear as they instruct you to simply delete the lines which contain the specific words.

This is an absolutely mind boggling beginners tutorial! If anyone has actually completed this I will send you a packet of hob knobs in the post if you can help guide me through 42?! 😃

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [November 24, 2020, 12:50am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/10 "2020-11-24T00:50:34Z")

</div>

Step 42 says "Delete all of the calls to `PlaySound`. This means you’re going to look through your entire project and delete anything that makes a call to `PlaySound()`. Open up Visual Studio and press Ctrl+F. In the find dialog type “PlaySound” and ensure it is looking through the entire solution. Delete the whole line wherever you find the PlaySound function being called.

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/dc44be22923f7e0f6f1320c45709dc0c2e86843b.png)

Currently FMOD can only accept chocolate Hobnobs as company policy.

---

<div class="post-metadata">

**Author:** ![aleks\_o](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@aleks\_o](https://qa.fmod.com/u/aleks_o)\
**Post date:** [November 28, 2020, 8:41am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/11 "2020-11-28T08:41:31Z")

</div>

Thanks Richard! I’ll try have a look at this, this weekend and let you know if it works.

Carrier pigeons are on their way with chocolate Hobnobs.

---

<div class="post-metadata">

**Author:** ![Seamo](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Seamo](https://qa.fmod.com/u/Seamo)\
**Post date:** [January 15, 2021, 10:59pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/12 "2021-01-15T22:59:13Z")

</div>

I’m also having the exact same problem on the same tutorial step. My error occurs on Step #38 as well. Where I’m supposed to “Delete the contents of the `CreateSFX` function.” within the AudioUtility Script. Once I delete the script lines 17-30, which looks to be the entirety of the CreatSFX Function, I can no longer Play the game and get Compiler errors.

For reference I’m on MacOSCatalina using a newly downloaded Unity 2019.4.17f1 version.

I even consulted my coder friend and he simply recommend typing “//” at the beginning of each line instead of deleting and even instructed me to do that for the same 17-30 script lines, which is the whole function he says. Still the same issue, won’t play and has Compiler issues.

I have gotten as far as tutorial set #42 as well, in the ObjectiveToast, but the same issue is present when deleting or “//” any of the PlaySound lines.

Here’s a screen shot of the function lines I typed “//”. I also deleted those same lines with the same Compiler issues FYI.:

 ![Screen Shot 2021-01-15 at 3.57.14 PM](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/19ba1a2c404c6551ff6859e0f4f637a55f939bae.png)

Can I simply skip these Utility and ObjectiveToast steps so I can proceed to the parts that actual deal with Fmod and creating audio???

Thanks!

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [January 21, 2021, 12:21am UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/13 "2021-01-21T00:21:47Z")

</div>

Typing `//` in C# tells the compiler “ignore everything on this line after this point”. What has happened in your screenshot is that you have told the compiler to ignore the function declaration (the `public static void CreateSFX()` part) but not everything after in the curly braces. Since it does not have the function declared beforehand, the compiler does not know what to do with the curly braces, and that’s why the errors are appearing.

Step 18 calls for you to delete the _contents_ of the function. You would need to put `//` at the beginning of every line between 19-29 in order to ignore (ie. soft delete) the CreateSFX function. What this does is makes sure any place `CreateSFX()` is called nothing happens. This saves time going through all of the project deleting anywhere this function touches.

---

<div class="post-metadata">

**Author:** ![0bi0n333](https://avatars.discourse-cdn.com/v4/letter/0/cab0a1/32.png) [@0bi0n333](https://qa.fmod.com/u/0bi0n333)\
**Post date:** [April 6, 2021, 4:02pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/14 "2021-04-06T16:02:44Z")

</div>

I am also having quite a bit of trouble doing this tutorial. The steps are a little unclear and could be made clearer with some screenshots!

I’m finding that no matter which way I remove stuff, I always end up with errors I cannot correct. Even from the first script editing: “9. Delete all the lines that contain m\_audioSource.”

 ![Screenshot 2021-04-06 at 17.00.41](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/4b2acf82b0dd0c65fc462fc1760150b34fe06fef.png)

---

<div class="post-metadata">

**Author:** ![0bi0n333](https://avatars.discourse-cdn.com/v4/letter/0/cab0a1/32.png) [@0bi0n333](https://qa.fmod.com/u/0bi0n333)\
**Post date:** [April 6, 2021, 4:47pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/15 "2021-04-06T16:47:05Z")

</div>

I have somehow done it, literally 40mins after spending a good part of a day and posting on the forum here.

Thanks for taking the time to try explain the process to the non-coders! I think any additional screenshots always help, for future reference.

---

<div class="post-metadata">

**Author:** ![simoesnm](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simoesnm](https://qa.fmod.com/u/simoesnm)\
**Post date:** [April 30, 2021, 2:46pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/16 "2021-04-30T14:46:03Z")

</div>

Does anyone know where to get the original code so I can fix it again? At this point, I can’t go back, and altough i cleared everything that says CreateSFX, its still saying there is an error

---

<div class="post-metadata">

**Author:** ![simoesnm](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simoesnm](https://qa.fmod.com/u/simoesnm)\
**Post date:** [April 30, 2021, 2:47pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/17 "2021-04-30T14:47:13Z")

</div>

Everytime I clear an error from previous steps, the one after appears. With screenshots showing, it would be much easier

---

<div class="post-metadata">

**Author:** ![simoesnm](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simoesnm](https://qa.fmod.com/u/simoesnm)\
**Post date:** [April 30, 2021, 2:55pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/18 "2021-04-30T14:55:04Z")

</div>

Can you somehow post the correct scripts here please? i know it been a month but, if you have them I would appreciate it

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [May 1, 2021, 7:51pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/19 "2021-05-01T19:51:38Z")

</div>

> [@simoesnm](#):
>
> With screenshots showing, it would be much easier

With screenshots of your error, it would be much easier to help.  
The AudioUtility.cs should look like this:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/c995dd36b9a7896212611c0340d719b742c8a529.png)

If you made too many mistakes, you could always reload the Karting Tutorial from Unity hub and either retrieve some files original code, or restart from scratch.

---

<div class="post-metadata">

**Author:** ![simoesnm](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simoesnm](https://qa.fmod.com/u/simoesnm)\
**Post date:** [May 1, 2021, 8:08pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/20 "2021-05-01T20:08:26Z")

</div>

Yeah, I couldnt reload it but I restarted it all over again, thank you anyway. Sorry if I seem rude, I was a bit made

---

<div class="post-metadata">

**Author:** ![duncanmurray](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@duncanmurray](https://qa.fmod.com/u/duncanmurray)\
**Post date:** [June 30, 2021, 6:44pm UTC](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000/21 "2021-06-30T18:44:05Z")

</div>

Hate to revive an old thread, but I’m having a little bit of trouble with the ObjectiveToast PlaySound calls (Step 22 of the current version of the tutorial).  
I soft deleted // every line with PlaySound in it (Lines 87, 117, 175), and I’m now getting a series of errors related to the script.

 ![Screen Shot 2021-06-30 at 11.41.08 AM](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/d1f69fe71dff8090c101dab8f9bbde7b09d99982.png)

[Next page](https://qa.fmod.com/t/need-help-with-karting-microgame-tutorial/16000.md?page=2)
