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
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Joel, I have reproduced your lockup. Well done, man! A good tight find, that one.

Vanilla + Bailing Addon + Vanilla Rewrite = Lockup.

I'm trying to find out what's causing it right now...
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:Joel, I have reproduced your lockup. Well done, man! A good tight find, that one.

Vanilla + Bailing Addon + Vanilla Rewrite = Lockup.

I'm trying to find out what's causing it right now...
Whew! Now thats some good news. Glad we could find it.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Mizuchi wrote:You know you've doomed your thread by posting that list, right? :3
Have I accidentally this thread? :(
aka1nas
Posts: 1414
Joined: Thu, 7. Jul 05, 05:17
x4

Post by aka1nas »

joelR wrote:
Litcube wrote:
joelR wrote:I think I found it...



Check NPC bailing addon. After installing that and running the test it froze. I hope thats it.

http://forum.egosoft.com/viewtopic.php?t=219440

It also requires JSON parser libraries.
I'll take a look at it.
FYI I can reliably reproduce the freeze everytime. Ive tried it at low bail settings and maxxed out bail settings and get a 100% freeze everytime.
Super coincidentally, I was planning on jumping in last night to help test with my modded game. However, I had had a few random CTDs and ended up with my current save about 20 seconds before a 100% reproducible crash with a mission-spawned pirate M6.

I'm also running the NPC Bailing plugin. I'll see if I can dig out that save still and check if disabling it gets me past the point where it was CTD.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

I think I got er'. Joel, see if this fixes your problems:


Vanilla Rewrite 0.29b:
[ external image ]

- Target bailing, checks for enemy before trying to attack. One liner.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:I think I got er'. Joel, see if this fixes your problems:


Vanilla Rewrite 0.29b:
[ external image ]

- Target bailing, checks for enemy before trying to attack. One liner.
Froze again...
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

joelR wrote:Froze again...
Well, I'm using a fresh vanilla install, Bailing, all turned on, vanilla rewrite.

After 10x for an hour, no crash.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:
joelR wrote:Froze again...
Well, I'm using a fresh vanilla install, Bailing, all turned on, vanilla rewrite.

After 10x for an hour, no crash.

Hold on. Maybe I missed something when testing. Do-over...
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Nope. It froze again. Try this: Set all the options in NPC bailing to ON and set all conditions to 20. I can get the freeze after doing that everytime. I will keep them at default for awhile and see what happens. Either way im still getting the freeze. But only with the bailing add on installed.

EDIT: This is with a new save.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

No freeze with those settings. (still on seta, though..).

My scripts directory for this test is 2,981,556 bytes. What's yours?
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:No freeze with those settings. (still on seta, though..).

My scripts directory for this test is 2,981,556 bytes. What's yours?
Ohhh....im testing in a modified game not vanilla...The crash still only happens in a modified game with the bailing addon though. I can run your rewrite scripts with no issues as long as the bailing add on isnt installed.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

joelR wrote:
Litcube wrote:No freeze with those settings. (still on seta, though..).

My scripts directory for this test is 2,981,556 bytes. What's yours?
Ohhh....im testing in a modified game not vanilla...The crash still only happens in a modified game with the bailing addon though. I can run your rewrite scripts with no issues as long as the bailing add on isnt installed.
I know. What's the directory size for your test /scripts folder? The test being Vanilla + Bailong Addon + JSON script library + community library
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:
joelR wrote:
Litcube wrote:No freeze with those settings. (still on seta, though..).

My scripts directory for this test is 2,981,556 bytes. What's yours?
Ohhh....im testing in a modified game not vanilla...The crash still only happens in a modified game with the bailing addon though. I can run your rewrite scripts with no issues as long as the bailing add on isnt installed.
I know. What's the directory size for your test /scripts folder? The test being Vanilla + Bailong Addon + JSON script library + community library
Oh I see. Well if im understanding you correctly all the files in my scripts folder total 36MB.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

joelR wrote:Oh I see. Well if im understanding you correctly all the files in my scripts folder total 36MB.

Well if you only have vanilla & bailing installed, where the other 34 MB coming from?
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:
joelR wrote:Oh I see. Well if im understanding you correctly all the files in my scripts folder total 36MB.

Well if you only have vanilla & bailing installed, where the other 34 MB coming from?
Thats what Im saying. Its MARS, SRM, RSwE etc etc etc. I slowly added all these one at a time till the game froze. The culprit was bailing add on. Do you want an exact list of installed mods and scripts?
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Oh, I see. Uhm... Oh, boy.

Let me think about it.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:Oh, I see. Uhm... Oh, boy.

Let me think about it.
Let me copy/paste my vanilla folder and test it with just the bailing/json. I suspect I will get the same results as you. Or I suppose I could email you my entire TC folder lol.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

joelR wrote:
Litcube wrote:Oh, I see. Uhm... Oh, boy.

Let me think about it.
Let me copy/paste my vanilla folder and test it with just the bailing/json. I suspect I will get the same results as you. Or I suppose I could email you my entire TC folder lol.
PFfftttt.. Shit, it's worth a laugh. Let's do it.

jkossowan gmail
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:
joelR wrote:
Litcube wrote:Oh, I see. Uhm... Oh, boy.

Let me think about it.
Let me copy/paste my vanilla folder and test it with just the bailing/json. I suspect I will get the same results as you. Or I suppose I could email you my entire TC folder lol.
PFfftttt.. Shit, it's worth a laugh. Let's do it.

jkossowan gmail
Youre a madman. Give me a minute lol.


EDIT: Err its the steam version. Files are still the same so nm I guess that doesnt matter.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Files too big to email...

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