Jump to content

Script Compilation error, "expecting TOKEN_FUNCTION"


Recommended Posts

So I have been trying to get the Witcher 3 to work for 3 days and I've almost reached the point where I don't even want to play it anymore. Countless issues with modding have come down to my current issue.
The error I've been getting is:
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(26): syntax error, unexpected TOKEN_VAR, expecting TOKEN_FUNCTION, near 'var'
It says it's at line 26, but this is that entire segment and I can't figure out what to do to fix this.
26 public var canSwitchFocusModeTarget : bool;
27 protected var switchFocusModeTargetAllowed : bool;
28 default canSwitchFocusModeTarget = true;
29 default switchFocusModeTargetAllowed = true;

 

But I'm fairly certain that as soon as I get passed this issue there's going to be another. I can't understand why modding this game is so difficult.

Link to comment
Share on other sites

  • 10 months later...

I am having a similar issue. Surprised nobody has replied to this with questions/fix.

I have two that say to replace 'if' with 'function'.

 

Edit: I've just come to realize that the two mods I'm merging cause a lot of <No src line> when the script merger defaults to the mod that has no text on a particular line. It's happened several times throughout about 10k lines of code so I'm wondering if there is a quick fix to this. Perhaps in the script merger settings. Will continue to search.

Edited by Rezurrected188
Link to comment
Share on other sites

  • 1 month later...

Thanks Rez, I was having a bunch of script errors as well. Lucky for me when I use Script Merger, it's usually really only one mod that I need to ensure is placed in the merge. when I select "Choose B (or whatever)" for everything, and then just go down all the Deltas to make sure I really do want to only choose one mod, I no longer get script errors when trying to load the game.

Link to comment
Share on other sites

  • 6 years later...

Had three error at the end of my "game/player/playerWitcher.ws" merge, trying the "choose all, save, exit/pray" method and the playerWitcher.ws related errors are in fact gone.

instead I get 26 other errors...

¯\_ (ツ)_/¯

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...