Mashinky

Jan Zelený · Simulation

Mashinky patch notes · May 21, 2018

Experiment

Fixes for editor & Change log

What's new in Fixes for editor & Change log: 246 changes to Mashinky, released May 21, 2018.

Balance · 8

  • Improved brushes, manual vertex editing and whole-map filters, and modified some filter intensities.

    brush and filter tuning
  • Improved shadow quality versus distance and increased shadow bias 10x.

    shadow quality vs distance and bia
  • Increased custom maps limit to 512.

    custom maps limit
  • Number of towns now scales with map size (90/30/10).

    town count by map size
  • Better shadow fading in the distance.

    shadow fading in distance
  • Voronoi and Voronoi Smooth are now tileable to avoid uneven density at map borders.

    voronoi filter tileability
  • Modified brush strengths and default parameters.

    brush strengths and default parameter
  • Towns are sorted and placed largest to smallest and are rendered smaller according to real size.

    town placement order and size

Content · 39

  • Added support for saving, loading and deleting scenarios.

    save/load/delete scenarios support
  • Added heightmap generation in editor mode.

    heightmap generation in editor
  • Added humidity brushes.

    humidity brush
  • Added a brush for planting trees.

    tree planting brush
  • Added new brushes.

    new brush
  • Added recomputing of humidity (grass color).

    humidity recomputation
  • Added a rivers brush.

    rivers brush
  • Added possibility to force building facing to the road, including corners.

    building facing to road
  • Added a basic FBX generator.

    basic fbx generator
  • Added a CPU filters tab with buttons, disabled for now.

    cpu filters tab
  • Editor can now place all possible buildings.

    editor building placement
  • Added saving of the height map.

    height map saving
  • Added a first version of terrain heightmap brushes, disabled for now.

    terrain heightmap brush
  • Added GPU heightmap filters including Multiply, Bias, Blur, Median, Voronoi, VoronoiSmooth, Perlin, Gerstner, AdjustHeights, GeoNoise and WaterErosion.

    gpu heightmap filter
  • Heightmap loading supports jpg, png and dds formats.

    heightmap file format support
  • Added two new heightmap filters, multiply and bias.

    multiply and bias heightmap filter
  • Industry buildings are now available only in the editor plus quest buildings.

    available industry building
  • Added a switch to turn the 32-bit terrain heightmap on or off.

    32-bit terrain heightmap switch
  • Added ability to start a new game from a saved scenario.

    new game from saved scenario
  • Added map description, work in progress.

    map description
  • Editor now keeps the landscape when the map size changes.

    landscape kept on map size change
  • Added the world's largest 7000 towns.

    world largest 7000 town
  • Added ability to start a new game from a saved map with artificial infrastructure erased.

    new game from saved map
  • Added planting of trees based on density.

    density-based tree planting
  • Added a brush for removing trees.

    tree removal brush
  • Removed construction mud when in editor mode.

    construction mud in editor mode
  • Added a second stage of town buildings, work in progress.

    second stage of town building
  • Added the new song Diesel time.

    new song
  • Added ability to load and save heightmaps and masks.

    heightmap and mask load/save
  • A mod with the Elishka steam engine was added.

    steam engine mod
  • Texture initialization supports more formats.

    texture format initialization
  • Added a brush that copies height from where painting started.

    copy-height brush
  • Added possibility to add custom map descriptions with images.

    custom map description with image
  • Added placing of towns according to latitude and longitude.

    town placement by latitude/longitude
  • Added a plant brush, disabled as work in progress.

    plant brush
  • The Set filter can now draw a specific altitude.

    set filter altitude drawing
  • Added separate generating and removing of plants, heightmap, towns, industries and humidity map.

    separate generate/remove operation
  • Added a Europe heightmap.

    europe heightmap
  • Added latitude and longitude settings for town generation, stored to setup.xml.

    latitude/longitude town generation setting

Controls · 6

  • Added the ability to limit brush and filter to either underwater or above water.

    brush restriction to underwater or above water
  • Right-clicking now cancels the brush.

    right-click brush cancel
  • Fixed a bug with repeating keystrokes.

    repeating keystroke
  • Input box can now be restricted to numbers.

    numeric-only input box
  • Fixed brush wrongly applying when clicking on UI.

    brush applied on ui click
  • Brush now paints even when the mouse moves over GUI windows.

    brush painting over gui window

System · 47

  • Added an asynchronous queue for filters.

    asynchronous filter queue
  • All buildings are erased when changing map size.

    building erasure on map size change
  • Added four script callbacks: OnIndustryTick, OnEpochChange, OnTokenChange and OnSecond.

    script callback
  • Added persistent per-brush setup.

    per-brush persistent setup
  • Added a limit for custom map count.

    custom map count limit
  • Added the DbgTextClear script function.

    dbgtextclear script function
  • Brush paints to a texture first and applies it as an amount mask on mouse release.

    brush painting pipeline
  • Switched versioning repository.

    versioning repository
  • Optimized processing of the UI add item list.

    ui add item list processing
  • Improved town generation.

    town generation
  • Humidity is automatically recomputed after a generation step.

    automatic humidity recomputation
  • Per-vertex terrain changes are batched together.

    terrain change batching
  • Added undo with 5 steps, later modified to 10 steps.

    undo step
  • Moved plants to the landscape generator so it cooperates with brushes.

    plant generation placement
  • Roads placed in editor now belong to towns.

    roads ownership in editor
  • After terrain brushes, affected map objects are tested and removed if the terrain is unsuitable.

    post-brush affected object validation
  • Mods moved from media to a mods directory.

    mod directory location
  • Whole town is removed when its main building is removed.

    whole town removal when main building removed
  • Added tests for save file error recovery.

    save file error recovery test
  • Town no longer removes its buildings so often.

    town building removal frequency
  • Simplified rendering of the screen quad.

    screen quad rendering
  • When saving, buildings not available in the first era are removed and stored in a special list.

    saving non-available building
  • Sped up the main menu.

    main menu speed
  • Trace dump was disabled until a proper switch is implemented.

    trace dump
  • Another steam workshop iteration.

    steam workshop iteration
  • Only the affected area is updated when using brushes.

    brush update performance
  • Improved town growing with building upgrades and road changes.

    town growing building upgrades and road
  • Added the possibility to use directories inside mods as a mod.

    directory-based mod
  • Fixed reuse of map cache, giving about 5% performance improvement.

    map cache reuse
  • Another iteration of the Steam Workshop implementation.

    steam workshop implementation
  • Refactored town growing to use building budgets.

    town growing refactor
  • Year is reset when starting a new game.

    year reset on new game
  • Added a map seed.

    map seed
  • Added autosave in the editor.

    editor autosave
  • Modified the copy build media batch file.

    copy build media batch file
  • Raised the argument limit for UpdateTextFormat from 16 to 64.

    script function argument limit
  • Heightmap loading is now GPU-accelerated.

    heightmap loading performance
  • Heightmap is internally switched from 8-bit to 32-bit texture on the GPU.

    heightmap texture precision
  • Minimal resolution raised from 800x600 to 1024 by 720.

    minimum resolution
  • Ruined church script now searches for an existing one instead of creating a new one on custom maps.

    ruined church script
  • Added a script function returning the hash of a given industry object.

    industrygettype script function
  • Iteration of GPU terrain routines was modified.

    gpu terrain routine iteration
  • Added internal ability to test-load a file reading basic info without applying it.

    test load of save file
  • Industries from eras other than the first are removed from custom maps when starting a new game.

    industry removal on new game
  • Modified recovery from some save file corruptions.

    save file corruption recovery
  • Each filter gets one parameter that can specify a filter function.

    filter parameter
  • Custom industries are placed in each era, falling back to within 20 tiles or random placement.

    custom industry placement

UI · 47

  • Added plant and humidity tooltips.

    plant and humidity tooltip
  • Industry icons in build tool are sorted by start era.

    industry icon sorting in build tool
  • Removed autosaves from the new custom map menu.

    autosaves in new custom map menu
  • Fixed the number of towns displayed in the bottom right corner.

    town count display
  • Added terrain brush visualization.

    terrain brush visualization
  • Added building buttons to grow a town and delete a whole town.

    grow town and delete town button
  • Terrain tools buttons scaled up by 20px each to fit translated texts.

    terrain tools button size
  • Added brush hardness and brush size settings.

    brush hardness and size control
  • Time was turned off in the editor.

    time in editor
  • Brush no longer changes its color according to brush amount.

    brush color behaviour
  • When maximized, window size is no longer remembered; the normal window state size is kept.

    window size memory when maximized
  • New game advanced back now returns to the previous tab.

    new game advanced back navigation
  • Added a scrollbar to the map selection in new game.

    custom map selection scrollbar
  • Brush visualization shows only the actual brush position rather than a line.

    brush visualization position
  • Added scrollbar in custom map description in new game window.

    custom map description scrollbar
  • Map coordinates are shown in the bottom right corner.

    map coordinates display
  • Removed wrong tooltip with tutorial string.

    tutorial tooltip
  • Terrain heightmap Filters tab was brought back.

    terrain heightmap filters tab
  • Modified humidity brushes and editor icon.

    humidity brushes and editor icon
  • Date progress in the editor was turned off.

    date progress display in editor
  • Modified texts.

    text
  • Added autowrap and clipping of text into input box.

    input box text wrapping and clipping
  • Custom map info is now loaded only on request in the new game window.

    new game window custom map info loading
  • Windows can have fixed width of the right half, not only the left.

    fixed width window halve
  • Improved input boxes with dark background and proper focus handling.

    input box appearance and focu
  • Date is hidden in editor except for the month.

    date display in editor
  • Added many editor related tooltips.

    editor tooltip
  • Switched the positions of the Flatten and Set brushes.

    flatten and set brush position
  • Some terrain tools window button names were changed.

    terrain tools button name
  • Modified localized texts.

    localized text
  • Input box now supports multiline.

    multiline input box
  • Added a terrain tools window.

    terrain tools window
  • Added map size filters when browsing custom maps.

    map size filters in custom map
  • Added a wind sound switch.

    wind sound switch
  • Splash screen now shows Including Editor.

    splash screen text
  • Terrain tools window is now visible by default when starting the editor.

    terrain tools window default visibility
  • Added UI that visualizes the number of cached undo steps.

    undo ui
  • Updated new texts version.; Modified to a new localized text version.

    localized text version
  • Not-finished buildings from locked eras were removed from the construction menu.

    construction menu
  • Added icons and help for plant brushes, under and above water.

    plant brush icons and help
  • Added localized Terrain tools and Terrain brushes window captions.

    localized terrain tools and brushes caption
  • Fixed wrong tooltip after each brush application.

    brush tooltip
  • Hidden the year in the editor.

    year display in editor
  • Improved the custom map window.

    custom map window
  • Added a UI gradient window overlay.

    ui gradient window overlay
  • Added an amount scrollbar so multiple filters can be combined sequentially.

    filter amount scrollbar
  • Fixed buttons enlarging in the non-town building window.

    button enlargement in non-town building window

Fix · 98

  • Fixed town growing in editor.

    town growing in editor
  • Fixed removing of roads by the plant brush.

    road removal by plant brush
  • Fixed a paragraph line.

    paragraph line
  • Fixed another freeze that occurred when buildings could not be placed.

    freeze when unable to place building
  • Fixed loading of textures with non power-of-2 size.

    non-power-of-2 texture loading
  • Fixed humidity paint brush.

    humidity paint brush
  • Fixed the random numbers generator master vs slave logic.

    random number generator master/slave logic
  • Fixed loading of flat heightmaps.

    flat heightmap loading
  • Height scale when loading heightmap is 0-255 again.

    heightmap scale on load
  • Fixed multiple industries generated when starting a custom map.

    multiple industries on custom map start
  • Fixed far ambient BBoxes computing.

    far ambient bounding box computation
  • Fixed randomly spread buildings.

    randomly spread building
  • Fixed a freeze that occurred when starting the second era.

    freeze when starting 2nd era
  • Fixed crash when generating trees then changing map size.

    crash on tree generation then map size change
  • Fixed credits.

    credit
  • Advanced New game params are now applied also to custom maps.

    advanced new game params on custom map
  • Terrain tools are no longer available outside the editor.

    terrain tools availability
  • Fixed copying artificial plants when generating a new map.

    artificial plants copying on new map
  • Fixed UI frame text alignment.

    ui frame text alignment
  • Fixed asynchronous Undo list issue.

    asynchronous undo list
  • Fixed erasing the map in editor after loading.

    map erasure after load
  • Fixed streaks across the whole map on first brush use.

    brush streaks on first use
  • Fixed device lost clearing the whole map.

    device lost map clearing
  • Fixed shadow clipping too early in the distance.

    shadow clipping distance
  • Fixed town and building icon altitude when modifying heightmap.

    town icon altitude on heightmap change
  • Fixed map reset when restarting the editor.

    map reset on editor restart
  • Fixed town captions.

    town caption
  • Fixed missing humidity when a random map is generated.

    missing humidity on random map generation
  • Fixed random spread of generated buildings.

    random spread of generated building
  • Removed asserts from release builds, which had caused crashes without VC.

    asserts causing crashes in release
  • Building editor buttons are now properly limited to editor only.

    building editor buttons restriction
  • Fixed the debug script output window.

    debug script output window
  • Fixed industry start positions and names.

    industry start positions and name
  • Fixed limiting brushes to underwater or above water.

    brush underwater restriction
  • Fixed a deadlock in async generation when starting a new game.

    deadlock in async generation
  • In a paused game, towns wrongly gained passengers from surrounding buildings; this was fixed.

    passenger count in paused game
  • Fixed the loading screen freezing until the mouse was moved.

    loading screen freeze
  • Fixed the tree brush hiding the forest model.

    tree brush hiding forest model
  • Fixed erasing of towns when generating.

    town erasure on generation
  • Fixed save and load of heightmap scale.

    save/load heightmap scale
  • Fixed a crash when clicking on a building.

    crash when clicking a building
  • Fixed loading of bitmaps lacking an imageSize header on some operating systems.

    bitmap loading without image size header
  • Fixed unpacked mods.

    unpacked mod
  • Fixed crash when loading heightmap, changing map size and erasing.

    crash on heightmap load and map change
  • Fixed new game producing only 1/4 of a map.

    new game producing only a quarter map
  • Fixed memory overflow when reading uniform string from file.

    memory overflow reading uniform string
  • Fixed generating on low, medium and high presets.

    low/med/high presets generation
  • Fixed using random tree then tree brush.

    random tree then tree brush
  • Fixed town building generation and optimized it.

    town buildings generating
  • Fixed 1x1 towns generating when used for the second time in editor.

    1x1 town generation on reuse
  • Fixed baking textures.

    baking texture
  • Fixed industry generation when starting a new game.

    industry generation on new game
  • Fixed using automatic humidity map generating followed by humidity brushes.

    automatic humidity then humidity brush
  • Towns that were not growing have been fixed.

    town growth
  • Fixed scaling of heightmap when loading.

    heightmap scaling on load
  • Fixed issues in the bottom right corner of the map after using some filters.

    bottom right map corner after filter
  • Vegetation now checks for suitable terrain after using brushes.

    vegetation terrain check after brush
  • Fixed new game map generation.

    new game map generation
  • Fixed packages loading.

    package loading
  • Fixed file corruption when adding an industry in editor and saving or loading.

    corrupted file on industry add
  • Fixed loading of old save files.

    loading of old save
  • Fixed using the bulldozer on buildings in editor.

    bulldozer on building
  • Fixed town and industry names when starting a custom map.

    town and industry names on custom map start
  • Fixed whole-map filters and sometimes incorrect filter results.

    whole-map filter result
  • Fixed wrong map shape when generating a new map.

    map shape on new map generation
  • Fixed heightmap loading the second and later times.

    heightmap loading repeat
  • Fixed changing map size in editor causing brushes to generate holes.

    map size change causing brush hole
  • Fixed editing clearing the map after loading a file.

    map clearing after load
  • Fixed column width in new game custom maps map info.

    column width in new game custom maps info
  • Fixed new era building positioning.

    new era building positioning
  • Fixed town growing.

    town growing
  • Added work-in-progress restoration of humidity after device lost.

    humidity after device lost
  • Fixed low, medium and high town counts when generating in editor.

    low/med/high town count in editor
  • Placing industry searched for closest towns including non-existing ones; this was fixed.

    industry placement town search
  • Fixed deleting towns containing larger buildings.

    deleting towns with larger building
  • Fixed the icon.

    application icon
  • Fixed removing of bigger buildings.

    removal of bigger building
  • Fixed the new game window size.

    new game window size
  • Fixed saving of maps.

    saving map
  • Fixed non-working Content tool colors.

    content tool color
  • Fixed corrupting save files when saving.

    save file corruption on save
  • Fixed town growing when a road is missing.

    town growing when road missing
  • Fixed watermark appearing when loading a map into the editor.

    watermark on map load
  • Fixed lowering of the map when painting with some filters.

    map lowering with filter
  • Fixed brushes removing bridges and tunnels.

    brushes removing bridges and tunnel
  • Fixed mods loading from zip and switched every path to lower case.

    mods loading from zip
  • Fixed vertical scale of heightmap after loading.

    heightmap vertical scale after load
  • Fixed generating editor trees followed by painting them.

    editor tree generation then painting
  • Fixed the number of town buildings generated.

    town building count generation
  • Fixed missing shadows.

    missing shadow
  • Fixed reassigning a town when the town is removed.

    town reassignment on removal
  • Fixed manual tree placing followed by tree brushes.

    manual trees then tree brush
  • Default map coordinates now fit the Europe heightmap.

    default map coordinate
  • Fixed a crash in editor.

    editor crash
  • Fixed consistency of random numbers.

    random number consistency
  • Humidity no longer resets when an undo step is used.

    humidity reset on undo
  • Fixed loading of longer strings.

    loading of longer string
  • Fixed new map generation.

    new map generation

General · 1

  • The translated texts were updated to the latest version.

    general