• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 18 19 20 21 22 ... 114 Next »

Programmatically Setting State
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Programmatically Setting State
11-15-2017, 07:12 AM
#1
volkchan
Unregistered
 
My goal: I want to be able to set a game (melee) state to whatever I want. I'm willing and able to modify actual memory addresses to do what I want.

For example, I'd like to be able to generate a save state/AR code that sets the game state such that player 1 is Fox and player 2 is Falco, with their x/y coordinates specified by me, plus their states specified by me.

What I don't know is a mechanism to do this. It seems the two ways Dolphin could support this are save states or AR codes?

For AR codes, if I know the values+memory addresses I want set, it looks like I should be able to generate an AR code that accomplishes that? I see stuff on the github wiki describing how to use AR. Maybe I'm misunderstanding how AR codes work though and they aren't workable for my use-case.

For save states, it looks like the format is undocumented & changes between versions frequently? So maybe it's a bit more brittle, but aside from that, programmatically generating a Dolphin save state doesn't seem too unreasonable?

In either case, it looks like I have to go through the UI manually. My goal is to get the feedback loop as tight as possible. Ideally, I'd like to ask my program for a melee state and then have it boot up dolphin w/melee in that state from scratch.
Reply
11-15-2017, 07:17 AM
#2
Antyhero
Unregistered
 
i Want made a test with tesselation in Ishiruka and i need extract all textures to test how will look, anyone can help to extract all textures, my Twilight Princess Hd is .rpx format, anyone can help me ?
Reply
11-15-2017, 07:37 AM
#3
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,630
Threads: 7
Joined: Oct 2014
An AR code or Gecko code would probably be the best way to do this. Like you say, the savestate format changes pretty often, so I would suggest not relying on that.

If you want to skip going through the GUI, it's possible to edit the user's game INI for SSBM so that your code automatically gets added and enabled.
Find
Reply
11-15-2017, 07:40 AM
#4
volkchan
Unregistered
 
(11-15-2017, 07:37 AM)JosJuice Wrote: An AR code or Gecko code would probably be the best way to do this. Like you say, the savestate format changes pretty often, so I would suggest not relying on that.

If you want to skip going through the GUI, it's possible to edit the user's game INI for SSBM so that your code automatically gets added and enabled.

Thanks for the guidance! I'll try AR/Gecko. Are there any meaningful differences between the two that I should know about? If not, I was thinking of just using AR since it seems to have decent documentation.

Good idea w/the INI. I think that's enough to get the automation I wanted.

Thank you!  Big Grin 
Reply
11-15-2017, 09:24 AM
#5
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,475
Threads: 54
Joined: Dec 2011
(11-15-2017, 07:17 AM)Antyhero Wrote: i Want made a test with tesselation in Ishiruka and i need extract all textures to test how will look, anyone can help to extract all textures, my Twilight Princess Hd is .rpx format, anyone can help me ?

Don't hijack other people's threads. This isn't the place to be asking about that. This thread is about volkchan's questions and related issues or subjects. Anything else is off-topic talk and will result in warning points being handed out.
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode