Added files via upload

This commit is contained in:
janavarro95 2016-04-25 15:30:01 -07:00
parent 883851dd12
commit b5c4baf74b
3 changed files with 39 additions and 16 deletions

View File

@ -101,11 +101,12 @@ namespace Stardew_Save_Anywhere_Mod
DataLoader_Horse();
DataLoader_NPC(false); //loads the NPC's with original location info
initialize = true;
}
if (simulate_time == true)
{
timer = false;
simulate_time = false;
}
else timer = true;
@ -114,6 +115,10 @@ namespace Stardew_Save_Anywhere_Mod
warped = false;
//warp_character = false;
}
}
else warped = true;
DataLoader_Player(); //warps the character and changes the game time. WTF HOW DID THIS BREAK???
@ -561,6 +566,20 @@ namespace Stardew_Save_Anywhere_Mod
void my_save()
{
if (Game1.player.currentLocation.name == "CommunityCenter")
{
Log.Error("There is an issue saving in the community center. Blame the Junimos not being saved to the player's save file.");
Log.Error("Your data has not been saved. Sorry for the issue.");
return;
}
if (Game1.player.currentLocation.name == "Sewer")
{
Log.Error("There is an issue saving in the Sewer. Blame the animals for not being saved to the player's save file.");
Log.Error("Your data has not been saved. Sorry for the issue.");
return;
}
//if a player has shipped an item, run this code.
if (Enumerable.Count<Item>((IEnumerable<Item>)Game1.getFarm().shippingBin) > 0)
@ -581,14 +600,13 @@ namespace Stardew_Save_Anywhere_Mod
MyWritter_Player(); //write my info to a text file
MyWritter_NPC(false); //redundant??? I think so. Ohh well.
MyWritter_Horse();
DataLoader_Settings(); //load settings. Prevents acidental overwrite.
MyWritter_Settings(); //save settings.
Game1.warpFarmer(player_map_name, player_tile_x, player_tile_Y, player_flop); //refresh the player's location just incase. That will prove that they character's info was valid.
//Game1.warpFarmer(player_map_name, player_tile_x, player_tile_Y, player_flop); //refresh the player's location just incase. That will prove that they character's info was valid.
//so this is essentially the basics of the code...
// Log.Error("IS THIS BREAKING?");
@ -696,7 +714,7 @@ namespace Stardew_Save_Anywhere_Mod
Log.Error(asdf.name); //show the loaded location's name.
System.Threading.Thread.Sleep(50); //prevent the game from loading characters too quickly by delaying time 10 miliseconds.
if (asdf.name == "Farm") continue;
if (asdf.name == "CommunityCenter") continue;
foreach (StardewValley.NPC obj in NPClocationd.characters)
{
Log.Success(obj.name);
@ -828,6 +846,11 @@ namespace Stardew_Save_Anywhere_Mod
{
NPClocation = (GameLocation)asdf;
if (NPClocation.name == "CommunityCenter")
{
continue;
}
foreach (StardewValley.NPC obj in NPClocation.characters)
{

View File

@ -5,7 +5,7 @@ K
Timer interval for NPCs. Default 3500 which simulates game time at 4x speed.
3500
Simulate game time? Game time will be sped up until restored before saving
True
False
Warp player when loading?
True