RE: [sug-script] Trace error with duplicate function names
In my honest opinion this shouldn't be added into the scripting engine. It is the developers responsibility to know what functions have been coded and what ones need to be coded. If something like this was added then where would addidtions to the engine stop?
When I found the problem with your script I commented everything out in the main js file and added a debug line to the Initialize. When it still didn't print out I removed every other .js file and slowly one by one added them back and restarted the script eachtime. When the script no longer would debug anything I knew the problem was with the file itself. So I commented every function and slowly uncommented 1 at a time to see what function was causing the problem. When I came across the duplicate function I knew what the problem was. This probably took me maybe 5 minutes.
|