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 »

No, I don't have a clue. I don't know anything about the inner workings of any of those mods; I didn't write any of them. That's why we tend to freak out when we get asked if our packages are compatible with X. :)

Start with the biggest, and work your way down.


I haven't had any crashes for 29+ game hours. I'm using:

Litcube's Phanon Corporation
Litcube's Revelation
Litcube's Bounce
Litcube's Fixed Missions
Litcube's Saturn Complex Hub
Litcube's Missile Boat Addon
Litcube's Dock Ware Manager
Litcube's UT Rewrite
Litcube's Turrets Rewrite
Litcube's Missile Rebalance
Litcube's Shit Mix Ship Mod
Litcube's Freighter
Litcube's Supply Manager
Litcube's Ship Outfit Template System
Litcube's Military Logistics Command Center
Litcube's Jump Beacon
Litcube's Jump Quantifier
Litcube's Emergency Jump
Litcube's Emergency Retreat Drive
Litcube's Global Renamer
Litcube's Dock Auto Renamer
Litcube's Economic Readouts
Litcube's Homebase Auto-Set
Litcube's AL Job Engine
Litcube's Notoriety Maintenance
Litcube's Fixed Fight Command
Litcube's Fight Rank Ship Killed Part Spawner
Litcube's Static Flying Wares
Litcube's G19 Plug-in
Litcube's Fix Stalled Landings
Litcube's Satellite Deployment
Litcube's Auction cargo stations
Litcube's Auction station
Litcube's Purchase Multi-Factories
Litcube's Vend Ware System
Litcube's Colour Ship Name
Litcube's Drop Station
Litcube's Deploy Help Beacon
Litcube's Get Refuel Command
Litcube's Map Sectors
Litcube's OOS Laser Switch System
Litcube's Quick Suttle Services
Litcube's Sell Bulk Equipment System
Litcube's Scan Asteroids
Litcube's Station Information Name System
Litcube's Strip Ship Command
Litcube's Station Agent (w/ Reports)
Litcube's Tractor Asteroid
Litcube's Station Lock Manager (for all traders)
Litcube's Valid Sector Management System (for all traders)
Litcube's Earth Protection rewrite
Litcube's Remote System Control
Litcube's Targeting Commands
Litcube's CWP
Litcube's Safe Path Finder
Litcube's Improved Generic Trade Commands
Litcube's Encapsulated Error Code System
Litcube's Playership Turret Config Keys
Litcube's QuickMenu Libraries
TrixX's HUD
Mizuchi's Pretty Picture


This probably qualifies for a modified game.
Last edited by Litcube on Thu, 2. Jun 11, 06:55, edited 5 times in total.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Litcube wrote:No, I don't have a clue. I don't know anything about the inner workings of any of those mods; I didn't write any of them. That's why we tend to freak out when we get asked if our packages are compatible with X. :)

Start with the biggest, and work your way down.


Uhm. I'm running a modded game! :) No crashes here after 29 game hours.
Man thats bad news. Well. Here goes nothing....
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Vanilla Rewrite 0.28b:
[ external image ]

- Formations, Leaders now work properly. This is probably important.
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

You know you've doomed your thread by posting that list, right? :3
qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie »

to joelR : i ran my game for at least 15 minutes i think before using fraps
(used seta 600x too for some 10 minutes). With regards to yr freezing :
are you using X-Plugin Manager ? If so it will create a types folder each time
you use it .. that should be deleted before running a game (i use the X-Plugin Advanced and it creates for me a TwareT and a Tships in that types folder).
I'm not sure that could be effecting yr freezing.. but its wearth looking into.

edit : yr not using deathmath arena are you? coz that caused some freezings in my game once (not using it anymore).

to Litcube :

i will give yr Vanilla Rewrite 0.28b a shot .. exspect some tests in a few hours
(will run it longer and use seta longer this time)
glenmcd
Posts: 920
Joined: Sat, 16. Oct 10, 11:07
x3tc

Post by glenmcd »

joelR wrote:I was wondering if glen and qwizze tried this for longer than just the few minutes it took do the fps test.
Lol how mistaken you are :) It took me 6 solid hours to do the benchmarks above. Many total quits of TC and then run again, although changing mods was as simple as changing a folder name. 300+ sector changes definately takes more than a few minutes hehe. No lockups. If you can provide me with mods and/or links to the specific mods that you want tested with Litcubes follow scripts I'd be happy to spend whatever time is required to track the lockup down. That's assuming that it is going to happen on my system but from what you've said I would expect this to be the case. It's better to email the actual mods you're using so I'm guaranteed to be using same versions as you.
Firewrath
Posts: 121
Joined: Fri, 3. Aug 07, 05:49
x3tc

Post by Firewrath »

Gah! Want. To. Test. >.<
but no time. :(
(or fraps, but like that would stop me, :P)


Anyways, I did notice this and just wanted to post JIC.
qwizzie wrote: NOT ACTIVE : Pirate guild & Yaki Armada & Improved Races & Military Base Revamp
(And yes, I know it says you're not using them. But still: )

Improved Races wrote: Compatibility:
This script shall not be used together with Race Response Fleets (RFF) or Military Base Response Revamp (MBRR). Those scripts are more or less similar to Improved Races, and you should use only one of those 3 at the same time.
Since it seems these mods have conflicts, for a good testing environment you should uninstall either IR or MBRR. Just in case their conflicts actually cause issue with the test script.

Anyways. Good Luck with this Litcube.
qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie »

to firewrath : yr right about IR & Military Base Revamp not recommended to install together... i use Military Base Revamp only for the Rearguard option with small amount of rearguard ships, all other options are off. Didnt find any problems running it next to IR, they are together somewhat resource-hungry but i knew that already. i wonder if joelR is using Military Base Revamp next to IR as well? i have a feeling he is not...

Anyways i made some more tests before reading this last post and i'm experiencing some freezes myself now (also experiencing a great increase in FPS when it isnt freezing). At the bottom i inluded a summary of a dump i made when the freeze occurs, maybe someone reading that will know what causes it...

Results test 1 & 3 are taken over from my earlier post

test 1

new start
cheated show all sectors
warped to unknown sector below another unknown sector (zero traffic). warped to coordinates 93,-93,-93 to avoid asteroids.
cheated to hide all sectors
ACTIVE : SRM mod + CMOD 4 + Immersive backgrounds + Anarkis
Defence System + Unleashed SRM Jobs mod.
NOT ACTIVE : Pirate guild & Yaki Armada & Improved Races &
Military Base Revamp

with orginal !move.follow.template.pck :


Min 292
Max 308
Avg 299

test 2

new start
cheated show all sectors
warped to unknown sector below another unknown sector (zero traffic). warped to coordinates 93,-93,-93 to avoid asteroids.
cheated to hide all sectors
ACTIVE : SRM mod + CMOD 4 + Immersive backgrounds + Anarkis
Defence System + + Unleashed SRM Jobs mod.
NOT ACTIVE : Pirate guild & Yaki Armada & Improved Races &
Military Base Revamp

with yr Vanilla Rewrite 0.28b :

Try 1 Try 2 Try 3 Try 4 Try 5
Min 277 304 318 343 353
Max 295 327 340 359 374
Avg 286 316 328 350 362

test 3

latest save game in a heavily modified game
cheated show all sectors
warped to unknown sector below another unknown sector (zero traffic). warped to coordinates 93,-93,-93 to avoid asteroids.
cheated to hide all sectors
ACTIVE : SRM mod + CMOD 4 + Immersive Backgrounds + Anarkis
Defence System + Unleashed SRM Jobs mod + Pirate guild & Yaki
Armada + Improved races + Military Base Revamp + spawn spot in
unknown sector next to Mists of Elysium (pirate, xenon,yaki &
khaak XTC dragons get spawn there in short time and that unknown
sector itself is linked to Aldrin to create some traffic)

with orginal !move.follow.template.pck :

Min 74
Max 96
Avg 90

test 4

latest save game in a heavily modified game
cheated show all sectors
warped to unknown sector below another unknown sector (zero traffic). warped to coordinates 93,-93,-93 to avoid asteroids.
cheated to hide all sectors
ACTIVE : SRM mod + CMOD 4 + Immersive backgrounds + Anarkis
Defence System + Unleashed SRM Jobs mod + Pirate guild & Yaki
Armada + Improved Races + Military Base Revamp + spawn spot in
unknown sector next to Mists of Elysium (pirate, xenon,yaki &
khaak XTC dragons get spawn via jobs there with short respawn
times and have wings set to protect them and also unknown sector
itself is linked to Aldrin to create some traffic)

with yr Vanilla Rewrite 0.28b:

Try 1 Try 2 Try 3 Try 4 Try 5

Freeze Min 183 Freeze Freeze Freeze
Freeze Max 206 Freeze Freeze Freeze
Freeze Avg 194 Freeze Freeze Freeze

after restarting pc and performing registry cleaning with
advanced system optimizer did a number of new tries

Try 6 Try 7 Try 8 Try 9

Min 178 Min 212 Min 215 Freeze
Max 200 Max 243 Max 271 Freeze
Avg 188 Avg 230 Avg 251 Freeze


During last freeze i made a dump file of X3.exe which shows the following :

On Thu 2-6-2011 12:49:47 GMT your computer crashed
crash dump file: C:\Windows\Minidump\X3TC.DMP
This was probably caused by the following module: x3tc.sys
(X3TC+0xA0565)
Bugcheck code: 0x0 (0x0, 0x0, 0x0, 0x0)
Error: CUSTOM_ERROR
A third party driver was identified as the probable root cause of this system error.
It is suggested you look for an update for the following driver: x3tc.sys .
Google query: x3tc.sys CUSTOM_ERROR

I'm willing to do some more tests with Military Base Revamp not installed
if necessary .. or maybe Litcube will want some real vanilla tests first .. i would understand that.

These scripts show great promise ... i'm following it with great interest
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

qwizzie wrote:to joelR : i ran my game for at least 15 minutes i think before using fraps

@glen & qwizzie:

Thanks for posting that. Glad to hear you did it long enough. qwizzie: I see you got a lock-up too. Glad im not the only one. It will be easier to track it down with more people testing.

EDIT: qwizzie - I dont use MBRR and I get freezes so that can be ruled out.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

On Thu 2-6-2011 12:49:47 GMT your computer crashed
crash dump file: C:\Windows\Minidump\X3TC.DMP
This was probably caused by the following module: x3tc.sys
(X3TC+0xA0565)
Bugcheck code: 0x0 (0x0, 0x0, 0x0, 0x0)
Error: CUSTOM_ERROR
A third party driver was identified as the probable root cause of this system error.
It is suggested you look for an update for the following driver: x3tc.sys .
Google query: x3tc.sys CUSTOM_ERROR
This means the crash was within the KC code and not the C++ Code
So basically its a script crash not an engine crash - thats all it can tell you (CORRECTION:)
(X3TC+0xA0565)

Code: Select all

000A0565: 0D 0001              |   22 L000A0565: push       SP[0] ; loc22
in function:
; procedure SHIP.GetFormattedName(arg1);
x3_story.obj

CONFIRM: There is a loop in this part of the KC Code

Note:
Due to the way i obtained this information it could very well be inaccurate, not sure why SHIP.GetFormattedName would freeze because of this script
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
User avatar
TrixX
Posts: 2035
Joined: Wed, 18. Aug 10, 14:28
x4

Post by TrixX »

joelR do you have a ship with a name containing an illegal character?
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

TrixX wrote:joelR do you have a ship with a name containing an illegal character?
No but I did change the name of my ship to "TEST SAVE" without the quotes. I did have RSwE running on the games that froze. RSwE has a script that I see popping up in the global scripts every so often. I have been running a test game and it has not crashed so far and RSwE isn't running. Im going to start that up and see what happens...


EDIT: So far running the renaming script has caused no freeze. Trying the next script now.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

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.
User avatar
TrixX
Posts: 2035
Joined: Wed, 18. Aug 10, 14:28
x4

Post by TrixX »

I take it you were running the latest version as I've had no issues with it when playing ;)
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

TrixX wrote:I take it you were running the latest version as I've had no issues with it when playing ;)
Whatever I linked is the one I was using.

So far thats the only thing that has caused a freeze.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

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.
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

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.
qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie »

i'm not using NPC bailing addon but i am using that JSON parser libraries.
Jack08 mentons about my dump file :
(thnk Jack08 btw for yr reply)

in function:
; procedure SHIP.GetFormattedName(arg1);
x3_story.obj

CONFIRM: There is a loop in this part of the KC Code

Note:
Due to the way i obtained this information it could very well be inaccurate, not sure why SHIP.GetFormattedName would freeze because of this script

Any chance this could be related to that JSON parser libraries?
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

qwizzie wrote:i'm not using NPC bailing addon but i am using that JSON parser libraries.
Jack08 mentons about my dump file :
(thnk Jack08 btw for yr reply)

in function:
; procedure SHIP.GetFormattedName(arg1);
x3_story.obj

CONFIRM: There is a loop in this part of the KC Code

Note:
Due to the way i obtained this information it could very well be inaccurate, not sure why SHIP.GetFormattedName would freeze because of this script

Any chance this could be related to that JSON parser libraries?

May be totally unconnected but at the bottom of the OP in the JSON thread it says :
Badly formatted JSON can, very easily, cause an infinite loop lockup. You can enable debugging by modifying the line in plugin.JSON.parse. This will enable infinite loop detection and log a verbose status in log10000.txt. It will take much longer to run the json parser/get functions in debug mode.
qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie »

damn you beat me to it .. was just about to edit my post to add that piece
of information :)

Lets wait and see what litcube find.

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