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

ES game-start script question

2 posters

Go down

ES game-start script question Empty ES game-start script question

Post by flynt 27/08/20, 11:06 pm

Hi,

if i start a script at game-start, is it possible to read the rom-name or rom-filename into a var in my script?
Im looking for a possibility to use a second display as marquee on my arcade.
Otherwise a will have to add an additional command or script in every <command> tag in the es_systems.cfg to get the %rom% var.

regards.


Last edited by flynt on 29/08/20, 12:16 am; edited 2 times in total
flynt
flynt

Messages : 24
Date d'inscription : 2020-08-23

Back to top Go down

ES game-start script question Empty Re: ES game-start script question

Post by Kayl 28/08/20, 09:00 am

Hello

In your script :

%1 variable is to get the full path to the rom file

%2 variable is to get the name without extension of the rom


ES game-start script question Admin4
Kayl
Kayl
Admin

Messages : 301
Date d'inscription : 2019-06-03
Localisation : Galaxie de l'Ouest

https://www.retrobat.ovh

Back to top Go down

ES game-start script question Empty Re: ES game-start script question

Post by flynt 28/08/20, 09:28 pm

Sounds great.. thank you.
flynt
flynt

Messages : 24
Date d'inscription : 2020-08-23

Back to top Go down

ES game-start script question Empty Re: ES game-start script question

Post by flynt 29/08/20, 12:21 am

Maybe i found a small problem with the two variables. Roms with spaces in the filename are cutted at the first space.
flynt
flynt

Messages : 24
Date d'inscription : 2020-08-23

Back to top Go down

ES game-start script question Empty Re: ES game-start script question

Post by Kayl 04/09/20, 01:13 pm

It seems that you're right...

It's been a while I haven't tested scripts features in ES. I was sure that we could get full path with these variables, maybe in previous versions of ES but it's not the same branch than the current one. With %4 I get the fullname of the rom but without the extension.

This need further investigation...


ES game-start script question Admin4
Kayl
Kayl
Admin

Messages : 301
Date d'inscription : 2019-06-03
Localisation : Galaxie de l'Ouest

https://www.retrobat.ovh

Back to top Go down

ES game-start script question Empty Re: ES game-start script question

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