RETROBAT Official Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

game-start scripts for one game only

2 posters

Go down

game-start scripts for one game only Empty game-start scripts for one game only

Post by zokisyxx 28/08/24, 05:00 pm

Hi,

I was looking through the forum and saw a couple of other threads similar to my question but couldn't find the answer I was looking for.

I have a .bat file in the game-start folder and it works as intended however I only need that script to load for game only in my windows section.

Is there a way of naming the .bat file so it only takes affect when said game is loaded.

Thanks.
zokisyxx
zokisyxx

Messages : 13
Date d'inscription : 2023-02-02

Back to top Go down

game-start scripts for one game only Empty Re: game-start scripts for one game only

Post by Aynshe 28/08/24, 05:28 pm

Why don't you just use the .bat in question to launch your script and then the game? All you need to do is add a command to the batch so that it waits for your game to close before closing itself and returning to retrobat.

Otherwise, the %* argument in game-start script is the basis for recording the name of a game that has been run. You need to retrieve the value of interest in its result to target your game and launch your code.

My script here does this to execute commands for demulshooter depending on the game and a few options. The source code is available from github. https://archive.org/download/retrobat-script-demulshooter-packes-custom-nixx.-7z
Aynshe
Aynshe

Messages : 432
Date d'inscription : 2022-03-18

Back to top Go down

game-start scripts for one game only Empty Re: game-start scripts for one game only

Post by zokisyxx 28/08/24, 05:47 pm

OK, I'll take a look and see if I can work it out. Thanks.
zokisyxx
zokisyxx

Messages : 13
Date d'inscription : 2023-02-02

Back to top Go down

game-start scripts for one game only Empty Re: game-start scripts for one game only

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum