Expensive Vanilla Scripts

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

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

User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Its been a long time since I bothered reading a 24 page thread all the way through.

Litcube, I'd no idea you had done even a tenth of that list way back when.

I've downloaded this and will try it as soon as I get a games computer back, due to mine dropping dead the other day. If its good, I'll probably include it in my AP AMS mod, when I also add Bounce into it.
User avatar
Charon_A
Posts: 105
Joined: Wed, 6. Nov 02, 20:31

Post by Charon_A »

This is some awesome piece ow work here, Litcube!
Thanks a lot! Will start using it and will report if I notice anything weird :P
Be careful about reading health books. You may die of a misprint.
---Mark Twain---
kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

Post by kurush »

I was running this replacement in AP for several game days without problems and then I suddenly got a lockup with the game freezing up seconds after reload. I panicked, removed the files and loaded an earlier save. I ended up with about 10 FPS loss in the next hour (comparing 35-40 vs 45-50 in UFJD sector). How long does it take for ships to start using new tasks? Also, any ideas how I can troubleshoot potential lockups? I am not running any major mods or script packages.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

kurush wrote:I was running this replacement in AP for several game days without problems and then I suddenly got a lockup with the game freezing up seconds after reload. I panicked, removed the files and loaded an earlier save. I ended up with about 10 FPS loss in the next hour (comparing 35-40 vs 45-50 in UFJD sector). How long does it take for ships to start using new tasks? Also, any ideas how I can troubleshoot potential lockups? I am not running any major mods or script packages.
It's funny you say this.

Was it during a possible confrontation? I.E. were there pirates, xenon, kha'ak in the sector? Or two foes in the sector close to each other?
kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

Post by kurush »

Litcube wrote: It's funny you say this.
Why? :)
Litcube wrote: Was it during a possible confrontation? I.E. were there pirates, xenon, kha'ak in the sector? Or two foes in the sector close to each other?
It was in an empty UFJD sector about 20 sec after jumping in. It was reproducible from a save game that I was stupid enough to overwrite. Now I decided not to panic and restored the rewrite, so far so good. I am not saying they are related, just asking for possible hints how to better troubleshoot it. The FPS gain is awesome.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

I have discovered a very rare possible infinite loop. I'll be fixing it soon.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:I have discovered a very rare possible infinite loop. I'll be fixing it soon.
I was getting it in AP as well.

After removing the scripts it stopped.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

The problem with those types of bugs is that it could be from anywhere.

I isolated a save that would present the lockup in 12 seconds. With that I used elimination to get the issue down to two ships, and two scripts. That took 3 hours.
Alkeena
Posts: 603
Joined: Tue, 15. May 07, 20:43
x4

Post by Alkeena »

First, I want to say that I immensely appreciate all the work you've put into this, and other scripts.

On to the report.

So I just gave it a go in an install of AP-XRM. I'm also using a bevy of other mods/script packages (including some custom stuff) that I've played with for about 20 hours so far without issue.

This appears to break the command "Attack Target Nearest" which is the command that I use in lieu of defend ship. I believe this may be an AP only command (as I don't recall it in TC, but then it's been quite some time...). Anyway, instead of proactively seeking out potential aggressors the escorts simply remain in formation, even while their lead is being shot at.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Alkeena wrote:This appears to break the command "Attack Target Nearest" which is the command that I use in lieu of defend ship. I believe this may be an AP only command (as I don't recall it in TC, but then it's been quite some time...). Anyway, instead of proactively seeking out potential aggressors the escorts simply remain in formation, even while their lead is being shot at.
Hm... I'll look into that.
kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

Post by kurush »

Hi Litcube, I don't suppose you are testing that fix you mentioned several days ago? :roll: I finally got to the point when all my recent saves produce a freeze after some time. I tried to kill all ships in the universe that are docked along with their homebase ships and for some reason it didn't help. Any ideas what criteria can I use to isolate the ships that have this command running?
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Still haven't been home yet.
User avatar
Charon_A
Posts: 105
Joined: Wed, 6. Nov 02, 20:31

Post by Charon_A »

I'd like to add that in addition to "Attack nearest target of" two more commands are not working in AP:
- Attack my target
- Attack target of

Not that we can't live without those, I perfectly well did till now, but still, if you're gonna fix one - why not fix all :) Thanks!
Be careful about reading health books. You may die of a misprint.
---Mark Twain---
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Yup. Good points, all.
User avatar
Charon_A
Posts: 105
Joined: Wed, 6. Nov 02, 20:31

Post by Charon_A »

Some time ago I downloaded Missile Safety script by Gazz .
Only today I got to install it and saw in changelog that Gazz implements almost the same things in the !move.follow.template as you do, Litcube.
You may find it interesting perhaps
Be careful about reading health books. You may die of a misprint.
---Mark Twain---
kurush
Posts: 4320
Joined: Sun, 6. Nov 05, 23:53
x3tc

Post by kurush »

Charon_A wrote: Only today I got to install it and saw in changelog that Gazz implements almost the same things in the !move.follow.template as you do, Litcube.
@Charon_A: did you get a similar huge FPS boost on SETA from Gazz script as this one provides? I really miss my 15 FPS on SETA now when I had to remove it because of freezes. 4 FPS suck.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

I think I did fix it. Gimme a minute.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Vanilla Rewrite 0.37b:
[ external image ]

- Fixed: Infinite loop created under certain circumstances within combat.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

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

Post by qwizzie »

hi Litcube, can you tell me a lil bit more about that fixed Infinite loop...
because i recently installed yr scripts and got very early on in a new game
a message that an Infinite loop was detected and script had to be closed ?

Does this mean the Vanilla Rewrite stops working then or is it just the fix informing us about the found infinite loop? and do we keep getting these messages whenever it detects it?

thnks,


qwizzie

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