-
Posts
94 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Everything posted by Gwendalin
-
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.
-
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....
-
each entry shows correctly with the first messagebox. the second messagebox shows the brick wall 9 times.
-
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>
-
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; } }
-
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.
-
Thanks Panda, i realized that right after I posted my code.
-
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.
-
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.
-
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!
-
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!
-
I don't like Trump, but GOD im happy Hillary didn't win. I would have have been pissed to have such a historic moment of the first woman president to be a lying, corrupt, harpy of a woman! I felt bad for all of her supports standing there waiting for her and she didn't even have the decency to come out and talk to them. Her toady came out and said go home we'll talk to you tomorrow... "Hillary has always been there for you and thanks you for your support." Well where was she when her supporters were standing around waiting for her? I just wish there was a camera around to capture her face when she got that stupid smug smile smacked off her face!
-
how do you use the promo code?
-
Please listen to his story, and help Mike I still can't figure out how to remove this. https://www.youtube.com/watch?v=LoF_a0-7x
-
Not sure if anyone is interested, but I'm going to post anyways. I'm closer to finishing my arcade pedestal. I just need to paint it, and add wood to the holes in the angle part, and bolt it all together. I also have to officially wire it all up and clean up the inside part where the computer is located. I just got my new joysticks, and buttons today, so now i will have 4 player setup. I have to drill a hole for my trackball as well. Then all i need are some spinners, and the circuit boards to control the light up buttons. so here is the front with the computer inside. The big black thing on top is a sound bar that I am going to mount to the wall. My niece and nephew made me pac-man and ghosts out of bead things. Here is the TV I'm using for the monitor. It's a 42" tv. The wall mount spins so i can have it be vertical for shmups as well. You can see my lights i have strung along the ceiling as well. I'll post the completed setup soon.
-
Ok so here is a small update on my arcade restoration. Not the best pictures... i forgot to take them when i was done and I could get better pics when it was outside. Anyways.. here are some new pics... not sure why they are sideways. They are normal in my folder. I still have to get a new glass, and panel sticker, but the paint came out nice. No more graffiti in the wood. Ohh.. i just noticed I need to wipe off the dusty finger prints after we brought it in. There was a large crack in the front. I patched it up and painted it. You can still see it a little bit, but it is much better now. I'll try to get better pics later.
-
https://www.youtube.com/watch?v=jCLizTg9nWo https://www.youtube.com/watch?v=jCLizTg I dont know whats up with those other two video links... i cant get rid of them.
-
@PhenomenalDev That's what this is... It is a dedicated MAME cabinet. I would have made a full upright, but I already have a real Street Fighter II cabinet that takes up too much room, so I couldn't build another one. I am making this pedestal cabinet to save some room, and still have a functional TV. I can move this out of the room if I ever need to easier than a full cabinet. This was my prototype coffee table/arcade table running mame. This is my entire emulation collection. Really I have more than what this shows. It's just my naming is different than what this list looks for. I will never play 1/4 of these games, but emulation is like Pokemon for me. I have a completionist mentality. If I know its out there, i have to find it.
-
if anyone is interested here is a small update to my cabinet. i have the base finished. I just need to mount the innards. Next i'll be working on the actual control panel part itself. I installed inside walls, and a floor to make it look nicer. Also it worked out perfectly so i can install a slide rail to slide my computer in and out of the cabinet easily. Top down look from the front I filled in all the cracks made from my wobbly hand cutting with the jigsaw. I also filled in my screw holes so it looks flush. Side with foot attached Back Here is the base painted black. It is the same paint i used to paing my Street Fighter cabinet. I cut two holes out in the back to attach fans. I'll have intake at the bottom, and exhaust at the top. Here is the front. The slot at the top is for a usb hub so i can attach a keyboard and mouse if needed, and to attach light guns for shooting arcade games. Here is the side of the base. there is still some white showing in this pic, but I did get all of it painted. Now to build the control panel!!!!
-
Hehe Chief... I'm old skool! The one thing i like about using photobucket, is i can easily find pics if i want to use them again.
-
Nah, i'm not that fancy. I had an old Pentium i7 laying around so I'm using that. I need more hard drives well really larger hard drives... i'm out of space. This was from my old coffee table unit i built.
-
Ok so my arcade table that I posted earlier finally broke. I ended up taking too much support out of the table and since it was cheap Ikea furniture it collapsed on itself. So now I'm starting on a new project. I am building a pedestal arcade cabinet. Im going to have a tv mounted on my wall and you stand at the pedestal to play the games. It is not finished yet, but i'll get pics of it when I'm fully done. For now here is the build process. I cut all of the wood with a jig saw. I'm pretty impressed with how well it came out considering a jig saw is a squirrely saw. It will kind of look like a tank, and it's built like one too. Sorry for the large pics... i usually use spoilers, but i was too lazy this time. Here is the inside of one of the "tank" tread feet things. Here is the back (which i scrapped) and bottom of the center column.. plus more wood Here is the side panel of the center column Here is the side of the foot thing Attaching the foot to the center column Another view Here is the foot thing with it's top on. Inside of the foot thing Inside of the center console. This is where the computer equipment will reside. I did finally get the feet finished. I just need to put the back on the center part, and build the control panel part. When it is done it will look similar to this.
-
So here is a pond that I built. I've had the pond liner forever, but never really did anything nice with it. My pump is just a small fountain pump so it doesnt give a lot of pressure to make my waterfall that big, but it's still pretty nice. Not sure if this is at dusk, or the flash was really bright on the camera. Here it is in the day time. Here it is at night You can kind of see my koi Here is one of my turtles poking his head out from his brick cave. I got them in china town, when they were babies... they were like the size of a half dollar coin. Now they are about a foot long and half a foot wide. Unfortunately they hide all day, and I never get to see them.
-
Need Help [$$$] Dune Online - pixel/tile artist required
Gwendalin replied to Space Pirate Jesus's topic in Recruitment
In all seriousness, are you basing your game off of Dune story? It looks pretty cool, can't wait to see what comes of it. Dune was the best and granddaddy to the modern RTS. If you haven't seen it you should really check it out.
