• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Error Problems

I have a character that I'm working on, and whenever I do anything, an error message pops up:

Reference to undeclared variable: 'result'
Location: 'eval' script for Component 'Class' (Eval Script #10) near line 195

It only started doing this after I reloaded it this evening; working on it this afternoon, this didn't happen, and I hadn't changed anything in the character. I assume that this is an error in one of the classes, but how do I tell which one? Where is this error, or how do I look for it.

It's very frustrating, because I'd just spent an hour trying to track down an error that popped up trying to load HL in something ('ioCephalom') that I had never used, nor had I ever used or modified the thing that went missing ('spMindP5FR'). I didn't even have any idea what it was, and using Find Thing turned up nothing when I searched for "Ceph" and "MindP5FR". I had to manually open data files and search through them until I found the Cephalometer and delete it.

Can anyone give me a simple way to try to track down errors like this? And how about a way to prevent things that I've never edited from turning into errors?
 
I have posted about this problem several times please see THIS thread for details. This fixes the issue for most people. Some have reported unusual issues with this but for most it works.

I will be releasing a official update to these files within the week which should hopefully address this issue more fully.
 
I solved the specific ioCephalom problem by just deleting the item, since I don't use psionics. I'm more concerned with the first problem I listed, as well as trying to find a better way to deal with these issues when they crop up. As far as I can tell, there's no way to figure out where these sorts of problems are when you get an error message.

On the one I'm getting in, now, multiple characters, it's even worse since using New (Copy) of class files to try to find it, you have to recompile the entire system twice before you can look at the scripts. I'm also wondering what class has ten Eval Scripts, including one with 195 lines.
 
That is coming from a Component script meanings its from in a background script and yes they will have "many" scripts and can be very long (hundreds of lines of code).

As I don't get that issue it means you have something incorrect in your Custom Classes that is causing an issue in a background script. Result usually refers to the "old" way of setting a focus. Meaning that it can't link to something.

You sure all your custom classes are correctly linked to their Class Helpers?

When dealing with HL error it can be very confusing at first. The messages usually give a pretty good idea of "where" something is coming from actually.

IN example spMindP5FR could be found if you a search tool to grep through your .user files. The .user files are just text files meaning you can easily search them. If the "Thing ID" is NOT found in your user files it means the issue is coming from something LW has.

Hope that helps some.
 
If you really can't find the issue (all classes linked to Class Helpers) my advice is to post your .user file to this thread. I will do my best to take a look at the file this weekend and see if I can track down the issue.
 
Back
Top