How to solve script compilation issues when launching the game with mods

+
I have similar problem. Fresh TW3 install, first added Visual Enhancement + Turbolighting mods - it worked without problems. Then I tried to install some gameplay/content mods (list below). This set of errors happened during compilation:

Error [modmapquestobjectivesfull]game\player\playerwitcher.ws(152): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\gameplay\focus\focus.ws(199): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\gameplay\focus\focus.ws(253): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\gui\menus\gwintgamemenu.ws(104): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\playerdialogstate.ws(48): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\aimthrow.ws(42): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\combat.ws(124): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\exploration.ws(55): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\swimming.ws(252): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\vehicles\horseriding.ws(49): Function 'LogWithName' does not take 1 param(s)
Error [content0]game\player\states\vehicles\sailing.ws(56): Function 'LogWithName' does not take 1 param(s)

Warning [content0]engine\telemetrykeyword.ws(5): Native function 'Log' was not exported from class 'CR4TelemetryScriptProxy' in C++ code.

When I tried to copy /scripts from Mod Tools to /content0 (which is adviced in many places), different set of errors appeared:

Error [content0]engine\physicsworld.ws(9): Cannot find structure 'SCollisionInfo' to import
Error [content0]game\behavior_tree\tasks\monsters\bttaskmaintainspeed.ws(10): Class 'CBTTaskMaintainSpeed' already defined.
Error [content0]game\behavior_tree\tasks\monsters\bttaskmaintainspeed.ws(74): Class 'CBTTaskMaintainSpeedDef' already defined.
Error [content0]game\behavior_tree\tasks\reactions\bttaskisman.ws(4): Class 'CBTCondIsMan' already defined.
Error [content0]game\behavior_tree\tasks\reactions\bttaskisman.ws(15): Class 'CBTCondIsManDef' already defined.
Error [content0]game\cameras\exploration\driftcamera.ws(136): Class 'CCameraRotationControllerDrift' already defined.

ScriptMerger doesn't notice any conflicts in both cases.

List of installed mods:

Help :)
 
@maritimus
Well, you could always try to delete 1 mod, check if it works, etc. [check the ones which have scripts ofc]

Also, what version are you using? I use 1.10 atm, and can't use allnpcscabbards [as it is for 1.12], it gives me similar errors .
 
I use 1.12. Windows 7 x64.

BTW, when I deleted /hacks directory (another advice), only two errors remain:

Error [content0]engine\physicsworld.ws(9): Cannot find structure 'SCollisionInfo' to import
Error [content0]game\cameras\exploration\driftcamera.ws(136): Class 'CCameraRotationControllerDrift' already defined.

I will now try to compile while deleting single mods.

Edit: it doesn't help. Errors above appear even if I limit my mods to different single ones. Game launches only if /Mods directory is empty.

Another experiment: I switched /scripts for this version: http://www39.zippyshare.com/v/Hxoh07Rl/file.html Then only two errors happened, one of which I fixed by changing Log to LogWithName in telemetry.ws file. However, other error still happens, whenever any gameplay mod is installed:

Error [content0]game\components\inventorycomponent.ws(499): Native function 'GetItemsIds' cannot have script code.

However, game launches with only visual mods installed. But it doesn't help me, as I want gameplay ones as well.

In my case, gameplay mods are: AlwaysFullExp, AutoLoot, MapQuestObjectves and MadSkillz. Visual/content (probably working, at least game launches with them): Lore Friendly Wtchers (three sub-mods), BetterTrophies, HDReworked, AllNPCScabbards.

So I'm sure solution is somewhere in /content0/scripts, not in /mods.
 
Last edited:
If you try to install another script based mod. Does that generate the same error?
It turns out when i was fixing other errors this one somehow appeared...because now even with this mod uninstalled the error remains lol
Il try to reinstall the game and see whats up then i guess.
 
Hi,
I have this problem. I'm using triss companion questions mod and it showing me this error.
Error [modtrisscompanion]game\modtrisscompanion.ws(12): Could not find function 'SetPermanentFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(13): Could not find function 'SetFollowerDelayed'
Error [modtrisscompanion]game\modtrisscompanion.ws(1: Could not find function 'StopPermanentFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(19): Could not find function 'StopFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(25): Could not find function 'SetPermanentFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(26): Could not find function 'PermanentFollowers'
Error [modtrisscompanion]game\modtrisscompanion.ws(33): Could not find function 'SetPermanentFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(34): Could not find function 'PermanentFollowers'
Error [modtrisscompanion]game\modtrisscompanion.ws(60): Could not find function 'SetFollower'
Error [modtrisscompanion]game\modtrisscompanion.ws(65): Could not find function 'StopFollower'
I have version 1.12.1
How can i fix it?
EDIT: Fixed
 
Last edited:
well i try every fucking step and no result on this i got a better chance no scripting the game cuz i can play it but i want to mod the game and the Compiling error is making the fuck out of me, cuz im addictive to modding but can't mod because of this error even made the Mod.Setting file on my docu...
this one is without the scrips...
View attachment 34060
this one is with the scrip on...
View attachment 34050
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    80.5 KB · Views: 382
  • Screenshot_2.jpg
    Screenshot_2.jpg
    140.4 KB · Views: 485
Any advice I am getting this


Error [content0]game\gameplay\ability\abilitymanagertypes.ws(17): Structure 'SBlockedAbility' already defined.
Error [content0]game\behavior_tree\aicombatstorage.ws(2): Cannot find class 'CAIStorageHandler' to import
Error [content0]game\behavior_tree\aistorage.ws(1): Base class mismatch. Class 'CHorseRiderSharedParams' specifies 'CObject' as a base but native code uses 'IScriptable'
Error [content0]game\behavior_tree\aistorage.ws(29): Base class mismatch. Class 'CAIStorageAnimalData' specifies 'CObject' as a base but native code uses 'IScriptable'
Error [content0]game\behavior_tree\aistorage.ws(37): Base class mismatch. Class 'CAIStorageHorseData' specifies 'CObject' as a base but native code uses 'IScriptable'
Error [content0]game\behavior_tree\aistorage.ws(45): Base class mismatch. Class 'CAIStorageRiderData' specifies 'CObject' as a base but native code uses 'IScriptable'
 
OK I have these mods:

Unification patch for 1.31 and 1.31GOTY
modPreparations
modGhostMode
modBetterIconsEnglish

And this is my script compile error:

Error [modghostmode]game\gameplay\items\throwables\petards\petard.ws(261): Function 'GetTriggeringCollisionGroupNames' does not take 1 param(s)

Warning [content0]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [content0]engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code.
Warning [content0]engine\showflags.ws(11): Global native function '
ebugSetEShowFlag' was not exported from C++ code.
 
telemetryKeyword.ws in .....\content\content0\scripts\engine

Guys ... there is a syntaxError in the first line

import final function Log( eventType : ER4TelemetryEvents );

you must change "Log" to "LogWithName"

after that everything started to work for me , no compilling errors

1.31 GOG non-GOTY
 
Top Bottom