Jump to content
AdJaGu

NAM 36 Install Hangs

19 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

TLDR; SimCity4 runs perfectly in wine 3.0 on Arch Linux. NAM 36 does not.

I have installed the GOG version of SimCity 4 Deluxe on Wine 3.0 (32bit) and it runs perfectly. When trying to install NAM 36 all goes well until right after Cleanitol runs. Below is (I think) all relevant information. Any ideas on how to get this installed? Please note: I do not have access to a Windows machine.

OS:
  Arch Linux x86_64 4.14.15-1-ARCH

Wine:
  3.0

Wine Bottle:  

$ env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 wineboot -u

Install SimCity 4:  

$ env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 wine /home/doctor/Downloads/setup_simcity4_deluxe_2.1.0.9.exe

Run SimCity 4:  

$ env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 wine "C:/SC4/Apps/SimCity 4.exe" -intro:off -CustomResolution:enabled -r1920x1080x32 -CPUcount:1 -f

Install NAM 36:  

$ env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 wine /home/doctor/Downloads/NetworkAddonMod_Setup_36.exe

 Network Addon Mod 36 Setup launches:

  1.   Click on Next
  2.   Click I Agree
  3.   Click Next
  4.   Select Complete Standard Installation, click Next
  5.   Click Install
  6.   Cleanitol Popup, click OK
  7.   Cleanitol Ran successfully, click Quit
  8.   Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....
  9.   Flash forward 1 hour and Installer is still stuck at Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....
  10.   Kill NAM 36 Installer, Destroy SC4 Wine prefix, Recreate SC4 Wine prefix, Reinstall SC4


Install NAM 36 Attempt 2:  

$ env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 env WINEDEBUG=warn+heap wine control
  1.     Double click on Add/Remove Programs
  2.     Click on Install
  3.     Browse to and select NetworkAddonMod_Setup_36.exe
  4.     Click Open
  5.     Network Addon Mod 36 Setup launches, click on Next
  6.     Click I Agree
  7.     Click Next
  8.     Select Complete Standard Installation, click Next
  9.     Click Install
  10.     Cleanitol Popup, click OK
  11.     Cleanitol Ran successfully, click Quit
  12.     Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....
  13.     Flash forward 1 hour and Installer is still stuck at Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....
  14.  Kill NAM 36 Installer, Destroy SC4 Wine prefix, Recreate SC4 Wine prefix, Reinstall SC4
  15.     Post on forum.

Terminal Output:

0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadColorTbl malformed entry
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:err:richedit:ReadStyleSheet skipping optional destination
0033:warn:heap:validate_block_pointer Heap 0x110000: pointer 0x109672c is not inside heap
0033:warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic 003d66ab for 0x2161a0
0033:warn:heap:validate_block_pointer Heap 0x110000: pointer 0x109672c is not inside heap
0033:warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic 003d66ab for 0x214bb8
0033:warn:heap:validate_block_pointer Heap 0x110000: pointer 0x109672c is not inside heap
0033:warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic 003d66ab for 0x12c0900
0033:warn:heap:validate_block_pointer Heap 0x110000: pointer 0x109672c is not inside heap
0033:warn:heap:HEAP_ValidateInUseArena Heap 0x110000: invalid in-use arena magic 003d66ab for 0x1bd478
0035:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0038:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
003a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x2597a4c) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x24afa98) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1a35164) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1af65e8) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1958f2c) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1010a0d0) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1275de0) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x173c440) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x374e60) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x10c1508) stub
003a:fixme:msvcrt:__clean_type_info_names_internal (0x1e2225c0) stub

 

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Sounds to me like the installer is not getting a response from Cleanitol to say that it's finished processing. Frankly it's nigh on impossible for me to troubleshoot this when using a Linux system, the installer is a native Windows app, so anything could be the cause.

14 hours ago, AdJaGu said:

  Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....

Is this the step in the installer that isn't working?, i.e. where things come to a halt? It would suggest that there is a problem with Wine, because the installer can't find/read the path/file it expects. But honestly, that's really more of a guess.

Two possible workarounds I can think of:

  1. During setup, choose a custom install and untick "Run Cleanitol and the Station Updater".
  2. Run the installer on a native Windows machine. If it asks, tell it you are installing to use on a Mac. When the installer finishes, copy the Network Addon Mod and z___NAM folders over to your Linux machine into the correct plugins folder.
  • Yes 1

Head over to my Lot and Mod Shack to keep abreast of my latest developments.

Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

p.s. - I'm MGB over on SC4D and a member of the NAM team.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    You are correct @rsc204. After Cleanitol successfully runs I then click Quit on the Cleanitol popup window. Next the Cleanitol popup closes and the NAM 36 installer fires back up and promptly hangs at

    Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....

    At which point I let the installer run (hang) for an hour just to be sure it is unable to continue running. After which I kill the NAM 36 installer, delete SC4 wine bottle and SC4 Documents folder and remake the SC4 wine bottle and reinstall SC4.

    I have tried your workaround #1 and used custom install and unchecked "Run Cleanitol and the Station Updater". The NAM 36 installer starts up fine and promptly hangs at

    Delete file: C\users\doctor\My Documents\SimCity 4\NAM Auxillary Files\Tools\Controller\Compiler\.....

    I have attached a screenshot showing where the NAM 36 installer hangs this time around.

    I would try your workaround #2, but I do not have access to any Windows computers.

    Screenshot_2018-01-26_13-41-51.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Can you tell if it is able to ever delete any file?

    Have you gone looking for the offending file and looked at its properties? Have you tried deleting it manually to see if that would unstick the script?

    Then again, Wine can be app-specific, and the NAM installer may not be supported.


    -- Jeff Fisher ><> Vancouver WA
    "I may be pissing into the wind, but if I keep my enemies behind me and aim carefully, I can still rain on their parade."

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    To get rid of the following errors (err):

    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadStyleSheet skipping optional destination
    0009:err:richedit:ReadStyleSheet skipping optional destination
    0009:err:richedit:ReadStyleSheet skipping optional destination
    0009:err:richedit:ReadStyleSheet skipping optional destination
    0009:err:richedit:ReadStyleSheet skipping optional destination
    0009:err:richedit:ReadStyleSheet skipping optional destination

    use winetricks to install riched20:

    env WINEARCH=win32 env WINEPREFIX=/home/doctor/wine/sc4 winetricks riched20

     

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    @jeffryfisher Wine runs under my user "doctor" and as such has complete access to my SC4 wine bottle and SC4's Documents folders. All of that is owned and accessible for reading and writing by my user "doctor".

    I actually have no idea if it (the NAM 36 Installer) has been able to delete files or not. BSC Cleanitol did successfully run and after clicking Quit on BSC Cleanitol to hand the install back to the NAM 36 Intstaller, the installer hangs at

    Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....

    Removing files/folders one at a time under the BSC Cleanitol TM folder doesn't allow the NAM 36 Installer to continue.

    Properties of the BSC Cleanitol TM folder are as follows:

    Owner: doctor (doctor)
    Access: Read & Write
    
    Group: users
    Access: Read & Write
    
    Others: Read & Write

     

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Well @jeffryfisherI do not think the NAM 36 Installer is able to delete any files (not sure about Cleanitol - see below). To test this I recreated my SC4 wine bottle (32bit) and reinstalled SC4. Next I started a screen recorder to record me running the NAM 36 Installer. The installer runs fine up to running BSC Cleanitol. Cleanitol runs and since I have an empty Plugins folder there is nothing for Cleanitol to delete, thus no errors. Cleanitol displays the report screen and I click on Quit to continue with NAM 36 installation.

    NAM 36 Installer promptly hangs:

    Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....

    I inserted the "....." since the installer window size cuts off the output.

    • Like 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Frankly if the controller compiler is having the same effect as the Cleanitol process, there is a common theme. When the installer needs to switch out to another process/application, that seems to prevent the installer from continuing after that has finished. Suggesting that having run an application to conclusion outside of the main installer (executable), it's not receiving a necessary prompt to continue the installer.

    However, as to why this is happening, when that simply must be some incompatibility with Wine I suspect. That's really the limit of any help I can offer, since I simply don't have a familiarity with Linux/Wine to troubleshoot this further. However this process works fine under Windows and since that's all the installer was designed to support, it's not something that can be considered as a bug in the setup program.

    Perhaps take a look here, it might give you another method to try, since this is tested as working:

    • Like 1

    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    @rsc204 originally when I started to run SimCity 4 on wine I had used @Handyman's post and I kept hitting the issue I posted about. I am happy to say that after trying again, this time duplicating Handyman's setup (installing Ubuntu and wine at the exact versions mentioned), the installation of NAM 36 worked without issue.

    After NAM 36 installed I made a copy of the Documents/SC4Plugins folder and the game directory. Since then I have reverted back to Arch Linux and am enjoying SC4 with NAM. I am hopeful that I'll eventually figure out how to do this on Arch Linux without having to use a separate Ubuntu installation.

    Thank you everyone for your time and consideration of this. Even if I had to take the long way, I got to where I wanted :)

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Sounds like there is some incompatibility going on, I guess the easiest solution would be to use a LiveCD/USB stick to temporarily run the NAM installer in future. Once the installer is complete, using the folders it outputs should always work.


    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    @AdJaGu I just got the notice about this thread. Glad to see you kinda got there. I have not tried Arch Linux yet so I am not sure what the differences would be between it and Ubuntu, however I have notice a couple things in your error logs.

     

    On 1/25/2018 at 10:15 PM, AdJaGu said:

    003a:fixme:msvcrt:__clean_type_info_names_internal (0x1e2225c0) stub

    Have you tried installing 'msvcrt' with Winetricks?

    On 1/26/2018 at 5:01 PM, AdJaGu said:

    Delete file: C:\users\doctor\My Documents\SimCity 4\Plugins\Network Addon Mod\BSC Cleanitol T.....

    Are you aware that the 'My Documents' folder referred to is actually a link to the 'Documents' folder on your Linux file system?

    Perhaps 'Cleanitol' is not getting the proper authority to delete files.

    If you want to, you can break that link and re-create the 'My Documents' folder in your Wine 'C drive'

    First, make a copy of your 'Plugins' folder from your Linux "Documents' folder.

    Go to your 'C drive' in the Wine prefix and delete the 'linked My Documents folder'.

    Re-create the 'My Documents' as a normal folder.

    Copy your 'Plugins' folder to the new 'My Documents' folder.

    I use this setup on my game system just to keep things all together in case I want to make a copy of the prefix. To keep it easily accessible, I create a link to the 'Plugins' folder on my Desktop.

    I hope something here helps get you back to your original goal.

     

    • Like 2

    Check out my Linux Tutorials - How to use Wine with SC4D, NAM, Modding Tools

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    @Handyman I received the fixme:msvcrt notices when running this in Ubuntu too, but NAM still ran successfully. Before I installed Ubuntu I had installed riched20 and msvcrt with winetricks (in Arch Linux) to get rid the 

    0009:err:richedit:ReadColorTbl malformed entry
    0009:err:richedit:ReadStyleSheet skipping optional destination

    and

    003a:fixme:msvcrt:__clean_type_info_names_internal (0x1e2225c0) stub

    errors and notices, but still ran into the same issue with deleting files and the installer hanging.

     

    I am aware that Wine maps certain folders in Windows to my home directory. No matter where I mapped "My Documents" to:

    /home/doctor/Documents/SimCity 4

    or

    /home/doctor/<wine prefix>/drive_c/Users/doctor/My Documents
    
    a.k.a. C:\Users\doctor\My Documents

    I still received the same errors and hangs.

     

    Eventually I do hope to figure out how to get this to run on Arch Linux. It has to be something that Ubuntu installs that I didn't install on Arch Linux since Ubuntu dumped NAM in the same exact spots that Arch Linux was using. It could also be from the version differences of wine. On Arch Linux wine is at 2.x or 3.0 and on Ubuntu I used 1.8.

    • Like 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    54 minutes ago, AdJaGu said:

    I still received the same errors and hangs

     

    Sorry, but that's all I've got for now.

    As far as the version of Wine, A Nonny Moose always said to use the most current one, but I have not used anything over I.8.

    I would like to know if you figure it out, and if I think of anything else I will let you know.


    Check out my Linux Tutorials - How to use Wine with SC4D, NAM, Modding Tools

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Hello, any news on this topic? Did someone managed to get it to work?

    If not do you know where I can find a previous NAM version? I tried looking around but all I can find is the latest one.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Old versions of NAM are never distributed or kept available. Not that it matters, the problem here is that you are running a Windows installer under Linux, it literally doesn't work and wasn't designed too. Using emulators (WINE) you may be able to force a Windows application to work, but that requires a lot of configuration and knowledge to setup.

    As a tiny development team, where probably over 95% of our users and 100% of the developers use Windows, there simply is no easy solution for us to support either Mac or Linux users with the installer. It's a hugely complex beast that needs to perform many operations for successful installation. Theoretically you can extract the entire installer using 7zip and manually build a NAM installation, but that's a terrifically complicated process to explain.

    Surely you must have access to a Windows PC, even if not your own? By far the simplest solution is to run the installer under Windows, where it will work as intended, then copy over the folders it outputs.


    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I was just wondering if a Linux user had found a workaround for this issue. I am well aware that Linux is not officially supported by the NAM team and that it is not its job to fix this issue.

    As you said the simpler solution would be to install it on Windows then copy the files. I'll try this if I manage to access a Windows system where I can install SC4.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    18 hours ago, pfudke said:

    I'll try this if I manage to access a Windows system where I can install SC4.

    You don't need to install SC4 in order to run the NAM installer to completion. If it doesn't detect an SC4 install, you should get asked if you are installing for use on a Mac. Tell it you are and the installer will complete regardless.


    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Didn't know that, thanks for the heads up!

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    On 5/22/2018 at 12:30 AM, pfudke said:

    I was just wondering if a Linux user had found a workaround for this issue. I am well aware that Linux is not officially supported by the NAM team and that it is not its job to fix this issue.

    As you said the simpler solution would be to install it on Windows then copy the files. I'll try this if I manage to access a Windows system where I can install SC4.

    YES!!! Assuming I have the same issue.

    My installation would hang at roughly that time, sometimes a little later. The big text box would sort of go empty and then slightly resize itself back and forth, very quickly. The scrollbars would jump around.

    I opened the Wine debugger and kept seeing references to this "CoolSBSubclass". Google suggested it was to do with "Cool Scrollbars", probably a scrollbar library. I thought maybe if I changed the text box size it could avoid triggering the bug. I couldn't find a way to force-change the window size, but then I had another idea.

     

    Here's the workaround that worked for me:

    - run "wine regedit"
    - navigate to HKEY_CURRENT_CONFIG\Software\Fonts
    - Set font size to quite large or quite small
      - 48 and 120 worked for me, 96 is default (**DECIMAL**)
    - run installer
    - run regedit again and set font size back to 96
    

     

    • Like 1

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections