Quick Map

Started by Andrew, September 22, 2016, 03:30:25 AM

Previous topic - Next topic

Andrew

I recall reading somewhere that Rimworld had a quick map or setup argument where it would quickly load the game directly to a small map for testing mods, but I am unable to find it or even confirm if it exists. If anyone could help me out it would be appreciated!

Master Bucketsmith

#1
Holy balls. Thank you! :O

It seems to start RimWorld and immediately load a new world with your currently loaded mods.

Steam (directly):
In the main client window, go into RimWorld's properties, then set a launch option like so; -quicktest
Don't forget to remove the launch option when you're done debugging!

Steam (better):

  • In the main client window, click on ADD A GAME in the lower left
  • Then select Add A Non-Steam Game
  • Navigate to your RimWorld folder and select the game's own RimWorldWin.exe
    This will create a shortcut to your Steam install of the game - if you use an alternative install (for modding perhaps) then obviously navigate to that instead
  • Right click on your new addition in your Steam library and click on Properties
  • Rename it to something like RimWorld Testing
  • Click on Set launch options and write -quicktest
  • Click on Ok, Close and boot the game through this shortcut whenever you want to quickly test something!

Non-Steam (Windows):

  • Navigate to your RimWorld folder and right click on RimWorldWin.exe
  • Click on Create shortcut
  • Right click on the shortcut and click on Properties
  • In the box where it reads Target, put the current file path in double quotation marks, add a space after the closing quotation mark and write -quicktest like in this example;
    C:\Games\Steam\steamapps\common\RimWorld\RimWorldWin.exe
    to
    "C:\Games\Steam\steamapps\common\RimWorld\RimWorldWin.exe" -quicktest
  • Click on Ok to save and close the window
  • Use your new shortcut to launch a quickstart test version of RimWorld with your currently loaded mods!

I used ILSpy and searched, found this:

using System;
using UnityEngine.SceneManagement;

namespace Verse
{
internal static class QuickStarter
{
private static bool quickStarted;

public static bool CheckQuickStart()
{
if (GenCommandLine.CommandLineArgPassed("quicktest") && !QuickStarter.quickStarted && GenScene.InEntryScene)
{
QuickStarter.quickStarted = true;
SceneManager.LoadScene("Map");
return true;
}
return false;
}
}
}

kaptain_kavern

#2
It's in the readme folks ;-)

At least it was last time I checked

Master Bucketsmith

Quote from: kaptain_kavern on September 22, 2016, 03:41:14 PM
It's in the readme folks ;-)

At least it was last time I checked
Heh. I must have looked over reading that or simply forgotten. :)