Script Compilation Error with modded game

+
Error [content0]game\gui\menus\listbasemenu.ws(247): Unexpected end of file found after '{' at line 11
I don't know why you have edited a base game file (content0 reveals that), but it's a bad idea.
This error should be fixed by removing the two // on the very last line; they are commenting out the closing }.
 
Can Anybody help me with mine?
Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(6612): Unexpected end of file found after '{' at line 54
Error [mod0000_mergedfiles]game\gameplay\effects\gameeffectmanager.ws(2): syntax error, unexpected TOKEN_CASE, expecting TOKEN_FUNCTION, near 'case'
 
I was able to fix a lot of my files, but these ones I seriously can't fix:

Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(2179): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gameplay\containers\actorremains.ws(97): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gameplay\items\spells\ignientity.ws(289): syntax error, unexpected TOKEN_STATE, expecting TOKEN_FUNCTION, near 'state'
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectile.ws(1): syntax error, unexpected $undefined, expecting TOKEN_FUNCTION, near '*'
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectiles.ws(76): syntax error, unexpected TOKEN_IDENT, expecting TOKEN_FUNCTION, near 'noInstaKill'
Error [mod0000_mergedfiles]game\gui\_old\components\guisocketsinventorycomponent.ws(4): syntax error, unexpected '{', expecting TOKEN_FUNCTION, near '{'
Error [mod0000_mergedfiles]game\gui\hud\modules\hudmodulebuffs.ws(101): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu\igmoptions.ws(186): syntax error, unexpected TOKEN_VAR, expecting '{' or ';', near 'var'
Error [mod0000_mergedfiles]game\gui\menus\blacksmithmenu.ws(436): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else'
Error [mod0000_mergedfiles]game\gui\menus\commonmenu.ws(1997): Unexpected end of file found after '{' at line 17
Error [mod0000_mergedfiles]game\gui\menus\meditationclockmenu.ws(80): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else'
Error [mod0000_mergedfiles]game\gui\r4guimanager.ws(218): syntax error, unexpected TOKEN_IDENT, expecting TOKEN_FUNCTION, near 'inGameConfigBufferedWrapper'
Error [mod0000_mergedfiles]game\player\r4player.ws(3304): syntax error, unexpected '{', expecting TOKEN_FUNCTION, near '{'
Error [mod0000_mergedfiles]game\player\states\meditation\meditation.ws(302): syntax error, unexpected TOKEN_PRIVATE, expecting '{' or ';', near 'private'
Error [mod0000_mergedfiles]game\player\states\meditation\meditationwaiting.ws(78): syntax error, unexpected TOKEN_ENTRY, expecting '{' or ';', near 'entry'
Error [mod0000_mergedfiles]game\vehicles\horse\states\exploration.ws(2333): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else'

I know it has to do with the merging the files, but most times there were simply to many to merge so I didn't knew how to proprely do this. I tried editing and even deleting some of these errors, but it only causes more troubles.
What can I do? I don't know that much about programing for this :(
 
I know it has to do with the merging the files, but most times there were simply to many to merge so I didn't knew how to proprely do this.
Did you do manual merging, or use the Script Merger? The mod name would indicate the latter, but SM should't mess up that much. Unless your mods have incompatibilities and/or have not been updated for the latest game version.

Also, without seeing the files themselves it's impossible to find out the problems. Please create Pastebin pastes from all files, and link them here.
 
Did you do manual merging, or use the Script Merger? The mod name would indicate the latter, but SM should't mess up that much. Unless your mods have incompatibilities and/or have not been updated for the latest game version.

Also, without seeing the files themselves it's impossible to find out the problems. Please create Pastebin pastes from all files, and link them here.

I used the Script merger, but some had to be done manually in the program as well, because they were supossed to be on the same line. What I didn't understand, is that sometimes above and later the same things were already there, so I tried to merge them in a "logical" way.

https://pastebin.com/WMEstJ3R
https://pastebin.com/cxrHasat
https://pastebin.com/Pm5UjaVq
https://pastebin.com/5r9TQpPF
https://pastebin.com/5i3GJYDk
https://pastebin.com/NWJCF5zq
https://pastebin.com/9LbQkkJk
https://pastebin.com/LKqxg5FZ
https://pastebin.com/9AdqCRBz
https://pastebin.com/UR5Tw6h3

I can't upload more for now, but these are some of the errors

(These were the ones in order:
Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(2179): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gameplay\containers\actorremains.ws(97): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gameplay\items\spells\ignientity.ws(289): syntax error, unexpected TOKEN_STATE, expecting TOKEN_FUNCTION, near 'state'
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectile.ws(1): syntax error, unexpected $undefined, expecting TOKEN_FUNCTION, near '*'
Error [mod0000_mergedfiles]game\gameplay\projectile\signs\signprojectiles.ws(76): syntax error, unexpected TOKEN_IDENT, expecting TOKEN_FUNCTION, near 'noInstaKill'
Error [mod0000_mergedfiles]game\gui\_old\components\guisocketsinventorycomponent.ws(4): syntax error, unexpected '{', expecting TOKEN_FUNCTION, near '{'
Error [mod0000_mergedfiles]game\gui\hud\modules\hudmodulebuffs.ws(101): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu\igmoptions.ws(186): syntax error, unexpected TOKEN_VAR, expecting '{' or ';', near 'var'
Error [mod0000_mergedfiles]game\gui\menus\blacksmithmenu.ws(436): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else'
Error [mod0000_mergedfiles]game\gui\menus\commonmenu.ws(1997): Unexpected end of file found after '{' at line 17
)
 
I used the Script merger, but some had to be done manually in the program as well, because they were supossed to be on the same line. What I didn't understand, is that sometimes above and later the same things were already there, so I tried to merge them in a "logical" way.
Definitely sounds like you were merging scripts from mods that are not compatible with one another. Or mods that are not updated for the latest version of the game (which is 1.31 or 1.32; not sure if 1.32 affected basic script mods).

I checked three of those Pastebin files, and every one of them was a real mess. I don't have the expertise required to fix them.
 
Hi, can someone help me here please ?
:unsure:
Everything looks fine to me -- identical to my own game's file, even (excluding differences in mods). Line 11 has a { that is closed properly towards the end of the file, so I have no idea why it's throwing that error.
 
:unsure:
Everything looks fine to me -- identical to my own game's file, even (excluding differences in mods). Line 11 has a { that is closed properly towards the end of the file, so I have no idea why it's throwing that error.

Thanks for the quick answer !
I had a conflict error with script merger involving lines 411-420 (after installing modMoreQuickSlots), could it be related to this ?
 
I had a conflict error with script merger involving lines 411-420 (after installing modMoreQuickSlots), could it be related to this ?
I'm tempted to say "yes", but to be honest I have no idea.
Are you sure More Quick Slots is compatible with everything else that you are using?
 
I'm tempted to say "yes", but to be honest I have no idea.
Are you sure More Quick Slots is compatible with everything else that you are using?

Well, looks like i managed to solve the problem. Script merger messed up with More Quick Slot and mod0CAGMpatch (patched friendly hud if i'm correct), giving a mixed up code there.
I cleaned the merged file up as best as i could using both files from the mods, and now game is starting fine.
I hope everything will work now.

Thanks for the help !
 
Definitely sounds like you were merging scripts from mods that are not compatible with one another. Or mods that are not updated for the latest version of the game (which is 1.31 or 1.32; not sure if 1.32 affected basic script mods).

I checked three of those Pastebin files, and every one of them was a real mess. I don't have the expertise required to fix them.

I see... So, what should I do? Reinstall all over again? My game's save had some mods instaled so I'm afraid the game will crash if I open them without the mods
 
I see... So, what should I do?
Make sure everything is compatible with everything else. Check mods' descriptions and comment sections (the search is useful there).
If no issues on that front, delete the merged files and re-merge, see if issues persist.
If issues do persist, what I would do is remove any script mods, and add them back one by one. Re-merge after every mod, and check that the game runs. Once something breaks, you'll know what mod is causing the issue.
 
Make sure everything is compatible with everything else. Check mods' descriptions and comment sections (the search is useful there).
If no issues on that front, delete the merged files and re-merge, see if issues persist.
If issues do persist, what I would do is remove any script mods, and add them back one by one. Re-merge after every mod, and check that the game runs. Once something breaks, you'll know what mod is causing the issue.

Thanks for the help, I ended up unnistaling everything from my computer and started from 0 again. And yes, I downloaded mods that wouldn't work together and I didn't realise that.
This time I didn't even had to merge the files for the mods to work :D
 
Hello , my friend. I'm new to this TW3 Modding, and I bet you familiar with this words , cause it have been use many times and Im sorry for that. So, I was installing this two mods, Friendly Meditation and Immersive Camera also use Script Merger to solve the conflicts but in the end I got just one script compilation error :-

Error [mod0000_mergedfiles]game\player\playerinput.ws(3105): Unexpected end of file found after '{' at line 10

https://pastebin.com/DJeU33Tu

I appreciate for the help of the TW3 Community. ^_^

EDIT:- and I wonder if those two mods compatible with each other. I try to find it in Nexus but nothing I got. Perhaps I didn't search it carefully.

- never mind , already found the patch on Friendly Mutation forums. sorry for the trouble. But it's good to know what cause the
script error.
 
Last edited:
I have no idea how to fix this.
Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2152): Unexpected end of file found after '{' at line 62

I tried adding } linen2147 but i woud then have ;
Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2130): syntax error, unexpected TOKEN_FUNCTION, expecting '{' or ';', near 'function'
Here is a pastebin of the entire file:
https://pastebin.com/z6LAcj2S

Any help is greatly appreciated!
 
I tried adding } linen2147
Where on line 2147?
Like this:
1546030716217.png

or did you put it directly below the } in PlayOpenSoundEvent?
 
hello there i need help with


Error [mod0000_mergedfiles]game\spawncompanions.ws(2016): Unexpected end of file found after '{' at line 1910
 
Top Bottom