Exemple #1
0
        public static void OnStartupApp(object obj, System.EventArgs e)
        {
            ulong messageCode = 0;

            Sims3.SimIFace.StopWatch stopWatch = Sims3.SimIFace.StopWatch.Create(Sims3.SimIFace.StopWatch.TickStyles.Milliseconds);
            stopWatch.Start();
            while (messageCode != (ulong)MessageIDs.HandShakeRequest)
            {
                stopWatch.Restart();
                try { messageCode = System.BitConverter.ToUInt64(messageBuffer, 0); }
                catch
                { }

                while (stopWatch.GetElapsedTime() < 100)
                {
                }
            }

            string saveFile = "Sunset Valley.sims3";

            Sims3.UI.GameEntry.SaveGameMetadata meta = new Sims3.UI.GameEntry.SaveGameMetadata();
            meta.mSaveFile = saveFile;
            Sims3.Gameplay.MainMenuState ms = new Sims3.Gameplay.MainMenuState();
            ms.Startup();
            ms.Shutdown();
            Sims3.Gameplay.GameStates.TransitionToGameStateToInWorld(saveFile, meta, Sims3.Gameplay.InWorldState.SubState.LiveMode, true);
        }
Exemple #2
0
        public static void OnStartupApp(object obj, System.EventArgs e)
        {
            while (!bufferConnected)
            {
                ProcessMessages();
            }
            string saveFile = "SimsOnlineModTempWorld.sims3";

            Sims3.UI.GameEntry.SaveGameMetadata meta = new Sims3.UI.GameEntry.SaveGameMetadata();
            meta.mSaveFile = saveFile;
            Sims3.Gameplay.MainMenuState ms = new Sims3.Gameplay.MainMenuState();
            ms.Startup();
            ms.Shutdown();
            Sims3.Gameplay.GameStates.TransitionToGameStateToInWorld(saveFile, meta, Sims3.Gameplay.InWorldState.SubState.LiveMode, true);
        }