Jump to content

7 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I'm looking for adding to the SC4.exe, the files for eliminating the intro, the CPU=1 thing, and a couple other things. I think that should have it's own thread.

Thank you all.


« Try to learn something about everything and everything about something. »
« Essayez d’apprendre quelque chose sur tout et tout sur quelque chose. »

— Thomas Henry Huxley

Paris Skyline
From left to right : the Business Center with the "Arche" in the middle, then the Eiffel tower,
followed by Napoleon's tomb in the "Invalides", next is the cathedral of "Notre Dame"
and the church of "Sacré Coeur", after it is the "Arc de Triomphe" and last is the Bastille column.

Share this post


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

I remember that there is a thread for that on SC4D, but I think there isn't one here on ST. I'll answer here and then to split both posts to a separate thread on the technical forum.

This is what I use, a batch file:

Spoiler

@ECHO OFF
::Script for running SC4 and saving a backup of an specifical region 0.2 beta::
::(cc)2017. matias93. CC BY-NC-SA 4.0 international.
::please post improvements on http://community.simtropolis.com/forums/topic/70802-matias93-unexpected-mod-workshop/

::CONSIDER this batch file assumes that the user has 7zip adequately configured to run from a command line. If that is not the case, the respective lines wont run at all.
::CONSIDER the paths should be adjusted to the configuration the end user uses, including changes to the region name and the folder path.

::Creates a backup of the unmodified region on a safe place
7z a -t7z "D:\docs\Documentos\SC4 Stuff\Backups\Ciudad del Lago-current.7z" "D:\docs\Documentos\SimCity 4\Regions\Ciudad del Lago\*"

::activates the Secure Drive driver. This is not needed on Windows XP or Vista, nor on unpatched Windows 7, they run secdrv normally.
sc start secdrv

::starts the game
"C:\Program Files (x86)\Maxis\SimCity 4 Deluxe\Apps\SimCity 4.exe" -f -CustomResolution:enabled -r1366x768x32 -Intro:off -gp -CPUCount:1

::game is running

::when game is closed, stops Secure Drive
sc stop secdrv

 

In any case, the only part you need is this one:

"C:\Program Files (x86)\Maxis\SimCity 4 Deluxe\Apps\SimCity 4.exe" -f -CustomResolution:enabled -r1366x768x32 -Intro:off -gp -CPUCount:1

Please note the parts of the command:

  • -f makes the game to run on fullscreen mode. If you want it to run in windowed mode, use -w. Once one of this commands have been used, they persist to the next game sessions, unless the other is added.
  • -CustomResolution:enabled allows to run the game on resolutions different from the ones on the game graphics settings, bot in windowed and fullscreen mode.
  • -r1366x768x32 indicates the specific custom resolution. In this case, the native resolution of my monitor. For fullscreen mode, it is heavily recommended to use the native resolution. The number 32 at the end is the colour depth; unless in a very slow computer, it should always be 32 bits.
  • -Intro:off stops the game from showing the introduction video, reducing the loading time (nonetheless, the video can be stopped manually by pressing Esc).
  • -gp makes the game to pause when is minimised, avoiding to overload the system with game processing and game disasters happening when one is not looking it. As a trade-off, sometimes the game colours can be changed in weird ways when suspending the PC; in that case, minimising and maximising the game resolves it.
  • -CPUCount:1 makes the game to run on only one (and the first) core of a multi-core processor. This is needed to avoid frequent CTDs due to the fact that the game code wasn't done to manage multi-threading. I've been unable to make this work adequately with anything but the first core.

 

Edit: splitted thread. @huzman, check here!


  Edited by matias93  

ping
  • Like 2

matias93's Unexpected Mod Workshop (dev thread)             Ciudad del Lago in the making (dev City Journal)

"Let us be scientists and as such, remember always that the purpose of politics
is not freedom, nor authority, nor is any principle of abstract character,
but it is to meet the social needs of man and the development of the society"

— Valentín Letelier, 1895

Share this post


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

    MATIAS93 : Muchas gracias, camarada. But I don't understand the hidden contents. Is it a (dos) *.bat ?
    Sorry for the bold type.


    « Try to learn something about everything and everything about something. »
    « Essayez d’apprendre quelque chose sur tout et tout sur quelque chose. »

    — Thomas Henry Huxley

    Paris Skyline
    From left to right : the Business Center with the "Arche" in the middle, then the Eiffel tower,
    followed by Napoleon's tomb in the "Invalides", next is the cathedral of "Notre Dame"
    and the church of "Sacré Coeur", after it is the "Arc de Triomphe" and last is the Bastille column.

    Share this post


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

    I'd say that was the case. But another way is simply to add the commands (which start with the - character) to the end of the Target Line of your shortcut. Just right click the shortcut to SC4, select Properties and you should see it.

    • 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:  
     
    21 hours ago, matias93 said:

    In any case, the only part you need is this one:

    I was talking about the "hidden contents" by matias93.

     

    5 hours ago, rsc204 said:

    Just right click the shortcut to SC4,

    Yeah I know how add those (-) commands, but like I said in my first post : Where are they ? Are they in a file or what ?


    « Try to learn something about everything and everything about something. »
    « Essayez d’apprendre quelque chose sur tout et tout sur quelque chose. »

    — Thomas Henry Huxley

    Paris Skyline
    From left to right : the Business Center with the "Arche" in the middle, then the Eiffel tower,
    followed by Napoleon's tomb in the "Invalides", next is the cathedral of "Notre Dame"
    and the church of "Sacré Coeur", after it is the "Arc de Triomphe" and last is the Bastille column.

    Share this post


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

    The first, hidden code is the script of a .bat file. The second one would work as a .bat too, but you can also copy it and paste replacing the route of the link icon on your desktop. Either way it works.

    • Like 1

    matias93's Unexpected Mod Workshop (dev thread)             Ciudad del Lago in the making (dev City Journal)

    "Let us be scientists and as such, remember always that the purpose of politics
    is not freedom, nor authority, nor is any principle of abstract character,
    but it is to meet the social needs of man and the development of the society"

    — Valentín Letelier, 1895

    Share this post


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

     

    1 hour ago, matias93 said:

    Either way it works.

    Ah so... that's what I suspected and I'm grateful for your input.

    • Like 1

    « Try to learn something about everything and everything about something. »
    « Essayez d’apprendre quelque chose sur tout et tout sur quelque chose. »

    — Thomas Henry Huxley

    Paris Skyline
    From left to right : the Business Center with the "Arche" in the middle, then the Eiffel tower,
    followed by Napoleon's tomb in the "Invalides", next is the cathedral of "Notre Dame"
    and the church of "Sacré Coeur", after it is the "Arc de Triomphe" and last is the Bastille column.

    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