Gibberlings3 / widescreen

This mod allows playing of IE-based games at previously unsupported resolutions.
http://www.gibberlings3.net/widescreen/
GNU Lesser General Public License v2.1
26 stars 8 forks source link

Fixed error when converting old savegames #2

Closed Terseus closed 9 years ago

Terseus commented 11 years ago

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.

vbigiani commented 11 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.

Terseus commented 11 years ago

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.

vbigiani commented 11 years ago

If you can mail me your (post-Widescreen) save file, I'll take a look at what happened.