Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: lomoverde on May 11, 2021, 02:02:30 PM

Title: ultrastik360 plugin
Post by: lomoverde on May 11, 2021, 02:02:30 PM
Im sorry if Its here and i cant see it for looking ,but is there a guide for getting the U360 working with the ultrastik360 plugin?
Title: Re: ultrastik360 plugin
Post by: lomoverde on May 14, 2021, 12:15:40 PM
Sorry,does anyone have this plugin working with a u360?
 I have the paths for the .exe and the maps folder set correctly and still i get errors.Anyone who could give me some intructions wouldbe great.
Title: Re: ultrastik360 plugin
Post by: hermine.potter on May 14, 2021, 01:04:11 PM
I'm not using this plugin.
I think your filename seems strange?!
joystick (8-way),joystick (8-way).um

maybe this is useful:
here (http://forum.attractmode.org/index.php?PHPSESSID=6d2e8f41c7e0dd7a61a3d527d6ab0f1f&topic=1317.msg10446#msg10446)
here (http://forum.attractmode.org/index.php?topic=416.0)
here (https://github.com/mickelson/attract/blob/master/config/plugins/UltraStik360.nut)
Title: Re: ultrastik360 plugin
Post by: lomoverde on May 17, 2021, 07:52:58 AM
I'm not using this plugin.
I think your filename seems strange?!
joystick (8-way),joystick (8-way).um


Thanks for replying,you were correct the filenames were wrong.With the help of Andy from Ultimarc i solved the issues i was having with the UltraMap software.
 So Ive altered my paths in the U360 Plugin.And now when i select a game there is no error,but AM freezes.
 If i check the U360 stick,it has changed to the correct map.But AM has to be force closed.
 Anymore ideas i can try? I know LEDBlinky could solve it,but I feel Im close using the U360 Plugin now.
Title: Re: ultrastik360 plugin
Post by: artyfarty on November 28, 2021, 03:33:26 AM
I'm experiencing the same issue of AM freezing when I have the UltraStik360 plugin enabled.

It was working well on AM 1.6.0, but I have just upgraded to AM 2.6.1 and cannot get it working. Running on Windows 10 21H2. I'd go back to 1.6.0, but I upgraded so I could get the borderless window mode for AM.

I'm sure the config is right, and that the UltraMap executable is getting called - but it appears AM is still waiting for the UltraMap command to finish.

Any suggestions appreciated.
Title: Re: ultrastik360 plugin
Post by: lomoverde on November 28, 2021, 09:38:54 AM
Sorry I cant be of any help,but I ended up using LEDBlinky and It works perfectly.

Title: Re: ultrastik360 plugin
Post by: artyfarty on November 29, 2021, 06:14:19 AM
I have found a workaround for now, by replacing fe.plugin_command with fe.plugin_command_bg in UltraStik360.nut

It's not ideal, as when you return to AM the UltraStik is still being reprogrammed in the background, which seems to cause a couple of phantom joystick movements.

Meaning that you don't end up with the same list entry being selected within AM.


   switch ( ttype )
   {
   case Transition.ToGame:
      fe.plugin_command_bg( config["command"],
         "\"" + maps_dir
         + fe.game_info( maps_info )
         + config["maps_ext"] + "\"" );
      break;

   case Transition.FromGame:
      fe.plugin_command_bg( config["command"],
         "\"" + maps_dir
         + config["default_map"]
         + config["maps_ext"] + "\"" );
      break;
   }
Title: Re: ultrastik360 plugin
Post by: bjhille on February 09, 2022, 01:14:54 PM
OMG, thank you!!!  I have been pulling my hair out with why this plugin wouldn't work.  I could program the sticks fine from a command prompt, but not Attract Mode.

I updated the .nut per the "_bg" suggestion below and it works!  The phantom joystick movement is annoying, but at least this works now.

Thank you!!