Guest Reeca Posted November 27, 2023 Share Posted November 27, 2023 @DavidW Hi David I play on OSX and below were the errors I encountered with V35. ERROR Installing [Improved NPC customization and management], rolling back to previous state Will uninstall 105 files for [stratagems/setup-stratagems.tp2] component 4100. Uninstalled 105 files for [stratagems/setup-stratagems.tp2] component 4100. ERROR: Failure("Str.replace: illegal backslash sequence") Please make a backup of the file: logs/stratagems.debug and look for support at: For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net. Using Language [English] ERROR Installing [Revised resting: resting in the wild uses up provisions], rolling back to previous state Will uninstall 26 files for [stratagems/setup-stratagems.tp2] component 4135. Uninstalled 26 files for [stratagems/setup-stratagems.tp2] component 4135. ERROR: Failure("Str.replace: illegal backslash sequence") Please make a backup of the file: logs/stratagems.debug and look for support at: For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net. Using Language [English] ERROR Installing [Revised inn rooms: more expensive, more benefits], rolling back to previous state Will uninstall 44 files for [stratagems/setup-stratagems.tp2] component 4140. Uninstalled 44 files for [stratagems/setup-stratagems.tp2] component 4140. ERROR: Failure("Str.replace: illegal backslash sequence") Please make a backup of the file: logs/stratagems.debug and look for support at: For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net. Using Language [English ERROR Installing [Ease-of-use party AI], rolling back to previous state Will uninstall 19 files for [stratagems/setup-stratagems.tp2] component 5000. Uninstalled 19 files for [stratagems/setup-stratagems.tp2] component 5000. ERROR: Failure("Str.replace: illegal backslash sequence") Please make a backup of the file: logs/stratagems.debug and look for support at: For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net. Using Language [English] ERROR Installing [Initialise AI components (required for all tactical and AI components)], rolling back to previous state Will uninstall 321 files for [stratagems/setup-stratagems.tp2] component 5900. Uninstalled 321 files for [stratagems/setup-stratagems.tp2] component 5900. ERROR: Failure("Str.replace: illegal backslash sequence") Please make a backup of the file: logs/stratagems.debug and look for support at: For help troubleshooting installation problems, go to the Sword Coast Stratagems forum at forums.gibberlings3.net. Using Language [English] Quote Link to comment
DavidW Posted November 27, 2023 Share Posted November 27, 2023 Sorry about that - there’s a limited amount I can do to help directly because I only have a Windows testing environment. Any Mac users who can help? Quote Link to comment
Guest Jesse Posted November 27, 2023 Share Posted November 27, 2023 There's a classic discrepancy between how windows and other platforms treat path separators when expressed as strings. Windows requires `\\` whereas *nix (including Darwin -- OSX) want `/` separators. First place I'd check. Quote Link to comment
subtledoctor Posted November 28, 2023 Share Posted November 28, 2023 21 hours ago, Guest Jesse said: There's a classic discrepancy between how windows and other platforms treat path separators when expressed as strings. Windows requires `\\` whereas *nix (including Darwin -- OSX) want `/` separators. First place I'd check. Is this still an issue? I thought Weidu handles this now. I just use forward-slashes in all my mods and they install perfectly well on Windows… Quote Link to comment
jmerry Posted November 28, 2023 Share Posted November 28, 2023 WeiDU handles it automatically in one direction; forward slashes are the expected standard and work regardless of platform. But I'm not sure about the other direction. If it is that problem, some backslashed paths slipping in with the big update and working on Windows systems, I'm not sure how to search for it properly. Quote Link to comment
Agerio Posted November 29, 2023 Share Posted November 29, 2023 I encountered this error too while installing v35 of the mod on android. Quote Link to comment
jmerry Posted November 29, 2023 Share Posted November 29, 2023 Android is another Unix-based system (modified Linux, more specifically). So, the hypothesis is plausible - one or more Windows-style backslashed path references in there, breaking on other operating systems. Hmm. Just searching the code files for backslashes does seem to work pretty well - there aren't that many of them in normal code. Here's one example of a Windows-style path I found: Quote INCLUDE FILE (%MOD_FOLDER%\lib\ssl\shared_definitions.ssl) (Line 1 of eyesek01.ssl in the Abazigal's lair component) Except ... that isn't a v35 change. And I don't remember any errors when I installed this (on Mac) back then. Maybe the paths do get converted both directions, and this is something a bit more complicated? Quote Link to comment
DavidW Posted December 3, 2023 Share Posted December 3, 2023 Just to flag that this is still open as of v35.1. Without access to a Mac/*nix testing environment there's not much I can do to address it. If a good samaritan who uses a Mac and knows WEIDU wants to help out would-be Mac SCS players, get in touch. Quote Link to comment
mickabouille Posted December 4, 2023 Share Posted December 4, 2023 I think I reproduced it under linux (not really surprising, both are *nix). weidu stratagems/setup-stratagems.tp2 --force-install 5000 --log setup-stratagems.debug DELETE [weidu_external/workspace/ssl_out/bddefai.baf]: does not exist weidu_external/workspace/ssl_out/ is empty (but i don't know if it was where the error occurred) setup-stratagems.debug.zip Quote Link to comment
mickabouille Posted December 4, 2023 Share Posted December 4, 2023 (edited) Probably this part DEFINE_ACTION_FUNCTION ~compile_ssl_to_bcs_core~ INT_VAR skip_bcs=0 STR_VAR script="" variables="" booleans="" location="" locbase="" locabs="" rename_to="" inline="" BEGIN ACTION_IF !FILE_EXISTS "%workspace%/autolib.slb" BEGIN COPY ~.../stratagems-inline/blank~ ~%workspace%\autolib.slb~ END It appears there is a bunch of these in the code, I don't know if all of them are used or are a problem (for example, if they are in a if WEIDU_OS they should be ok) %workspace%\ Edited December 4, 2023 by mickabouille Quote Link to comment
DavidW Posted December 4, 2023 Share Posted December 4, 2023 So to be clear, that needs to be %workspace%/ ? though tbh I don’t really want to be making blind edits. I need someone to tell me ‘I made these changes. Now it works fine on OSX Quote Link to comment
mickabouille Posted December 5, 2023 Share Posted December 5, 2023 20 hours ago, DavidW said: though tbh I don’t really want to be making blind edits. I need someone to tell me ‘I made these changes. Now it works fine on OSX Which is perfectly sensible. But I can't help further, I'd need both the changes...and the mac! Quote Link to comment
subtledoctor Posted December 5, 2023 Share Posted December 5, 2023 I can look it at some point in the next few days, probably. A bit weird that v33 and v34 work fine, though. I’m a bit suspicious that the backslash thing might be a red herring. EDIT - yes, lib_general.tpa looks exactly the same in v33 (“COPY ~.../stratagems-inline/blank~ ~%workspace%\autolib.slb~”), and it has no problem in MacOS. I wonder if that user just has more general permissions issues or something. That “illegal backslash sequence” error seems pretty specific, but it’s not an error I’ve seen before so I don’t know what it actually means. Quote Link to comment
Angel Posted December 6, 2023 Share Posted December 6, 2023 I'm also experiencing these errors on Linux. It looks like perl chokes on backslashes instead of forward slashes in .ssl files. I'm attempting to get it working on my install, will let you know if I succeed. As a side note: *please* be nice to us Linux users and lower case all file names! Quote Link to comment
Guest Reeca Posted December 6, 2023 Share Posted December 6, 2023 1 hour ago, subtledoctor said: I can look it at some point in the next few days, probably. A bit weird that v33 and v34 work fine, though. I’m a bit suspicious that the backslash thing might be a red herring. EDIT - yes, lib_general.tpa looks exactly the same in v33 (“COPY ~.../stratagems-inline/blank~ ~%workspace%\autolib.slb~”), and it has no problem in MacOS. I wonder if that user just has more general permissions issues or something. That “illegal backslash sequence” error seems pretty specific, but it’s not an error I’ve seen before so I don’t know what it actually means. I don't think it's a permissions issue as I have previous versions of SCS installed with no errors. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.