-
Posts
5664 -
Joined
-
Last visited
-
Days Won
43
Content Type
Profiles
Forums
Articles
Downloads
Gallery
Blogs
Posts posted by JoeViking245
-
-
31 minutes ago, drewjbx said:
I missed this one... great little plugin. I tested with a couple of themes and it works, however the theme I use on my cabinet it isn't working - Hypermax Refried
Any pro tips on what I need to modify in this theme to get this to work?
Thanks! Glad it still working after 3.5 years.
As for any pro tips, here's what I got...
I'd start by looking in the themes folder for the folder \Hypermax Refried\Views\WheelBackup\
if 'WheelBackup' doesn't exist, the theme wasn't setup. If it does exist, check that it has 4 files in it.
Hopefully it does. If so...
Back in the Views folder, edit the 1st of the 4 files. In the declarations section add:
xmlns:LPlat="clr-namespace:LaunchPlatform;assembly=LaunchPlatform"At the bottom of the file, above </Canvas>, add:
<LPlat:LPControl />
It should look like this:
And this:
Save and close.
Now edit the 2nd of the 4 files the same way. Then the 3rd and 4th.
Start BigBox and try it again.
That's about all the Pro Tippin' I can give.
-
4 hours ago, drewjbx said:
Is there a way to launch an exe straight from a created platform entry?
This will do what you want.
-
1
-
-
12 hours ago, pafftis said:
How do I link pressing the left and right sticks to the esc button?
You'll need to press (and hold) the Left stick button 1st, then press the Right stick button. (Right then Left won't work)
1Joy10:: If GetKeyState("Joy9") { SendLevel, 1 Send, {Esc} } -
[What I see different between yours and mine is...] Your <system> needs to encapsulate <input>. You have it closed right away.
"<system name="default" />" Need to remove the / (slash) then close it down below (the [added] 2nd to last line).
<?xml version="1.0"?> <!-- This file is autogenerated; comments and unknown tags will be stripped --> <mameconfig version="10"> <system name="default" > <input> <mapdevice device="XInput Player 1" controller="JOYCODE_1" /> <mapdevice device="XInput Player 2" controller="JOYCODE_2" /> </input> </system> </mameconfig>
-
2 hours ago, lfan said:
"Doesn't work" means the button doesn't add credits.
After thought... May try ONLY having an Xinput controller connected before stating a MAME game. I don't have any Dinput controllers to test, so don't know for sure if that would 'confuse' MAME by having 2 different input types plugged in at the same time.
-
12 hours ago, lfan said:
xinput Microsoft Xbox 360 Wireless Controller (Back Button, 1Joy7)
xinput RetroFlag Controller (Back Button, 1Joy7)MAME (stand-alone): Doesn't Work*
* Even changing in MAME "Coin 1 - 5 or Joy 1 Back" to "Coin 1 - 5"."Doesn't work" means the button doesn't add credits.
Thanks for clarifying what doesn't work.
Tested with the Back button (7) and that worked as well for me. But if in MAME, Coin 1 is set to "5 or Joy 1 Back" the script won't work to limit it to 5 credits. Setting it without 'Joy 1 Back' did work to limit it.
-
If you used the keyboard to enter credits then start the game, will either Xinput controllers work to play the game (move, shoot, run, jump...)?
-
If not, make sure the controller is ON before starting MAME.
- Since you were able to set 'Joy 1 Back', I assume they do work in-game
- But even then, when you had it at "Coin 1 - 5 or Joy 1 Back", if it didn't accept a coin, then there's likely a controller [type] issue.
-
If not, make sure the controller is ON before starting MAME.
-
Did you add to the top of the script "SetKeyDelay, 125, 50 " (without quotes)?
-
Without this line at the top, the script won't work.
- But again, when you had it at "Coin 1 - 5 or Joy 1 Back", regardless of the script, it should still accept a coin using the Back button.
-
Without this line at the top, the script won't work.
Beyond that, I'm at a loss as to why it doesn't accept the Coin input for either of your Xinput controllers.
-
If you used the keyboard to enter credits then start the game, will either Xinput controllers work to play the game (move, shoot, run, jump...)?
-
1 minute ago, lfan said:
Could you test the script with Launchbox + MAME core (RetroArch)? Keyboard scripts work with MAME core.
Still curious... What exactly isn't working for you? Can you add ANY credits? Can you add 5? Does it add a 6th one if you attempt to do so?
Regardless, that might be your problem. It's highly recommended to use stand-alone MAME for... well, MAME. I've heard that controllers can have issues when using the RA core. I've never personally tested it because I don't (and more-than-likely won't) use RA and its MAME core.
Nothing personal, but no. Maybe someone else can chime in and test it via RA.
-
20 minutes ago, lfan said:
Unfortunately, it still doesn't work. Have you tested with any joystick?
Yes. Added the script to the Running Script section of my MAME emulator. Using a wireless Xbox 360 controller. Launched "1942". Once loaded, pressed "Start" on the controller (my 'button 8'). Pressed it 5 times with a slight pause between each press (for the Sleep, 750). Got to 5 credits. Pressed Start again... nothing. No more credits.
What exactly isn't working for you? Can you add ANY credits? Can you add 5? Does it add a 6th one if you attempt to do so?
-
27 minutes ago, lfan said:
For keybord it works perfectly. The mystery is with joystick.
I [actually just now] tested the script as you have it. It's pressing 5 twice. Then when coin1 = 5, is still presses five, but only once.
Instead of messing with the joy buttons, just have it do what it is we want it to do.
SetKeyDelay, 125, 50 1joy8:: { if (coin1 = 5) ; Max 5 coins Return coin1++ Send, 5 Sleep 750 } -
6 minutes ago, lfan said:
There is no error, but the script does not limit to 5 coins... 😩
Can you show your script as you have it.
-
34 minutes ago, lfan said:
Error at line 10.
Line Text: 1Joy8
Error: This line does not contain a recognized action.The program will exit.
Ah ya. You can't assign a joy output. You can only read its input.
In MAME, revert your Coin 1 to Kbd 5. Then this might work.
1Joy8:: { if (coin1 = 5) ; Max 5 coins Return coin1++ 1Joy8::5 Sleep 750 } -
9 minutes ago, lfan said:
Joy 1 SELECT on MAME screen. JOYCODE_1_SELECT in MAME file.
In the code, I tried to replace the number 5 to JOYCODE_1_SELECT but it didn't work. It seems that the code only accepts numbers.
On PC the joystick Select button is recognized as 8.
I thought you were just wanting to configure it MAME. JOYCODE_1_SELECT is MAME lingo.
Did it work to replace the number with 8? Though I doubt it's a literal "8". May try 1Joy8 Which is player-1 joystick, button 8.
1Joy8:: { if (coin1 = 5) ; Max 5 coins Return coin1++ 1Joy8::1Joy8 Sleep 750 } -
7 hours ago, lfan said:
JoeViking245, how configure the joystick's "select" button for coin?
When assigning the inputs in MAME, you should be able to just highlight Coin 1, press enter (it'll wait for your 'input') then press the button on the controller to select it.
-
20 minutes ago, Noobi-wan said:
Thank you! I had actually tried that before and it didn't seem like it worked but I gave it another try and it seems to be a workaround. I was initially testing the Pause screen and maybe didn't notice it actually paused. Turns out I needed to set that to force display for that to work too.
Strange it still thinks I'm entering Left Shift in Big Box for that key but unless you want some logs or something for analysis I don't think we need to spend more time on this
Appreciate the quick response and all the work you do for the community! Thanks again
Glad it worked!
As far as digging into the what's and why-for's, someone recently reminded me "If it ain't broke, don't fix it." I say we call it a win and get back to playing games.
-
1
-
-
20 minutes ago, Noobi-wan said:
However when I go to Big Box and try to set it as the Hold Key, it keeps entering it as 'LeftShift'.
Shooting from the hip here... What happens if when mapping the Hold key in BigBox, you press "v" on the keyboard (set it to 'v')? Then test it with the Red button (hold) + something-else-you-set. Since the Red button 'presses v'.
-
22 minutes ago, 5thWolf said:
When I go to exit the game, sometimes not through Launchbox, hitting Esc kills fullscreen, then you exit it remembers its last state as windowed. You have to go back into the game_pref file and tell it to be 1/fullscreen again.
It'd be easier just to press "f" next you start it.
Final, Final-Script - With failsafe
- Run the exe
- Wait 'til it's actually active
- Get the window 'Style' of the exe's window and save them to the variable 'style'
-
If within the 'style' contains "Title Bar" (when the game is not fullscreen, it has a Title Bar. aka "WS_CAPTION". aka "0xC00000")
- Press "f". And to be safe, make sure you send it to the exe's window.
- "hang out until it's no longer running."
#SingleInstance force SetWorkingDir %A_ScriptDir% Run, Z2TAOL_P03.exe WinWaitActive, ahk_exe Z2TAOL_P03.exe WinGet, style, Style, ahk_exe Z2TAOL_P03.exe if(style & 0xC00000) ControlSend,,f,ahk_exe Z2TAOL_P03.exe WinWaitClose, ahk_exe Z2TAOL_P03.exe ExitApp $Esc:: Send, !{F4}-
1
-
27 minutes ago, 5thWolf said:
Only thing that sucks is it remembering that last screen state when you leave the game
Wait. What?????????
Your original post:
QuoteSo I am trying to get a Windows game that starts out windowed to start in full screen.
I'm guessing maybe you're swapping windows while playing the game and may exit the game not fullscreen?
I suppose you could try making "_Game_Preferences01" ReadOnly.
-
1
-
-
42 minutes ago, Retro808 said:
I modified a bit and so far no issues. It launches numerous times flawlessly. What is odd is if I change the Send line to read Send, f it reverts back to what happens in the video. Even if I add the sleep timer in it. For some reason it does not like sending f.
Any ides why that would matter? Or is this just case of some stupid fluke with this particular game?
I was sure I tried it several times (launch, exit, launch, exit...). But it's quite possible I just launched the game, pretended to play, then exited. Never looking back.
Subsequent testing this morning on both my main PC and cab, I discovered the darndest thing... It remembers its last screen size. i.e. Exit fullscreen, it'll start fullscreeen. So what was happening, Send, f was toggling the fullscreen. (Homer's catch phrase is ringing loud in my head... "DOH!!")
Further investigation found this file: C:\Users\Joe\AppData\Local\Z2TAOL_P03\_Game_Preferences01 (no file extension) which looks like this (when formatted as json):
{ "_volume_sound": 5.0, "_Indicate_Spell_Active": 1.0, "_Background_Flashing": 1.0, "_Window_Scale": 3.0, "_Torch_Lighting": 1.0, "_Overworld_Mark_Acquired": 0.0, "_Overworld_Mark_Hidden_Exit": 0.0, "_Fullscreen": 1.0, "_Input_Preferences": "{ }", "_Music_Set": "_Default", "_Frenzy_Stab": 0.0, "_Screen_Shake": 1.0, "_Rando_Enemy": 1.0, "_Map_Show_Key": 0.0, "_Rando_Palette": 2.0, "_Cucco_Spell02_Preference": 1.0, "_HUD_Type": 2.0, "_volume_music": 5.0 }The key line being "_Fullscreen": 1.0, ("1.0" = true. "0.0" = false)
Now, you might be able to adjust some other goodies in here. But as I don't ever plan to play the game, didn't study it.
My final script:
#SingleInstance force SetWorkingDir %A_ScriptDir% RunWait, Z2TAOL_P03.exe ExitApp $Esc:: Send, !{F4}RunWait will launch the game and 'hang out' until it's no longer running.
- When you press Escape, it'll exit the game, making it no longer running.
- If you press Alt+F4, it'll exit the game, making it no longer running.
And when the game is no longer running, the script will exit (ExitApp).
-
2
-
1
-
5 minutes ago, artician said:
Hi. How does this manage seasons of shows, or multiple episodes?
Sorry. It doesn't. It's a scraper for scraping Movie metadata and media. Unless TMDB has tv show series data and information, it'd need to get information from a different API. If I added another API to also do tv series, I'd have to change to title too.
-
3 minutes ago, skizzosjt said:
It can still be left in, if it's desirable, but change the flow with a goto once the came closes by other means to make sure the ExitApp line executes.
Nice addition!! Thanks.
4 minutes ago, skizzosjt said:If they say the script still doesn't work I'm about ready to download this game myself and see what is going on.
JoeViking tested and JoeViking approved.
Actually, I tested it before, and it worked then too. But I only ever pressed Escape to exit the game. I think your addition now makes it complete. It'll also help it with the Shutdown theme showing properly.
-
3
-
-
14 hours ago, pafftis said:
I'm new. I want to make it possible to close the ps3. RPCS3 emulator from the joystick.
I made a script. I wrote it down: Manager -> platform -> Rpcs3(edit) -> Exit script.
In the joystick settings, I programmed the keyboard shortcut to exit the game. And so I'm going to exit this particular emulator with this script?Under Tools, Manage, Emulators, RPCS3, Edit, you want to put your script in the Running Script section.
(It can be a little confusing) The Exit Script section is ONLY for when you select Exit from within the Pause Menu.
-
11 hours ago, 5thWolf said:
I figured out the message. If I exit the game with any means other then Esc AHK stays running. Otherwise Esc shuts it down properly and no message.
Also tried 1 second intervals from 4000 to 12000 and can't get it to go fullscreen. Only worked the very first launch I tried at 5000, but didn't work putting it back to 5000 after moving the timer around.
Since you can exit the game by other means, take out the Escape sequence in the script.
Because the game takes so long to load, I added a literal reference in WinWaitActive. Also added a single instance force which would alleviate the message you were getting. Though with removing the escape sequence, it shouldn't be needed. But also doesn't hurt to be in there. This should also fix the issue with 'only worked the very first launch'.
#SingleInstance force SetWorkingDir %A_ScriptDir% Run, Z2TAOL_P03.exe WinWaitActive, ahk_exe Z2TAOL_P03.exe Sleep, 1000 Send, fUsing @superrob3000's suggestion (Borderless Gaming), you could eliminate the script (and the AHK 'emulator') altogether and just point the game directly to the exe. The only "issue" (that's not really much of an issue) is having another app constantly running in the background. And that could be taken care of by setting up Additional Apps to run before (start Borderless Gaming) and run after (close Borderless Gaming) the game. But if using it for other games as well, probably better to just leaving it running.
-
1
-
-
Check in Tools, Options, Media, 3D Box Priorities. See if you have something other than Box - 3D checked. Then make sure Box - 3D is at the top of the list.
If you have Image Group - 3D Boxes selected for the View, (with this [ugly] example), if a game has a Box-Back image, it will show that. If no box-back (in the folder Back) exists for that game, it will show the Box-3D image. Assuming the game has an image in the Box-3D folder. So make sure to move Box-3D to the top. But should be there by default.
Then when that's all good and done, click Menu, View, Media, Refresh All Images.
-
1 hour ago, 5thWolf said:
Ok, I added AHK as an emulator and told it to be used for the game. Created the ahk file with the copy pasted script and made the game exe be the scripted ahk file.. The game launches but doesn't go fullscreen. 😣
Any ideas?Glad to hear it [almost] works. No need to frown.
Set the Sleep timer to longer than 1 second (1000). Try changing it to 2000 (2 seconds) or 3000 (3 seconds). Or longer?
-
1
-
Creating a platform to directly launch an executable
in Troubleshooting
Posted
Did you add the line at the bottom also? (have to ask)
Also, just curious, did the Setup add those 2 lines for you (and create the backup files 1st)? I didn't study the Theme's xml file. Hopefully it isn't trying to use the backuped files.
I doubt the Theme author would be able to help (because of my plugin changes). But would be cool if they had the answer.
Are you using a view that uses the [new] PlatformWheelxxx? Maybe try a different View (for process of elimination).