I have an idea of an experiment to collect data about the game cube game melee. I want to place the computers against each other and graph the results of who wins the most. I'm thinking to get the data it would probably be easiest to program the inputs to start a match into dolphin. I would put that on a timer to run 30 or so matches as then record who won the most. With this I'd be able to rank the characters (or at least the ai for them). I was wondering if Dolphin has a way to program inputs (for example I would define the inputs to get to the character select, select the correct character, start the match, etc). Any ideas or help would be great!
Programming gc controller input
|
05-18-2016, 02:07 PM
Do you plan on running regular Melee AI's, or 20XX AI's? If the latter is the case, I can't wait to see the results!
![]()
Computer: Acer VN7-591G (It's a laptop)... i7-4710HQ, NVIDIA 860M (Maxwell), 16GB 1600MHz RAM, 256GB SSD / 1TB HDD, 15.6" 1080p display, Windows 10 Home, always using a <1month old build of Dolphin.
05-19-2016, 07:25 AM
(05-18-2016, 12:43 PM)ExtremeDude2 Wrote: https://www.youtube.com/watch?v=BhL84VvU_Jo It looks like this is just inputting gc controller inputs, is there a way I can program a set of inputs. I.E. press A, wait 2 seconds, move up 50 px, press A, press start, ect. 05-19-2016, 07:26 AM
(05-18-2016, 02:07 PM)OldWornSynchros Wrote: Do you plan on running regular Melee AI's, or 20XX AI's? If the latter is the case, I can't wait to see the results! I'll probably run both considering that once I have the script written that collects the data it should be as easy as setting the iso build. 05-19-2016, 07:49 AM
(05-19-2016, 07:25 AM)Tyler-Hilbert Wrote: It looks like this is just inputting gc controller inputs, is there a way I can program a set of inputs. I.E. press A, wait 2 seconds, move up 50 px, press A, press start, ect. If you make those inputs while using Dolphin's input recording function (in the Movie menu), you will be able to play back the inputs later by loading the input recording file. 05-19-2016, 02:02 PM
(05-19-2016, 07:49 AM)JosJuice Wrote: If you make those inputs while using Dolphin's input recording function (in the Movie menu), you will be able to play back the inputs later by loading the input recording file. Very nice!! I'm running into a problem though. Every time I run the movie I get the exact same results. What I mean by this is every time I run the program it does the EXACT same thing. Since I am trying to collect data I would prefer the controller inputs to be the same, but for the CPU's moves to be randomly generated each time. Does that make sense? I'm guessing that Dolphin saves whatever the seed is for random along with the movie. Is there a way I can have the random numbers re-seeded so I can get results after running multiple games? Thanks!! 05-19-2016, 05:08 PM
I'm going to assume your DTM starts from boot, not from a savestate. At 0x81 in the DTM, there are 8 bytes that are used to set the real-time clock when booting the game. Changing that might alter the RNG seed. If not, you'll probably have to use different inputs to get different results from the RNG.
06-09-2016, 10:28 AM
(05-19-2016, 05:08 PM)JosJuice Wrote: I'm going to assume your DTM starts from boot, not from a savestate. At 0x81 in the DTM, there are 8 bytes that are used to set the real-time clock when booting the game. Changing that might alter the RNG seed. If not, you'll probably have to use different inputs to get different results from the RNG. Alright this tool a little bit of work but after I learned you have to turn off ar and gekko codes I got it working. Is there a way I can dyynamically generate inputs to this file? Id also be interested in seeing the documentation for the dtm file if you know how to find that. Thanks! |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)