I'm using a batch file right now for my full game that allows you to turn of the simul mode's AI for your partner, so that you can control all team members. I didn't write this code. It looks like this:@echo offstart /d . mugen.exe -r big -p3.ai 0exit /bLooking at the code, I'm curious to know if there's any way to use IF statements to turn on/off the AI depending on whether p1 or p2 is ai when mugen accesses a match vs at startup like the code above does? I assume something like the code below could work with the right trigger:IF "p1.ai 1" "p3.ai 1" IF "p1.ai 0" "p3.ai 0"I'm not really a dos guy. I may not have written that right at all, but I'm wonder if some dos folks who know a bit more about how this sort of thing could help?
No because you can't call values from mugen. The config file allows you to set up the AI ramp, but nothing to do with the starting levels that you set in options.So you cannot read those values into a variable to change things. The codes above are basically pushing you straight to mugen in simul mode. They're not pulling values from anywhere else particularly.You could use variables in there, but they would have to be pulled from another file/starting point. You can't get them out of mugen.
I see, so you'd either need to hack the exe or create some sort of assist tool to read the current output and issue a command. Both are beyond my ability. So I guess all I can do is hope Elecbyte comes back for another round of updates. Thanks Cyanide
Man, this kinda makes me want to open up cheat engine and get working.I've noticed that when I have 3 arcade sticks plugged in, Mugen actually posts for all 3. Controller 3 could be P1 and Controller 1 could be P2. I could set up the controller again and make Controller 2 be P2.Me and my friends have longed for that Street Fighter Alpha 2 on 1 in mugen. CPU AI is good with some characters but it's never the same.Now I have some questions! How hard would it be to include a new Main Menu option? I think I've seen it where you just spell it out, then put the launching code to the right. Or vise versa. Could you have 2 "2P Versus" modes? I think Cheat Engine would be able to watch you launch the 2nd spot of it, and launch you into the 4 controller mode. (or 3 controller mode. I've never tried 4) Getting this working would be the very start of the work. (or the absolute end)Next would come the 3 options in 2P versus to possibly include a 4th. You'd need Single, Switch out, 2 Simul, and 2 AI (which is the old 2 Simul). I've never seen this in any config file so Cheat Engine would probably have to control it. Personally, if a 4th option couldnt be posted, I'd drop the switch out mode.P1 could pick for P3 in the menu, P2 for P4. I've made button press controllers for MK4 on the N64 with the Game Shark, so I know Cheat Engine should be able to activate the non-ai P3/P4.I mean I'd have Shang Tsung do random Fatalities I programmed into it. This seems a lot simpler. It'd come down to if the Mugen.cfg could hold a [P3 Joystick]Jump = 53 .......Section. Which, by my testing just now, makes regular Mugen 1.0 crash. Does anyone know if cheat engine would be able to look at another cfg file? We may be able to piggy back off of Xpadder and the P1 Keyboard section.
There'd really be no need for another .cfg file since you could just put the necessary variables in an array/dictionary at the top of your .CT LUA script.But if you must, there is a FileStream class.