Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Mod Issues in MacOS Sierra

KenyonKenyon Member Posts: 142
Hi all, since upgrading to MacOS Sierra I've had the same error for all mod installs. Seems to be some sort of issue with writing/executing rights (I did disable GateKeeper). Any idea?

Cheers,
Kenyon


Comments

  • subtledoctorsubtledoctor Member Posts: 9,711
    Try using my Weidu Launcher app instead of the .command file

    https://forums.beamdog.com/discussion/17717/tool-easy-mod-installer-weidu-launcher-for-os-x/p1

    Drop the Weidu Launcher in your game directory, run it, and choose which mod you want to install from the menu.

  • KenyonKenyon Member Posts: 142
  • StefanOStefanO Member Posts: 310
    edited October 2016
    The binary setup-iwdnpc is packed with the upx tool. These packed binaries are no longer supported on Sierra. Please see the weidu forum on pocket plane for further information. @argent77 has provided an unpacked version of weidu and weinstall. @subtledoctor Can you please provide an "unpacked" variant of your installer? That would be most helpful.

    Post edited by StefanO on
  • subtledoctorsubtledoctor Member Posts: 9,711
    In that case, just delete the file called "setup-iwdnpc" and run my launcher again.

    The Launcher app is open-source and on Github, anyone can see and mess with it as they like. Currently, it contains a "bare" copy of Mac Weidu v239.00 obtained directly from the PPG Weidu release thread. So hopefully it should be fine once @Kenyon removes the version of Weidu that came with the mod.

  • AstroBryGuyAstroBryGuy Member Posts: 3,349

    In that case, just delete the file called "setup-iwdnpc" and run my launcher again.

    The Launcher app is open-source and on Github, anyone can see and mess with it as they like. Currently, it contains a "bare" copy of Mac Weidu v239.00 obtained directly from the PPG Weidu release thread. So hopefully it should be fine once @Kenyon removes the version of Weidu that came with the mod.

    Previous versions of WeiDU were apparently packed with upx, which renders them incompatible with macOS Sierra. Deleting the setup-iwdnpc file won't fix it, since your launcher will just copy in WeiDU v239, which isn't Sierra-compatible. The version on WeiDU included needs to be updated to the "unpacked" v240 that @argent77 posted at PPG.

    http://forums.pocketplane.net/index.php/topic,29577.0.html

  • subtledoctorsubtledoctor Member Posts: 9,711

    In that case, just delete the file called "setup-iwdnpc" and run my launcher again.

    The Launcher app is open-source and on Github, anyone can see and mess with it as they like. Currently, it contains a "bare" copy of Mac Weidu v239.00 obtained directly from the PPG Weidu release thread. So hopefully it should be fine once @Kenyon removes the version of Weidu that came with the mod.

    Previous versions of WeiDU were apparently packed with upx, which renders them incompatible with macOS Sierra. Deleting the setup-iwdnpc file won't fix it, since your launcher will just copy in WeiDU v239, which isn't Sierra-compatible. The version on WeiDU included needs to be updated to the "unpacked" v240 that @argent77 posted at PPG.

    http://forums.pocketplane.net/index.php/topic,29577.0.html
    Ah, I didn't realize 239 counted among the "previous" versions. In that case:

    1) delete the "setup-iwdnpc" file

    2) put the Weidu Launcher in the game directory

    3) get Weidu v240 and put it in the game directory (named simply "weidu")

    4) run the Weidu Launcher

    Soon I'll get around to putting v240 in the Launcher app. (I should add @AstroBryGuy and @argent77 to the Github project so they can do it if I'm not around...)

  • StefanOStefanO Member Posts: 310
    edited October 2016
    Too summarize the Sierra related problems
    1. None of the three launchers for BGEE, BG2EE, and IWDEE (provided by Beamdog) works. There is a bug report, and Beamdog is working on it. (Does this applies to the steam and GOG installers too?)
    2. UPX compresssed binaries will not run on Sierra. Consequence: Each distributed weidu, disguised as setup-modname, will fail with the error message "Signal 9: killed". Consequence: The state of each modded game on Sierra is frozen unless the installer is either updated or decompressed. Added October 25: The new weidu-240 is distributed uncompressed.
    3. Decompressing is easy: Run "upx -d binary" on each setup-modname binary. But you have to install the upx tool first.
    4. Maybe problems 1 and 2 are related, maybe not. My guess is they aren't.
    5. Added October 25: Baldur's Gate / Baldur's Gate II / Icewind Dale Launcher keeps hanging on download
    6. Added October 25: Installing the latest Sierra update (10.12.1) changes nothing.
    Am I missing something?

    Post edited by StefanO on
    jackjack
  • KenyonKenyon Member Posts: 142
    edited October 2016
    That seems like a very accurate summary @StefanO !

    Fortunately, the suggestion here does indeed work: deleting the original executable and using the Mac Weidu installer with the latest Weidu file (without compression) enables the installation of the mod! Hooray!

    The GOG installer works fine.

  • StefanOStefanO Member Posts: 310
    edited October 2016
    Even if you manage to get the launcher running you will probably face another bug.

    Please see Baldur's Gate / Baldur's Gate II / Icewind Dale Launcher keeps hanging on download

  • subtledoctorsubtledoctor Member Posts: 9,711
    edited October 2016
    Just want to drop a note, I've updated my computer to Sierra, and then updated the 'Mac Weidu Launcher' to v4.240a, which is *actually* works on Sierra ( :tongue: ). So people having problems might want to remove/delete any "setup-______" files, and any existing versions of Weidu, and try the launcher. It's working great for me.

    https://forums.beamdog.com/discussion/17717/tool-easy-mod-installer-weidu-launcher-for-os-x/p1

  • KenyonKenyon Member Posts: 142
    Thank you so much! This makes things much easier.

  • StefanOStefanO Member Posts: 310
    edited November 2016
    I finally found a solution to the Baldur's Gate / Baldur's Gate II / Icewind Dale Launcher keeps hanging on download problem.

    OSX limits the number of open files, systemwide or per process. I followed the instructions from how-to-persist-ulimit-settings-in-osx-mavericks. After rebooting the mac the IWD, BG1, and SoD launchers worked flawlessly.

  • subtledoctorsubtledoctor Member Posts: 9,711
    edited November 2016
    I followed the link, but I don't understand what you did. Raise the ulimit numbers? Surely the BGEE launcher doesn't use more that 262,144 files??

  • StefanOStefanO Member Posts: 310
    No. But without this modification the number of open files was limited to 100.

  • subtledoctorsubtledoctor Member Posts: 9,711
    But what exactly did you modify? It's not clear in the linked page.

  • StefanOStefanO Member Posts: 310
    OK.

    Starting with Sierra you could no longer use the various Beamdog launchers to install (or repair) an EE installation. The download starts, but after a few moments, it stopped. Please see the link ...hanging on download... for more information. If you scroll down that bug report you find error messages complaining "too many open files". In any unix like system I know (OS X is BSD unix variant) this means: The process likes to open more files than the operating system allows. Raise that limit, and the problem goes away. Not every time, for sure, but often enough.

    The second link documents how to increase the number of open files permanently. From 100 to 262,144.
    After increasing the limit (which is unreasonable high, I know) both installation and repair of an EE installation work as before (pre Sierra).


    JuliusBorisov
  • GynsburgheGynsburghe Member Posts: 52
    Prior to doing this fix, I was getting "killed" on mod attempts, now I'm just getting denied due to a lack of authorization.

    When I load the 'launcher', which is in my Applications folder, I'm still getting denied on accessibility/authorization/privileges - it laughingly tells me to move it to my Application folder (where it is). I have to go into the contents of Siege and launch from the exe file.

    I tried to use terminal to change ownership of Applications, and was completed denied.

    OS Sierra may be the worst choice of upgrading I have ever made in 20 years of maintaining Macs.

    I said elsewhere that I was going back to 1.3 for awhile... and I have... but I'm stubborn... and if I managed to wedge the Co8 mods in Temple of Elemental Evil on a Mac... I shouldn't be defeated by a dastardly operating system...

    Should I?



  • StefanOStefanO Member Posts: 310
    @Gynsburghe both of your problems can be fixed right now. Your "killed" problem is addressed by @subtledoctor 's easy mod installer (see his post above).

    The launcher installation problem can be solved, if I remember correctly, by a terminal command. Open the terminal app and execute the command

    sudo spctl --master-disable

    For a reference please see allow-apps-from-anywhere-macos-gatekeeper on OSX daily.

    There is a third problem (download hangs) that can be solved too, please see my post above.

    I'm not sure that apple is to be blamed for all of these problems.

  • GynsburgheGynsburghe Member Posts: 52
    The increased Gatekeeper and restricted stuff is pretty out of character for most of Mac history, this update/mod issue has cropped up elsewhere for me. I saw a lot of folks bitch about previous Mac updates, but I never had issues, let alone ones about 'recognized developers' until the last few, since they really started pushing the App store. I still love my Mac, don't get me wrong - but it should be easier to control these settings than having to use terminal or code in general.

    I do use the Mod Installer, and I'm not getting 'killed' - I'm getting 'forbidden'.

    Since I've been backdooring the launcher by digging in the contents, I bypassed the hung download problem - I have the version installed, clean for re-modding.

    If wasn't for you, subtledoctor, and the other helpful folks here - I wouldn't have persevered through modding at all, thank you *ALL* for being there.

  • subtledoctorsubtledoctor Member Posts: 9,711

    OS Sierra may be the worst choice of upgrading I have ever made in 20 years of maintaining Macs.

    I tried it, and it's actually not totally awful (better than Mavericks/ElCap at least, after doing stuff like re-enabling all Gatekeeper options with the command described above). But weirdly, it made my trackpad all stuttery in certain apps - well-established apps like Firefox and BBEdit. So I went back to Mountain Lion. I know a lot of people love Snow Leopard, but IMO Mountain Lion is really the best OS Apple's ever produced.

  • StefanOStefanO Member Posts: 310
    edited November 2016
    In RL I've spend decades in managing Change in IT systems. Change is unavoidable, and mostly a good thing. It doesn't pay for living too long in an operating system past.

    Mountain Lion is ancient by today standards: There is no support from Apple, Google, or Mozilla for Mountain Lion. Surfing the net becomes riskier every day.

  • GynsburgheGynsburghe Member Posts: 52
    @subtledoctor - my wireless mouse is very 'stuttery' since the upgrade as well... weird. The scroll wheel is really, really jittery - goes up when it should go down and the like. It is not an Apple peripheral...

    Even with all the changes made above, I'm *still* being denied permission for the launcher to write to Applications (or, honestly, anywhere else I've stuck it). I might have missed something in code, but everything appears to be as it should.

    Still can't convince my Mac that it should allow the mods to run... I'll keep poking...

  • subtledoctorsubtledoctor Member Posts: 9,711
    StefanO said:

    In RL I've spend decades in managing Change in IT systems. Change is unavoidable, and mostly a good thing. It doesn't pay for living too long in an operating system past.

    Mountain Lion is ancient by today standards: There is no support from Apple, Google, or Mozilla for Mountain Lion. Surfing the net becomes riskier every day.

    Firefox is till being updated!

    Anyway I'm using an Apple trackpad and the new Apple OS messes it up. That's on them. But my laptop is almost 5 years old... soon enough I'll update to new hardware, and I presume that the new hardware works well with the new OS. So I won't have any problem upgrading then.

    @Gynsburghe apologize if this is obvious, but did you set permissions on your game directory - and the /override folde! - to allow write access?

  • GynsburgheGynsburghe Member Posts: 52
    @subtledoctor - yeah, I've done that multiple times now and I've moved it into other directories as well... It won't let me edit the root Application directories permissions however, even in terminal. I also ran into this problem with Serpent in the Staglands, but I was able to get around that by using the GoG client, which subsequently fixed the issue. I'm using a few applications now to see if something got infected or messed up by other programs...

  • GynsburgheGynsburghe Member Posts: 52
    I'm a persistent bugger, I did it... it took some backflips and disabling... I don't think I would recommend this for folks who lack self control on entering their admin password but...

    https://ohthehugemanatee.org/blog/2015/10/01/how-i-got-el-capitain-working-with-my-developer-tools/

    Follow everything up to reinstalling the developer tools and you will be back to normal. I did a fresh download of the launcher and it started up, flawlessly - no hangs, no forbidden writing.

    I have a folder of the mods I like and I just copied them in, deleted any setup stuff and ran the Weidu installer. POOF! I can mod again! YAY!

    Thanks everyone for your help, and I hope, in turn, this will help the really stubborn folks work with Sierra.

    StefanO
  • mlekomleko Member Posts: 4
    edited July 9
    Hey guys
    I can't say I understand everything you say, I am totally new to modding (haven't even started actually...)
    I am trying to install mods on my bg2ee (for the first time) - the game is from apple store, system is High Sierra now. How do I possibly install them? So for I get access denied and as far as i can understand what you're saying above, it's related to system I operate on.
    Any help would be much appreciated. It is worth to note that I have never put any commands or anything like that so forgive me if I ask ignorant questions...

  • AstroBryGuyAstroBryGuy Member Posts: 3,349
    mleko said:

    Hey guys
    I can't say I understand everything you say, I am totally new to modding (haven't even started actually...)
    I am trying to install mods on my bg2ee (for the first time) - the game is from apple store, system is High Sierra now. How do I possibly install them? So for I get access denied and as far as i can understand what you're saying above, it's related to system I operate on.
    Any help would be much appreciated. It is worth to note that I have never put any commands or anything like that so forgive me if I ask ignorant questions...

    Your issue is due to file permissions. Apps downloaded from the Mac App Store have their "file owner" set to be the "root" user (a special user account for system administration). The copy ("cp") command that the Weidu Launcher is trying to run is being blocked because it doesn't have permission to write in that folder.

    Here's some instructions for setting the read/write bits:

    Select the Resources folder and then choose File > Get Info.
    Under the Sharing & Permissions pane, click the lock icon and enter an administrator’s name and password.
    Change the privilege for "Everyone" to "Read & Write".
    Then, choose "Apply to enclosed items" from the Action pop-up menu (looks like a gear).

    If you have more questions about installing mods on macOS, check out the guide below:

    https://forums.beamdog.com/discussion/31155/the-hitchhikers-guide-to-installing-mods-on-osx/p1

    JuliusBorisov
  • mlekomleko Member Posts: 4
    Thanks a million. It worked.

    JuliusBorisov
Sign In or Register to comment.