Runtime error: SMTD_Loader.ms

Hey there,

unfortunately I got an issue with the Submit To Deadline script for 3ds Max 2012. Last week I installed the submission scripts via the DL Monitor and added the script to my Max quad menu. Everything worked like a charm (submission, Shotgun and Draft). The next day it didn’t work anymore and I can’t fix it. When starting up Max I get the following error message:

– Runtime error: fileIn: can’t open file -
C:\Users\omgraphix\AppData\Local\Autodesk\3dsMax\2012-64bit\enu\scripts\startup\SMTD_Loader.ms

Starting the submission script in the quad menu results in getting these:

Failed To Find the file [RegionManipulator.ms] in Deadline Repository. (error code: 1040)

Failed To Find the file [TileManipulator.ms] in Deadline Repository. (error code: 1042)

Failed To Find the file [SubmitMaxToDeadline_Functions.ms] in Deadline Repository. (error code: 1004)

Then the mscript listener opens SubmitMaxToDeadline.ms and Thinkbox Software-SubmitMaxToDeadline.mcr and throws “-- Unknown property: “getRepositoryList” in undefined”

:question:

I tried reinstalling the scripts via the Monitor several times and looked for the files in AppData but they look good as far as I can tell. The missing files in the repository are confusing me. I can’t find a convincing reason for the files to disappear.
Can you tell me where the scripts shown in the error messages should lie in the repository? So I could look them up at first.
Did anyone experience such an issue either? I kind of feel prone to such problems appearing overnight :smiley:

specs:
Win7 Prof. x64
Max2012
DL 5.1 45970 (I assume it’s not directly DL 5.1 related)

Thanks in advance and best regards,
Dziga

I just found the scripts in “repository/submission/3dsmax”. So, they exist.

Sounds like you are running 3ds Max 2012 without hot fixes/ Service Packs.

Plain out-of-the-box 3ds Max 2012 had a severe bug in MAXScript which made it pretty much unusable, and Deadline 5 did not support it until Autodesk patched it.

In short, creating a new file and then trying to read from it fails because the createFile() opens it twice and the close() method fails to close it correctly.
Since the SMTD_Loader.ms is created on the fly on the local machine to speed up future starts, it suffers from this bug in Max.
Even if you would restart Max and try to launch again, it would fail at a later point because the Submitter has to create the JOB files and will fail to close them.

So 3ds Max 2012 is unusable (not only with Deadline, but in general) unless patched. Fotfixes 1+2 or Service Pack 1 is the minimum requirement, Service Pack 2 or the Subsciption Advantage Pack will also do.

This Autodesk bug affects pretty much any script that uses external files, as well as most Thinkbox plugins including Krakatoa.

If you have SP applied and you are still getting this error, please let me know.

Thanks Bobo! I must have been sleeping that I didn’t install the Fixes and SPs. Installed all of them now and it works so far. The only positive thing about Max 2012 I noticed is a more stable PhysX :smiley:
Not DL related: Did you experience this lag-like latency when moving the Vray message box? Another Max 2012 thing…