fix a few things
This commit is contained in:
parent
457c0c2e28
commit
c00c129499
3 changed files with 7 additions and 9 deletions
|
@ -7,7 +7,7 @@ using LibZNI;
|
|||
[assembly: AssemblyCompany("ZNI")]
|
||||
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
|
||||
[assembly: AssemblyCopyright("(C) 2020 Tara Piccari")]
|
||||
[assembly: AssemblyFileVersion("5.0.5.1254")]
|
||||
[assembly: AssemblyFileVersion("5.0.5.1255")]
|
||||
[assembly: AssemblyDescription("Second Life Bot - BotCore5")]
|
||||
[assembly: AutoUpdater("/job/Bot", "!os!.tar")]
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace Bot.Assemble
|
|||
public class ASMInfo
|
||||
{
|
||||
public static string BotName = "ZBotCore";
|
||||
public static string BotVer = "5.0.5.1254";
|
||||
public static string BotVer = "5.0.5.1255";
|
||||
public static string GitPassword
|
||||
{
|
||||
get
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<SignAssembly>false</SignAssembly>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<StartupObject>Bot.Program</StartupObject>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
11
Program.cs
11
Program.cs
|
@ -334,8 +334,8 @@ namespace Bot
|
|||
|
||||
|
||||
}
|
||||
else
|
||||
BotSession.Instance.grid.Inventory.Store.RestoreFromDisk("BotData/Inventory.blob");
|
||||
//else
|
||||
//BotSession.Instance.grid.Inventory.Store.RestoreFromDisk("BotData/Inventory.blob");
|
||||
|
||||
|
||||
int iLastInvLength = 0;
|
||||
|
@ -344,8 +344,8 @@ namespace Bot
|
|||
|
||||
if(iLastInvLength != BotSession.Instance.grid.Inventory.Store.Items.Count)
|
||||
{
|
||||
BotSession.Instance.grid.Inventory.Store.SaveToDisk("BotData/Inventory.blob");
|
||||
iLastInvLength = BotSession.Instance.grid.Inventory.Store.Items.Count;
|
||||
//BotSession.Instance.grid.Inventory.Store.SaveToDisk("BotData/Inventory.blob");
|
||||
//iLastInvLength = BotSession.Instance.grid.Inventory.Store.Items.Count;
|
||||
}
|
||||
string consoleCmd = "N/A";
|
||||
try
|
||||
|
@ -846,8 +846,6 @@ namespace Bot
|
|||
private static void CacheGroupRoles(object sender, GroupRolesDataReplyEventArgs e)
|
||||
{
|
||||
//MHE(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "[debug] role_reply");
|
||||
if (!Directory.Exists("zGroupCache")) Directory.CreateDirectory("zGroupCache"); // this should be purged at every bot restart!!!
|
||||
|
||||
//MHE(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "[debug] generating groupcache file");
|
||||
zGroupCaches newCache = new zGroupCaches();
|
||||
zGroupCaches.GroupMemoryData gmd = new zGroupCaches.GroupMemoryData();
|
||||
|
@ -865,7 +863,6 @@ namespace Bot
|
|||
newCache.GroupID = e.GroupID;
|
||||
newCache.Save(e.GroupID.ToString());
|
||||
RoleReply.Set();
|
||||
FileInfo fi = new FileInfo("GroupCache/" + e.GroupID.ToString() + ".json");
|
||||
|
||||
//MHE(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "[debug] Roles for secondlife:///app/group/" + e.GroupID.ToString() + "/about have been saved to: GroupCache/" + e.GroupID.ToString() + ".bdf\nFileSize: "+fi.Length.ToString(), 55);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue