Jump to content
Cyclone Boom

Tutorial: Method for Automated SimCity 4 Screen Mode Switching

7 posts in this topic Last Reply

Highlighted Posts

I am always amazed at the level of detail you employ when creating tutorials. This is both thorough and a delightful help for advanced players to automate the mundane task of swapping specific mods in or out of the plugins folder. It saves time and insures there are no mistakes.

There was a question some time back where the player wanted to use different specific terrain mods on a per city tile basis. This would be ideal for that as well.

Share this post


Link to post
Share on other sites
18 hours ago, Cyclone Boom said:

in Windows it's possible to use the "Auto-hide the taskbar" option from Taskbar Properties. This does what it says, and makes the taskbar hidden from view when not hovered over. However, this requires toggling back the setting once exiting the game.

Well, you're not required to change back. Some of you might take a liking to auto-hide and decide to keep it.

Share this post


Link to post
Share on other sites
  • Original Poster
  • 9 hours ago, CorinaMarie said:

    I am always amazed at the level of detail you employ when creating tutorials.

    I suppose anything worth doing is worth overdoing. *:)

     

    9 hours ago, CorinaMarie said:

    There was a question some time back where the player wanted to use different specific terrain mods on a per city tile basis. This would be ideal for that as well.

    I can certainly see potential scope here for other mods. In terms of a single file it'd be the case of continuing on with two scripts: One for with the mod, the other for without. Then modifying the File= <File Name> option in both. Finally if so desired, adjusting the parameters to make each start either windowed ( -w ) or full screen ( -f ).

    The same I suspect could also be done by moving an entire folder containing multiple files. Or expanding the code to perform additional move processes.

     

    1 hour ago, jeffryfisher said:

    Well, you're not required to change back. Some of you might take a liking to auto-hide and decide to keep it.

    True, it is indeed the personal choice of each user as with any option. The only reason I say "required" is since to restore the configuration how it was before starting the game and using said workaround, the auto-hide setting must be toggled back and unchecked.

    Of course in the scope of this tutorial, preserving the Taskbar is needed or else there probably isn't much point in raising the UI when running windowed. *;)

    Share this post


    Link to post
    Share on other sites

    You can also use a program to assist.

    I use Shiftwindow. All you need to do is specify what monitor and what program you want to be full screen and your window'd program now fits perfectly. You can also use your other monitor without trouble at all!

    Just hit trigger and you're all set!

    aHbEuf7.png

     

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • 8 hours ago, Haljackey said:

    All you need to do is specify what monitor and what program you want to be full screen and your window'd program now fits perfectly.

    Understandably command line scripts aren't for everyone.

    So from what I gather, ShiftWindow would replace the need to raise the UI since the window could be stretched to full screen. Or alternatively by adjusting the "Shift to" options, for a specified width and height with coordinates. Then it would be possible to position and resize the game's window above the Taskbar if so desired. Is that correct?

    Really the idea behind my method is for there to be two shortcuts, allowing the game to be started either way with a familiar double click. Which in turn moves the mod file in or out of one's Plugins folder to benefit from the raised UI (keeping the Taskbar visible). Or whenever preferred, to run SC4 in full screen as normal. Also being batch scripts that Windows recognises by default, they aren't dependent on external programs which may not be a like-for-like solution to move the mod file as described.

    I'm also curious on the possible other uses to manage sets of custom content. Because batch files are simply a set of repeatable instructions.

    Share this post


    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an Account  

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

    Register a New Account

    Sign In  

    Already have an account? Sign in here.

    Sign In Now


    • Similar Content

      • By terragaroa
        Hello guys
        i just have done some research before start a new city and thought about share with you the best of what i found 
        first thing is this vídeo, explaining How to make an attractive city, by the School of Life.
        this video shows 6 topics about how a city can be prettier :
        not be so chaotic or so ordered must have visible life must be compact must have easy orientation and some mistery must have a ordered scale must have local places to go  [Click to see the video]
         
        take a look and post your opinion
        maybe i make some posts like this one, what do you think about it?
         

      • By archemediesx
        Greetings Simtropolis mapping community.
        I wanted to raise the question regarding the creation of geographical region maps. in the 'mapping-terraforming' section i found a tutorial about this put together in 2011, but it is unfortunately rather outdated and doesn't necessarily hold up to contemporary processes. I have been independently working towards the goal of taking DEM data and converting it into sc4 maps with varying levels fidelity and success. given the difficulty of the journey (many fruitless days spent scouring google searches and reading 5-10 year old tutorials full of links for websites that no longer exist) i though i would attempt to provide my own tutorial on the process i have undertaken. Before doing so i thought i should do a double check with the community just to ensure i haven't missed anything obvious (Perhaps a 2018 current mapping process for working with DEM's?). 
         
        I can see that there has been a lot of discussion to this end including threads and tutorials started by @Izidor44 and @drunkapple, though many of those remain open ended, and that was many years ago. So, if anyone happens to have a contemporary tutorial process for processing geographic based regions i'll be pleased to see it. In the meanwhile i'll keep plugging along with my process i have started and will also be pleased to share it when i have all my findings completed. 
         
        Edit: The first video in the tutorial series is complete and starts the process of describing in detail what is DEM data.
         
      • By percuno
        Is there any mod or combination of mods that would give me any of these things:
        A bit larger text in the line items,
        More line items in the window,
        Easier to adjust sliders: larger, or with arrows at ends to make small adjustments, or that display the new amount while you slide them rather than after you release them? (the last being the single most frustrating thing about the game since day 1)
         
        TIA
        - GD
        Edit: Removed information irrelevant to the question that seemed to be distracting responders.
      • By AmiPolizeiFunk

        I hacked the photoshop pattern "Brick Fill" script from photoshop CS6 to tile the pavement with color, brightness, and rotation variations. I'm a noob w javascript so any help or suggestions would be appreciated. I wanted to randomize the flip (mirror) sometimes too, but couldn't figure out how to do it. I was looking for a function like "RenderAPI.flip" or "RenderAPI.mirror" but those don't exist. I don't even know where to look for a list of these functions... maybe this whole method is totally out-of-date. I know you can do similar stuff in blender by routing texture variations into nodes, but I still haven't taken the time to learn the blender node system.
        Anyway, Mr.Maison asked me on twitter to share the script, so here it is:
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Here are a few parameters that you can change to modify the behavior of the patterm // Feel free to modify the values, don't change the variable names // Variation of color of the pattern. // For example, value of 0.2 means that each of the red, green, and blue color components // will be multiplied by a DIFFERENT random value from interval 0.8 and 1. // Set to 0 if you do not want to modify the pattern color. var colorRandomness = 0.01 // use a value between 0 and 1. The default is 0.2. // Variation of pattern brightness. // For example, value of 0.6 means that each of the red, green, and blue color components // will be multiplied by THE SAME random value from interval 0.4 and 1. // Set to 0 if you do not want to modify the pattern brightness. var brightnessRandomness = 0.1 // use a value between 0 and 1. The default is 0.4. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // You can modify the code below but keep in mind that as with any scripting // you can break things. Keep a backup copy. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // We could use Math.random but then we do not have control over the seed // Object rand rand.seed = 1 function rand() { rand.seed = (rand.seed*9301+49297) % 233280; return rand.seed/(233280.0); } function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } /////////////////////////////////////////////////////////////////////////// // get the size of the output area var outputSize = RenderAPI.getParameter(kpsSize) // get the location of the top left corner of the bounding rectangle around the selected area var outputOrigin = RenderAPI.getParameter(kpsOrigin) // Get pattern and its size var pattern = RenderAPI.getParameter(kpsPattern) var patternSize = pattern.getParameter(kpsSize) RenderAPI.translateRel (patternSize.x/2, patternSize.y/2) RenderAPI.translateRel ( -(outputOrigin.x % patternSize.x), -(outputOrigin.y % patternSize.y)) var row = Math.floor( outputOrigin.y / patternSize.y ) var column = Math.floor( outputOrigin.x / patternSize.x ) pattern.setParameter (kpsColorBlendMode, kpsBlendMultiply) //pattern.setParameter (kpsColorBlendMode, kpsBlendLinearLight) for (var y = 0; y < outputSize.y + patternSize.y; y+= patternSize.y, row++) { RenderAPI.pushMatrix() var x = 0 for (var c = column; x < outputSize.x + patternSize.x; x+= patternSize.x, c ++) { if (getRandomInt(4)==1){ RenderAPI.pushMatrix() // Set the seed based on the current row and column - this assures that the color will be modified // in the same way for the pattern in the neighboring selected area rand.seed = row * 1234567 + c * 7654321 // setting seed for each pattern is not that good, but calling an extra rand helps rand() var rc = colorRandomness // color randomness var br = 1 - brightnessRandomness + rand()*brightnessRandomness // brightness RenderAPI.Color (kFillColor, br *(1 - rc + rand()*rc), br*(1 - rc + rand()*rc), br*(1 - rc + rand()*rc)) //RenderAPI.scale(rand()*0.1 + 1) RenderAPI.rotate(getRandomInt(4)*90) // my own little mod to rotate the pattern either 0, 90, 180, or 270 deg pattern.render(RenderAPI) RenderAPI.popMatrix() } RenderAPI.translate(patternSize.x, 0) } RenderAPI.popMatrix() RenderAPI.translate(0, patternSize.y) } To use this script in Photoshop, save it as "Pavement fill.jsx" and put it in your ...Photoshop->presets->Deco directory. Restart Photoshop. Do a Pattern fill an tick the "Scripted Patterns" box at the bottom. Select "Pavement fill" from the dropdown and use a square pattern.
        This particular version of the script scatters the selected pattern across the whole image, with a 1 in 4 chance to place a tile. The idea is that after you do a background fill of one tile, you use this script to make multiple passes, one time for each of 4 different tiles. It's probably a terrible way to do an already solved task, but in the end I was happy to get the result that I wanted. Have you guys solved this problem in other ways?
         
         
      • By Dragonxander
        Welcome everyone! Today I want to present the second entry of my earthworks tutorial series! Today we're covering the basics of building a main, two-lane road into a town across rolling/undulating terrain!
         
        I would appreciate if forum members could give me some feedback on the tutorial entry's format. This time I'm posting a slideshow video, as it was easier to make than wrestling image hosting sites with a huge upload that was gonna have about 70 screenshots.
         
         
         
        For general discussions and polls on this tutorial series, visit:
         
        Mods featured:
        * Network Addon Mod 36:
         
         
        * BRF Tunnel and Slope Mod:
         
        * CPT Meadowshire Terrain Mod: 
        http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=58
         
        * CPT Meadowshire Coast Tree Mod: 
        http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=60
         
        * B98 Beach Extend Mod:
         
         
        * RVT Coast Mod 2009:
         
         
    • Recently Browsing   0 members

      No registered users viewing this page.

    ×

    Thank You for the Continued Support!

    Simtropolis relies mainly on member donations to continue operating. Without your support, we just would not be able to be entering our 15th year online!  You've really help make this a great community.

    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, so that we can help keep bringing SimCity players together to share our creations.

    Make a Donation, Get a Gift!

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

    stexcollection-header.png

    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