AP - L3M01 Sector cue and FPS drop

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

AP - L3M01 Sector cue and FPS drop

Post by kurush » Wed, 1. Aug 12, 01:10

I noticed that my game got a significant lag recently, especially when I run it on an old laptop I use for travel. After a quick investigation I found that the MD queue named "L3M01 Sector" appears to be the culprit: for whatever reason I had 43 instances of it in my game. Once I cycled its state 3 times in the mission director debug menu, the FPS drop disappeared.
Any ideas what might be going on and whether I can cancel all instances of this queue from an MD script?
EDIT: here is the script that got it fixed for me. I wonder if I messed up something in process?

Code: Select all


  <cues>
    <cue name="bounce" game="all" comment="send message" delay="5s">
      <condition>
         <check_value value="{player.name}" exact="bounce"/>
      </condition>
      <action>
        <do_all>
	      <reset_cue cue="L3M01"/>
              <play_subtitles text="Cue reset"/>
      </do_all>
      </action>
                          <cues>
                            <cue name="restart_bounce">
                              <timing>
                                <time exact="20s" comment="20 sec delay"/>
                              </timing>
                              <action>
                                <do_all>
           		      <reset_cue cue="bounce"/>
                                </do_all>
                              </action>
                            </cue>
                          </cues>
    </cue>
  </cues>
EDIT2: It looks like some leftovers from purchase asteroid data missions are getting accumulated. Each of 43 instances had L2M144 in its subcues.

qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie » Thu, 2. Aug 12, 20:34

best to contact Ketraar .. he has more knowledge about MD

kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

Post by kurush » Thu, 2. Aug 12, 21:02

qwizzie wrote:best to contact Ketraar .. he has more knowledge about MD
I was hoping he checks this thread :) In any case, I got my FPS restored without any visible issues by running that MD code after jumping 5 times from one Xenon sector to another to avoid any old missions that should be preserved (it messes up missions in the current sector and, likely, in several sectors you visitied last). It was getting into 30-es before and now it is 60 in a quiet sector. 60 seems to be the max, at least this is what I get on a new game.
It seems that there is a bug in some generic missions that prevents them from ending.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”