[4.1] Music & SFX not importing? This may be why.

Post Reply
AndyS27
Posts: 10
Joined: Mon Sep 03, 2018 5:57 pm
Location: Los Angeles
Contact:

[4.1] Music & SFX not importing? This may be why.

Post by AndyS27 » Tue Mar 05, 2019 8:22 pm

An error occured while importing Sounds
Value cannot be null.
Parameter name: s
Hey everyone. Are you sick and tired of seeing this little error screen when trying to import a FamiTracker text file into your game? I'm a newbie when it comes to all other aspects of NES Maker, but I'm extremely experienced with FamiTracker -- and I'm pretty sure I've figured out what causes that blasted error.

BASICALLY you don't want any unused patterns of music included in your FamiTracker songs. Here's what I figured out --

Let's say I've written some music and put them in the following patterns: 00, 01, 02, and 03. They all contain note data and they sound great. Awesome!

Now let's say my frames look something like this:

------------Pattern
Frame 00: 00,00,00,00,00
--------01: 01,00,00,00,00
--------02: 03,01,01,03,00
--------03: 01,01,01,00,00
--------04: 03,03,03,03,00

...I hit play, and I like how the song sounds, so I decide to export it as a text file and import it to NES Maker.

This won't work, and here's why:

Notice how I never used the 02 pattern in any of the 5 frames in the song? NESMaker doesn't like that!!

If you have a pattern like "02" in the example which you never play in any of your frames, NESMaker won't import the text file!


I found this out after doing a lot of testing. Before figuring this out, the best advice I had heard was that NES Maker was just really finicky when importing music -- but I think this is the cause of most of the problems. It causes a lot of headaches trying to fix this AFTER writing your music, so just keep this in mind. Only put music in patterns you plan on using! If you have an unused pattern (02), but you DO use pattern 03, then copy all of the data from 03, put it into 02, and switch to using 02 instead of 03 in your frames. Then just delete everything in the 03 pattern.

This SHOULD solve the importing problem.

Keep it mind, it also seems to cause problems if you use a frame that's completely blank/has no note data in it. It seems to return the same error as before. If you want to include a frame with blank patterns in it, just put a note break in one of the patterns used.

Hope that saves y'all some headaches! This is my first time trying to share some info on the forums -- like I said, I'm not an expert in NES Maker by any means, but I've got a lot of experience with FamiTracker. If anyone has questions, let me know and I'll try to answer them! Keep in mind I might need to see the actual note data in the text file. :)

Happy composing!
User avatar
mongolianmisfit
Posts: 35
Joined: Tue Feb 19, 2019 4:40 am

Re: [4.1] Music & SFX not importing? This may be why.

Post by mongolianmisfit » Tue Mar 19, 2019 4:24 am

I have spent almost an entire day now trying to import my txt file. I keep getting value of null.
If possible, could I have you look at the ftm file for what is preventing me from importing? I'm just about defeated.

https://drive.google.com/file/d/1YItwdG ... sp=sharing
User avatar
TakuikaNinja
Posts: 81
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

Re: [4.1] Music & SFX not importing? This may be why.

Post by TakuikaNinja » Tue Mar 19, 2019 5:20 am

mongolianmisfit wrote:
Tue Mar 19, 2019 4:24 am
I have spent almost an entire day now trying to import my txt file. I keep getting value of null.
If possible, could I have you look at the ftm file for what is preventing me from importing? I'm just about defeated.

https://drive.google.com/file/d/1YItwdG ... sp=sharing
You're using DPCM samples in your project; NESMaker doesn't support that yet. You can't use a tempo other than 150 either (speed setting is fine).
Also, the effects and volume columns will be ignored when importing the txt file in NESMaker. Too bad the music is really good :(
You can check out more limitations regarding sound in these topics: http://nesmakers.com/viewtopic.php?f=39&t=2071 | http://nesmakers.com/viewtopic.php?f=4&t=219
Once you've fixed the music, I recommend you use ggsound's converter: http://nesmakers.com/viewtopic.php?f=39&t=1919
(Good luck fixing it...)
EDIT: Did you even read the first post of this topic? You seem to have unused patterns in some of your songs...(e.g. not using patterns 0-4 in Windy Hills)
User avatar
mongolianmisfit
Posts: 35
Joined: Tue Feb 19, 2019 4:40 am

Re: [4.1] Music & SFX not importing? This may be why.

Post by mongolianmisfit » Tue Mar 19, 2019 7:35 am

Glad you like the music, TakuikaNinja. Now if I can just manage to fix it for NESMaker and get it in my game. lol
Also, it's just been a hella frustrating couple of days with no sleep, hence why I missed unused patterns that I thought I addressed already in previous versions (maybe I did and just didn't re-save properly). Hopefully fixing this won't pose much more of an issue than the time it takes to copy and paste patterns.

-I was able to drop my DPCM samples, put the tempo on all songs at 150 and adjusted speed.
-I'm not so worried about the effects and volume columns being lost, so long as they don't result in an error on import?

Also, what are the benefits of the sound converter, just a closer 1:1 import?

Thanks btw!
User avatar
TakuikaNinja
Posts: 81
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

Re: [4.1] Music & SFX not importing? This may be why.

Post by TakuikaNinja » Tue Mar 19, 2019 7:51 am

mongolianmisfit wrote:
Tue Mar 19, 2019 7:35 am

Also, what are the benefits of the sound converter, just a closer 1:1 import?
Yeah, a closer 1:1 import is the main reason to use the sound converter, especially if you're using "fixed" arpeggios in your instruments.
Good luck with your music and game!
User avatar
mongolianmisfit
Posts: 35
Joined: Tue Feb 19, 2019 4:40 am

Re: [4.1] Music & SFX not importing? This may be why.

Post by mongolianmisfit » Wed Mar 20, 2019 7:21 pm

Well, I spent the last two days salvaging, and in some cases, reworking the soundtrack. After a $%#& ton of frustration, it works!! :D
In case you're curious how it turned out (the tracks Boss Fight & Windy Hills needed a butt load of revamping): https://drive.google.com/file/d/1e9k1FR ... sp=sharing
User avatar
TakuikaNinja
Posts: 81
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

Re: [4.1] Music & SFX not importing? This may be why.

Post by TakuikaNinja » Wed Mar 20, 2019 10:01 pm

mongolianmisfit wrote:
Wed Mar 20, 2019 7:21 pm
Well, I spent the last two days salvaging, and in some cases, reworking the soundtrack. After a $%#& ton of frustration, it works!! :D
In case you're curious how it turned out (the tracks Boss Fight & Windy Hills needed a butt load of revamping): https://drive.google.com/file/d/1e9k1FR ... sp=sharing
Glad you got it working. Good luck with your game :)
User avatar
mouse spirit
Posts: 13
Joined: Tue May 12, 2020 1:13 am
Location: Ohio
Contact:

Re: [4.1] Music & SFX not importing? This may be why.

Post by mouse spirit » Sun May 24, 2020 2:09 am

Just to add to this,incase someone didn't mention it.I'm not sure if this is what you were saying to begin with,but i fixed my songs by always using 00 frames first and by not leaving frames other than 00s blank if you actually use them in your song.It could be a different type of error,or i could be incorrect,or half right.Anyway,this post helped me so thank you.
I am game, hear me blip.
Post Reply