Jump to content

Script problems


Recommended Posts

Every time I try to launch the game I keep getting Script Compilation Errors. I had 2 more but I edited the file to remove the problem but I don't know what to change in the GetCriticalHitChance line. The line for the Ciri file is the same

 

The line is: "function GetCriticalHitChance( isLightAttack : bool, isHeavyAttack : bool, target : CActor, victimMonsterCategory : EMonsterCategory, isBolt : bool ) : float" and I would need to remove two of the parameters.

 

Any help would be greatly appreciated

 

Logs:

 

Error [content0]game\replacers\ciri.ws(327): Function 'GetCriticalHitChance' takes 5 parameter(s) which is inconsistent with base function (3).

Error [content0]game\player\playerwitcher.ws(2039): Function 'GetCriticalHitChance' takes 5 parameter(s) which is inconsistent with base function (3).
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 'DebugSetEShowFlag' was not exported from C++ code.
Edited by TrafficCop00
Link to comment
Share on other sites

CPlayerWitcher::GetCriticalHitChance`5 is derived from CR4Player::GetCriticalHitChance`5, which is defined in scripts/game/player/r4player.ws, probably signature of this function was changed in some version and you have outdated mod that changes r4player.ws file.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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