Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I needed a way to change different settings with emulators in order to get some games working. For example, Legacy of Goku would not work unless the save type was EEPROM. Another example is maybe a certain game will only run with a certain emulator.

I got around this by making batch files for every single game. I then changed the certain games' batch files that needed different settings to accommodate for that.

Here is the batch I used to create all the batch files for the games.


@echo off
FOR %%G in (*.zip) DO (echo yank vba\vba.ini "saveType=1" "saveType=0^13^10" >> %%G.bat)
FOR %%G in (*.zip) DO (echo vba\visualboyadvance "%%G" >> %%G.bat)

Yank.exe is a program from '96 I found that will search and replace a line in a text file.

Then, for Legacy of Goku, I modified

yank vba\vba.ini "saveType=1" "saveType=0^13^10"

to

yank vba\vba.ini "saveType=0" "saveType=1^13^10"

This works fine...but there's got to be an easier way.

Is there a way to do this inside GameEx?

Posted

There is most certainly an easier and cleaner way. :)

The question is what emulator and does it have any command line options that can be used to set these values upon runtime?

Next question is if I get you setup with a base workable setup...will you flush the rest out and share with the rest here?

Heh I'm tied up with things right now...so unless there is a cut and dry list of what needs to be done with what...you or some one else will likely have to pick up the slack.

Posted

The emulator is Visual Boy Advance.

Pretty sure that type of thing wouldn't be in the command line options. I have done a brief google and found nothing along the lines of saveType.

Next question is if I get you setup with a base workable setup...will you flush the rest out and share with the rest here?

Not quite sure what you mean by a base workable setup..

I have a somewhat small to medium-small experience with programming. (I was in a VB.NET class last semester in high school)

Posted
Per game settings

-----------------

Version 1.5 introduced the support for per game settings for GBA games. You

can defined the following settings on a per game basis by using an INI file

called vba-over.ini in the same directory as the emulator:

rtcEnabled=<0 for false, anything else for true>

flashSize=<65536 or 131072>

saveType=<0 for automatic, 1 for EEPROM, 2 for SRAM, 3 for Flash or 4 for

EEPROM+Sensor>

Use the 4 letter game code to separate settings for each game. Example:

[ABCD]rtcEnabled=0

flashSize=65536

saveType=0

[ABC2]

rtcEnabled=1

flashSize=131072

saveType=0

Seems there is a way as is...tho I'm unsure how you go about getting the game code....unless they are talking about release number...but I've seen different listings that don't match. :(

ahh hhaa Hehe found out loading the rom and going "File\Rom Information..." from the menu's

Posted

Found out what the game code is...

Open the rom in VBA and go to file>rom information. The game code is the 2nd one down.

DBZ Legacy of Goku's code happens to be ALGE

[ALGE]

saveType=1

This is my vba-over.ini placed in the emulator's folder.

I run it and it works!

Thanks for sparking my interest in this. Hope this helps other people.

PS you can also go here: http://releases.pocketheaven.com/?section=dupecheck_results and just search for the games name and it will show you the game code.

edit: you must've edited your post like 10 seconds before i did :P

Posted

Looking that over its mildly malformed.

http://ngemu.com/

January 2007

--------------------

(U) USA

--------------------

Boktai - The Sun Is in Your Hand (U)

[u3IE]rtcEnabled=1

Should look like so:

; http://ngemu.com/

; January 2007

; --------------------

; (U) USA

; --------------------

; Boktai - The Sun Is in Your Hand (U)

[u3IE]rtcEnabled=1

Actually I could alter one of my older scripts to dig up all the dirt on save types for each game thats currently released...not sure if there is an interest or not.

Guest
This topic is now closed to further replies.
×
×
  • Create New...