Jump to content
The Dark Mod Forums

Recommended Posts

I'm trying to write a couple of scripts to walk the graph and tweak every light entity. Trying to make sure the script will do the right thing first by just printing changes instead of making them. But DarkRadiant is crashing every time I run the script.

 

The script itself, the darkradiant log, a test map I had that it crashed on, and the crash dump itself are all at: https://www.dropbox.com/s/xi5sf4adyzkmpyu/darkradiant_crash.zip?dl=0

I'm running DarkRadiant version: 2.4.0 (x64) on Windows 10 64 bit. I'm using it here to make a Quadrilateral Cowboy map.

Edited by VelvetFistIronGlove
Link to post
Share on other sites

It seems DR is crashing when accessing the walker instance you're passing to traverse(). Turns out you'll need to explicitly init the super-class in your LightWalker constructor:

 

class LightWalker(dr.SceneNodeVisitor):
def __init__(self, fix_on):
super().__init__()
self.fix_on = fix_on

 

This fixed it on my end.

Link to post
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.

×
×
  • Create New...