Script Compilation Error with modded game

+
Code:
  public function ApplyOil( oilId : SItemUniqueId, usedOnItem : SItemUniqueId );
    public function IsEquippedSwordUpgradedWithOil(steel : bool, optional oilName : name) : bool;
    public function GetOilAppliedOnSword(steel : bool) : name;
            //modSigns
        if( oils[ i ].GetAmmoCurrentCount() < 1 )
            {
                RemoveEffect( oils[ i ] );
            }  
        //---=== modPreparations ===--
-

Thanks for the reply. I applied the code you posted but I'm still getting the exact same error.
I just don't think I'm destined to play a modded version of the game haha.
 
compare your files [mod0000_mergedfiles]game\player\r4player.ws and in your mods folder (r4player.ws)
and your original file in content folder .
edit files in mod0000_MergedFiles

in Witcher ScriptMerger you ave tool kdiff3.exe take it for compare and create new file
WitcherScriptMerger\Tools\KDiff3
 
Last edited:
Code:
  public function ApplyOil( oilId : SItemUniqueId, usedOnItem : SItemUniqueId );
    public function IsEquippedSwordUpgradedWithOil(steel : bool, optional oilName : name) : bool;
    public function GetOilAppliedOnSword(steel : bool) : name;
            //modSigns
        if( oils[ i ].GetAmmoCurrentCount() < 1 )
            {
                RemoveEffect( oils[ i ] );
            }   
        //---=== modPreparations ===--
-
I had the exact same problem but that should be a fix. Mods in turn can complicate things
 
Im not sure what all this is about, best i could ever do was remove mods that i had merged till this did not happen, but that limits my mods...this happens and i have no idea what to do

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3214): Found unexpected '}'
Error [mod0000_mergedfiles]game\gameplay\items\itemstypes.ws(152): syntax error, unexpected TOKEN_RETURN, expecting '}', near 'return'
Error [mod0000_mergedfiles]game\gameplay\items\spells\yrdenentity.ws(574): Found unexpected '}'
Error [mod0000_mergedfiles]game\gameplay\items\spells\yrdenentity.ws(1008): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\main_menu\mainrecapmoviesmenu.ws(193): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\main_menu\mainstartupmoviesmenu.ws(206): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\menus\charactermenu.ws(2718): Unexpected end of file found after '{' at line 140
Error [mod0000_mergedfiles]game\gui\menus\mapmenu.ws(1753): Unexpected end of file found after '{' at line 1175
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7127): Found unexpected '}'

Ignore the below list if you wish, they are not 100% needed, maybe 9 is alot?
mainrecapmoviesmenu
mainstartupmoviesmenu
signentity
yrdenentity
 

Attachments

  • characterMenu.txt
    105.2 KB · Views: 190
  • itemTypes.txt
    105.2 KB · Views: 238
  • mainRecapMoviesMenu.txt
    5.4 KB · Views: 196
  • mainStartupMoviesMenu.txt
    5.6 KB · Views: 192
  • mapMenu.txt
    51.5 KB · Views: 283
  • PlayerAbilityManager.txt
    80.9 KB · Views: 267
  • playerWitcher.txt
    51.5 KB · Views: 183
  • signEntity.txt
    16 KB · Views: 297
  • yrdenEntity.txt
    41.7 KB · Views: 287
hello good afternoon could you help me with this problem? I know how to fix it.
I would be very grateful with your help

Error [mod0000_mergedfiles]game\player\playerwitcher.ws(11200): Found unexpected '}'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(11232): Found unexpected '}'
 

Attachments

  • Nuevo documento de texto (3).txt
    321.3 KB · Views: 365
Trying to merge script for friendlyHUD and atmospheric nights. I get this error

Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2202): Unexpected end of file found after '{' at line 65

https://pastebin.com/61iS4Xvz

Thanks for any help in advance
 
Hi, I'm trying to fix my mods for hours with no result. I know the basics to html and coding so I "kind of" know how to fix them, however, when you have a code with more then 20000 lines, find a single "}" that has no pair it's pratically impossible. Any advice how I can fix this some way easier? I'm almost pulling my hair out at this point.

The errors I have are these:

Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(2178): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gameplay\effects\effects\damageovertime\burningeffect.ws(130): Unexpected end of file before comment at line '8' was closed
Error [mod0000_mergedfiles]game\gameplay\items\spells\aardentity.ws(466): Unexpected end of file before comment at line '8' was closed
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectiles.ws(97): Found unexpected '}'
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectiles.ws(112): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\_old\components\guitooltipcomponent.ws(516): syntax error, unexpected TOKEN_IDENT, expecting TOKEN_FUNCTION, near 'flashDataObj'
Error [mod0000_mergedfiles]game\gui\inventorycontext.ws(673): Unexpected end of file found after '{' at line 6
Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2027): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\menus\commonmenu.ws(1991): Unexpected end of file found after '{' at line 73
Error [mod0000_mergedfiles]game\gui\menus\meditationclockmenu.ws(112): Found unexpected '}'
Error [mod0000_mergedfiles]game\gui\menus\meditationclockmenu.ws(381): Found unexpected '}'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(6823): Found unexpected '}'
Error [mod0000_mergedfiles]game\player\states\meditation\meditation.ws(255): Unexpected end of file found after '{' at line 12
Error [mod0000_mergedfiles]game\player\states\meditation\meditationwaiting.ws(80): syntax error, unexpected TOKEN_ENTRY, expecting '{' or ';', near 'entry'
Error [mod0000_mergedfiles]game\r4game.ws(2065): Unexpected end of file found after '{' at line 35

I still have not fully searched the TOKEN_FUNCTION error, but the other ones I know are techniacally simple to solve, it's just that the files have too many lines to look one by one and I don't know an easier way to search them :V
 
Notepad++ is great for easily finding and fixing errors caused by missing { and } .

Looking at the errors alone it's impossible to say what the problem is. Put the problematic script files in Pastebin (https://pastebin.com/) -- one per paste -- and link the generate pastes here.

Sorry, for the delay, I tried to install all again and to fix it myself, and still no result... Though now I have these errors:

  • Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(2178): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
  • Error [mod0000_mergedfiles]game\gameplay\containers\actorremains.ws(260): Found unexpected '}'
  • Error [mod0000_mergedfiles]game\gameplay\containers\container.ws(837): Unexpected end of file found after '{' at line 10
  • Error [mod0000_mergedfiles]game\gameplay\effects\effects\damageovertime\burningeffect.ws(134): Unexpected end of file before comment at line '8' was closed
  • Error [mod0000_mergedfiles]game\gameplay\items\spells\aardentity.ws(465): Unexpected end of file before comment at line '8' was closed
  • Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectiles.ws(384): Unexpected end of file before comment at line '2' was closed
  • Error [mod0000_mergedfiles]game\gui\_old\components\guitooltipcomponent.ws(516): syntax error, unexpected TOKEN_IDENT, expecting TOKEN_FUNCTION, near 'flashDataObj'
  • Error [mod0000_mergedfiles]game\gui\inventorycontext.ws(673): Unexpected end of file found after '{' at line 6
  • Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2025): Found unexpected '}'
  • Error [mod0000_mergedfiles]game\gui\menus\commonmenu.ws(1991): Unexpected end of file found after '{' at line 73
  • Error [mod0000_mergedfiles]game\gui\menus\meditationclockmenu.ws(376): Found unexpected '}'
  • Error [mod0000_mergedfiles]game\player\playerwitcher.ws(6831): Unexpected end of file found after '{' at line 1126
  • Error [mod0000_mergedfiles]game\player\states\meditation\meditation.ws(252): Unexpected end of file found after '{' at line 49
  • Error [mod0000_mergedfiles]game\player\states\meditation\meditationwaiting.ws(80): syntax error, unexpected TOKEN_ENTRY, expecting '{' or ';', near 'entry'
  • Error [mod0000_mergedfiles]game\r4game.ws(2056): Unexpected end of file found after '{' at line 1173

I couldn't upload the last error for now, but the rest are here:
error 1 - https://pastebin.com/SmuM85fE
error 2 - https://pastebin.com/MXHRECzK
error 3 - https://pastebin.com/uQNKqSm4
error 4 - https://pastebin.com/KNrc3ryP
error 5 - https://pastebin.com/6wjr9nsA
error 6 - https://pastebin.com/hg5M2rC9
error 7 - https://pastebin.com/1QTqQtGp
error 8 - https://pastebin.com/e41ATTm2
error 9 - https://pastebin.com/dHLrD8Qj
error 10 - https://pastebin.com/m19jWXT4
error 11 - https://pastebin.com/duPEtUiq
error 12 - https://pastebin.com/uBvfVNvJ
error 13 - https://pastebin.com/Qt1NjAxw
error 14 - https://pastebin.com/trEBiBRW
 
Hello all, I'm new to the forums. I joined mainly because I had an issue with script errors and can't run the game currently. I saw some older threads here where mods helped people out with a similar issue.
If anyone can help find out what's wrong, I would really appreciate it! The script error reads:

Error [mod0000_mergedfiles]game\player\playerwitcher.ws(13): syntax error, unexpected TOKEN_PRIVATE, expecting '{', near 'private'

Here is a pastebin of my playerwitcher.ws file for reference. Anyone know what could be the problem?

https://pastebin.com/RYiBv0K6
 
Hello all, I have an issue with script errors and can't fix it with script merger. I try to solve this problem, but can't find method in everywhere. This is my final chance to solve it, and I don't want to forgive Witcher's adventure.

If someone can solve it, please help me.

Error [mod0000_mergedfiles]gameguimain_menuingamemenu.ws(2145): Unexpected end of file found after '{' at line 65
Error [mod0000_mergedfiles]gameplayerplayerwitcher.ws(7894): Unexpected end of file before comment at line '1268' was closed
Error [mod0000_mergedfiles]gameplayerplayerwitcher.ws(7894): Unexpected end of file found after '{' at line 1262

https://pastebin.com/2DScxDRC >> This is ingameMenu.ws
https://pastebin.com/puJGAzrY >> This is playerwitcher.ws
 
To all: you try to combine multi script with margin script folder
- try delete file in margin folder ws file create error end re-scan with WitcherScriptMerger

if you ave this error :

Found unexpected '}'

For fix script error
edit file :

exemple:
Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(4749): Found unexpected '}'

4789 >>line error detected
[mod0000_mergedfiles] >> in this folder in mods game folder
game\components\inventorycomponent.ws >> tree folder and xyz.WS file

Found unexpected '}' >>type error detected

Open file with notepad++

in notepad++ set language >> action script
go to your line error

add "{" or '}' over or below line code .
example :
 
Last edited:
can anyone please lend a bother a hand?

I'm having this error during compilation:
Error [mod0000_mergedfiles]game\r4game.ws(2479): Unexpected end of file found after '{' at line 37

https://pastebin.com/f9AFUrZC

I've read that the only thing I supposedly need to do is add a } somewhere...unfortunately i've no f*kin clue where it needs to be placed.
I've seen replies from people with the exact same issue, sadly the pastebin links with the fix are long dead.
 
Last edited:
Top Bottom