Error

Download tools like Sporemaster and get the latest patches.
Poster of the New User Apocalypse

Poster of the New User Apocalypse

LinkER324
Posts: 3
Joined: Sun Mar 05, 2017 1:01 pm
Gender: None specified
Status: Offline

Error

Unread post #1 by LinkER324 » Sun Mar 05, 2017 1:17 pm

Hey guys! Sorry if I post this in a wrong thread. I'm registered a few hours ago. And sorry if I'm too late to ask about Spore. I hope you have a nice day. But I have a horrible one. :x Here's why:
When I made my very first mod, and I wanted to pack it with SporeMaster, an error popped up:

System.Exception: Error packing file 'spacetools~\Colonyplus.prop.xml'.-->
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseSingle(String value, NumberStyles options,
NumberFormatInfo numfmt)
at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
at Gibbed.Spore.Properties.FloadProperty.ReadXML(XmlReader input)
at Gibbed.Spore.Properties.PropertyFile.ReadXML(XmlReader reader)
at SporeMaster.PackagePack..ctor(Stream output, String sourceFolder,
PleaseWait progress)
--- End of inner exception stack trace ---
at SporeMaster.PackagePack..ctor(Stream output, String souceFolder,
PleaseWait progress)
at
SporeMaster.MainWindow.<>c_DisplayClassa. <Pack_Mod_Click>b_9(PleaseWait progress)
at SporeMaster.PleaseWait.<>c_DisplayClass4. <.ctor>b_2()
:?: :?:

I don't have an image file. What can be the problem? I know, it says 'Input string was not in a correct format.' But I double checked everything, and everything was fine. Even if I modify an unmodified file (e.g. someone other's), this error pops up. But sometimes, if I modify another file (e.g. creatureabilities\superpower_carnivore.prop.xml), it works.



Tech Support

Tech Support

rob55rod
User avatar
Posts: 3196
Joined: Sat Jul 02, 2011 9:50 am
Location: Zelem's Nexus, rebuilding.
Gender: Male
Status: Offline

Re: Error

Unread post #2 by rob55rod » Mon Mar 06, 2017 2:10 am

Can you...post the contents of the affected file?

Poster of the New User Apocalypse

Poster of the New User Apocalypse

LinkER324
Posts: 3
Joined: Sun Mar 05, 2017 1:01 pm
Gender: None specified
Status: Offline

Re: Error

Unread post #3 by LinkER324 » Sun Oct 15, 2017 8:38 am

Spoiler: show
<?xml version="1.0" encoding="utf-8"?>
<properties>
<string16 name="description">Place Happiness Booster</string16>
<key name="parent" groupid="spacetools~" instanceid="tooltemplate" typeid="prop" />
<int32 name="spaceToolAmmoUsedPerShot">1</int32>
<int32 name="spaceToolBuyCost">1</int32>
<key name="spaceToolContext" instanceid="planet" />
<texts name="spaceToolDescription">
<text>Colonyplus</text>
<text tableid="spacegame_tools" instanceid="#56CD9990">Happiness Booster</text>
</texts>
<texts name="spaceToolDetailDescription">
<text>Colony placement all over</text>
<text tableid="spacegame_tools" instanceid="#69B97931">Place on a planet to keep the planet's inhabitants happy.</text>
</texts>
<bool name="spaceToolDisableOn201Ruins">false</bool>
<bool name="spaceToolDisableOnHomeworld">false</bool>
<bool name="spaceToolDisableOnSaveGames">false</bool>
<key name="spaceToolImageID" groupid="ufotools~" instanceid="plus" typeid="png" />
<int32 name="spaceToolInitialAmmoCount">5</int32>
<texts name="spaceToolLockedDescription">
<text tableid="spacegame_tools" instanceid="ufobadgereqteitemiclaim_dawn_duclealpharoll2">Requires ~commodity_requirements~</text>
</texts>
<int32 name="spaceToolMaxAmmoCount">150</int32>
<float name="spaceToolMaxRange">3000</float>
<key name="spaceToolPanelKey" instanceid="colonize_panel_bottom~" />
<float name="spaceToolRechargeRate">0.1</float>
<key name="spaceToolStrategy" instanceid="placecolony" />
<key name="spaceToolType" instanceid="special" />
<bool name="spaceToolUsesAmmo">true</bool>
<bool name="toolDeselectsAfterUse">false</bool>
<bool name="toolDoActionPostEffect">true</bool>
<key name="toolHitGroundEffectID" instanceid="#B1B27D9B" />
<bool name="toolHitOrientsToTerrain">true</bool>
<key name="toolHitWaterEffectID" instanceid="#B1B27D9B" />
<int32 name="toolMeaningOfLifeRewardCount">0</int32>
<key name="toolMuzzleEffectID" instanceid="#DD085901" />
<bool name="toolOnlyOnPlayerColonies">false</bool>
<key name="toolPlacedModelKey" instanceid="#100EA097" />
<bool name="toolPreventsPlanetExit">true</bool>
<key name="toolProjectileEffectID" instanceid="#23D7D504" />
<float name="toolProjectileExplosionExpansionRate">5000</float>
<bool name="toolProjectilePassThrough">true</bool>
<float name="toolProjectileSpeed">1</float>
<float name="toolProjectileTimeOut">5150</float>
<int32s name="toolTargetFlags">
<int32>-1685158353</int32>
</int32s>
<texts name="toolTargetFlagsFailMessage">
<text tableid="spacegame_tools" instanceid="#FDD8CC2A">You must choose a valid ground target to use this tool.</text>
</texts>
<bool name="#06DF688D">true</bool>
</properties>

Poster of the New User Apocalypse

Poster of the New User Apocalypse

LinkER324
Posts: 3
Joined: Sun Mar 05, 2017 1:01 pm
Gender: None specified
Status: Offline

Re: Error

Unread post #4 by LinkER324 » Sun Oct 15, 2017 8:42 am

Okay, found the problem. My system uses the "," decimal character, not the "." decimal character in the file. Great.


Return to “Tools & Patches”

Who is online

Users browsing this forum: No registered users and 1 guest