[1.3] Map Reroll (2.7.1) - Pick your starting map

Started by UnlimitedHugs, March 28, 2016, 05:23:43 PM

Previous topic - Next topic

UnlimitedHugs


Description:
This mod allows you to generate new starting maps for your colonies.



Features

  • Reroll your starting maps to change the landscape, but keep your biome, elevation, etc. And, you get to keep your colonists.
  • The map preview system generates miniatures of potential reroll destinations, so you can pick exactly the map you're looking for.
  • Roll new steam geyser locations for that shiny geotherm right near your dirt shack.
  • Generating map previews will cost you mineable resources. You might be paying for that extra page in plasteel.
  • For free stuff enthusiasts, the resource cost can be turned off in the in-game settings menu.
  • Included translations: Chinese (by yuriok)

Usage

  • The HugsLib library is required to run this mod. Download link below.
  • Extract both mods to your Rimworld/Mods folder.
  • Enable both mods in the Mods menu. HugsLib must be loaded first.
  • Enjoy!

Changelog

2.6.0: Rimworld 1.2 compatibility, tweaks
- Added button to re-enable rerolling after "Keep this map" as used
- Map size setting now accepts arbitrary numbers
- Optimizations for faster preview generation

2.5.2: Minor fix, backported features
Changes for Rimworld 1.1:
- Fixed rerolls failing when a language with missing important strings is active
Changes for Rimworld 1.0:
- Fixed Prepare Carefully compatibility issue- animals changing genders on reroll
- Geyser arrows will not be automatically hidden while the game is paused
- Added encounter map size (75x75)

2.5.1: Fixed compatibility with Rimworld 1.0

2.5.0: Updated for Rimworld 1.1, unreleased additions
This and future releases are compatible with both Rimworld 1.1 and 1.0.
- Fixed Prepare Carefully compatibility issue- animals changing genders on reroll
- Geyser arrows will not be automatically hidden while the game is paused
- Added encounter map size (75x75)

2.4.0: Updated to Rimworld 1.0

2.3.4: Mod compatibility tweaks
- Restored "Configure map" button for Kiame's Configurable Maps

2.3.3: Updated to B19, tweaks and fixes
- Added map stripping (memory cleanup)
- Map disposal now happens before map generation
- Rerolls will always respect the 'has caves' tile feature
- Fixed rock overwriting rivers on previews
- Fixed 'could not find drop spot' error
- Added ROM Vampires compatibility fix
- Added ModSync config

2.2.3: Compatibility tweaks
- Fixed startup error when loaded with certain other mods
- Dice button and windows should now always display on top

2.2.2: Drop pod fix
- Fixed player launched drop pods causing errors on arrival

2.2.1: Fix, compatibility tweak
- Fixed preview generation of river maps
- Added compatibility patch for the Configurable Maps mod
- Added button to previews window for quick access to Configurable Maps settings

2.2.0: Updated to B18
- Added caves to preview generator
- Added setting to hide caves on previews
- Maps can now be resized when rerolling (see mod settings)

2.1.2: Mod conflict fix
- Added error handler to prevent unknown mod conflict from breaking map rerolling.

2.1.1: Important fix
- Fixed resources being consumed on each map load
- Geyser arrows will expire even if the game is paused
- Added option to disable geyser arrows entirely

2.1.0: UI rework, new features
- Added "Keep this map" button
- Rerolls no longer expire after naming the colony
- Improved the look of the reroll controls window
- Added setting to change the default map size of the world
- Consumed resources now replaced with more appropriate rock type
- Fixed purchased preview pages not being saved

2.0.0: Rewrite, added map previews
- Rewritten rerolling logic for better stability & performance
- Additional settled maps can now also be rerolled
- Added map preview system
- Map reroll cost is now per preview page, rather than per map
- Overhauled reroll control visuals
- Removed the secret feature
- Added arrows pointing to rerolled geysers
- All rerolling can now be done while the game is paused

1.6.1: Important fixes
- Fixed errors when generating maps other than your starting map
- Reroll controls will now be hidden on the world map
- Creating a caravan will now lock the reroll map button
- Having no colonists on the map will prevent rerolls
- Added tooltips to the reroll button to explain the lockout

1.6.0: Updated to A17
- Added rerolling support for loaded games
- Refactored the code base

1.5.3: Compatibility fix
- Added Crash Landing compatibility

1.5.2: Minor fixes, translation
- Deterministic rerolls: rerolling on the same seed and tile will produce the same sequence of maps
- Fixed interface issues when scaling is above 1x
- Colonists on rerolled maps will now remember their pod landing for artistic purposes
- Added Chinese translation

1.5.1: Minor fix
- Fixed a potential error on map reroll

1.5.0: Updated to A16
- Added a notification and sound for secret discovery

1.4.6: Minor fix
- Updated HugsLib (settings order fix)

1.4.5: Mod update news fix
- Updated HugsLib to 1.0.4

1.4.4: Important fixes
- Fixed errors on saving/loading maps
- Fixed duplicate pawns in save
- Fixed shrine corpses accumulating in the save each reroll
- Damage and effects on colonist health will now carry over between rerolls
- Fixed hurt colonists spawning with a red tint after a reroll
- Added dev mode setting to suppress cryptosleep sickness
- Updated HugsLib to 1.0.3 (CaveworldFlora compat fix)

1.4.2: Compatibility fixes
- Fixed compatibility with Prepare Carefully
- Deep Drill will no longer get stuck on invalid resource
- Updated HugsLib to 1.0.1

1.4.1: Hotfix
- Fixed error on loading an existing map

1.4.0: Content update
- The mod is now dependent on the HugsLib library, which comes included
- Added in-game settings
- Added update news
- Added free rerolls option
- Added secret feature
- Colonists will now be fully reset between rerolls, fixing a number of issues

1.3.1 - 12/9/16,
- Dice widget will no longer hide under the learning helper window
- Dice widget should no longer appear on the loading screen
- Removed artifacts from textures

1.3.0 - 31/8/16
- Updated to A15
- Interface widget now properly hides on loaded games
- Added config setting for logging consumed resources
- Added config setting to offset the interface widget

1.2.1 - 30/7/16
- Minor fix: colonists auto-generated during rerolls are now properly disposed of

1.2.0 - 29/7/16
- Updated to A14
- Silly loading messages are back!
- Reroll window will now stay open after a rerolled map load.

1.1.4 - 1/5/16
- Fixed incompatibility with latest release of Prepare Carefully

1.1.3 - 28/4/16
- Added compatibility patch for the early A13 release of Prepare Carefully.

1.1.2 - 28/4/16
- Scaled down the dice widget and added size setting to the xml config.

1.1.1 - 10/4/16
- The geyser reroller will now do its best to pick new locations for all new geysers.
- Fixed a bug with map rerolling: after enough rerolls the generator would fail to find places to put stuff.

1.1.0 - 7.4.16
- Ported to A13.
- Silly loading messages had to be cut for now.

1.0.2 - 1.4.16
- World seed will no longer change after a map reroll.

1.0.1 - 29.3.16
- Added EdB Prepare Carefully compatibility.


Pack policy
Feel free to use and include wherever. Credit is optional.

Source
Github

Download

Github releases: Latest, All releases

HugsLib library (required): Latest

Also available on the Steam Workshop.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

Simulacrum0

#1
This does not work with Prepare Carefully. I started with 5 re-rolled and got the 3 pawns you get before you use Prepare Carefully.

UnlimitedHugs

#2
Compatibility to come in the near future, if all goes well.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

Simulacrum0

Good to hear, i would much rather take my chances on a bad map than with bad pwns.

UnlimitedHugs

Updated to 1.0.1

Good news! Map Reroll now comes with 100% more Prepare Carefully compatibility.
The implementation is rather hacky for now, so I paged EdB to put some hooks in his code.
Still, it does work, so do enjoy.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

Dugalle900

Quote from: Ouan on March 09, 2016, 10:33:20 PM
I see that the rumors that Skullywag modded himself to death were greatly exaggerated.

UnlimitedHugs

That is always great to hear. Thank you for your feedback.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

Simulacrum0

This changes the map you get by changing the world you are on if you pick a location by the temperate this wont help you.

UnlimitedHugs

It does indeed change the world seed to get the map to change. Still, the properties of your embark location should always remain the same on every reroll, including the biome. Not sure what issue you are having, could you explain more fully?
Also, I guess I could set the world seed back to what it was originally was after each reroll, in case it does affect something I'm not aware of.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

brucethemoose

This + Prepare Carefully is exactly what I needed in my life.

You'll update this for Alpha 13, right?

Also, I haven't downloaded it yet, so sorry if this is a stupid question, but is there an option to disable the resource cost?

UnlimitedHugs

Keeping an eye on the Rimworld Reddit to catch the update as soon as it lands- so I can get with the updating as soon as possible. Lots of people will be playing again, so this was a great time to release.

As for disabling the cost, take a look at MapReroll/Defs/MapRerollDefs/MapReroll.xml
You'll want to set both geyserRerollCost and mapRerollCost to zero.
Take care!
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

Simulacrum0

biome stays the same but temperate does not, i play on maps with winter tep at -100f or higher if i reroll i lose that.

UnlimitedHugs

Oh, I see. Interesting, I shall look into it. Thanks for the heads up!
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

UnlimitedHugs

Updated to 1.0.2

Resolved the issue with the changing seed. This should address the changing temperature levels.
HugsLib - AllowTool - Remote Tech - Map Reroll - Defensive Positions: Github, Steam

LadyAth

Thank you SO much for this mod!  The amount of times I have re-started my setups (with and without EdB's Prepare Carefully) just to get the kind of map I want, more than justifies me downloading and using Map Reroll.  *hugs!!!*