TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Total World War: December 1941 3.0.0.6

    Scheduled Pinned Locked Moved Maps & Mods
    661 Posts 35 Posters 1.4m Views 33 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Shonn
      last edited by

      Question - maybe related to a bug.

      Vichy France builds Barracks in Algeria.
      Then Allies land in Marocco. Algeria turns German.
      Germany cannot place anymore INFs or other new units in Algeria, not acknowledging the presence of the Barracks.

      Is that intended or a bug?

      redrumR 1 Reply Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @Shonn
        last edited by

        @Shonn The barracks should change to be controlled by Germany so that they can build units there instead of Vichy. If that didn't happen then if you can upload the save, I'll take a look.

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        1 Reply Last reply Reply Quote 0
        • ubernautU Offline
          ubernaut Moderators @redrum
          last edited by

          @redrum fixed the dice thing. the notifications are not working, also in the 2.8 variation. pretty sure this was working prior to when i tried to start a forum game which was also the first time i started a game under this version. when i was using saved games with this version that were 3.0.0.2 it was still working.

          "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

          redrumR 2 Replies Last reply Reply Quote 0
          • redrumR Offline
            redrum Admin @ubernaut
            last edited by

            @ubernaut Yeah, I recently updated all the notification image paths to not reference sourceforge. For some reason, it appears the path is incorrect for at least Macs. It tries to reference the notification images in the map zip like this:

            <img src="/doc/images/thailand.png"/>
            

            @RoiEX Do you have a mac or maybe even a linux box and could test if you can see these notifications in TWW?

            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

            ubernautU RoiEXR 2 Replies Last reply Reply Quote 0
            • ubernautU Offline
              ubernaut Moderators @redrum
              last edited by

              @redrum thanks for looking into it. 🙂 also for whatever reason that dice bug came back too . 😕 i will try to see if it goes away next time i quit.

              Screen Shot 2019-05-12 at 11.07.17 AM.png

              "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

              ubernautU 1 Reply Last reply Reply Quote 0
              • redrumR Offline
                redrum Admin @ubernaut
                last edited by

                @ubernaut Actually can you test something for me. Can you edit the notifications.properties file in the TWW/map folder and change this line:

                Startgermany=<body><img src="/doc/images/startgermany.png"/></body>
                

                to

                Startgermany=<body><img src="startgermany.png"/></body>
                

                Then launch a new TWW game and see if the initial germany notification appears properly.

                TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                ubernautU 1 Reply Last reply Reply Quote 0
                • ubernautU Offline
                  ubernaut Moderators @redrum
                  last edited by

                  @redrum nope 😞 i also tried "/startgermany.png"

                  "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                  1 Reply Last reply Reply Quote 0
                  • RoiEXR Offline
                    RoiEX Admin @redrum
                    last edited by

                    @redrum I have access to a mac on Tuesday, what exactly do you want me to check?
                    I haven't followed the whole conversation

                    redrumR 1 Reply Last reply Reply Quote 0
                    • redrumR Offline
                      redrum Admin @RoiEX
                      last edited by

                      @RoiEX I updated TWW notifications.properties to reference local images from the map zip rather than sourceforge links: https://github.com/triplea-maps/total_world_war/commit/5984d1cec952bfc7e07fa9dde36af188a4d17a63

                      But it appears the images aren't showing for @ubernaut who has a mac but works fine for me on a windows machine. Trying to isolate if its a mac issue with the image path or a specific issue for him.

                      The notifications appear as popups once you start a new TWW game and click past the bid phase.

                      @ubernaut Can you make sure you don't have multiple TWW maps in your maps folder. Or clear out your maps folder and redownload.

                      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                      ubernautU 1 Reply Last reply Reply Quote 1
                      • ubernautU Offline
                        ubernaut Moderators @redrum
                        last edited by

                        @redrum yeah it was clear just the one.

                        "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                        1 Reply Last reply Reply Quote 0
                        • RoiEXR Offline
                          RoiEX Admin
                          last edited by

                          @redrum I dug a little bit into the code and haven't found a real reason, but a couple of places where the system could be tripping up.

                          https://github.com/triplea-game/triplea/blob/77cb757693a0a1afae028ed05b653376e23c9933/game-core/src/main/java/games/strategy/triplea/attachments/TriggerAttachment.java#L1478-L1486

                          This code seems to strip out html tags out of notification properties if the string is too long. Shouldn't be the case here, but still weird.

                          Just before the HTML is parsed and interpreted to be shown to the user the engine "localizes" the external HTML resources:

                          https://github.com/triplea-game/triplea/blob/d21ee00a40ae6faf8cf52fbb24554d8de0a3bbd8/game-core/src/main/java/org/triplea/util/LocalizeHtml.java#L71-L72

                          This means 2 Things:

                          1. It's not necessary to have the /doc/images/ prefix in the src attribute because everything except for the basename will be stripped away
                          2. Removing the sourceforge part of the URL in the src attribute has 0% effect because everything except for the basename will be stripped away

                          Also if the engine tries to search for a resource that doesn't exist, an exception will be logged and an error window should pop up.
                          So it's clearly not the change on your end, at least for latest master. I have fiddled around with the LocalizeHtml class in the past, so maybe on the latest stable there is actually a difference, but probably not for TWW compatible versions.

                          So because there is no exception this probably means that the tag gets removed at some point for some reason we don't know, but I think it's fairly unlikely the issue is cause by the OS at this point.

                          redrumR 1 Reply Last reply Reply Quote 1
                          • redrumR Offline
                            redrum Admin @RoiEX
                            last edited by

                            @RoiEX Yeah, I had noticed the /doc/images/ wasn't needed and that's why I asked to try without that as well. I'm going to remove those prefixes from the map.

                            Only thing I could think of is a duplicate map or something causing image loading issues.

                            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                            1 Reply Last reply Reply Quote 0
                            • RoiEXR Offline
                              RoiEX Admin
                              last edited by RoiEX

                              @redrum
                              What we haven't tested yet:
                              @ubernaut Can you replace the whole <body><img src="/doc/images/thailand.png"/></body> with <body>Display Test</body> or just Display Test and try again?

                              If everything stays the same then the engine wouldn't seem like it's using the real property file.

                              ubernautU 1 Reply Last reply Reply Quote 3
                              • ubernautU Offline
                                ubernaut Moderators @RoiEX
                                last edited by

                                @RoiEX the first thing did nothing the second thing seemed at first to do nothing (same blank dialog) but then a second dialog came up with the test message.

                                "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                                1 Reply Last reply Reply Quote 0
                                • RoiEXR Offline
                                  RoiEX Admin
                                  last edited by

                                  I'm even more confused now 😅
                                  But at least something is happening, not sure what to do with this knowledge though.

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Shonn
                                    last edited by

                                    @redrum For that save I think it's easier if I pass you through the lobby! But the situation of the non working converted barracks repeated in a few games. And I think it's easily duplicable as well in any game.

                                    @Hepps Adding, I feel Armour can use at least also a +1 attack through some technology - and eventually also added defence to have a final base of 7 / 6 / 2 (Dare say diluted in 3 different techs - including improved armour giving +1 defence). Currently they're easy to hard counter with AT (that can gain through techs). I believe Armour should upgrade as well through tech to keep in tune a line of armour piercing vs armour technology race (if that ever happens). To be a 6 costing unit they have lots of penalties in many terrain ontop of having a direct hard counter if they're spammed.

                                    1 Reply Last reply Reply Quote 0
                                    • ubernautU Offline
                                      ubernaut Moderators @ubernaut
                                      last edited by

                                      the dice thing seems to be random.

                                      "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                                      redrumR 1 Reply Last reply Reply Quote 0
                                      • RoiEXR Offline
                                        RoiEX Admin
                                        last edited by

                                        @redrum Notifications seem to work fine for me on a mac

                                        1 Reply Last reply Reply Quote 0
                                        • redrumR Offline
                                          redrum Admin @ubernaut
                                          last edited by

                                          @RoiEX Ok, thanks.

                                          @ubernaut Can you try downloading Iron War and checking to see if you see its notifications appear properly. You should see this right after the map starts up:
                                          d6c3bf08-4078-4111-b113-c85b37e284bb-image.png

                                          If you see that fine then its almost definitely an issue with either your TWW map being corrupted or you having multiple TWW maps. If you don't see that then its probably your TripleA or Java version and you should try removing them and doing a clean install.

                                          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                          ubernautU 1 Reply Last reply Reply Quote 1
                                          • ubernautU Offline
                                            ubernaut Moderators @redrum
                                            last edited by

                                            @redrum well, iron war notifications work fine but i have completely removed and reinstalled tww several times now to no effect. 😕

                                            "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                                            redrumR 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 33
                                            • 34
                                            • 11 / 34
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums