reallyhairydave Posted March 8, 2022 Share Posted March 8, 2022 12 minutes ago, lynx said: oh wait, we forgot to do the magic! Keep the list though. Before recompiling the scripts, run this on each baf file (here named the-input.baf): 10pp/wrapper.pl the-input.baf 10 the-output.baf mv the-output.baf the-input.baf So this is the pearl bit I take it. Am I running this in cmd or the linux tab? Quote Link to comment
lynx Posted March 8, 2022 Share Posted March 8, 2022 (edited) I guess it should work in either, but I now see that you'll have to fix the path either to the files or wrapper.pl, since you're running it from a subdirectory, not the game one like I indicated above. btw, in bash looping is done this way: for file in path/to/your/folder/with/baf/files/*.baf; do 10pp/wrapper.pl "$file" 10 the-output.baf mv the-output.baf "$file" done Just change that path as indicated when looking from the top game dir. Edited March 8, 2022 by lynx Quote Link to comment
reallyhairydave Posted March 8, 2022 Share Posted March 8, 2022 OK, looks like it needs to run out of cmd but it's asking me what to open wrapper.pl in (what program) Quote Link to comment
reallyhairydave Posted March 8, 2022 Share Posted March 8, 2022 (edited) So I'm putting this into bash for file in 10pp/temp/*.baf; do 10pp/wrapper.pl "$file" 10 the-output.baf mv the-output.baf "$file" done and the files are coming out blank after this error message is generated for each Use of uninitialized value $trigger_half in pattern match (m//) at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 69. Use of uninitialized value $response_half in pattern match (m//) at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 70. Use of uninitialized value $trigger_half in concatenation (.) or string at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 72. Use of uninitialized value $response_half in concatenation (.) or string at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 72. |||| FATAL PARSING ERROR: player mention mismatch! Dumped problematic block above. Are you sure this is a script file? Edited March 8, 2022 by reallyhairydave formatting Quote Link to comment
lynx Posted March 8, 2022 Share Posted March 8, 2022 Oh, for windows I guess prepend perl.exe, so perl.exe 10pp/... The bash error doesn't mention enough to be useful. Run it on a single file that you know is ok to check if everything is alright. Maybe perl isn't installed and something else ran. Quote Link to comment
reallyhairydave Posted March 8, 2022 Share Posted March 8, 2022 I've been running Pearl from a cmd window after running state tool. I couldn't find a download for it Quote Link to comment
reallyhairydave Posted March 8, 2022 Share Posted March 8, 2022 Similar results for a single entry "10pp/wrapper.pl 10pp/temp/01POOL2.baf 10 the-output.baf" Use of uninitialized value $trigger_half in pattern match (m//) at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 69. Use of uninitialized value $response_half in pattern match (m//) at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 70. Use of uninitialized value $trigger_half in concatenation (.) or string at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 72. Use of uninitialized value $response_half in concatenation (.) or string at /mnt/g/games/gog galaxy/games/baldurs gate 2/10pp/extender.pl line 72. |||| FATAL PARSING ERROR: player mention mismatch! Dumped problematic block above. Are you sure this is a script file? 01pool2.baf remains the same. "mv the-output.baf 10pp/temp/01POOL2.baf" 01pool2.baf is completely empty This is where the player reference is in this specific file THEN RESPONSE #100 ClearAllActions() SaveGame(0) SmallWait(5) StartCutSceneMode() MoveViewObject(LastTrigger,INSTANT) SetGlobal("Spelunking","GLOBAL",0) DisplayStringNoName(Myself,72212) // ~You dive through the tunnel and swim as fast as you can to the other end.~ Wait(2) FadeToColor([30.0],0) Wait(2) ActionOverride(Player1,LeaveAreaLUAPanicEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player1,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player2,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player3,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player4,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player5,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player6,LeaveAreaLUAEntry("AR6004","Entry3",[0.0],N)) ActionOverride(Player1,Wait(2)) ActionOverride(Player1,MultiPlayerSync()) ActionOverride(Player1,FadeFromColor([30.0],0)) ActionOverride(Player1,EndCutSceneMode()) END Quote Link to comment
lynx Posted March 9, 2022 Share Posted March 9, 2022 7 hours ago, reallyhairydave said: I've been running Pearl from a cmd window after running state tool. I couldn't find a download for it It's Perl, not pearl, make sure you have it installed. There's a link in the readme. perl -v ... prints the version or it will complain that the command is missing. Might be already included in WSL. Quote Link to comment
reallyhairydave Posted March 9, 2022 Share Posted March 9, 2022 Looks like I do have perl "This is perl 5, version 28, subversion 1 (v5.28.1) built for MSWin32-x64-multi-thread" Don't know if this helps but it's the first thing that isn't what I've already posted (from the cmd window) "perl 10pp/wrapper.pl 10pp/temp/01pool1.baf the-output.baf" Argument "the-output.baf" isn't numeric in numeric le (<=) at G:\Games\GOG Galaxy\Games\Baldurs Gate 2\10pp/extender.pl line 235. The filename, directory name, or volume label syntax is incorrect. Quote Link to comment
reallyhairydave Posted March 9, 2022 Share Posted March 9, 2022 No, that was my fault. Missed the "10". Now I'm back to The filename, directory name, or volume label syntax is incorrect. Quote Link to comment
reallyhairydave Posted March 9, 2022 Share Posted March 9, 2022 Just spotted something while trying to mess around with the syntax, I have a file called "the-output.baf" in the folder I'm running it from, I checked and it has the extended code for the specific file I was testing so it looks like it works with cmd but not the linux tab. Decided to try the weidu setup again but still hitting an error, I saw it was creating extended scripts in the temp folders though while it was running Quote Link to comment
lynx Posted March 9, 2022 Share Posted March 9, 2022 This all just reminds me why I stopped using windows 20 years ago. But good that you found another workaround ... Quote Link to comment
reallyhairydave Posted March 9, 2022 Share Posted March 9, 2022 I have heard that Windows is like a virus compared with Linux but I've never had the experience to switch, I feel that I may be getting to the point where I could comfortably do it Quote Link to comment
reallyhairydave Posted March 9, 2022 Share Posted March 9, 2022 So I've got the extended code in the-output.baf for the file, how do I give it's contents to the original? Quote Link to comment
lynx Posted March 9, 2022 Share Posted March 9, 2022 once you've done that to all the files, rerun weidu on them, so you get new bcs versions. Then just copy them to the override. 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.