Arcade Mode

Arcade Mode

Postby dulsi » 05 Mar 2019, 02:50

My son's cub scout den recently put together an arcade machine. I only put two games on it for now, Ostrich Riders and Super Tux Kart. I was specifically looking for 2 player simultaneous games. For Ostrich Riders, I added an "arcade mode". In that mode, I remove most of the options for example configuring the controls for the player. I added support for keys '1' and '2' as 1 player and 2 player buttons.

I would be great if Super Tux Kart could have an arcade mode. Make it so you can't enter story mode. Have 1 player and 2 player buttons correspond to single player/multi player modes. Remove the ability to configure the controls. (The way I handle configuring for Ostrich Riders is to configure it outside of arcade mode and then setup EmulationStation to call it with arcade mode argument.) I would still want the quit option so that you could get back to game selection.
dulsi
 
Posts: 236
Joined: 18 Feb 2016, 15:24

Re: Arcade Mode

Postby tempAnon093 » 05 Mar 2019, 10:41

I am not a dev, but I would guess they have enough work to do already and not much spare time so they may not have time for this request.

However, this game is open source and well-designed enough that you can clone the source code and remove the menu items which you do not want, then compile that game yourself! This will give you full control over what options appear and which are removed. Since all you want is to remove features instead of adding new ones, I would assume this is quite simple (these look like the files you may wish to modify in your copy: https://github.com/supertuxkart/stk-cod ... ui/screens )
tempAnon093
 
Posts: 71
Joined: 02 Feb 2019, 12:09

Re: Arcade Mode

Postby dulsi » 06 Mar 2019, 13:46

Thanks for the pointer. It's not quite as simple as it seems. If you remove the online button, supertuxkart crashes. However I'm more interested to know if the devs would accept an arcade mode as a permanent option. I was originally thinking it would be a separate stkgui file but the main_menu.stkgui already has some debug entries that are removed when not configured. In arcade mode it could simply remove more entries.
dulsi
 
Posts: 236
Joined: 18 Feb 2016, 15:24

Re: Arcade Mode

Postby Alayan » 06 Mar 2019, 20:15

It would be extremely niche, so adding this to the core code as something we'd have to maintain isn't a great idea.

For the crash, I guess it's because you edited the .stkgui file without editing the corresponding .cpp/hpp screen files which expect various widgets to be present in the .stkgui file. Edit both appropriately and it should work.
Alayan
STK Moderator
 
Posts: 198
Joined: 25 Mar 2012, 22:11

Re: Arcade Mode

Postby dulsi » 07 Mar 2019, 15:00

It is rather niche but an arcade machine can be a great introduction. I plan to bring it to a local STEM event and a town celebration.

If I submitted a patch that prevented crashing when menu items were removed would that be accepted. I might be willing to modify the stkgui file on the machine but maintaining a source tree to remove menu items is not practical.
dulsi
 
Posts: 236
Joined: 18 Feb 2016, 15:24

Re: Arcade Mode

Postby acme_pjz » 08 Mar 2019, 04:19

dulsi {l Wrote}:If you remove the online button, supertuxkart crashes.

Is it possible to simply make them invisible? E.g. resize them with size 0*0 or move them to (-10000,-10000).
Some of my open source games on GitHub
User avatar
acme_pjz
 
Posts: 618
Joined: 10 Dec 2009, 15:32
Location: PeeKing, China

Re: Arcade Mode

Postby QwertyChouskie » 08 Mar 2019, 04:25

setVisible(false); // make not visible
setActive(false); // make not selectable
Not an official dev, but a huge fan of STK!
User avatar
QwertyChouskie
 
Posts: 345
Joined: 29 Jun 2016, 14:57

Re: Arcade Mode

Postby dulsi » 08 Mar 2019, 14:41

acme_pjz {l Wrote}:Is it possible to simply make them invisible? E.g. resize them with size 0*0 or move them to (-10000,-10000).

Hadn't thought of that. However QwertyChouskie's response points out they would still be selectable.

QwertyChouskie {l Wrote}:setVisible(false); // make not visible
setActive(false); // make not selectable

But this requires code changes again. Unless there is some way to do it in the xml.
dulsi
 
Posts: 236
Joined: 18 Feb 2016, 15:24

Re: Arcade Mode

Postby QwertyChouskie » 08 Mar 2019, 18:57

Honestly such a tiny change shouldn't cause an issue, git pull should leave your changes intact when updating to the latest commit.
Not an official dev, but a huge fan of STK!
User avatar
QwertyChouskie
 
Posts: 345
Joined: 29 Jun 2016, 14:57

Re: Arcade Mode

Postby Alayan » 09 Mar 2019, 19:55

dulsi {l Wrote}:
QwertyChouskie {l Wrote}:setVisible(false); // make not visible
setActive(false); // make not selectable

But this requires code changes again. Unless there is some way to do it in the xml.


Code changes are required to do what you want to do. They are rather simple, but there is no way around them. They are also simpler than changing the code to be able to support both normal mode (which would be used by almost all players) and an arcade mode used very rarely.
Alayan
STK Moderator
 
Posts: 198
Joined: 25 Mar 2012, 22:11

Re: Arcade Mode

Postby samuncle » 11 Mar 2019, 23:02

Hey, speaking of arcade machine, to help promote SuperTuxKart, with the help of some friends I built a real life arcade machine based on the game.

Image
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Re: Arcade Mode

Postby dulsi » 12 Mar 2019, 13:29

I'm not planning on maintaining my own code changes. I don't want to have to grab latest and rebuild every once in a while. I'd rather just get updates from the distribution. I would be willing to fix the code to handle the online button being removed if devs are willing to accept it. Otherwise I may just remove the configuration button so people can't mess with the controls.

EDIT: Great arcade. The cub scout one is a little more plain. I'll post a pic when I can.
dulsi
 
Posts: 236
Joined: 18 Feb 2016, 15:24

Who is online

Users browsing this forum: Bing [Bot] and 1 guest