Jump to content

tonycrew

Platinum Member
  • Posts

    162
  • Joined

  • Last visited

Everything posted by tonycrew

  1. Check the first post again... it had the old info for some reason...
  2. No Worries.. please remeber i am still working on this.. so it's a work in progress and things may need to be altered in the code. As people use this program and sometimes get different results.... And i only been doin VB for a couple of weeks as before it was my son... so i am still learning myself. What i am doing at the moment is coding a formating part that makes sure everyting is correct as you load your XML cause some people mess theirs up abit.
  3. Ok updated 1st post with new download and new feature.... As requested by BadBoyBill..
  4. We know that but some people asked about an XML editor for this so i made one.
  5. Ok uploaded a new version to try to repair the & problem on file loading
  6. Thanks... i know my coding is a bit... caveman like (hehe) i do seem to do thing a bit longwinded sometimes.... But i always try to keep it a basic as possible. I know we used string arrays on the last one at certain points. I'm gonna put some new code in to try to get the & fixed before passing it to the dataset.
  7. Looking at my code... (i am new to this, as my son didn't do this one lol) but what i do is VERY VERY SIMPLE i create a dataset and read the XML to the dataset and also read all the xml to a textbox and pass the description to a listbox. I also reset the Dataset just before passing the XML to it, so that the dataset is totaly clean everytime. Dim ds1 As New DataSet ds1.reset() ds1.ReadXml(OpenFileDialog1.FileName) TextBox9.Text = My.Computer.FileSystem.ReadAllText(OpenFileDialog1.FileName) then pass it to a listbox [/code] With ListBox2 .DisplayMember = "description" .DataSource = ds1.Tables("game") End With[/code] then create the display members from the datasource Comboboxes are hidden. With ComboBox1 .DisplayMember = "name" .DataSource = ds1.Tables("game") End With With ComboBox2 .DisplayMember = "description" .DataSource = ds1.Tables("game") End With With ComboBox3 .DisplayMember = "manufacturer" .DataSource = ds1.Tables("game") End With With ComboBox4 .DisplayMember = "year" .DataSource = ds1.Tables("game") End With With ComboBox5 .DisplayMember = "type" .DataSource = ds1.Tables("game") End With TextBox2.Text = "Total Ammount of Games: " & ComboBox1.Items.Count.ToString TextBox12.Text = OpenFileDialog1.FileName Textbox 12 just holds the file path Textbox 9 holds the <menu> tabs for me. (i know you may look and wonder why some stuff is in there... it's because when doing the hyperspin editor there were alot of problems with peoples xml's not being the same, ie no tabs or proper layout.
  8. Do you get this error when trying load an XML if so I get this error because of the & <menu> <game name="Star_Wars_JP_1.1FS"> <description>Star & Wars (Data East 1992)</description> <manufacturer>Data East</manufacturer> <year>1992</year> <type>SS</type> </game> Try using the FIX option 1st if not load it into a text editor or my RAW editor and use Find And Replace. Find & Replae All & See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Xml.XmlException: An error occurred while parsing EntityName. Line 3, position 28. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(String res) at System.Xml.XmlTextReaderImpl.ParseEntityName() at System.Xml.XmlTextReaderImpl.ParseEntityReference() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.ReadCurrentNode(XmlDocument doc, XmlReader reader) at System.Xml.XmlDocument.ReadNode(XmlReader reader) at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) at System.Data.DataSet.ReadXml(String fileName) at Hyperpin_XML_Editor.Form1.OpenFileDialog1_FileOk(Object sender, CancelEventArgs e) in F:\Documents and Settings\tony crew\My Documents\Visual Studio 2008\Projects\Hyperpin Editor\Hyperpin Editor\Form1.vb:line 27 at System.Windows.Forms.FileDialog.OnFileOk(CancelEventArgs e) at System.Windows.Forms.FileDialog.DoFileOk(IntPtr lpOFN) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3082 (QFE.050727-3000) CodeBase: file:///f:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- Hyperpin Editor Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///F:/Documents%20and%20Settings/tony%20crew/My%20Documents/Visual%20Studio%202008/Projects/Hyperpin%20Editor/Hyperpin%20Editor/bin/Release/Hyperpin%20Editor.exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3082 (QFE.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///F:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. If not i will try something else.
  9. Cheers i will look into this.
  10. Oh yeh i noticed you do that in your posts... i will add this later.
  11. .Net 3.5.. I'm running on XP and net 3.5...
  12. Ok i re written the code for this that now uses Full XML Editing Capabilities. The code has been reduced for better compatability and uses only the bare minimum resources. UPDATE ART Ok this feature will now RENAME your ART FILES just type in the New Name and it will update your artwork and your XML to match. (I've tried to put Error Catching in but don't rely on it you all know what PC's are like) Features:- Ok i just added an Artwork Check it will check if there is a problem with the artwork.. i.e. Missing art or if it is named incorrectly it will say "No Image Available" . It now also checks for Instruction Cards and Flyers. Works on Both Visual Pinball and Future Pinball XML Files. Paste Code from these forums and it will insert and AUTO SORT into ALPHABETICAL ORDER. AUTO Sorts NEW XML Loaded. Formats XML Correctly. Add New Table, Update Existing Table. Fix XML option for XML that won't load. 2 Download options Any CPU should work on all Versions of Windows XP and Vista, But if you have a 64Bit OS and it won't work try the X64 Version. (Not tested as i don't have 64Bit OS) Please report any bugs you may find... Any CPU Version Download http://files.filefront.com/Hyperpin+Editor32BitCrar/;13897233;/fileinfo.html 64Bit CPU Only Download http://files.filefront.com/Hyperpin+Editor64BitCrar/;13897234;/fileinfo.html Also Available on the FTP for those who can access...
×
×
  • Create New...