• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Not a bug Music Pack Problems

Status
Not open for further replies.

CodeKnight

Trainer
So I'm making a personal music pack, and it was running well, until I adjusted a couple tracks for loop and replaced them. Now I get the following error, even after I deleted them. Any ideas? It WAS working fine.

Code:
Pokémon 3D has crashed!
---------------------------
 
System specifications:
Pokémon 3D version: 0.30
Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Decimal seperator: .
---------------------------
 
Here is further information:
Message: Value does not fall within the expected range.
InnerException: NOTHING
BaseException: Value does not fall within the expected range.
HelpLink: No helplink available.
Data: System.Collections.ListDictionaryInternal
Source: Microsoft.Xna.Framework
TargetSite: Name: .ctor [
  Attributes: PrivateScope, Assembly, HideBySig, SpecialName, RTSpecialName
  CallingConvention: Standard, HasThis
  ContainsGenericParameters: False
  DeclaringType: Microsoft.Xna.Framework.Media.Song
  IsAbstract: False
  IsAssembly: True
  IsConstructor: True
  IsFamily: False
  IsFamilyAndAssembly: False
  IsFamilyOrAssembly: False
  IsFinal: False
  IsGenericMethod: False
  IsGenericMethodDefinition: False
  IsHideBySig: True
  IsPrivate: False
  IsPublic: False
  IsSecurityCritical: True
  IsSecuritySafeCritical: True
  IsSecurityTransparent: False
  IsSpecialName: True
  IsStatic: False
  IsVirtual: False
  MemberType: Constructor
  MetadataToken: 100664702
  MethodHandle: System.RuntimeMethodHandle
  Module: Microsoft.Xna.Framework.dll
  ReflectedType: Microsoft.Xna.Framework.Media.Song
  ]
 
StackTrace:    at Microsoft.Xna.Framework.Media.Song..ctor(String name, String filename, Int32 duration)
  at Microsoft.Xna.Framework.Content.SongReader.Read(ContentReader input, Song existingInstance)
  at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
  at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
  at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
  at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
  at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
  at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
  at _2._5DHero.MusicManager.AddSong(String Name)
  at _2._5DHero.MusicManager.LoadMusic()
  at _2._5DHero.MusicManager.ReloadMusic()
  at _2._5DHero.ContentPackManager.Clear()
  at _2._5DHero.MainMenuScreen.ButtonApplyPacks()
  at _2._5DHero.MainMenuScreen.UpdatePacksMenu()
  at _2._5DHero.MainMenuScreen.Update()
  at _2._5DHero.Basic.Update(GameTime gameTime)
  at _2._5DHero.DGame.Update(GameTime gameTime)
  at Microsoft.Xna.Framework.Game.Tick()
  at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
  at Microsoft.Xna.Framework.GameHost.OnIdle()
  at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
  at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
  at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
  at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  at System.Windows.Forms.Application.Run(Form mainForm)
  at Microsoft.Xna.Framework.WindowsGameHost.Run()
  at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
  at Microsoft.Xna.Framework.Game.Run()
  at _2._5DHero.Program.Main(String[] args)
 
You should report this error.
 
Go to "http://pokemon3d.net/issues/" to report this crash there.
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
First of all, you must have both the XNB & the WMA files in the same folder. Then you have to name them EXACTLY the same as they are called in the music folder. Spellcheck the files, where there is a BIG letter, should be a big letter, and where there are small letters should be small ones.
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
And you are sure you have not missed any music that should be in the game, for example if Komino is missing, it would result in a crash. All music needs to be in the folder.
 

CodeKnight

Trainer
Oh, it needs all of it? I only put in the ones I wanted to change. I'll try that now.

EDIT: Nope, that wasn't it. I put in the missing tracks and the same thing happened.
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
The thing is, that the folder you put in the content pack folder will be using the music/texture whatsoever instead of the ones in the original folders, thus it would not be able to find the music for lavender or whatever you are missing. And that is resulting in the crash.
 

CodeKnight

Trainer
But I tried putting the rest of the music into it, and I'm just getting the same crash. Could there be any other problem?
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
Well, the only problem I could be thinking on is if it is in MP3 or OGG instead of WMA which is the only music formate that P3D can read it in.
 

CodeKnight

Trainer
Nope, they're all WMAs. But I did edit two of them in Sony Vegas and export them as WMA. Could that be anything? Maybe something to do with how it encodes them?
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
Try using this website to convert the ones you used in sony vegas into wma, else I'm fresh out of ideas, perhaps someone more experienced could help you.
 

CodeKnight

Trainer
Nope, didn't work either. But I converted it as "extreme" quality. Would the quality matter? Should I try a lower one?
 

Enethil

Community Support & Suggestions/Feedback Moderator
Donator
Trusted Support
Retired Mod
Not really, I got some extreme qualities & all the others as high. But I've given all the tips I could think of, so I am powerless to help you any further :(
 

CodeKnight

Trainer
Okay, well thanks a ton for all your help anyways. :)

EDIT: Managed to get it working. Still not sure what the problem was, but I just deleted it all and put it back together, minus the edited tracks, and it's working. Maybe I'll mess around and try to get them working another time, but at least the rest works now. :)
 

Daziman

Champion
Trusted Support
Retired Mod
The wma files should not be the problem
Are you creating correctly the xnb files?
Will not work if you change the name of the xnb only. You should create it with the XNA formatter
 

CodeKnight

Trainer
I've got both the WMA and the XNB for all of the songs.
I'm generating the XNBs as "Songs". That's how to do it, right?
I am using the XNA Formatter.
 
Status
Not open for further replies.
Top