RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Would you like to play Nokia (J2ME) games on Retropie?

    Scheduled Pinned Locked Moved Ideas and Development
    sdlemulatorawesome
    304 Posts 22 Posters 165.5k Views
    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.
    • recompileR
      recompile @Hex
      last edited by

      @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

      Are you checking difference between Key Pressed and Released.

      Of course. Games wouldn't work if I didn't.

      @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

      Can you print events / Key presses detected in your debug version.

      Sure:
      http://drichardson-shared.s3.amazonaws.com/freej2me-rpi-dbg.jar

      @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

      Can you elaborate. This is my version of gossip :)

      Nothing fancy. I now make an additional copy of the frame data (to make a byte array) so that I can send it in one call to sdl_interface. It made a huge difference. Going from "just make it work" to "do it the right way" often does that.

      @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

      If you want I can get joystick working as it works with ES. Do you have one to test it on.

      That'll be okay. I have one suitable for testing. I figure most people will want to play with a controller and not a keyboard. Don't you have one on your pi 0? The picture you sent shows a d-pad and a couple buttons.

      It occurred to me that we might be talking about two different things. When I say 'joystick' I mean any gamepad/controller/whatever.

      @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

      Can we additionally add numpad control (but inverted ie key 1 on NumPad 7 click)

      Sure:
      http://drichardson-shared.s3.amazonaws.com/freej2me-rpi.jar

      1 Reply Last reply Reply Quote 0
      • recompileR
        recompile @recompile
        last edited by

        @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

        If I exit application from emulator I get this "MIDlet sent Destroyed Notification" but the emulator doesnt exit. C is also left open.

        I fixed that as well.

        1 Reply Last reply Reply Quote 0
        • HexH
          Hex
          last edited by Hex

          @recompile I was sending key down for key up too causing the problem :| Fixed that.

          If I exit application from emulator I get this "MIDlet sent Destroyed Notification" but the emulator doesnt exit. C is also left open. Saw updated comment

          I will update C to include those events. (Joystick events) and let you know once done.

          Sent from 20,000 leagues under the sea.

          Powersaver Emulation station : https://github.com/hex007/EmulationStation
          ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

          recompileR 1 Reply Last reply Reply Quote 0
          • recompileR
            recompile @Hex
            last edited by

            @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

            If I exit application from emulator I get this "MIDlet sent Destroyed Notification" but the emulator doesnt exit. C is also left open.

            The dbg version didn't have that fixed. Here's an update:
            http://drichardson-shared.s3.amazonaws.com/freej2me-rpi-dbg.jar

            1 Reply Last reply Reply Quote 0
            • HexH
              Hex
              last edited by Hex

              @recompile Joystick handling is a tad bit complicated. I will do it tomorrow. Its 1:30 am here in LA.

              I played the game Shadow Walker and I must say we have come a long way :)

              If you want you can update C from dropbox and test it out. I have migrated the byte array "out" to vector.


              Let us refresh things on our todo list. Please append if I forgot anything.

              Todo :

              • Gamepad support
              • Joystick support (optional; Long term)
              • Audio support
              • Hide Game's log output (optional)
              • m3g support (long term)

              Sent from 20,000 leagues under the sea.

              Powersaver Emulation station : https://github.com/hex007/EmulationStation
              ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

              recompileR 1 Reply Last reply Reply Quote 0
              • recompileR
                recompile @Hex
                last edited by

                @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

                Gamepad support
                Joystick support (optional; Long term)

                These are the same thing to me. (I use the terms joystick and gamepad interchangeably) As you're differentiating between them, when I say "joystick" I'm thinking of a gamepad.

                I'd like to also add m3g support. That'll be a while.

                1 Reply Last reply Reply Quote 0
                • HexH
                  Hex
                  last edited by Hex

                  Yea for me Game pad is SNES controller (Dpad ABXY LR). Joystick are the two analog sticks on Xbox controller

                  what is m3g?

                  Sent from 20,000 leagues under the sea.

                  Powersaver Emulation station : https://github.com/hex007/EmulationStation
                  ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                  recompileR 1 Reply Last reply Reply Quote 0
                  • recompileR
                    recompile @Hex
                    last edited by

                    @hex m3g is the Mobile 3D Graphics API from JSR 184. Some later games used this, like The Sims 3 and X-Men Origins: Wolverine.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Allanbuzzy
                      last edited by

                      Would the N-Gage use the same architecture as J2ME? I saw a video that showed a N-Gage game playing on a Nokia N70 using emulation.

                      "What do you play games on?"
                      "A LEGO brick."
                      "LEGO What?

                      Stuart2773S recompileR 2 Replies Last reply Reply Quote 0
                      • Stuart2773S
                        Stuart2773 @Allanbuzzy
                        last edited by Stuart2773

                        @allanbuzzy

                        from what i can remember from owning an n70, n95 & ngage back in the day, im sure they were symbian based,

                        cant wait to try this when its ready, so glad i kept a backup of all the java/ngage games i must have in the region of about 1000 for various mobile devices.

                        1 Reply Last reply Reply Quote 0
                        • N.A.R.E.K.96N
                          N.A.R.E.K.96
                          last edited by

                          I would like to play old cell phone games and also game for Nokia N-Gage they were great!

                          1 Reply Last reply Reply Quote 0
                          • HexH
                            Hex
                            last edited by

                            J2ME is not symbian emulator. So no you cannot play symbian games.

                            @recompile I have different pixel interpolation methods while scaling. Would you be interested in testing those out? We can expose this in config if necessary.

                            // Change this line. Valid values :  "nearest", "linear", "best"
                            SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
                            // Linear is pixelated, no interpolation
                            // Linear is Bilinear interpolation
                            // Best is anisotropic interpolation
                            

                            Sent from 20,000 leagues under the sea.

                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                            recompileR 1 Reply Last reply Reply Quote 0
                            • recompileR
                              recompile @Allanbuzzy
                              last edited by

                              @allanbuzzy said in Would you like to play Nokia (J2ME) games on Retropie?:

                              Would the N-Gage use the same architecture as J2ME?

                              The N-Gage could run j2me games, but the few N-Gage specific games I have are all Symbian native. From what I remember, however, there weren't too many exclusive games released for the short-lived console. Asphalt Urban GT and Splinter Cell: Chaos Theory, for example, saw both j2me and Symbian releases, though the j2me releases often supported higher resolutions than the 176x208 you got on the N-Gage.

                              For j2me games made for Nokia phones or the N-Gage, I've already added full support for the Nokia UI API.

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                Allanbuzzy @recompile
                                last edited by

                                @recompile said in Would you like to play Nokia (J2ME) games on Retropie?:

                                @allanbuzzy said in Would you like to play Nokia (J2ME) games on Retropie?:

                                Would the N-Gage use the same architecture as J2ME?

                                The N-Gage could run j2me games, but the few N-Gage specific games I have are all Symbian native. From what I remember, however, there weren't too many exclusive games released for the short-lived console. Asphalt Urban GT and Splinter Cell: Chaos Theory, for example, saw both j2me and Symbian releases, though the j2me releases often supported higher resolutions than the 176x208 you got on the N-Gage.

                                For j2me games made for Nokia phones or the N-Gage, I've already added full support for the Nokia UI API.

                                So N-Gage is supported? Awesome, that's good.

                                "What do you play games on?"
                                "A LEGO brick."
                                "LEGO What?

                                recompileR 1 Reply Last reply Reply Quote 0
                                • HexH
                                  Hex
                                  last edited by

                                  @Allanbuzzy I dont think he is saying that. Symbian deppends on Nokia UI, J2ME depends on Nokia UI. @recompile has added full support for Nokia UI.

                                  Sent from 20,000 leagues under the sea.

                                  Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                  ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                  1 Reply Last reply Reply Quote 0
                                  • recompileR
                                    recompile @Hex
                                    last edited by

                                    @hex Sure. I can pass it to C as an additional parameter. From the command line, I'll accept: jar | jar width height | jar filter | jar width height filter but always pass C width height filter

                                    Defaults are 240 320 nearest, but C doesn't need to know that.
                                    http://drichardson-shared.s3.amazonaws.com/freej2me-rpi.jar

                                    1 Reply Last reply Reply Quote 0
                                    • recompileR
                                      recompile @Allanbuzzy
                                      last edited by

                                      @allanbuzzy said in Would you like to play Nokia (J2ME) games on Retropie?:

                                      So N-Gage is supported? Awesome, that's good.

                                      Let me try that again. The N-Gage could run j2me and Symbian games. This project will only support j2me games. Symbian games will not work. Nokia had their own special api for games, which is fully supported, so j2me games written for the N-Gage will work. Again, Symbian games written for the N-Gage will not work.

                                      1 Reply Last reply Reply Quote 0
                                      • HexH
                                        Hex
                                        last edited by

                                        @recompile I have updated the C source to add support for interpolation/filter type .

                                        J doenst need to pass default (nearest) if not user specified. I can handle that in C

                                        Sent from 20,000 leagues under the sea.

                                        Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                        recompileR 1 Reply Last reply Reply Quote 0
                                        • recompileR
                                          recompile @Hex
                                          last edited by

                                          @hex said in Would you like to play Nokia (J2ME) games on Retropie?:

                                          J doenst need to pass default (nearest) if not user specified. I can handle that in C

                                          I know, but it's simpler for me to always pass something than to only pass it sometimes. I figured it would be simpler for you, as you can always expect 3 arguments. I like simple.

                                          1 Reply Last reply Reply Quote 0
                                          • HexH
                                            Hex
                                            last edited by Hex

                                            @recompile Will you be available for an hour or so for Gamepad testing?

                                            Do I need to support multiple gamepads or a single gamepad would suffice.

                                            Sent from 20,000 leagues under the sea.

                                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.