Changes

Jump to navigation Jump to search
96 bytes added ,  20:10, 12 January 2019
→‎Custom map: + load map first to avoid error
Line 88: Line 88:  
private void OnSaveLoaded(object sender, SaveLoadedEventArgs args)
 
private void OnSaveLoaded(object sender, SaveLoadedEventArgs args)
 
{
 
{
   // create a map asset key for an 'assets/map.tbin' file in your mod folder
+
   // load the map file from your mod folder
 +
  this.Helper.Content.Load<Map>("assets/map.tbin", ContentSource.ModFolder);
 +
 
 +
  // get the internal asset key for the map file
 
   string mapAssetKey = this.Helper.Content.GetActualAssetKey("assets/map.tbin", ContentSource.ModFolder);
 
   string mapAssetKey = this.Helper.Content.GetActualAssetKey("assets/map.tbin", ContentSource.ModFolder);
  
translators
8,404

edits

Navigation menu