Gwen

Members
  • Content count

    48
  • Donations

    0.00 USD 
  • Joined

  • Last visited

  • Days Won

    1

Gwen last won the day on April 12

Gwen had the most liked content!

2 Followers

About Gwen

Profile Information

  • Gender
    Female
  • Location
    In the back of your mind whispering dirty things

Recent Profile Visitors

459 profile views
  1. Introduce Yourself Thread!

    Welcome Yanz. I miss my Acolyte and Priestess I ran a Ragnarok server for quite a while, and programed some casino scripts for it.
  2. Other XML question

    not working... i get this error "Additional information: Object reference not set to an instance of an object." It displays the correct information for the first entry in the xml file, and then breaks. in this section. The dEntries.add(data); is highlighted. if (data != null) { MessageBox.Show("Switch Name: " + data.Name + " Crc: " + data.CRC); dEntries.Add(data); } if i comment that out it will display all the entries in the xml correctly, but it then breaks in the second if (data != null) part when adding the data.
  3. Other XML question

    Thanks Panda, I'll give this a try! I appreciate your help!!!
  4. Other XML question

    Can you give me an example... Im not following. This always happens... i start off good, then try to add or change something to try to make it easier, then get stuck on something that should be pretty simple and get discouraged.
  5. Other XML question

    I thought that since I store the values into the list before changing the value a second time, it would just add a new entry with the new value. Since im overwriting the data, shouldint i only have one entry in my list. Why does it create the correct amount of entries, but overwrites the value in the list, when i'm not accessing the list data? i want it to read through the xml file, and grab the <game Name> attribute, and the <crc> attribute. I need to store that data as a pair in an array or list that i can iterate through later and put into my grid, that i have in my previous post. I want to store that data that is shown in the two messagebox images above into a list. read xml.. create object with .name, and .crc property store object in a list object 1 = obj1.name = "game1" | obj1.crc = "crc value" object 2 = obj2.name = "game2" | obj2.crc = "crc value" etc....
  6. Other XML question

    each entry shows correctly with the first messagebox. the second messagebox shows the brick wall 9 times.
  7. Other XML question

    here is what the xml doc looks like. <?xml version="1.0"?> <menu> <header> <listname>Creatronic Mega Duck</listname> <lastlistupdate>03/06/2016</lastlistupdate> <listversion>1.0</listversion> <exporterversion>HyperList XML Exporter Version 1.3 Copywrite (c) 2009-2011 William Strong</exporterversion> </header> <game name="Arctic Zone (Europe)" index="true" image="a"> <description>Arctic Zone (Europe)</description> <cloneof></cloneof> <crc>f88f2d25</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Commin 5 in 1 (Europe)" index="true" image="c"> <description>Commin 5 in 1 (Europe)</description> <cloneof></cloneof> <crc>ff0da355</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Miscellaneous</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Magical Tower (Europe)" index="true" image="m"> <description>Magical Tower (Europe)</description> <cloneof></cloneof> <crc>98694021</crc> <manufacturer>Sachen</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Mega Duck 4 in 1 Game (Europe)" index="" image=""> <description>Mega Duck 4 in 1 Game (Europe)</description> <cloneof></cloneof> <crc>8046ea70</crc> <manufacturer>Sachen</manufacturer> <year>1993</year> <genre>Miscellaneous</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Pile Wonder (Europe)" index="true" image="p"> <description>Pile Wonder (Europe)</description> <cloneof></cloneof> <crc>61c81e06</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Railway (Europe)" index="true" image="r"> <description>Railway (Europe)</description> <cloneof></cloneof> <crc>2bb6aeb9</crc> <manufacturer>Sachen</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Street Rider (Europe)" index="true" image="s"> <description>Street Rider (Europe)</description> <cloneof></cloneof> <crc>74c3377f</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Driving</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="Suleimans Treasure (Europe)" index="" image=""> <description>Suleimans Treasure (Europe)</description> <cloneof></cloneof> <crc>cd2730ac</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> <game name="The Brick Wall (Europe)" index="true" image="t"> <description>The Brick Wall (Europe)</description> <cloneof></cloneof> <crc>58efe338</crc> <manufacturer>Timlex International</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> </menu>
  8. Other XML question

    Can someone help me with this. I'm trying to create a list of data that contains a name+crc entry each time it comes up in the xml. I've been having trouble getting the name and crc to match up as the xml is being read, but i finally have them matching. The messagebox before i add the object to the list displays the correct data. So I would assume that the object i'm adding to the list is correct. Before i return the list i am checking my list and stepping through each entry. The problem is it seems like only the last entry in my xml is in my list. I have 9 xml entries, and the foreach shows the last xml entry 9 times. So the xml is reading correctly. I am able to display each name+crc property correctly in the first messagebox... it displays 9 different entries. When i add it to the list, it does add 9 items, but when i display them, they are all the last name+crc entry recorded. here are two of 9 entries... the second messagbox in my code only shows the commin 5 in 1 entry 9 times. I hope i explained that ok. class XMLData { private string name; private string crc; private string database; private List<XMLData> dEntries; public string Name { get { return name; } } public string CRC { get { return crc; } } public XMLData(string directory) { database = directory; dEntries = new List<XMLData>(); ReadXML(); } private XMLData() { } private List<XMLData> ReadXML() { using (XmlReader reader = XmlReader.Create(database)) { while (reader.Read()) { if (reader.IsStartElement()) { switch (reader.Name.ToString()) { case "game": this.name = reader.GetAttribute("name"); break; case "crc": this.crc = reader.ReadString(); MessageBox.Show("Name: " + this.Name + " Crc: " + this.CRC); dEntries.Add(this); break; } } } } foreach (XMLData x in dEntries) { MessageBox.Show("for Name: " + x.Name + " Crc: " + x.CRC); } return dEntries; } }
  9. Other XML question

    Yay! This is the first thing I've programed in like 4 years. I did steal some code... all of the CRC code, but I'm excited with what I have done considering I haven't looked at code in forever. It is to help me organize my rom collection. Over the years i have downloaded multiple copies of different systems and I know that a lot of them are the same file just named differently. I was going through my directories manually to clean them out but some systems have thousands of games, and that would take me forever. I know there are utilities to clean a single folder, but i have not come across anything that will compare to directories together. This program will read two folders, and give me the crc of each file in the folder. It also reads the XML database of the frontend I'm using. This way i can see if i have duplicate files in the two drives, and see if my roms are named correctly with my frontend and have the same crc. Next i have to sort the table so the files will match up with the database name and crc, and have the files in the directories match up if they have the same crc so i can tell if i have a duplicate. After that I'm going to try to add in auto deleting of duplicates. Unfortunately it is an ugly program, and i dont have any error checking so it is easily breakable, but maybe i'll fix that later. i did break something recently when i was messing with adding the xml code, so my data is not correct in this screen shot, but it was working earlier.
  10. Other XML question

    Thanks Panda, i realized that right after I posted my code.
  11. Other XML question

    I thought edited my post to add my code, but it didnt save. This is the code I have. i have the reader.GetAttribute("Name") in the messagebox but it doesn't do anything; My messagebox for the CRC does work so i know it's reading the xml correctly. using (XmlReader reader = XmlReader.Create(database)) { while (reader.Read()) { if (reader.IsStartElement()) { switch (reader.Name.ToString()) { case "game": MessageBox.Show("name " + reader.GetAttribute("game name")); //MessageBox.Show("Game Name: " + reader.ReadString()); break; case "crc": //MessageBox.Show("CRC" + reader.ReadString()); break; } } } } EDIT: Ok i tried getting the attribute "index" and that works.... but i can't get the index "game name" EDIT 2: OK i'm ditzy... figured it out. I was thinking the index was "game name"... but the node is game.. the index is "name". I had it right the entire time... i was just dancing around the answer. Thanks everyone.
  12. Other XML question

    Does anyone know how to read an xml file in C#? Specifically a certain tag? I have an xml document that has the following information <game name="Arctic Zone (Europe)" index="true" image="a"> <description>Arctic Zone (Europe)</description> <cloneof></cloneof> <crc>f88f2d25</crc> <manufacturer>Commin</manufacturer> <year>1993</year> <genre>Action</genre> <rating>HSRS - GA (General Audience)</rating> <enabled>Yes</enabled> </game> I am able to read the inner nodes like the <crc> but I cant figure out how to get the information in the start element. I need to get the <game name="name"> part at the top.
  13. Adventures in emulation

    Thanks guys! It's a fun project...I don't think i'll ever actually "complete" it, but i do like collecting. Kibbelz yeah, I have all of the home consoles as well as arcade. I do have ps3 controllers hooked up so i can play consoles with a traditional controller. @Murdoc hehe hey love! the chairs are good ol' Ikea chairs!
  14. Adventures in emulation

    Ok, so I have my arcade cabinet almost done. I just need to put the door on the front panel, order my controller for the lights, do a little touch up painting, and get my light guns. I do want to put some artwork on it, but I'm not that artsy, so I'm not sure how i'll get that done. I'm also getting light guns. Here it is with the old Star Wars game running. . The screen can rotate, and the games are set to auto rotate between landscape and portrait. Here is Pac-Man in portrait mode. Kind of a dark pic, but you can see the layout of the buttons. All of the buttons light up except for the green and yellow ones. They will be changed later. I have 4 player capability. Here is the inside. I do have the motherboard, and hard drive cage on a sliding drawer that i can pull out for easy maintenance. closeup of Launchbox running. All my storage space. I do have a little bit of cleaning left to do. I have 5 drives in the cage, and 4 external drives. One day i'll have everything sorted and can then actually play games! As a bonus... my Street Fighter II cab, and cat! Here it is turned on. Ohh i have to get a pic of the wiring and inside of the top. I'll get that soon. Let me know what you guys think!
  15. Exactly.