Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Map Locations Demo

    Coding
    5
    28
    1318
    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.
    • waldron
      waldron F last edited by

      I'v tried the sprite placement code but not really used it before so I was unable to test that

      pianofire 1 Reply Last reply Reply Quote 0
      • pianofire
        pianofire Fuze Team @waldron last edited by

        @waldron When you say "in the main loop" do you mean not inside a function?

        1 Reply Last reply Reply Quote 0
        • waldron
          waldron F last edited by

          in my case with the namemapareacode i had
          areaNames = getmapareanames()
          with the for loop code in the main loop
          in my test program iv not put it into a function and it crashes.
          if i put the areaNames = getmapareanames() outside the main loop it runs as expected.
          in my other programs the results are 50/50 where i do store that code in a function they either run fine or crash .
          do i need to reference these or ? confused as my code hasn't changed but since the patch that piece of code crashes the system.

          pianofire 1 Reply Last reply Reply Quote 0
          • pianofire
            pianofire Fuze Team @waldron last edited by

            @waldron No it definitely shouldn't be crashing. I have raised an issue for this

            waldron 1 Reply Last reply Reply Quote 0
            • waldron
              waldron F @pianofire last edited by

              @pianofire thanks been driving me bonkers haha if i comment out the collidemap() it doesn't crash so i think its as spacemario describes above.

              1 Reply Last reply Reply Quote 1
              • waldron
                waldron F last edited by

                just one last one with this, after testing the namemaparea() that was causing crashes this also caused crashes with my other programs where they would just crash when i run them at random with some with scary graphical glitches.
                so last night i didn't test that piece of code and my other programs didn't crash anymore :) currently using detectmapcollision instead as a workaround.

                Spacemario 1 Reply Last reply Reply Quote 0
                • Spacemario
                  Spacemario F @waldron last edited by

                  @waldron One thing I may resort to is loading every one of my game's maps before the main loop even begins, and populating my actor arrays that way.

                  It's contrary to the way my "engine" works-- which loads "assets" on-demand when levels are swapped-- but the Switch has so much RAM for the kinds of games we make in Fuze, that holding the entirety of the actors in memory the entire time the game is running should be no big deal.

                  If I make that change, I'll post here whether or not it works around the crashing.

                  1 Reply Last reply Reply Quote 2
                  • pianofire
                    pianofire Fuze Team last edited by

                    Please could one of share and submit a program that crashes so I can test out a potential fix. Thanks in advance

                    waldron 1 Reply Last reply Reply Quote 1
                    • waldron
                      waldron F @pianofire last edited by waldron

                      @pianofire you can download my lint gamejam game CZ563MND5U that has it
                      i do have a smaller program with the problem isolated which i can share later if needs be?

                      Spacemario 1 Reply Last reply Reply Quote 2
                      • Spacemario
                        Spacemario F @waldron last edited by

                        @waldron Just a heads-up, I tried the map entity initialization outside of my game loop, and it still caused Fuze to crash-- figured I'd let you know.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post