SMZ3Randomizer icon indicating copy to clipboard operation
SMZ3Randomizer copied to clipboard

Autotracker lua Fails under newest version

Open doomcup opened this issue 1 year ago • 10 comments

Updated to the latest RC version under Windows 64-bit, but when attempting to connect the autotracker, SNES9x-rr responds with "Failed to open socket:connection refused" and severe lurching. Nothing has changed with my setup except installing 9.8.0-rc.2

doomcup avatar May 16 '24 00:05 doomcup

I tried an uninstall and a reinstall, and the reinstall didn't actually put any lua scripts anywhere. It's possible this is something on my end, because for some reason the installer wouldn't run unless I ran it from the terminal.

doomcup avatar May 16 '24 01:05 doomcup

The RC does indeed install the scripts in a different folder. I think maybe they moved up a directory?

CPColin avatar May 16 '24 01:05 CPColin

Ah, yeah. Apologies, I didn't add any notes about that in the release notes. I'll make sure to do that.

The default AutoTracking scripts folder is %localappdata%\SMZ3CasRandomizer\AutoTrackerScripts, and you'll want to use the connector.lua file.

If for some reason you don't see the files there, you may need to generate a new seen on the RC if you haven't already. It builds the folder when you create a new seed.

MattEqualsCoder avatar May 16 '24 02:05 MattEqualsCoder

I solved my installer problem. Windows Defender SmartScreen hates the installer, and I had to disable it to get the installer to run normally.

As you said, generating a new seed put the tracker scripts where they should be. thanks.

EDIT: Nevermind, it didn't actually generate the LUA scripts per emulator. There's three LUAs and none of them seem to be something that works.

EDIT 2: I sure can read this late at night. Tried connector.lua and I'm still getting "Failed to open socket:connection refused" and a severe performance lurch every time.

doomcup avatar May 16 '24 02:05 doomcup

Is there anything else that comes up in the the snes9x lua log?

MattEqualsCoder avatar May 16 '24 15:05 MattEqualsCoder

image This, on a loop.

doomcup avatar May 16 '24 16:05 doomcup

Bizarre, I can't seem to replicate this in either 32bit or 64bit snes9x. Can you post the full log from snes9x as well as the latest log file from %localappdata%\SMZ3CasRandomizer? I'll try with my laptop to see if I can replicate in the meantime.

MattEqualsCoder avatar May 16 '24 22:05 MattEqualsCoder

Also, just to make sure, you're using just the regular "Lua Script" connector option in SMZ3 and not the EmoTracker Lua Script or Crowd Control Lua Script?

MattEqualsCoder avatar May 16 '24 22:05 MattEqualsCoder

I found out what was going on. Before the update I had it do LUA scripting by default. Something got messed up and it decided to do USB2SNES by default, and would not be switched from it.

I went into the randomizer config dialog and switched it to LUA and it's working now.

EDIT TO ADD: Strange that switching to LUA and unchecking USB2SNES afterwards would make the tracker not actually switch to LUA but keep trying to connect via USB2SNES.

Attaching that log: smz3-cas-20240516.log

doomcup avatar May 16 '24 23:05 doomcup

It looks like part of what may have happened is when you were troubleshooting the script initially, you may have switched the tracker window over to USB2SNES, and that sort of stuck. You then got the latest scripts, but it was still set to USB2SNES.

However, you should have been able to switch on the tracker window. Not sure why that wasn't working, and I'm unable to replicate. I'll do some more testing. Glad you got it working, and I'll make an update in the release notes telling people they may need to change the option in the dropdown. Sorry you had problems from this.

MattEqualsCoder avatar May 17 '24 03:05 MattEqualsCoder

I did document this in the release, and I haven't heard of any other issues. Closing this unless we hear about anything new.

MattEqualsCoder avatar Jul 24 '24 02:07 MattEqualsCoder