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

    What to do with the game notes?

    Scheduled Pinned Locked Moved Map Making
    25 Posts 9 Posters 5.6k Views 8 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.
    • A Offline
      Azimuth
      last edited by Azimuth

      Apologies if the answer has already been given and I couldn't find it.

      I understood that with the 2.6 games notes changed their location and the notes tab has disappeared in game.

      What are the good practices for compatibility between 2.5 and 2.6? Should we keep the notes in both locations (in the xml and as a separate html file)? Should it be simply a duplicate?

      I hope you understand my question. Thanks.

      C TheDogT 2 Replies Last reply Reply Quote 4
      • C Offline
        Cernel Moderators @Azimuth
        last edited by Cernel

        @azimuth I also do believe that map-makers should be well informed about this. I don't even know if this is documented at all!

        Personally, I would drop support for the Game Notes (the property for it) within the game file (XML) completely so to avoid duplication and confusion.

        B 1 Reply Last reply Reply Quote 4
        • TheDogT Offline
          TheDog @Azimuth
          last edited by TheDog

          @Azimuth
          In 2.6 the game notes are only in one place
          Game> Game Notes

          In 2.5 they are also as a tab in right hand pane.

          Delete XXX.notes.html in the games folder and it will be recreated if it does not exist. So when you change the game notes you need to manually delete this file.

          The actual creation of the game notes is the same between the versions.

          What has changed is the how to display the game notes in 2.5 it was common to use text and embedded images to display the games notes.

          My and other map makers preference is to create png images and use them as game notes.

          Go here
          https://forums.triplea-game.org/topic/3326/1941-global-command-decision-official-thread?page=1
          My Game notes are images as well as a pdf.

          The images are still called from the xml file, just like the old text way.

          Game Note images are a bit useless, they are too big, in the right hand pane and was one of the reasons why it was removed.

          https://forums.triplea-game.org/tags/thedog
          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

          C A B 3 Replies Last reply Reply Quote 2
          • C Offline
            Cernel Moderators @TheDog
            last edited by Cernel

            @thedog I'm not sure about this. Maybe we are supposed now to do it directly in the notes file and this thing that the program creates it from the notes property within the game (xml) file is just for backward compatibility or something like that.

            TheDogT 1 Reply Last reply Reply Quote 2
            • TheDogT Offline
              TheDog @Cernel
              last edited by

              I agree, the notes.html is probably the way to go and to stop duplication by putting the game notes in the xml.

              https://forums.triplea-game.org/tags/thedog
              https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

              1 Reply Last reply Reply Quote 1
              • A Offline
                Azimuth @TheDog
                last edited by

                @thedog thank you for these clarifications.

                Yes, I saw how you handle this question in Global command (and how it works on other maps). I personnaly feel more comfortable writing an html file (easier for me to ammend, as the rules are quite unstable for now). In any cases, I can also simply copy and paste it in the xml for compatibility, not a big deal.

                Because I guess most players will still be on 2.5 for quite long, won't they?

                TheDogT 1 Reply Last reply Reply Quote 3
                • TheDogT Offline
                  TheDog @Azimuth
                  last edited by

                  @azimuth

                  Because I guess most players will still be on 2.5 for quite long, won't they?

                  Maybe not, the silent majority, play against the AI and they want a faster turn sequence and if they are playing say 1941 GCD then they have to be on 2.6.

                  I am astounded :exploding_head: at the number of views for GCD, my 1st WW2 map compared to my other maps.

                  The PvP players will probably be on 2.5 for some time as 2.6 does not appear to work properly in the lobby, yet.

                  https://forums.triplea-game.org/tags/thedog
                  https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                  A 1 Reply Last reply Reply Quote 2
                  • A Offline
                    Azimuth @TheDog
                    last edited by

                    @thedog don't think that, I am looking at your other maps as well 😉

                    But silently, as a map maker (because I am not playing any maps on TripleA for now).

                    1 Reply Last reply Reply Quote 2
                    • B Offline
                      beelee @TheDog
                      last edited by beelee

                      @thedog said in What to do with the game notes?:

                      Game Note images are a bit useless, they are too big, in the right hand pane and was one of the reasons why it was removed.

                      I disagree. Notes were just fine where they were.

                      Unless I'm misunderstanding something, here is an example of my Game note images and they work just fine

                      Screenshot from 2024-06-18 10-37-06.png

                      1 Reply Last reply Reply Quote 4
                      • B Offline
                        beelee @Cernel
                        last edited by

                        @cernel said in What to do with the game notes?:

                        @azimuth I also do believe that map-makers should be well informed about this. I don't even know if this is documented at all!
                        Personally, I would drop support for the Game Notes (the property for it) within the game file (XML) completely so to avoid duplication and confusion.

                        This is why communication is important. I spent days trying to figure this out.

                        If something is being Changed

                        let people know about it

                        ubernautU 1 Reply Last reply Reply Quote 3
                        • ubernautU Online
                          ubernaut Moderators @beelee
                          last edited by

                          @beelee TIL there are game notes

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

                          B 1 Reply Last reply Reply Quote 3
                          • B Offline
                            beelee @ubernaut
                            last edited by

                            @ubernaut
                            What does TIL mean ?

                            ubernautU 1 Reply Last reply Reply Quote 2
                            • ubernautU Online
                              ubernaut Moderators @beelee
                              last edited by

                              @beelee today i learned

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

                              Black_ElkB 1 Reply Last reply Reply Quote 2
                              • Black_ElkB Offline
                                Black_Elk @ubernaut
                                last edited by

                                Only issue I can see with using an image over HTML (text) for the game notes is that the former will upscale with pretty janky interpolation if the display resolution for tripleA is increased beyond 1080p.

                                Font will upscale normally within tripleA using the point system, so12px font will become 24px font, if your resolution defaults to 150% (Windows at 1440p will suggest this). But if you create a png of an image with the 12pt and upscale that instead, you will see some pretty heavy pixelation and jpeggery there. Even starting with a larger pt font, you'd have the same issue when it's upscaled, since it's raster.

                                Same deal for small graphics like flags and roundels or units when they're shown within the UI as opposed to the main map (which can be scaled manually). The stuff within the UI like for game Notes, that just goes off whatever the display resolution you have set for Font scale in the Windows display settings.

                                1 Reply Last reply Reply Quote 4
                                • cameronC Offline
                                  cameron
                                  last edited by

                                  so i've started making the game notes .html file for my mod and while it displayed fine in firefox & chrome it just causes errors in tripleA. (to the point where i'm gonna have to hide the file when i want to change maps b/c it makes the choose map thingie fail to load.)
                                  i'm guessing the problem is the images so my question is how do people get images to display in tripleA?

                                  
                                  An unexpected error occurred!  InvalidPathException: Illegal char :> at index 4: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAA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xkrMFg2GS7B327Ozc3N6lQKNjY0dER2LGsWlpaaMbT09OhtbUVSO9LpVIWSioBk6bD84UYvPTp/YqKCk1nZ+cDtMFHBXYKjI6OslPKM1DIpsvLS9BoNIba2lrS+w4SuzqluPjcb5qbmz+Ry+Vsib0JSrzv7+//taGhgSjc8yi5dp6GhobexYwPFhYWBguFQk5JSQmrlPQ9tqt7ZWXFhi9TLy8vf44wr7H2d6XezxZkZWXdwQ76aHV1NWdjY0MeHR1tjouL+wn7/PuFhYVfTk9PLXjg301+H0P/w8efsDWro+/SEugAAAAASUVORK5CYII=
                                  
                                  LaFayetteL B 2 Replies Last reply Reply Quote 0
                                  • LaFayetteL Offline
                                    LaFayette Admin @cameron
                                    last edited by LaFayette

                                    @cameron Use valid HTML. A lot of programs will interpret the "image/png;base64" prefix as the start of an image, and will read it as such. That is not a default specification for parsing HTML. The engine is seeing those characters as simply more HTML. There is then eventually an illegal sequence with a >, as it thinks that is part of a tag.

                                    So, use an <img src=...> HTML tag. An easy way to host an image, is open up a new github issue, paste in an image, and it will convert to a permanent link. You can then use that link. No need to actually create the issue, the link will stay good.

                                    1 Reply Last reply Reply Quote 2
                                    • B Offline
                                      beelee @cameron
                                      last edited by

                                      @cameron

                                      you can also look at The Dogs Command Decision and see how he does it but as Dan says, <img scr= is the key

                                      1 Reply Last reply Reply Quote 4
                                      • LaFayetteL Offline
                                        LaFayette Admin
                                        last edited by LaFayette

                                        I recall as well - you can add the game note images to the map itself.

                                        Regarding my previous suggestion to use a remote URL... I realize now I don't know if a remote URL is cached... so that might be bad for performance.

                                        @Myrd Do you know if images fetched via URL in the game notes, by the tripleA engines, if those images are cached? Or are images found in the games notes HTML fetched every time the game notes are rendered?

                                        To bundle Images

                                        To bundle images with the map, you put them in 'docs/images':

                                        For example:

                                        • https://github.com/triplea-maps/world_at_war/blob/master/map/games/WAW40.xml#L8481

                                        • https://github.com/triplea-maps/world_at_war/blob/master/map/doc/images/French.png

                                        Be careful of file name casing. For example, that it is "French.png" and not "french.png" in the XML (this breaks on Linux & Mac if the file casing is wrong, but works if on windows).

                                        1 Reply Last reply Reply Quote 2
                                        • LaFayetteL Offline
                                          LaFayette Admin
                                          last edited by

                                          Game notes 2.5 vs 2.6 - how to handle?

                                          @Cernel you raised a few questions on this topic.

                                          If the 'min-version' on a map is 2.5, then the game notes need to be in both the XML file and an external HTMl file. If the 'min-version' is 2.6, then the XML location is not read.

                                          I agree a hard cut-off of the XML would be a good thing. The support for either is primarily intended to be "transition-aid", to help remove problems as we transition to 2.6; Once things are solid, and we have considered a backward compatibility approach, then the cut-over would be well timed.

                                          1 Reply Last reply Reply Quote 3
                                          • cameronC Offline
                                            cameron
                                            last edited by

                                            so... just oldschool html and no css. and it doesn't like file paths either.

                                            sorted it by using <img src="Flag.png"> and making a "doc" folder with an "images" subfolder containing the images and not <img src="../flags/Flag.png"> as i'd foolishly assumed... 🙂

                                            i like keeping it local so that it works when offline.

                                            thanks for putting me in the right direction. 🙂

                                            1 Reply Last reply Reply Quote 3

                                            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
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums