can someone help my madness

Post Reply
DanteCruz
Posts: 2
Joined: Sun Nov 08, 2009 7:18 pm

can someone help my madness

Post by DanteCruz » Tue Dec 01, 2009 8:49 pm

i have made some changes to the soldier class were it is 90-99 for each skill and all when i think i have figured it all out i get this when i edit the inventory file and give my self 90-99 bullets per box it works fine but when i edit the food medicine fuel and electricity it gives me this im not sure how to show it all but i will try

Unhandled exception encountered:

----------------
Kerberos.NsCore.Engine.InvalidContentException: Failed to load Config\InventoryItemClassDB. ---> System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 83614.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at Kerberos.NsCore.Engine.Xml.XmlDocumentReader.Read(ContentReader input, XmlDocument existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Kerberos.NsCore.Engine.Content.NsContentManager.ReadAssetCore[T](String assetName)
at Kerberos.NsCore.Engine.Content.NsContentManager.Load[T](String assetName)
--- End of inner exception stack trace ---
at Kerberos.NsCore.Engine.Content.NsContentManager.Load[T](String assetName)
at Kerberos.FortZombie.EngineModule.LoadObjectDescriptorsKit(String assetPath)
at Kerberos.FortZombie.EngineModule.InitObjectDescriptorsKits()
at Kerberos.FortZombie.EngineModule.Startup()
at Kerberos.FortZombie.EngineModule.Update(GameTime gameTime)
at Kerberos.NsCore.Engine.EngineService.Update(GameTime gameTime)
at Kerberos.FortZombie.Client.Application.Update(UpdateState state)
at Xen.Application.Xen.IUpdate.Update(UpdateState state)
at Xen.Updater.UpdateEntries(UpdateState state, List`1[] moveList)
at Xen.Updater.Update(Int32 index, UpdateState state, List`1[] moveList)
at Xen.UpdateManager.Xen.IUpdate.Update(UpdateState state)
at Xen.XNALogic.Update(Int64 totalRealTicks, Int64 totalGameTicks)
at Xen.XNAGameAppWrapper.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.Run()
at Xen.XNAGameAppWrapper.Xen.IXNAAppWrapper.Run()
at Xen.Application.Run()
at Kerberos.FortZombie.Client.Program.Main(String[] args)----------------
Inner (1) System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 83614.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at Kerberos.NsCore.Engine.Xml.XmlDocumentReader.Read(ContentReader input, XmlDocument existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Kerberos.NsCore.Engine.Content.NsContentManager.ReadAssetCore[T](String assetName)
at Kerberos.NsCore.Engine.Content.NsContentManager.Load[T](String assetName)

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

and that is when i edit it one at a time if some one can give any help or tell me what i did wrong that would be helpful

User avatar
Aganazer
Posts: 38
Joined: Fri Nov 13, 2009 9:37 pm

Re: can someone help my madness

Post by Aganazer » Tue Dec 01, 2009 9:34 pm

You might want to try putting the values at a more reasonable 50 and see if it still throws an exception.

User avatar
Nspace
Kerbicron Cleric
Kerbicron Cleric
Posts: 4668
Joined: Thu Dec 29, 2005 7:26 pm

Re: can someone help my madness

Post by Nspace » Wed Dec 02, 2009 12:23 am

If setting the number to a lower value doesn't work, then you may have run into the following:

If you add characters to the file in one place you need to remove them from another. So if you go from one character for "0" food to two characters for "90" food, you will need to remove one character from somewhere else in the file. The usual trick is to remove it from the web site URL in the header information up at the top of the file.
"Quando omni flunkus, mortati" - "When all else fails, play dead"
SotS 1 wiki: http://wiki.swordofthestars.com/sots1/Main_Page
SotS 2 wiki: http://wiki.swordofthestars.com/sots2/SotS2_Codex

Post Reply

Return to “FZ Modding”

Who is online

Users browsing this forum: No registered users and 3 guests