Closed Terseus closed 9 years ago
All variables are global in the TP programming language; it looks like the INNER_PATCH_FILE block isn't firing because, for some %SAV_RES%.are in your torment.sav file, your game is missing %SAV_RES%.wed; as such, it's possible that the savegame is not valid, or there is a problem with your installation.
Ooops, sorry, I know nearly nothing about the language :(
I play PS:T in Linux trought wine (last version) and when trying to convert my current savegames the error arises, after applying this patch I'm playing with no problem so I thought it was only a variable scope problem.
Anyway, this happened me with all my save games, not just one, I have not manipulated my save games in any way, maybe it's a generalized problem with PS:T or with Weidu through wine?
If you're interested I will send you more details about this case by e-mail.
If you can mail me your (post-Widescreen) save file, I'll take a look at what happened.
When converting the savegames an error raises: Error: cannot convert new_mask_len or %new_mask_len% to an integer.
This indicates that the variable new_mask_len it's used out of his scope, we fix it by declaring it at the correct scope.
This fix have been tested successfully in a Wine installation of PS:T.