Log in

View Full Version : Using Sh3MissionEditor together with ResolutionFix


h.sie
09-02-09, 02:10 PM
Normally the Sh3MissionEditor cannot be used together with the resolution-fix. Until now I always had to rename d3d9.dll before starting Sh3MissionEditor.exe and rename it back after closing the Editor. My Batch Sh3MissionEditor.bat does this automatically. It must be placed in the same folder as sh3.exe, d3d9.dll and Sh3MissionEditor.exe. Now just start this batch instead of the MissionEditor.

The batch first renames d3d9.dll to tmp.dll, so that MissionEditor.exe will work fine.
Then it starts MissionEditor.exe in the background.
Then it waits about 10 seconds to make sure that MissionEditor has completely started.
Then it renames tmp.dll back to d3d9.dll.

---------------------------------------------------------
ren d3d9.dll tmp.dll
start Sh3MissionEditor.exe
ping localhost -n 11 > NUL
ren tmp.dll d3d9.dll
---------------------------------------------------------

Can be found on my MediaFire page

h.sie

makman94
09-02-09, 05:33 PM
Normally the Sh3MissionEditor cannot be used together with the resolution-fix. Until now I always had to rename d3d9.dll before starting Sh3MissionEditor.exe and rename it back after closing the Editor.

My Batch Sh3MissionEditor.bat does this automatically (it must be placed in the same folder as sh3.exe, d3d9.dll and Sh3MissionEditor.exe):

---------------------------------------------------------
ren d3d9.dll tmp.dll
start Sh3MissionEditor.exe
ping localhost -n 11 > NUL
ren tmp.dll d3d9.dll
---------------------------------------------------------

Note: The ping command is used to pause the execution of the batch for about 10 seconds....

h.sie

hello H.Sie,

.....where is this Batch ? or i have...misunderstand ...something ?? :06:

h.sie
09-02-09, 05:37 PM
just uploaded it to my mediafire page

makman94
09-02-09, 05:52 PM
just uploaded it to my mediafire page

H.sie , i have just to put this in sh3 folder and that's it ?

h.sie
09-03-09, 02:21 AM
yes, put it into the sh3-folder and start the batch instead of the mission editor. that's it.


any problems? feel free to ask me.

makman94
09-03-09, 03:29 AM
good morning H.sie,

maybe i am doing something wrong but i can't make it work . the Batch (from your mediafire page)is a .txt file and ...can't start the ME. what am i doing wrong ?

h.sie
09-03-09, 03:38 AM
Hi Makman,

I'm sorry. I uploaded a file called "MissionEditor.bat" but when I download that file, it's name now is "MissionEditor.bat.txt". I don't know why this happens!?!?!?!?
So simply rename it to MissionEditor.bat, put it in the sh3 folder and start it.

h.sie

makman94
09-03-09, 03:46 AM
Hi Makman,

I'm sorry. I uploaded a file called "MissionEditor.bat" but when I download that file, it's name now is "MissionEditor.bat.txt". I don't know why this happens!?!?!?!?
So simply rename it to MissionEditor.bat, put it in the sh3 folder and start it.

h.sie

it still keeping (after the rename) to be a .txt file . can you check the one (that you uploaded) if is working ?

h.sie
09-03-09, 03:55 AM
I'm currently not at home, so I cannot test it. but after downlöoading and renaming, it of course had the ending .bat as desired. and after doubleclicking, it started to execute (but on this PC no d3d9.dll and MissionEditor.exe could be found because SH3 is not installed).

Surely it's a text file as each MS-DOS batch is a text file, that is okay. But files with the ending .bat should be interpreted as a MS-DOS batch by the system and so be executed when one doubleclicks it. What happens if you doubleclick it?

makman94
09-03-09, 04:05 AM
I'm currently not at home, so I cannot test it. but after downlöoading and renaming, it of course had the ending .bat as desired. and after doubleclicking, it started to execute (but on this PC no d3d9.dll and MissionEditor.exe could be found because SH3 is not installed).

Surely it's a text file as each MS-DOS batch is a text file, that is okay. But files with the ending .bat should be interpreted as a MS-DOS batch by the system and so be executed when one doubleclicks it. What happens if you doubleclick it?

it opens with notepad and i can read all these :

ren d3d9.dll tmp.dll

start Sh3MissionEditorX2.exe

ping localhost -n 11 > NUL

ren tmp.dll d3d9.dll

also , one more question .... why ''start Sh3MissionEditorX2.exe '' (X2 ...:06:)

h.sie
09-03-09, 04:19 AM
In my GWX-installation the MissionEditor is called MissionEditorX2.exe, I think it was installed with GWX3??? If your installlation differs from that, please edit the batch file accordingly to:

start Sh3MissionEditor.exe

I really have no idea why doubleclicking on your system starts notepad instead of executing the batch.....phew....

Does your system show or hide known file extensions?
Is a text file like "Readme.txt" shown as "Readme" or as "Readme.txt" ?

h.sie

*

makman94
09-03-09, 04:30 AM
In my GWX-installation the MissionEditor is called MissionEditorX2.exe, I think it was installed with GWX3??? If your installlation differs from that, please edit the batch file accordingly to:

start Sh3MissionEditor.exe----ok never mind with this ,maybe i had replace the ME ,can't remember now

I really have no idea why doubleclicking on your system starts notepad instead of executing the batch.....phew....

Does your system show or hide known file extensions?
Is a text file like "Readme.txt" shown as "Readme" or as "Readme.txt" ?---it is shown as "Readme".you think...there is the problem ?

h.sie

*

look at red

makman94
09-03-09, 04:46 AM
OK H.sie !

it was just this ! i changed the settings to show known file extensions and the .bat worked !!

your Batch is working !

the only reason that i was running the sh3 at 1024x768 was exactly this problem with ME. but not anymore....

thank you very much !! :up:

really good !

h.sie
09-03-09, 05:10 AM
Cool! Good to know

h.sie
09-04-09, 09:30 AM
how can I help you?