Jump to content

12 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

  If you are interested, please leave a post below. If there is some interest, I will post more details.

  It is a small script to install Wine and Winetricks but, for the initial tests, it will be crippled. I have tested, the functional version, dozens of times on my system and it has worked as expected.

  My concern is not knowing how my scripts will work on different hardware combinations. Even though I have 4 different installations, they all live on one physical system. My hardware is all pretty new, so if it is run on a slower setup will there be timing issues that I don't see.

  It would be irresponsible, I think, to release it without some basic testing on other systems.

  • 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
Posted:
Last Online:  
 

I have some spare computers lying around, few of which are either modern or powerful. Does this test require a minimum version of Linux either Kernel or Distro to be useful?

I've a P4 generation Thinkpad for which I've a linux build ready to go. It was imaged, but I think it's still installed on a spare HDD. It's an older version of Ubuntu or some such from a few years back if I recall, or was it XFCE?, is that any help to test? I'll report back on the specific Linux version at some point. I won't be appreciated for getting it all out at 5am though!

I also have a Core2Duo Mac Mini, willing to volunteer as a guinea pig, running an old version of OS-X, perhaps Snow Leopard? I don't use the OS-X partition though, plus I should rebuild the entire O/S/disk from scratch, since I stupidly only partitioned boot camp with a small faction of the HDD. It's not used for important files either, so the O/S is pretty expendable there. Frankly it's something I should have done ages ago. Not sure though if the process would differ on a Mac, although under the surface it's all Linux, right?

Otherwise is there any use to running this with a LiveCD from a USB stick? Or is it only helpful from a normal installation? If that's the case I can whip those things up easily and mess around on a number of other machines for you too.

  • Like 2

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:  
     

    Thanks you for responding so quickly.

    I have only ever used Debian based OS's. Debian, Ubuntu, Ubuntu Gnome, Linux Mint. I know these all use the same file retrieval / installation command structure (apt-get).
    XFCE is a Desktop environment that runs on a Debian base so theoretically it should work.
    A basic install of one of these would likely work for this test.

    I don't know if the Mac OS uses the same command structure, but the P4 would be a very good candidate, I think.

    My only real concern is whether or not I need to build in some delays to wait for slower systems.

    Technically, I don't see why it would'nt work with Live CD or USB. I have not tested this.

    I have to tend to RL matters for a while, more info to follow.


      Edited by Handyman  

    Added answer

    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:  
     

    This is a crippled bash script that will simulate the install of Wine and Winetricks, and creation of a .wineSC4D prefix for SimCity4(D/RH).

      I have commented out (de-activated) all the commands that would make actual changes to your system and replaced those with a message, a test and or a short sleep command. There is one caveat here, in order to test the script you will need a small program called Dialog. As a result I have left the functions to check for, and install, Dialog uncommented (active -- It Will Install Dialog if Needed).

      **Installing Dialog will require your password. If you prefer you can install Dialog beforehand, with the command line 'sudo apt-get install dialog' or in a graphical way with Synaptic.

      The script should work from any Directory, however, you wil need to 'right click' on the script file and select Properties then Permissions Tab and 'checkmark' 'Allow executing file as a program'

      Now you 'double click' the script file and choose 'Run in Terminal' to run the script or 'Display' to open it in an editor so you can see the code.

      You can make any selections you like in the Dialogs and it will make no changes to your computer.  In fact I encourage you to try it a few times, making various choices. This will give me more varied feedback to look at.

      When you run the script it will create 'logfile.txt' in the same directory as the script. This file will contain feedback from the script and your OS version and Kernel version. I encourage you to look at this file to make sure you are comfortable with the info it contains. If you are OK with what you see please post this file back to the the Forum so I can gather all the results. You may also end up with a zero byte file named '0', you can delete this.

     

    Readme.txt

    InstWineWinetrix_crippled


      Edited by Handyman  

    Clarification and added Readme, Updated script
    • Like 1

    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:  
     

    Hi .. What does the script do? It would be for installing and initialising SC4 through wine or just running winetricks to config and setup an environment for a playable game or it covers from installing wine and all components needed?

    I think it'd be better to have some functions separated ... for example, a bash shell for installing wine and winetricks, another for configuration and another for running the game and so on... 

    As for me I'm using a Macbook Air with macOS Sierra.I have been always playing this game with wineskin. I also installed wine (under cli through homebrew) but I couldn't setup the game with wine... Maybe winetricks are required.

    This operation system is Intel based (so does Snow Leopard?), as for the shell, it's homebrew + zsh (bash commands runnable?) and I'm not sure if I have installed gnutils ... I think there're still some differences between BSD commands and Linux commands, although I couldn't recognize them. 

    By the way I knew someone working on wrapping a kind of automator for installing SC4 on windows, yet I've never succeeded in running that ... Those dotnet based programs work neither in wineskin nor in wine.

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

    Well... I downloaded the file, placed it in my working directory, chmod +x it and ran it.

    Failed.

    # alice at MacBook-Air in ~/Documents/Workflow [0:53:28]
    $ ./InstWineWinetrix_crippled 
    
    ./InstWineWinetrix_crippled: line 21: syntax error near unexpected token `>'
    ./InstWineWinetrix_crippled: line 21: `				echo "needpass2 = $needpass" &>> logfile.txt;; #Logs current value'

     

    • Like 1

    Share this post


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

    Thanks, for the feedback.

    The functional version of the script is purposely focused on installing and setting up Wine for SimCity, on a Debian based  or compatible, OS. The version I posted is crippled, so, it makes no changes to your computer. It is intended to collect specific feedback in the text file it creates.

    I have no personal experience with Mac's, but it seems, from your post, that it does not recognize the redirection syntax.

    You may have to see if you can install a bash shell in BSD.


      Edited by Handyman  

    Gave incomplete answer

    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:  
     

    OK so it turns out it was Ubuntu 10.10 I had installed. I managed to restore the O/S tonight, but ran into a problem. I don't remember the account password in Ubuntu, because I've not used this system for over 4 years. Anyways, that's now reset, so I'll try to give the script a try.

    Not seeing any option to run the script if I right click it however. So I went into the terminal and ran it with the following command:

    sudo sh InstWineWinetrix_crippled

    Which comes back with an error:

    7: Syntax Error: "(" unexpected

    Perhaps because the O/S is hopelessly out of date? The logfile is empty too, so I guess that won't help much. I had a little look into this error online and frankly, I'm out of my depth here. Any ideas?

    • 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:  
     

    Thanks for the feedback.
    I did a quick check and it seems your bash is out of date, and since 10.10 is no longer supported you would have to compile from source.

    Also 12.04 is about to reach the same point.

    46 minutes ago, rsc204 said:

    7: Syntax Error: "(" unexpected

    It seems it does not follow the same syntax as current bash. It may not, actually be a problem with the bracket, but rather something that precedes it.

    Nonetheless, it's important to know. I appreciate the effort.


    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:  
     
    51 minutes ago, rsc204 said:

    sudo sh InstWineWinetrix_crippled

    Just realized I did not address this, if you have a chance, try  ./InstWineWinetrix_crippled


    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:  
     

    Hmmm... thing is it's a 14 year old system that has 768MB memory and an old Radeon 7500 GPU (dedicated with on board memory, I think only 32MB though). So updating to the LTS Ubuntu releases that are supported currently, i.e. 14.xx is not really a viable option. I don't use the system much either, it runs XP usually and it's been a useful spare machine over the years. Having spent £1,800 on it in 2003, I could never bear to part with it for the pittance it'd be worth.

    I'll try the alternative command though and see if that helps.

    • 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
    Posted:
    Last Online:  
     

    ./InstWineWinetrix_crippled isn't changing things. If I prefix SUDO at the front I get command not recognised, without it I get a permissions error.


    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

    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