# FSBank init problem

**URL:** <https://qa.fmod.com/t/fsbank-init-problem/18817>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [May 30, 2022, 7:35am UTC](https://qa.fmod.com/t/fsbank-init-problem/18817 "2022-05-30T07:35:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CreatorsStudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/creatorsstudio/32/3590_2.png) [@CreatorsStudio](https://qa.fmod.com/u/CreatorsStudio)\
**Post date:** [May 30, 2022, 7:35am UTC](https://qa.fmod.com/t/fsbank-init-problem/18817/1 "2022-05-30T07:35:01Z")

</div>

I thought that my problem was with the fsbank api that i dont know how to use it to generate fsb5 files  
but when i tried to remove the fsbank init function then all the code beneath it worked  
For some reason my fsbank doesnt initialize

I think it is the best way to initialize already

| | const char\* cache = G:/cache; |
| --- | --- |
| | FSBank\_Init(FSBANK\_FSBVERSION\_FSB5, FSBANK\_INIT\_NORMAL, (unsigned int)2, cache); |

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [June 2, 2022, 1:37am UTC](https://qa.fmod.com/t/fsbank-init-problem/18817/2 "2022-06-02T01:37:44Z")

</div>

Linking in this case: [FSBank Conversion of wav to fsb5 problem - #10 by CreatorsStudio](https://qa.fmod.com/t/fsbank-conversion-of-wav-to-fsb5-problem/18803/10)  
This should initialize FSBank correctly- though I’m assuming `const char* cache = G:/cache;` is a formatting error / typo, and it is actually `const char* cache = "G:/cache";`, otherwise it won’t compile at all.  
If it fails, you can investigate by passing the returned `FSBANK_RESULT` of an FSBank API calls into `FSBank_Result_ToString`.
