windfisch / mariokartbot Goto Github PK
View Code? Open in Web Editor NEWAn automated MarioKart64 driver bot
License: GNU General Public License v3.0
An automated MarioKart64 driver bot
License: GNU General Public License v3.0
This bot shall be able to play Mario Kart using the Mupen64Plus emulator. It works both on Linux and on FreeBSD, but there are some differences: - under Linux, we can uinput to emulate a joystick. This works with an existing mupen64plus installation, you just need to create a suitable button mapping. currently, you can only create it by uncommenting the code block with "press enter to steer left" in mariokart.cpp. - under FreeBSD, you have to (and under Linux, you probably can) use a patched version of the Mupen64Plus-SDL-Input-plugin. Under FreeBSD, build mupen64plus from ports as usual, but then: - cd into /usr/ports/emulators/mupen64plus-input-sdl/ - run 'make patch' - cd work, and apply mupen64plus-input-sdl.patch from this repo - cd .. and make install as usual The input plugin will now create a FIFO/named pipe at /var/tmp/mupen64plus_ctl, which the bot writes to. This does not affect normal gaming experience, the "external control" only kicks in once the FIFO is written. Then, you cannot use your "actual" controls any more. The program currently expects ~/MarioKart64.rom to be a valid Mario Kart 64 ROM file which is playable by Mupen64Plus. (Please note that it might be illegal to download the file from the internet, and it definitely is illegal if you don't own the game AND a N64. Don't do that.) When you start ./mariokart, a Mupen64Plus instance is launched. You have to navigate to a Time Trial with a suitable course (only tested with Flower Cup -> Mario Raceway so far), start the game, and wait for the small ghost to disappear. (You probably want to save the state using F5 now; in future, you can get here quickly with F7). Then press "ENTER" in the mariokart bot command window and enjoy :) ------====== How to use ======------ edit os.h and set your OS if you don't use the uinput method (hint: you don't), you must apply mupen64plus-input-sdl.patch to the emulator. in gentoo, it is sufficient to copy the patch to /etc/portage/patches/games-emulation/mupen64plus-input-sdl/ edit mariokart.cpp and fix the startup of mupen, in mariokart.cpp, fix the window title the XorgGrabber uses if you use bsdmake, run ./convert_to_bsd_makefile.sh first. * * Copyright 2012 Florian Jung <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 3 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. *
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.