Jump to content

Script Crashes Game


mrbic

Recommended Posts

Good news! I've fixed the problem, which was that I had individually disabled each object rather than setting a parent for them. The mod works fine now, but feel free to look through my post if you have the same problem.

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I dont want to post the script, for two reasons that I wont bother mentioning, but I think I know why its crashing. Well, one of the parts of the script includes the possibility of 100 or so objects getting disabled in one room (the Atomic Wranglers main room) and it works perfectly at actually disabling the objects. The problem is that after waiting inside the room for a few hours, the game crashes. I have been working with this gigantic script quite a bit (5+ hours) and I know that it has something to do with the large sum of objects being disabled for too long. If you really want to know the contents of the script, I'm not against telling you what you need to know but I just wanted to ask if there's a way to keep the game from crashing while still having all those objects disabled. Please dont go thinking that I'm not telling you enough either, I've seen enough angles to know that its most likely a problem with the game running so many disabled objects. The one thing you may WANT to know is that its an activator script, so it only runs when I make it run. It even crashes on another optional part of the script that disables and enables only 22 objects total. You may also want to know that theyre all static objects and the game shouldnt be using them other than for looks.

 

@Tefnacht- Lol ewww I disabled them all one-by-one. I have no clue what parenting does soo I'll have to look that up. Really, thanks for pointing those things out. I got other mods on so I'm gonna test it out without them- The mod disables vanilla objects having nothing to do with doors or furniture.

 

@Cipcsis- The script does plenty of other things, but I'll explain to you why I think it has nothing to do with the script but with the stuff thats disabled: One function of the script is to pass time by 4 hours; now, when I activated the script, it worked until I activated it again the SECOND activation, then it crashed. Skipping to the important part- I eventually ended up using the script ONCE and then waiting almost 4 hours using the regular games "wait" and it then crashed. I then realized that the game is having trouble running all the disabled objects after a time. Maybe it's just "wait" time, I dont know. Also, if you think its not my script and something else: well, this script has many functions, all within the Atomic Wrangler, that I had been working on for hours before I designed the disabling/enabling parts of the script. Before that, all was well.

 

@Stevie70- I've never done what you said, but I'll try it.

 

-Just a note: I'm guessing that I should delete the objects that I'm disabling, rather than disabling them.

 

Edit: Okay I tried it without mods... though it works better, it still eventually ends up crashing.

 

Edit: Okay, so I've screwed around with the script in ways that I shouldve in the first place, and found out that the problem most likely has to do with activating the script too quickly after the first use. Originally I waited about thirty seconds between use, but now after doing other crazy stuff like leaving the Atomic Wrangler and etc, it works fine on any other uses. I mean as long as the game has enough time to run with the disabled objects, I can go along activating the scripts over and over again without crash. I did all this with the other mods on too. So I really dont know, I'll try parenting and then if that doesnt work I'll put a long cool-down timer on the script.

Edited by mrbic
Link to comment
Share on other sites

Hi.

 

While I have never attempted to disable so many objects at runtime myself, I don't really think the game crashing has anything to do with the actual number of disabled objects.

 

Some questions: The objects you disable are vanilla objects, I assume? Part of the original Wrangler interior?

 

You said they're all statics. No furniture? No doors?

 

How do you disable them? I assume you have a few persistent objects and “enable parented” all others to those? Or ... did you actually make them all persistent references and disable them one by one? Eww.

 

In either case, was any one of those vanilla references marked as persistent before you edited it? Disabling a persistent reference that is used as a target for actor AI packages can cause the game to crash if the actor attempts to run that package.

 

Stupid question but: While testing your mod ... do you have any other mods loaded? I know, I know, you should never do that. Just a thought. It could be possible that another mod (that also does changes to the Wrangler) is now crashing the game because your mod overrides some of the changes it depends on (like making certain objects persistent and using them as AI package targets).

 

Well ... no idea. Maybe there IS a limit how many references can be disabled in a cell at once. But I really don't think so. It would bet my money on some other, more mundane cause.

Link to comment
Share on other sites

I dont want to post the script, for two reasons that I wont bother mentioning, but I think I know why its crashing. Well, one of the parts of the script includes the possibility of 100 or so objects getting disabled in one room (the Atomic Wranglers main room) and it works perfectly at actually disabling the objects. The problem is that after waiting inside the room for a few hours, the game crashes. I have been working with this gigantic script quite a bit (5+ hours) and I know that it has something to do with the large sum of objects being disabled for too long. If you really want to know the contents of the script, I'm not against telling you what you need to know but I just wanted to ask if there's a way to keep the game from crashing while still having all those objects disabled. Please dont go thinking that I'm not telling you enough either, I've seen enough angles to know that its most likely a problem with the game running so many disabled objects. The one thing you may WANT to know is that its an activator script, so it only runs when I make it run. It even crashes on another optional part of the script that disables and enables only 22 objects total. You may also want to know that theyre all static objects and the game shouldnt be using them other than for looks.

instead of disabling every single object directly via script, let the script just enable/disable _one_ of those items (set it to persistant ref) and set up all the others as this items enabling children (just select them all in render window, klick "-", choose "enabling parent" and double click your enabling master object.

Link to comment
Share on other sites

In all my experience with scripting in Fallout games, I have never been given a reason to think that disabling any number of items could crash the game.

 

Are you certain that the game only crashes if your script is running? Does it do anything other than just disabling items?

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...