ID:272628
 
Ok so I thought "Well, I hated 4.0 to begin with, but it's come a long way since it first popped up. I guess I'll give it another try..."

So I took my perfectly working code from 3.5, copied it to a new directory, and unleashed 4.0 on it. Well, I suppose anyone familiar with 4.0 would expect problems, and this time was no exception. Oh sure, everything compiled fine, but when I tried to run the game it decided it was going to automatically run in ultra-safe mode for some stupid reason.

Now, I use a LOT of separate files to run various parts of my game, all neatly saved in separate folders for simplicity's sake. So what happens when I run it? About 10000 pop-ups saying "Do you want to allow access to...", that's what. Now, ALL of these files are placed within the main folder of my game, and it works perfectly fine on BYOND 3.5. So what I want to know is if(how) I can force the game to run ONLY in trusted or safe mode.

Otherwise, I'm dropping 4.0 like a hot potato. It still has a very long way to go to convince me it's worth using, despite the pretty interfaces I can make.

Oh, and I tried using shell() to detect if it was in trusted mode or not and it didn't work, for whatever reason. Sigh.
Perpetr8r the Perpetu8r wrote:
Ok so I thought "Well, I hated 4.0 to begin with, but it's come a long way since it first popped up. I guess I'll give it another try..."

So I took my perfectly working code from 3.5, copied it to a new directory, and unleashed 4.0 on it. Well, I suppose anyone familiar with 4.0 would expect problems, and this time was no exception. Oh sure, everything compiled fine, but when I tried to run the game it decided it was going to automatically run in ultra-safe mode for some stupid reason.

Ultra-Safe mode is invoked when the name of the .dmb and the name of the directory it is stored in do not match. This has been the case for a very, very, very, long time. It worked this way in 3.5 too.

When you copied it to a new directory, the new directory had a different name. MyGame.dmb has to be in somedir\MyGame\MyGame.dmb for it to default to safe mode.
You have to name the directory the dmb/rsc file is located in the same as the dmb file, otherwise it'll assume ultra-safe mode. So if your dmb is called 'My World.dmb' it must exist in a folder named 'My World'.
In response to Jon88
Jon88 wrote:
Ultra-Safe mode is invoked when the name of the .dmb and the name of the directory it is stored in do not match. This has been the case for a very, very, very, long time. It worked this way in 3.5 too.

When you copied it to a new directory, the new directory had a different name. MyGame.dmb has to be in somedir\MyGame\MyGame.dmb for it to default to safe mode.

Really? Strange. I've done this kind of thing before and never had the problem until I switched to 4.0, but it sounds like a good reason for it not to work. I'll try changing some names around and see what I get.