Software Support > controls.dat
controls.xml outdated
SirPoonga:
--- Quote from: headkaze on September 07, 2008, 11:26:32 pm ---I hope my work over the weekend hasn't been in vein :o
--- End quote ---
No, it won't. There still needs to be a way on the website to add and update entries. Like I said, once I get a website going we'll see what happens from there. I will look into being able to upload output from your program to add unverified entries to the website.
Once I get the website up and going again I plan on adding verified and the two numbers thing. I also plan on indicating if the listxml input section changed for a rom. Those game should get high priority for updating then since they were already added but mame changed.
Your program is not a replacement for the website. It's an add-on. There's a bunch of stuff your program doesn't do. When I update the website to a new version of mame I use the output from mamediff, catver, and listxml to do a bunch of things like handling deleted games and renamed games.
headkaze:
Thanks good to know SirPoonga :) Keep in contact and we'll get it done! I'm also interested in learning SilverLight so if you need any help with the server side code let me know.
SirPoonga:
This post is just me thinking out loud.
When I get the controls.dat website back up and going I am going to make some changes. I will add a verified field. Only approved people will be a able to verify the data.
I will also add a "ButtonsUsed" attribute which indicates how many buttons are actually used. I may have to add an attribute to the button to indicate it is used. If we find a rom where it says it has 3 buttons but only buttons 1 and 3 are used we will need that. Bu i will only add that if we ever come across that situation.
I am going to add the ability to upload a ControlsDAT program output. I might limit this ability to approved people. If i allow the public to do this I need to do a couple of things. First, I can only allow one change of a rom at a time. This mean if two or more people updated asteroid to 5 buttons on their local copy and upload the change I don't want to have to go through multiple entries for the same rom. First come first serve for something like that.
When data from the progam is uploaded it will either add new entries as unverified or it will create an update submission if the rom already exists and is different. Headkaze, it would help it your program could output only entries that differ from the official controls.dat file. This includes additions and updates.
Colors can be added to controls.dat. I am not going to modify the website forms to handle colors for now. For now only headkaze's program can be used to update that information through uploads once I get that working.
This is going to take some time to complete. Luckily summer is ending and I won't be as busy.
I am thinking of adding headkaze and urebel as admins to the controls.dat site. This will give you the power to verify entries.
If I redo the site in Silverlight it will be MUCH easier to use. I used the site to learn php. I know .NET programming better than php. I am currently learning WPF at work so this would help me at work also.
SirPoonga:
If I add colors to controls.dat here's what I need to know
1) what colors need to be added?
2) what are the rgb values. These value should be in whatever form the popular led boards use. This won't be in controls.dat, it will be a look up table that FE devs can use if they plan on controlling a led board.
headkaze:
--- Quote from: SirPoonga on September 08, 2008, 12:19:38 am ---When data from the progam is uploaded it will either add new entries as unverified or it will create an update submission if the rom already exists and is different. Headkaze, it would help it your program could output only entries that differ from the official controls.dat file. This includes additions and updates.
--- End quote ---
When you create a new entry in my app it is defaulted to "UnVerified" status, so if people don't verify the games they add then it should be fine. Once they have added a bunch of entries they can just use Export->Xml (UnVerified) and upload that file and we know these are new games added.
--- Quote from: SirPoonga on September 08, 2008, 12:19:38 am ---I am thinking of adding headkaze and urebel as admins to the controls.dat site. This will give you the power to verify entries.
--- End quote ---
I'm happy to help out, but I don't know jack about Mame controls. All I have is a basic two player, 7 button layout on my cab so I really am not qualified to verify entries, but I'm happy to help out "behind the scenes" with any code or whatever that's needed
--- Quote from: SirPoonga on September 08, 2008, 12:24:03 am ---If I add colors to controls.dat here's what I need to know
1) what colors need to be added?
2) what are the rgb values. These value should be in whatever form the popular led boards use. This won't be in controls.dat, it will be a look up table that FE devs can use if they plan on controlling a led board.
--- End quote ---
I can easily give you the rgb values but I just use standard .NET colors and here is the list:
--- Code: ---public Color[] SwatchArray = new Color[]
{
Color.Black,
Color.White,
Color.Red,
Color.Yellow,
Color.Orange,
Color.Lime,
Color.Green,
Color.Cyan,
Color.Blue,
Color.Purple,
Color.Violet,
Color.Magenta,
Color.Brown
};
--- End code ---
Hardware like the LEDWiz (which is the only hardware that can do colors at the moment) uses 49 levels of color for each red, green and blue value. So that is why I just have the colors stored in ControlsDat as color names as they will differ depending on the device.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version