Error: "attachment incorrectly named"

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: "attachment incorrectly named"

panguitch
I haven't been able to fully follow things lately, like the correction of attatch to attach, so apologies if I've missed something obvious, but here's my problem:

Installed 1.9.0.0.1627 today.
Downloaded Greyhawk Wars (current production 1.0 version) and made sure no immediately obvious problems.

All ok.

But when I put my Greyhawk Wars "Sandbox" version into the downloadedMaps folder to check it I got all the errors about "attatch". No surprise. So I used find&replace to change all instances of "attatch" to "attach". But now I get the following error (although the map can still be played):

games.strategy.engine.data.GameParseException: attachment incorrectly named:playerattachment   for: TriggerAttachment attached to:PlayerID named:Iuz with name:triggerAttachmentDecommissionIuz
Could not parse:jar:file:/C:/Users/nas27/triplea/downloadedMaps/Greyhawk_Wars_Sandbox.zip!/games/Greyhawk_Wars_Sandbox.xml
games.strategy.engine.data.GameParseException: Error setting property:playerAttachmentName cause:attachment incorrectly named:playerattachment   for: TriggerAttachment attached to:PlayerID named:Iuz with name:triggerAttachmentDecommissionIuz
Full text: attachment_error.txt

I've double checked and the text of this trigger is identical between GW 1.0 and Sandbox:
                        <attachment name="triggerAttachmentDecommissionIuz" attachTo="Iuz" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                        <option name="conditions" value="conditionattachmentDecommissionIuz"/>
                                        <option name="when" value="after:IuzNonCombatMove"/>
                                        <option name="when" value="after:FuryondyNonCombatMove"/>
                                        <option name="when" value="after:Great_KingdomNonCombatMove"/>
                                        <option name="when" value="after:NyrondNonCombatMove"/>
                                        <option name="when" value="after:Scarlet_BrotherhoodNonCombatMove"/>
                                        <option name="when" value="after:KeolandNonCombatMove"/>
                                        <option name="when" value="after:KetNonCombatMove"/>
                                        <option name="when" value="after:Iron_LeagueNonCombatMove"/>
                                        <option name="when" value="after:PomarjNonCombatMove"/>
                                        <option name="when" value="after:SuelNonCombatMove"/>
                                        <option name="relationshipChange" value="Iuz:Furyondy:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Great_Kingdom:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Nyrond:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Scarlet_Brotherhood:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Keoland:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Ket:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Iron_League:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Pomarj:any:Vanquished"/>
                                        <option name="relationshipChange" value="Iuz:Suel:any:Vanquished"/>
                                        <option name="playerAttachmentName" value="PlayerAttachment" count="playerattachment"/>
                                        <option name="playerProperty" value="retainCapitalNumber" count="2"/>
                                        <option name="playerProperty" value="retainCapitalProduceNumber" count="2"/>
                                        <option name="resource" value="PUs"/>
                                        <option name="resourceCount" value="-9999"/>
                        </attachment>
Greyhawk_Wars.xml
Greyhawk_Wars_Sandbox.xml

Any ideas what's causing this?

Greyhawk Wars
TripleA in the original Dungeons & Dragons world

Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

panguitch
Ah, I think I found the problem.

I had some sloppy capitalization, a holdover from years ago. Apparently the engine isn't going to be as tolerant of it anymore.

I had to change all my instances of:
rulesattachment
playerattachment
territoryattachment
unitattachment
techattachment
canalattachment

To capitalize Attachment (rulesAttachment etc.)

Greyhawk Wars
TripleA in the original Dungeons & Dragons world

Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

Frostion
So did you get your map fully functional and running with the prerelease version of TripleA?

I think I will try to convert my Star Trek map and my Age of Tribes map and get them functional with the new version. Do you have any tips and experiences from your conversion process that you would like to share? Maybe a list of things you had to do to get your map working?

I can see that that "attatch" replacement to "attach". Must be case-sensitive, right?

Right now I am only aware of wav files changed to mp3 and "attatch” to "attach".
Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

panguitch
Yes, it's fully functional (hearing the Emperor say this in my mind).

In the six-ish months I took off, attatch -> attach was the main thing.

Yes, it's case-sensitive.

Do wav files need to be changed? I thought it was just that both wav and mp3 are now acceptable.

Greyhawk Wars
TripleA in the original Dungeons & Dragons world

Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

Frostion
panguitch wrote
Yes, it's fully functional (hearing the Emperor say this in my mind).
  Hehe

I don't know if it is a must to change wav to mp3, I actually just assumed it was a must.
But will do it on my maps as they then to have a lot of sound files and therefore 200-300 megabyte large. The new file size is like 1/6 of the old map size. Do you need help with conversion of wav?
Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

panguitch
Actually, I've never done anything with sound files. Since I listen to music when playing, I always have sound off in TripleA. So I never really thought about it when making Greyhawk, other than to set it to the generic fantasy/historical sounds.

Maybe one day I'll add sounds, but it's way down my list. It would be interesting to know what percentage of people play with sound on.

Greyhawk Wars
TripleA in the original Dungeons & Dragons world

Reply | Threaded
Open this post in threaded view
|

Re: Error: "attachment incorrectly named"

Zim Xero
Without spending any money or having to search for an App... the best overall sound program for everything is Audacity, available for download on SourceForge.  It makes clean cuts and is fairly intuitive to learn, plus lets you convert between nearly any format.
'thats the way it is' makes it neither desireable nor inevitable