Samase
Aug 10 2017, 6:15 pm
By: Neiv
Pages: < 1 « 7 8 9
 

Aug 9 2023, 5:38 pm vga257 Post #161



Neiv, thank you!

It works great!

I've been struggling with BWMetaAI today and I'm just totally happy.

Cheers!

Attachments:
2023-08-09_23-34-31.jpg
Hits: 7 Size: 317.71kb



None.

Aug 13 2023, 8:12 pm tsirke Post #162



Hello good ppl and Neiv,

I'm trying to make this work for v 1.23.9.10756 but samase doesn't even launch (it seems like it does for a split second, then it crashes with no error message).

Am I doing something wrong or this version is not supported?

Thx in advance!



None.

Aug 14 2023, 12:33 pm IlyaSnopchenko Post #163

The Curious

Do you mean the mod or samase.exe?



Trial and error... mostly error.

Aug 14 2023, 4:00 pm tsirke Post #164



Sry, should've been clearer.

Was trying to make this work:

Get Samase
Get aiscript.bin from BWMetaAI's releases
Make the directory layout like this:
StarCraft\x86\StarCraft.exe
StarCraft\x86\semase.exe
StarCraft\x86\custom\scripts\aiscript.bin
Make a shortcut to sasame.exe and add custom as a command line parameter.
Run StarCraft using this shortcut


But when I launch the samase.exe shortcut, nothing happens.



None.

Aug 14 2023, 7:53 pm Nekron Post #165



You run samase from the commandline
cd to the directory samase's in ->
samase.exe C:\samase\foldername --pack C:\samase\executablename.exe




Aug 14 2023, 8:30 pm tsirke Post #166



I was referring to the method detailed here: https://github.com/jncraton/BWMetaAI (under installation paragraph), which apparently should run through a shortcut, is this not viable anymore?



None.

Aug 14 2023, 8:57 pm Nekron Post #167



Oh that will just run without saving an executable from the /custom/ folder. You can try running this from a .bat file to check if there is an error that pops up, assuming the same folder structure JNCraton gave:
Quote
:retry
samase.exe C:\x86\custom\ || pause
if errorlevel 1 goto retry





Aug 14 2023, 9:09 pm tsirke Post #168



thx for the tip Nekron, tried it, same result. no error message, it simply wouldn't run



None.

Jun 11 2024, 8:13 pm jf1990 Post #169



Neiv, is the source code of Samase publicly available? :)
Wondering since having this tool open source'd would boost mod development for SC:R IMO



None.

Jun 14 2024, 11:27 pm myocytebd Post #170



SCR spawned by samase crashes under wine/linux randomly (even when using an empty dir).
It would be helpful if source code is available or backtrace and detailed tracing log are available.

Post has been edited 1 time(s), last time on Jun 15 2024, 12:04 am by myocytebd.



None.

Jun 22 2024, 3:27 pm Neiv Post #171



The source code isn't available so that people wouldn't repurpose it for hacks. I wouldn't mind a setup where only the process initialization code is kept closed source with the remaining 99% being available, though it would take some time to reorganize the code for that.

Quote from myocytebd
SCR spawned by samase crashes under wine/linux randomly (even when using an empty dir).
It would be helpful if source code is available or backtrace and detailed tracing log are available.

Do you mean that it sometimes works under wine? My impression was that wine doesn't support the process creation method samase uses at all. Moving samase to use same wine-compatible SC:R injection code that ShieldBattery uses is on my list of things to do, though not sure when I'll manage to get to working on that.



None.

Jun 23 2024, 5:57 am jf1990 Post #172



Quote from Neiv
The source code isn't available so that people wouldn't repurpose it for hacks. I wouldn't mind a setup where only the process initialization code is kept closed source with the remaining 99% being available, though it would take some time to reorganize the code for that.

Quote from myocytebd
SCR spawned by samase crashes under wine/linux randomly (even when using an empty dir).
It would be helpful if source code is available or backtrace and detailed tracing log are available.

Do you mean that it sometimes works under wine? My impression was that wine doesn't support the process creation method samase uses at all. Moving samase to use same wine-compatible SC:R injection code that ShieldBattery uses is on my list of things to do, though not sure when I'll manage to get to working on that.

Thanks. I was trying to use Samase with an "offline" release of SCR 1.23.10, but since they use a patched ClientSDK.dll + Offline.dll, Samase isn't able to find the correct memory addresses/offsets I believe. Was thinking of modifying it myself if source was available, to enjoy a true offline experience (No 30 day login or ban risk) with mods though Samase.



None.

Jun 23 2024, 9:43 pm myocytebd Post #173



Quote from Neiv
Quote from myocytebd
SCR spawned by samase crashes under wine/linux randomly (even when using an empty dir).
It would be helpful if source code is available or backtrace and detailed tracing log are available.

Do you mean that it sometimes works under wine? My impression was that wine doesn't support the process creation method samase uses at all. Moving samase to use same wine-compatible SC:R injection code that ShieldBattery uses is on my list of things to do, though not sure when I'll manage to get to working on that.
It is like this:
- 100% working to launch the game and start a map;
The CASC overriding does work.
- After some random time, SC:R freeze (more common) or crash during a map play. Usually on the magnitude of 5-15 minutes. (If the game is short enough, then SC:R can survive to map result screen and start a new map).
samase's crash logger does not catch this freeze or crash.
(I don't even know whether the fatal originated from win32 land or wine itself. wine has no doc for debugging, and documented trace env vars are broken.)
- 'samase-0.8.31.exe empty_dir [--log]' can reproduce the crash. (no plugin)
So I guess it is more likely that some hooked implementation dislike wine. The injection/hook itself should be fine, otherwise SC:R should die much faster.
(I didn't experience the freeze/crash with 'SC:R -launch' w/o samase.)

(If I recall correctly, wine improved process/PE compatibility before, maybe during 7.x)

Post has been edited 3 time(s), last time on Jun 23 2024, 9:53 pm by myocytebd.



None.

Jun 24 2024, 5:02 pm Neiv Post #174



Quote from jf1990
Thanks. I was trying to use Samase with an "offline" release of SCR 1.23.10, but since they use a patched ClientSDK.dll + Offline.dll, Samase isn't able to find the correct memory addresses/offsets I believe. Was thinking of modifying it myself if source was available, to enjoy a true offline experience (No 30 day login or ban risk) with mods though Samase.

Ah ultimately the part of initialization code where the cracked version breaks for some reason would be in the small part of code I would prefer not to release. Samase does not go out of its way to break unofficial exes though, and is able to patch exes that don't include the usual protection, so, idk, would just prefer if samase wouldn't have to be modified at all for pirated exes.


Quote from myocytebd
It is like this:
- 100% working to launch the game and start a map;
The CASC overriding does work.
- After some random time, SC:R freeze (more common) or crash during a map play. Usually on the magnitude of 5-15 minutes. (If the game is short enough, then SC:R can survive to map result screen and start a new map).
samase's crash logger does not catch this freeze or crash.
(I don't even know whether the fatal originated from win32 land or wine itself. wine has no doc for debugging, and documented trace env vars are broken.)
- 'samase-0.8.31.exe empty_dir [--log]' can reproduce the crash. (no plugin)
So I guess it is more likely that some hooked implementation dislike wine. The injection/hook itself should be fine, otherwise SC:R should die much faster.
(I didn't experience the freeze/crash with 'SC:R -launch' w/o samase.)

(If I recall correctly, wine improved process/PE compatibility before, maybe during 7.x)

Huh, if wine is able to get samase launch in a way that allows it patch the game they definitely have improved on niche windows compatibility.

Random crashing without crash handler running, and sometimes freezing definitely sounds like it's triggering one of the executable's protections that intentionally close the exe, often with int 29 so that the process exits without running any exception handlers.
I have one guess of where the cause could be without any other information, if you could run this build of samase with --log and post the log file after startup it may be helpful (Does not have to hit the crash). The zip also includes a 64-bit executable in case it changes anything and you have time to try it.

https://drive.google.com/file/d/1fOOZD3ib3xG5kRHLmg6dHp-YWoDP_4W5/view?usp=sharing

But other than the log it'd be most helpful to know which instruction in the exe (address, relative to image base) it exactly is freezing / crashing, not sure if you can attach a debugger on freeze to get that information out with wine or anything. Ruuning with `WINEDEBUG=+seh` may also help to get the information from a crash? Not sure if it works there.



None.

Jun 25 2024, 7:02 am myocytebd Post #175



Quote from Neiv
Quote from myocytebd
It is like this:
- 100% working to launch the game and start a map;
The CASC overriding does work.
- After some random time, SC:R freeze (more common) or crash during a map play. Usually on the magnitude of 5-15 minutes. (If the game is short enough, then SC:R can survive to map result screen and start a new map).
samase's crash logger does not catch this freeze or crash.
(I don't even know whether the fatal originated from win32 land or wine itself. wine has no doc for debugging, and documented trace env vars are broken.)
- 'samase-0.8.31.exe empty_dir [--log]' can reproduce the crash. (no plugin)
So I guess it is more likely that some hooked implementation dislike wine. The injection/hook itself should be fine, otherwise SC:R should die much faster.
(I didn't experience the freeze/crash with 'SC:R -launch' w/o samase.)

(If I recall correctly, wine improved process/PE compatibility before, maybe during 7.x)

Huh, if wine is able to get samase launch in a way that allows it patch the game they definitely have improved on niche windows compatibility.

Random crashing without crash handler running, and sometimes freezing definitely sounds like it's triggering one of the executable's protections that intentionally close the exe, often with int 29 so that the process exits without running any exception handlers.
I have one guess of where the cause could be without any other information, if you could run this build of samase with --log and post the log file after startup it may be helpful (Does not have to hit the crash). The zip also includes a 64-bit executable in case it changes anything and you have time to try it.

https://drive.google.com/file/d/1fOOZD3ib3xG5kRHLmg6dHp-YWoDP_4W5/view?usp=sharing

But other than the log it'd be most helpful to know which instruction in the exe (address, relative to image base) it exactly is freezing / crashing, not sure if you can attach a debugger on freeze to get that information out with wine or anything. Ruuning with `WINEDEBUG=+seh` may also help to get the information from a crash? Not sure if it works there.
I hope you don't mind that I have uploaded some logs in one of your github project for better formatting:
https://github.com/neivv/mtl/issues/1

The 64-bit exe didn't freeze or crash over totally 40 min wall clock. It appears fixed or greatly improved.
What is the possible cause/fix/workaround?



None.

Options
Pages: < 1 « 7 8 9
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:05 pm]
dumbducky -- I found a sneaky way to view some of my coworkers SAT scores and it is shocking
[06:03 pm]
dumbducky -- FaRTy1billion
FaRTy1billion shouted: o, i keep meaning to add things to it but instead don't
Farty does your website work anymore
[06:02 pm]
dumbducky -- I miss forums. Twitter is way more engaging but unless you have a following, nobody talks to you. Reddit is just filled with the stupidest people
[02:32 pm]
Zoan -- :wob:
[02:54 am]
Ultraviolet -- :wob:
[2024-7-25. : 2:39 am]
O)FaRTy1billion[MM] -- o, i keep meaning to add things to it but instead don't
[2024-7-24. : 11:55 pm]
Roy -- Make that three changes to the wiki in the last month, all three being just edits to user pages.
[2024-7-23. : 2:47 pm]
dumbducky -- Two changes to the wiki in the last month, both are just edits to user pages
[2024-7-23. : 2:03 am]
da real donwano -- l)ark_ssj9kevin
l)ark_ssj9kevin shouted: i'd play 9ine
If it's archived anywhere I'd be surprised.
[2024-7-23. : 1:03 am]
l)ark_ssj9kevin -- i'd play 9ine
Please log in to shout.


Members Online: Roy