Jump to content
The Dark Mod Forums

Added one more script, getting random crashes


Sotha

Recommended Posts

I've been building my unusual contest map. Adding scripts and testing. Thus far everything has worked.

 

Now I added one more crucial script. It is a monitoring script that is fired occasionally by a trigger_timer. It is run, and it checks something. It won't do anything by default. If a certain condition is fulfilled, it does a special action. TDM gives no warning about the script. It works like it should and does what is supposed to. I've double checked it and it seems to be in order.

 

BUT... Now I'm getting random crashes. Big crashes without any error messages, but the windows standard "program had to close."

 

I've been trying to do different things and get the problem re-appear, but it seems completely random. I can't pin point it in any way, but that it seemed to start right after this one last script addition. One time everything just works fine. Other time I get a crash.

 

Any ideas how I could examine what is wrong? Can two separate scripts run at exactly the same time destabilize the game? (I DO have two of these monitor scripts running.)

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Can you post the script here? It's a bit hard to tell what's wrong if one don't know what the script is actually doing.

 

The only thing I've experienced causing the game to crash are infinite loop arrows. You get them if something runs in an endless loop with out any pauses added. But normally you get a console error telling you this.

 

EDIT: One other circumstance under which I've gotten random crashes was when I used to much variables. It seems the script can only handle a limited amount of them.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I tried to stagger the two monitoring script firings, so that they were not happening similtaneously. No help.

 

@stumpy: If there was such a limit and I broke it, shouldn't the crash be always repeatable?

 

@obst: thanks. It is a big spoiler for my mission, so I'll try a few things first. I do use a LOT of entity variables. I spawn entities around and remove them. If I hit some variable limit, shouldn't the crash also be always repeatable?

 

Maybe it is the trigger_timer? There was a way to make a thread that is run in a loop, maybe that's the solution. Also I could reduce the variables and spawning items by putting some stuff in blue room and teleport them instead of spawning and removing. Like trying to find a needle in a haystack. I will try these, and after exhausting my leads I'll post the script.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

If I hit some variable limit, shouldn't the crash also be always repeatable?

If the script gets called via the trigger_timer and the time between the firing has some randomness, than maybe not.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

You could post the script in a PM after asking for a volunteer so it's not public.

 

Yup, that's what is being done behind the scenes. There may be some light at the end of the tunnel in this matter.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

This was finally resolved. Not a mod, problem, but due to incompetent scripting. Simplifying the script seemed to clear these crashes.

Big thanks to Obsttorte!

 

Back on mapping track...

  • Like 2

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...