SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-06-19, 09:32 PM   #1
MrNishino
Watch
 
Join Date: Jul 2019
Posts: 15
Downloads: 41
Uploads: 0
Default

Just gave it a try, didn't work. Got a message "Couldn't open executable".
MrNishino is offline   Reply With Quote
Old 08-06-19, 10:15 PM   #2
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,246
Downloads: 466
Uploads: 4


Default

I don't remember how the file attributes (sharing & permissions??) work on a Mac, been too long, but in Windows, there is a Read-only attribute that prevents anything from altering an executable file, unless you have administrator rights. Since the NTCore applet, and others like it, flip 2 bits in the header of the "target" file, if you don't have write permission, you might get that message...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 08-06-19, 10:30 PM   #3
BarracudaUAK
XO
 
Join Date: Apr 2016
Posts: 421
Downloads: 33
Uploads: 0


Default

Quote:
Originally Posted by MrNishino View Post
Just gave it a try, didn't work. Got a message "Couldn't open executable".



Did you just (double) Click the 4gb_patch.exe?


If I do that in my file manager it gives me the same error.
To patch it I must use the terminal..



Does a Mac have a "terminal", i.e. a command line interface (like DOS was)?


I'm thinking it should, since Apples OS is (was) based on Unix...


I'll do some checking... Which OS version are you running?
Might help narrow it down a bit!




I'll be back again... hopefully sooner this time.


Barracuda
BarracudaUAK is offline   Reply With Quote
Old 08-06-19, 11:10 PM   #4
BarracudaUAK
XO
 
Join Date: Apr 2016
Posts: 421
Downloads: 33
Uploads: 0


Default

So it does... found a few links here that walks you through how to access it.
This page is from 2012, and it's for OSX...
https://blog.teamtreehouse.com/intro...x-command-line


Scroll down the page in the link to:


"How to open the Command Line"
That should get you started, and give you a basic idea.


-------------------------------


IF you have a newer version of MacOS (when did it change?), then this link from 2017 may be more helpful.
https://www.taniarascia.com/how-to-u...cos-and-linux/


It goes into a bit more detail, but it still will tell you how to find it, and then gives more info.

Main area to focus on (for now) would be the Sections:
"What is the Command Line?"

until you reach the section "Creating Files and Directories".


You can skip the rest (for now), as it is not necessary to know to use the patch.

Either will give you the basic commands (they are the same), but appearently accessing the terminal is different.

Then we just need find your SH4 Directory/Folder and then we can get sh4.exe patched.


------------------------------------------------------------------------------------------------------

If you want to check WINDOWS file permissions, i.e. "read only"...
In the Terminal type:


wine winefile


This will start a Win95/98 style file manager.
Find your SH4 folder
"Right-click" on sh4.exe (I'm not sure how you do that on a Mac...)

Select "Properties"
Then look for the "Read Only" check-box at the bottom.
IF it is 'checked', click the box to 'uncheck' it and then click OK.


Exit "winefile" by clicking "File" in the top left corner
Then Click "Exit".
------------------------------------------------------------------------------


Barracuda

Last edited by BarracudaUAK; 08-07-19 at 02:09 AM. Reason: Spelling...
BarracudaUAK is offline   Reply With Quote
Old 08-07-19, 01:12 AM   #5
MrNishino
Watch
 
Join Date: Jul 2019
Posts: 15
Downloads: 41
Uploads: 0
Default

Just tried the terminal and got the message "cannot execute binary file". And my OS is 10.14.6. Thanks!
MrNishino is offline   Reply With Quote
Old 08-07-19, 02:26 AM   #6
BarracudaUAK
XO
 
Join Date: Apr 2016
Posts: 421
Downloads: 33
Uploads: 0


Default

Quote:
Originally Posted by MrNishino View Post
Just tried the terminal and got the message "cannot execute binary file". And my OS is 10.14.6. Thanks!

Ok, a quick search on this shows that the file is either,


A: not compiled (unlikely)
or
B: A Linux executable (that would be WINE).

So, since WINE is compiled and running, and we know it is because you could play SH4...

That leaves me with a few questions:

1: Where you in the SH4 folder in the terminal?

2: Is the 4gb_patch.exe in the SH4 folder?

and last and possibly most important:

3: Where is WINE installed???


I'm thinking 1 and 2 are "yes", given the error message, but just to confirm.
I'll investigate the last question.


EDIT: Quick test, can you open a terminal and type:
wine --version


It should print out the version that you have, this will let me confirm it is talking about WINE.
On my system I get this:

wine-4.12.1 (Staging)

Yours should be similar.
END EDIT.



Barracuda
BarracudaUAK is offline   Reply With Quote
Old 08-07-19, 09:17 AM   #7
MrNishino
Watch
 
Join Date: Jul 2019
Posts: 15
Downloads: 41
Uploads: 0
Default

Yes to 1 & 2. This is running on a Wineskin Wrapper. As far as location, I have a directory I named Silent Hunter Fall of the Rising Sun, which contains three folders: Contents, drive_c, and Wineskin.

The folder "drive_c" contains the Ubisoft SH4 files, buried under a couple layers.

The "Contents" folder contains some Wine files, including a Wineskin launcher and Unix executable called winetricks.

In the "Wineskin" folder, where I ran Terminal, this is what I could find so far: Wineskin 2.9.0.2, Engine: WS10WineCX64Bit18.5.0.
MrNishino is offline   Reply With Quote
Old 08-07-19, 07:37 PM   #8
BarracudaUAK
XO
 
Join Date: Apr 2016
Posts: 421
Downloads: 33
Uploads: 0


Default

I saw you post earlier, but just got a chance to reply...


I'm digging, but just wanted to let you know I'm still looking...






Barracuda
BarracudaUAK is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.