triplea icon indicating copy to clipboard operation
triplea copied to clipboard

2.5.22294: DynamicallyModifiable#lambda$getPropertyOrThrow$0:47 - java.lang.IllegalArgumentException

Open tripleabuilderbot opened this issue 4 years ago • 22 comments

Map

world_war_ii_global

Log Message

unknown property named 'turns'

TripleA Version

2.5.22294

Java Version

11.0.4

Operating System

Windows 7

Memory

Heap utilization statistics [MB] Used Memory: 213 Free memory: 776 Total memory: 989 Max memory: 989

Stack Trace

Exception: java.lang.IllegalArgumentExceptionunknown property named 'turns'
java.lang.Exception
	at games.strategy.engine.data.DynamicallyModifiable.lambda$getPropertyOrThrow$0(DynamicallyModifiable.java:47)
	at java.base/java.util.Optional.orElseThrow(Unknown Source)
	at games.strategy.engine.data.DynamicallyModifiable.getPropertyOrThrow(DynamicallyModifiable.java:47)
	at games.strategy.engine.data.ChangeAttachmentChange.<init>(ChangeAttachmentChange.java:46)
	at games.strategy.engine.data.changefactory.ChangeFactory.attachmentPropertyChange(ChangeFactory.java:169)
	at games.strategy.triplea.attachments.TriggerAttachment.getPropertyChangeHistoryStartEvent(TriggerAttachment.java:1532)
	at games.strategy.triplea.attachments.TriggerAttachment.triggerPlayerPropertyChange(TriggerAttachment.java:1693)
	at games.strategy.triplea.attachments.TriggerAttachment.fireTriggers(TriggerAttachment.java:289)
	at games.strategy.triplea.attachments.TriggerAttachment.collectAndFireTriggers(TriggerAttachment.java:219)
	at games.strategy.triplea.delegate.BaseTripleADelegate.triggerWhenTriggerAttachments(BaseTripleADelegate.java:81)
	at games.strategy.triplea.delegate.BaseTripleADelegate.end(BaseTripleADelegate.java:47)
	at games.strategy.triplea.delegate.battle.BattleDelegate.end(BattleDelegate.java:143)
	at games.strategy.engine.framework.ServerGame.endStep(ServerGame.java:454)
	at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:423)
	at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:297)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInternal(LocalLauncher.java:82)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.lambda$launch$0(LocalLauncher.java:56)
	at java.base/java.lang.Thread.run(Unknown Source)


tripleabuilderbot avatar Nov 02 '20 08:11 tripleabuilderbot

Just got this bug myself

Captain-Squareyez avatar May 03 '21 15:05 Captain-Squareyez

@Captain-Squareyez which triplea version are you using ? I see the above OS is windows 7 which microsoft doesn't update any more but since it obviously worked in the past, idk y it wouldn't now

beelee1 avatar May 03 '21 19:05 beelee1

Im using windows 10 64bit. Triple A version is 2.5.22294.

I noticed the game had locked up after that, so i saved it, which it allowed me to, but i couldnt move pieces or anything, after saving, exited game, reloaded it, and have been able to continue forward with it so far, so, not sure whats going on there. But, when i clicked on "report to triple a", it told me it had already been reported and it brought me to this page.

Captain-Squareyez avatar May 04 '21 08:05 Captain-Squareyez

Hmm... post the save if you still have it. it might help whoever fixes this

beelee1 avatar May 04 '21 14:05 beelee1

Bit late for that now :). if i start another game i will tho Or they could just start a global war game themselves to test it.

Captain-Squareyez avatar May 05 '21 08:05 Captain-Squareyez

So your error was with "global war" not "world_war_ii_global" ? The global game is one of the more popular ones, so I'd expect more errors of this kind if it happens frequently.

At any rate, yea, if you run across it again, a save would be a big help.

beelee1 avatar May 05 '21 13:05 beelee1

No, it was WW2 Global, sorry, didnt realize there was a global war version as well

Captain-Squareyez avatar May 05 '21 14:05 Captain-Squareyez

I uninstalled the latest versions then installed a version 2.0 or something like that. That fixed the issue. So for anyone who thinks this is annoying. Playing Global War 1940 Original and 2nd edition

uncleGitty avatar Jun 22 '21 12:06 uncleGitty

I uninstalled the latest versions then installed a version 2.0 or something like that. That fixed the issue. So for anyone who thinks this is annoying. Playing Global War 1940 Original and 2nd edition

i will give this a go myself, thanks Gitty :)

Edit, do you mean the launcher itself or the map? I couldnt find an older version of the map in the launcher

Captain-Squareyez avatar Jun 22 '21 13:06 Captain-Squareyez

I uninstalled the latest versions then installed a version 2.0 or something like that. That fixed the issue. So for anyone who thinks this is annoying. Playing Global War 1940 Original and 2nd edition

i will give this a go myself, thanks Gitty :)

Edit, do you mean the launcher itself or the map? I couldnt find an older version of the map in the launcher

I uninstalled the Triple A application. The map I don't think has been updated for a long time.

uncleGitty avatar Jun 23 '21 17:06 uncleGitty

I uninstalled the Triple A application. The map I don't think has been updated for a long time.

Kool. I just searched for the download again to find older installs and found it. Thanks for that :) 👍

Captain-Squareyez avatar Jun 23 '21 17:06 Captain-Squareyez

Just downloaded. Can't play G40, encounter this bug.

nepphhh avatar Sep 04 '21 03:09 nepphhh

@nepphhh are you on the latest stable ? 2.5.22294 ? Does it happen at game start or later in the game ?

I removed mine and then reinstalled and it works for me.

beelee1 avatar Sep 04 '21 14:09 beelee1

Version of the map or executable? Occurs at the end of Combat G1

On Sat, Sep 4, 2021 at 7:58 AM beelee1 @.***> wrote:

@nepphhh https://github.com/nepphhh are you on the latest stable ? 2.5.22294 ? Does it happen at game start or later in the game ?

I removed mine and then reinstalled and it works for me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/triplea-game/triplea/issues/8070#issuecomment-912987611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFPSAO756YV5L7KNZONAFTUAIXYPANCNFSM4THFITPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nepphhh avatar Sep 04 '21 17:09 nepphhh

Sorry i meant triplea version. I'll test a G1 move.

beelee1 avatar Sep 04 '21 18:09 beelee1

@nepphhh yea works for me. I'd read through this thread if you haven't already. Or just uninstall triplea and try again. It's a popular map so it's not a common problem.

You're not on a mac os are you ? Mac's behave a little differently sometimes with triplea is y i ask

beelee1 avatar Sep 06 '21 18:09 beelee1

I was using the Original version of the map. V2 works perfectly. Maybe consider junking the broken version of the map?

Thanks!

nepphhh avatar Sep 07 '21 00:09 nepphhh

Oh ? so you updated to latest map and it works ? There's a yaml version and then the map version. I think the latest map is version 4.0 ?

Anyway glad you got it working : )

beelee1 avatar Sep 07 '21 18:09 beelee1

I am still getting this error every time I try "World War II Global 1940 Original" every time at the end of German first turn just as others. Windows 10, latest versions of everything. I had it set to Axis Human, all others AI.

Java 11.0.6 Engine 2.5.22294

TripleA_AJNJ6guppS

Nova-111 avatar Sep 13 '22 19:09 Nova-111

Save game file if that helps. I had to .zip it so it would accept file type

World War II Global 1940 Original - German1.zip

Nova-111 avatar Sep 13 '22 19:09 Nova-111

@Nova-111 that original game, version 2.9.1, hasn't had it's xml updated to not use "turns". Idk how busy he is but you could ask @RogerCooper who I believe has access to that repo if he would be interested in fixing it.

Yea to upload saves to git you need to stick in a zip

beelee1 avatar Sep 14 '22 19:09 beelee1

I will fix it. I had noticed this myself, but hadn't gotten around to fixing it. I am in the process of reviewing all the scenarios for 2.6 compatibility.

RogerCooper avatar Sep 14 '22 21:09 RogerCooper

closing v 2.5

beelee1 avatar Oct 28 '22 03:10 beelee1