Daedalusxxi;n10092461 said:
Hi guys. I have a problem with Friendly HUD and Brutal Combat mods... I get this error after I merge the files: Error [mod0000_mergedfiles]game\gui\menus\inventorymenu.ws(4525): Found unexpected '}' in inventorymenu.ws
And once again a main function had been broken, this time by an entirely unnecessary }.
Sending hopefully fixed file in PM.
---
For future reference for anyone who reads this post:
Notepad++ is really useful for finding broken script functions. What I always do in cases like this is go to the problem line shown in the error message -- inventorymenu.ws(
4525) -- and highlight the { or } on that line. If it's
purple, it's missing its pair and if it's
red then it's OK in that regard.
With the issues posted on this forum, that I've looked at, the problem has been a
purple { or }, every single time. In most cases the culprit has been another function missing its closing } and thus "stealing" a main function's closing }. It has been easy to fix by adding a new line with a } for the "thieving" function.
Below are a couple images, as my explanation probably isn't too clear. Using a random
if function from the inventoryMenu.ws as an example.