Easiest way to find which script is freezing my game?

The place to discuss scripting and game modifications for X Rebirth.

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

xlvr
Posts: 5
Joined: Mon, 14. Mar 16, 17:10

Easiest way to find which script is freezing my game?

Post by xlvr »

I'm ~24 hours into a new plot game and the game is flat out freezing solid for 5+ minutes at a time with only a second or so respite (if any). I have a save that freezes about 1 minute into it. I have about 50 mods loaded.

What is the easiest way to determine which script is freezing my game? Please be technical.

Thanks.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

Put a debug_text command at the beginning of all custom scripts indicating their Name to catch recursive script calls (debug log will be spammed with the respective names)
Also add a debug_text indicating script name before every do_while (and perhaps do_all, but these should be safe) to catch loops which dont end (when it freezes check the last entry of the log)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
xlvr
Posts: 5
Joined: Mon, 14. Mar 16, 17:10

Post by xlvr »

Thank you very much for the quick and detailed reply.

For 50+ mods that sounds like a relatively laborious task. I'll don't know if I have time and the energy to accomplish it.

It's unfortunate that this is happening; especially considering every mod was pulled from the 4.0 approved list.

Anyway, thank you again.
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

xlvr wrote:Thank you very much for the quick and detailed reply.

For 50+ mods that sounds like a relatively laborious task. I'll don't know if I have time and the energy to accomplish it.

It's unfortunate that this is happening; especially considering every mod was pulled from the 4.0 approved list.

Anyway, thank you again.
Less technical approaches, which may not work:

1. Activate the debug log and see if that provides any clues after the freezing begins.

2. Disable all the extensions that you're using in the save and see if the freezing still occurs when loading. If it doesn't you could begin to reactivate them in sub-groups until it occurs, and then narrow down within a sub-group to see which causes it. Although if there's a mod-conflict then it could take a while to find the permutation.
xlvr
Posts: 5
Joined: Mon, 14. Mar 16, 17:10

Post by xlvr »

Sparky, thank you also.
Sparky wrote:2. Disable all the extensions that you're using in the save
I didn't realize one could remove the extensions from the save reasonably easily. I assume you mean for me to use the tool called XRSaveEditor to do this?
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

You're welcome.

I'm not much of an expert on extension handling but I just meant via the in-game extension menu. I don't think it removes anything, rather instead that it stops applying changes. Deactivating all listed extensions might not stop the freeze if it relates to events that will unfold regardless but it's worth a try as quite easy.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

note that not all extensions are easily removeable - they have to be flagged explicitly as removeable by the author. there are ways to circumvent this (like the aforementoined save edit) but the save may still not load at all. so first try to disable all mods which are flagged as removeable.

Also it may be helpful to post the whole List of your Mods - maybe someone knows about a possible bug or incombatibility. Just guessing without information is not a fast way to resolve this ;)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

A little extra detail - most mods are not save persistent. The author has the option to tell the game if turning the mod off in extensions screen will cause problems. This is a certainty for 2 4.00 mods that I know of, one of which is my own Galaxy Station Range. If the game says it cannot be loaded due to mod(s) being turned off, just leave those on and see if the freezes remain. If they do you have a short list to start contacting the authors to look for a solution. If there are no freezes then simply reactivate each mod one by one testing for the freeze each time.

EDIT : hah uni posted at same time!
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
xlvr
Posts: 5
Joined: Mon, 14. Mar 16, 17:10

Post by xlvr »

Thanks all for so much information.

AFAICT, of the following extensions, about 20-40 mods that are persistent in the save. I know this from removing them all in the first place and being unable to load the save game due to the save-game extension requirements and adding them back one by one. I am happy to provide a list of the extensions required by the save to load, if it would be helpful.

When I removed the ones not required to load the save, the save would just crash back to the main menu after loading like 48% of it (or some number like that). Either way it was close to a majority that I had to have enabled to even get the save to attempt to load.

Here is the list of extensions:
Albion Pride Remodeled + FoV Change
AutoCrew
AutoLooter
AutoTrader
AutoTrain
BetterStationScanMode
Black Market Seminars
Boarding Options
Build Station Mission
Build Titurel
Capital Ship Bridge
Carriers - Arawn SM Launch- and Docking
Combat Enhancement Scripts
Combat Rank Bailout
copilotconvo
Craft Drones MKx
Craft Virtual Seminars
Engineer 100%
Enhanced Money Transfer
Exploration Light
Extra Surplus Info
Format in Thousands
Fusion Reactors Optimized
galaxystationrange
Give us more Cloth please!
Ledda Industrial Construction Shop
Ledda Ship Tech Fab Fusion Reactors
Log Everything
Marine Rebalance
Miscellaneous Combat Tweaks
Mission Computer
MitchTech Station Logistics
mm_fsboarding
mm_techservice
mm_tradenetwork
More Missiles Mod
Multi Assignment
NPCs on your stations!
ObservationDeck with skunk
Orange Mouse Cursor
Proper Ice Belt
Repair Docks For Capital Ship Bridge Mod
Show Me Your Faction, Please!
Show Skills
Side Bar Extender
Station Production Limiting
stationrecycle
Stronger Ship Hulls
Titurel Engine Fix
Trade Agents Forever
Trade Menu Cargo Hold Filter
UTAdvent02
w.e_epiclshields
w.e_plot_station
yat2
Yisha supervising Hiring and Firing
User avatar
Marvin Martian
Posts: 3616
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian »

all your Mods up to date?

in case of carrier you can try to disable automated docking (carriers -> settings -> automated docking) this will effect also NPC ships
xlvr
Posts: 5
Joined: Mon, 14. Mar 16, 17:10

Post by xlvr »

Thanks for the helpful information, Marvin.

Yes they are all up to date.

I'll see what I can do about that automated docking.

Return to “X Rebirth - Scripts and Modding”