- Messages
- 10
- Country

I was using version 1.2 to export a .mdl file to a .3ds file, and I kept getting an error which is:
Index and length must refer to a location within the string.
Parameter name: length
StackTrace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at ASToFra.DOSFilenameGenerator.GetDOSFilename(String filepath, String texfilename)
at ASToFra.M3DSWriter.getMaterialLength(Material m)
at ASToFra.M3DSWriter.getEditLength(ObjectModel obj)
at ASToFra.M3DSWriter.getMainLength(ObjectModel obj)
at ASToFra.M3DSWriter.writeHeader(ObjectModel obj)
at ASToFra.M3DSWriter.writeObjectModel(ObjectModel obj)
at ASToFra.M3DSWriter.Write(String fileName, ObjectModel objectModel)
at ASToFra.ObjectWriter.write(String fileName, ObjectModel objectModel, Int32 filterIndex)
at ASToFra.MainWindow.bwExporter_DoWork(Object sender, DoWorkEventArgs e)
I have no idea how/if there is a way to fix it. I then decided to use the development release and I do not get an error, it just exports an empty file. I can't seem to find an answer to these problems anywhere. Does anyone know why I might be getting this error? I'm also using FSX...thought I'd add that info.
Index and length must refer to a location within the string.
Parameter name: length
StackTrace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at ASToFra.DOSFilenameGenerator.GetDOSFilename(String filepath, String texfilename)
at ASToFra.M3DSWriter.getMaterialLength(Material m)
at ASToFra.M3DSWriter.getEditLength(ObjectModel obj)
at ASToFra.M3DSWriter.getMainLength(ObjectModel obj)
at ASToFra.M3DSWriter.writeHeader(ObjectModel obj)
at ASToFra.M3DSWriter.writeObjectModel(ObjectModel obj)
at ASToFra.M3DSWriter.Write(String fileName, ObjectModel objectModel)
at ASToFra.ObjectWriter.write(String fileName, ObjectModel objectModel, Int32 filterIndex)
at ASToFra.MainWindow.bwExporter_DoWork(Object sender, DoWorkEventArgs e)
I have no idea how/if there is a way to fix it. I then decided to use the development release and I do not get an error, it just exports an empty file. I can't seem to find an answer to these problems anywhere. Does anyone know why I might be getting this error? I'm also using FSX...thought I'd add that info.
Last edited:

