<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting an error in an MSE file/script in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6040040#M14795</link>
    <description>&lt;P&gt;Is the install structure correct and complete ?&lt;/P&gt;&lt;P&gt;Looking at the script package ( free at scriptspot.com ) i can see that it's a collection of code, dll's and what not&lt;/P&gt;&lt;P&gt;Addionally the author put some warnings about how to install&lt;/P&gt;&lt;P&gt;If nothing helps, i would simply fire up sysinternals Process monitor and look where the filein's in the script are failing and what it is trying to load ...&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2016 19:52:47 GMT</pubDate>
    <dc:creator>spacefrog_</dc:creator>
    <dc:date>2016-02-15T19:52:47Z</dc:date>
    <item>
      <title>Getting an error in an MSE file/script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6028305#M14794</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Hey, all!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;I'm new at maxscript (bear this in mind), although I've been a developer for decades, so I've got at least a paw up. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;In the absence of the Max Asset Browser, I found one called the HCG Asset Browser. Looks like it'd be nice, and I learned a lot about Max and maxscript troubleshooting why it didn't initially want to run.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Got those problems solved. Now, though, when I run the thing, I get this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#ff0000"&gt;-- Runtime error: fileIn: can't open file - "C:\Program Files\Autodesk\3ds Max-- Error occurred in anonymous codeblock; filename: C:\Program Files\Autodesk\3ds Max 2016\Scripts\HCGAB\hcgabPRO.mse; position: 625; line: 21&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366ff"&gt;--&amp;nbsp; Defined in encrypted script&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;-- Error occurred during fileIn in "C:\Program Files\Autodesk\3ds Max 2016\Scripts\HCGAB\hcgabPRO.mse"; line number: 21&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;-- Runtime error: dotNet runtime exception: Invalid directory on URL.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;\Scripts\HCGAB\hcgabPRO.mse"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;That whole &lt;EM&gt;defined in encrypted script&lt;/EM&gt; has me concerned.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;I tried looking at Line 21 in the MSE file, but it's compiled (or encrypted). Went back to the website in question, but there's no visible way to contact the developer(s). &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Is there any way for me to see/fix the offending line/problem ("Invalid directory on URL" which sounds like out-of-date hard-coding)? Or is that kind of file specifically out-of-my-reach?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;I'd really like to make this run if possible, but if I can't see what's causing the offense it's almost impossible to fix it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Davey&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 23:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6028305#M14794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-07T23:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error in an MSE file/script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6040040#M14795</link>
      <description>&lt;P&gt;Is the install structure correct and complete ?&lt;/P&gt;&lt;P&gt;Looking at the script package ( free at scriptspot.com ) i can see that it's a collection of code, dll's and what not&lt;/P&gt;&lt;P&gt;Addionally the author put some warnings about how to install&lt;/P&gt;&lt;P&gt;If nothing helps, i would simply fire up sysinternals Process monitor and look where the filein's in the script are failing and what it is trying to load ...&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 19:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6040040#M14795</guid>
      <dc:creator>spacefrog_</dc:creator>
      <dc:date>2016-02-15T19:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error in an MSE file/script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6061726#M14796</link>
      <description>&lt;P&gt;*sigh* Yup. The install structure is complete, both in the somewhat-useless default listed on the page at Scriptspot, and where I moved it into Max' own plugin folder. Tried it in both places. Followed all the author's instructions as well as seeing if I could straighten things out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looked at all the files in the ZIP. Alas that the only file that seems to be throwing an error is one that I can find no way of decrypting or decompiling to look at and/or fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually only use Process Monitor as a Task Manager replacement; I can figure out how to monitor that particular module's operation if it's at all possible, but without the ability to correct whatever mistake's throwing the error, it may be a moot point. (Might be able to fake an entry in hosts, but since almost everything in Windows now ignores hosts--thanks a lot, microsoft--that might be a forlorn hope as well.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, the notion of monitoring wth Process Monitor is an interesting one; thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Davey&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 15:30:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6061726#M14796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-29T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error in an MSE file/script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6062108#M14797</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Well... I guess it pays to not only be an ADHD programmer-slash-award-winning-tech guy (*blush*) but one who has a few frustrated minutes around home-schooling his equally-ADHD son in graphing math (guaranteed headache, no waiting). That and it kinda ticked me that someone'd writing something this neat and then drop it without letting anyone else maintain it. (It &lt;EM&gt;is&lt;/EM&gt; his, not disputing... it's just irritating.)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Did a &lt;EM&gt;lot&lt;/EM&gt; of looking around. A couple of people have written scripts that will (allegedly) decrypt a .MSE file; didn't have to use them (although one jackhole took those scripts and set up a $14-a-decryption business online) because I found&amp;nbsp;&lt;STRONG&gt;[edited for courtesy]&lt;/STRONG&gt;, along with a&lt;STRONG&gt;[edited for courtesy]&lt;/STRONG&gt; to decript (ta-dah) MSE files. Ran that; it decrypted the badly-behaved HCGabPro mse file to plain-old ms. I've got it up in UltraEdit right now, but where it was going wrong already leaps out; it was asking for a way to load three .DLL files, and using an environment variable (HCGABPath) that wasn't defined the same way on my system as it wanted it to be. (Yeah, we can call this my mistake; I'm big enough to accept the blame).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Once I had the base &lt;EM&gt;script&lt;/EM&gt; running I noticed that, although the viewer window'd run--and run nicely, if the customization is clumsy; no wonder he quit selling it--the thumbnails wouldn't generate. While looking for some means into an MSE file, I'd found where a Chinese fellow had indicated that a sure way to see source in an MSE file was to crash the script and open the Listener window. Tried that; didn't really work all that well.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The crashes that I &lt;EM&gt;managed&lt;/EM&gt; to track back indicated that this script app is looking for Max 9 render dlls to generate the thumbnails. Just for the fun of it, I hauled the DLLs that come with the app into&lt;STRONG&gt;[edited for courtesy]&lt;/STRONG&gt;, and hey presto! I had the offending source code in front of me. I have to vacate the computer here in a few to let the small humanlike object up here to do his math work, but I'm going to see about recompiling those DLLs to look for the 2016-equivalent DLLs. (If there's a way of just asking the environment to supply those names, so the script could technically work for any version of Max, please, enlighten me. As said way above, I'm new at maxscript.)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Did I say &lt;EM&gt;frustrated&lt;/EM&gt;? &lt;EM&gt;Having a lot of fun&lt;/EM&gt; (I was a hacker, in the true sense of the word,&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt; back in the day&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;) is more like it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Since the source ain't mine, I can't put the fix up; the original developer just released the app as &lt;EM&gt;free&lt;/EM&gt;, not as open-source. (And I think I found another script while perusing really-good tutes--Neil Blevins' site, don't fail to visit it--so I've got to try that as well. May wind up being less trouble.) But if you need to get into it because it's erroring out, google&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*&lt;STRONG&gt;[edited for courtesy]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*&lt;STRONG&gt;[edited for courtesy]&lt;/STRONG&gt;&amp;nbsp;- to get the source for the DLLs that accompany the app (.NET - the easiest-decompiled programming language on the face of the Earth) - you can view the code in VB (my choice) or C# (no one's perfect) or IL (not really useful in this case).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;So. Probably not anyone's &lt;EM&gt;perfect&lt;/EM&gt; solution to such a question, but one that I consider now worth the time. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Davey&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 15:36:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getting-an-error-in-an-mse-file-script/m-p/6062108#M14797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-01T15:36:41Z</dc:date>
    </item>
  </channel>
</rss>

