L0FKA / fallout-script-validator

Automatically exported from code.google.com/p/fallout-script-validator
0 stars 0 forks source link

Got an error, was told to report #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error:

TypeError: 
functionCall.match(/^(\w+\.)?(\w+)(((\s*,\s*|\s+)?("[^"]*?"|'[^']*?'|[^"';\s,]+)
)*((\s*,\s*|\s+)?("[^"]*|'[^']*))?)\s*$/) is null
http://www.cipscis.com/javascript/validateScript.min.js line 48

What input will reproduce the problem?
Scn SupermutantMasterAuraBuffCleanScript

Ref MasterDude
Float   Timer
Short   Active
float InitTimer
short TimerReset

Begin GameMode

Set MasterDude to GetSelf;GetContainer

;working timer code
if TimerReset == 0 && MasterDude.getdead == 0
    set InitTimer to getsecondspassed
    set TimerReset to 1
endif

If Active != 1
    Set Active to 1
    ShowMessage SupermutantMasterSpotterMsgTst7
Elseif Active == 1
    If MasterDude.GetDead == 1
        Return
    Else
        If MasterDude.IsInCombat != 1
            Return
        Elseif MasterDude.IsInCombat == 1
            Set Timer to (Timer + GetSecondsPassed)
            If (Timer - InitTimer) < 15
                Return      
            Else
                if (Timer - InitTimer) >= 15 ;&& (MasterDude GetLos Player == 1 || MasterDude GetDetected Player == 1)
                    MasterDude.CIOS SupermutantMasterAura
                    Set Timer to GetSecondsPassed 
                Endif
            Endif
        Endif
    Endif
Endif

End

Begin OnLoad
    Set MasterDude to GetSelf
    Set Active to 0
End

Begin OnReset
    Set MasterDude to GetSelf
    Set Active to 0
End

What is the expected output? What do you see instead?
heh, I expect to be told what I did wrong.

What internet browser and operating system are you using?
Windows 7, mozilla firefox latest

Please provide any additional information below.

Original issue reported on code.google.com by SolidEmp...@gmail.com on 27 Jan 2011 at 8:37

GoogleCodeExporter commented 9 years ago
This issue was not replicated (wasn't tested with minified JavaScript)
This example script brought to light the issue fixed in revision r37.

Original comment by Cipscis on 11 Oct 2011 at 2:46