sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Prince IO Sketchup Game Demo

    Scheduled Pinned Locked Moved Developers' Forum
    42 Posts 26 Posters 29.8k Views 26 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.
    • plot-parisP Offline
      plot-paris
      last edited by

      fantastic! thank you so much for posting this game. indeed, a new era is about to begin 😍

      1 Reply Last reply Reply Quote 0
      • C Offline
        chief1234
        last edited by

        Thanks Scott, this is great!!

        I'm working on incorporating this into a school project, and I'm wondering if there's a way to load the engine onto any map without it being hardcoded.

        IE - if I could download anything from the 3D warehouse, start the Knight plugin and be able to navigate?

        Thanks in advance,

        Luke J.

        1 Reply Last reply Reply Quote 0
        • scottliningerS Offline
          scottlininger
          last edited by

          @chief1234 said:

          I'm wondering if there's a way to load the engine onto any map without it being hardcoded.

          Well, you could do one of two things.

          1. Open one of the .skp files inside Plugins/knightgame and edit the maps directly.
          2. Open the knightgame.rb file and modify the code to not load in a new model but simply run on top of the current model.

          So yeah... it's doable. Let me know if you have specific questions. πŸ˜„

          • Scott Lininger
            SketchUp Software Engineer
            Have you visited the Ruby API Docs?
          1 Reply Last reply Reply Quote 0
          • C Offline
            chief1234
            last edited by

            Right, changing the code to run on top of the current model would be ideal.

            Unfortunately, I'm a novice at Ruby so I'm not quite sure how to do this...

            I tried removing any direct references to maps in the file_loaded? method at the bottom. This way the engine will run, but only on maps AFTER they have been hardcoded, run, then the code removed again...

            Obviously I'm missing a vital part of the puzzle...

            Any help out of your busy schedule would be greatly appreciated!

            Thanks,
            Luke J.

            1 Reply Last reply Reply Quote 0
            • T Offline
              toxic
              last edited by

              Thats fantastic

              So when do we get worms

              1 Reply Last reply Reply Quote 0
              • T Offline
                trickout
                last edited by

                when i try to go to the linked site for the .zip, it says sight unavailable

                can someone post it somewhere else?

                1 Reply Last reply Reply Quote 0
                • scottliningerS Offline
                  scottlininger
                  last edited by

                  Hello trickout. Terribly sorry for the broken link. Please try again.

                  Cheers,

                  • Scott Lininger
                    SketchUp Software Engineer
                    Have you visited the Ruby API Docs?
                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    trickout
                    last edited by

                    Thank you for fixing the link. How can I edit the code, for instance make it move in 3 dimensions instead of just on a plane? I've tried to find a .rb editor but no success. 😞

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      todd burch
                      last edited by

                      .rb files are merely text files. Notepad, Textedit, lots of editors will work. Always save as plain text.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        August
                        last edited by

                        @unknownuser said:

                        ... You can hear more details from the original preso: http://www.youtube.com/watch?v=FALvwBN5-hc

                        YouTube says: "We're sorry, this video is no longer available."

                        Any alternate sources?

                        Thanks,
                        August

                        β€œAn idea, like a ghost, must be spoken to a little before it will explain itself.”
                        [floatr:v1mcbde2]-- Charles Dickens[/floatr:v1mcbde2]

                        1 Reply Last reply Reply Quote 0
                        • scottliningerS Offline
                          scottlininger
                          last edited by

                          @august said:

                          YouTube says: "We're sorry, this video is no longer available."

                          Any alternate sources?

                          Hey August,

                          I've sent a query to the code site folks asking what happened to the video.

                          Thanks!

                          • Scott Lininger
                            SketchUp Software Engineer
                            Have you visited the Ruby API Docs?
                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            Trimmer
                            last edited by

                            Hi Scott,

                            I'm Having the same problem BTM did back in Nov:

                            @unknownuser said:

                            I have a mac running OSX 10.5.6, and for every frame, I encounter the error
                            %(#808080)["newGroundz:
                            value=>-5000<
                            TypeError: Value undefined (result of expression value.split) is not object."].
                            the error pops up first, i have to click enter, then next frame, same error, this repeat over and over, then the knight falls through the floor, screams, and SU messes up. Any idea why?

                            @unknownuser said:

                            I'll need to test on my Mac with SU7 and post a fixed version.

                            Have you found a way to correct this?

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by

                              Hi All,

                              did anyone ever get this running on a Mac? can something be changed to make it run?

                              john

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                todd burch
                                last edited by

                                This was working on a Mac back when Scott posted this thread. Did someone or SU break it since then?

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  driven
                                  last edited by

                                  hi Todd,

                                  I only downloaded it recently and it appears to have the same symptoms as BTM's early post described, so I thought it had not been fixed....

                                  or the solution had moved on to a different thread, as sometimes happens...

                                  so, it's not currently working on 7.1 on a Mac and although I'm happy to modify the code, I'd need some instructions.

                                  cheers

                                  john

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 Reply Last reply Reply Quote 0
                                  • scottliningerS Offline
                                    scottlininger
                                    last edited by

                                    Hmm. Todd's cleaned up version was working on mac. I'll take a look...

                                    • Scott Lininger
                                      SketchUp Software Engineer
                                      Have you visited the Ruby API Docs?
                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      driven
                                      last edited by

                                      Thanks for that...

                                      john

                                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MartinRinehart
                                        last edited by

                                        Todd Burch,

                                        Congratulations on the quality of that code. To my eye, this is super readable:

                                        
                                        var BACKSPACE =  8 ; 
                                        var TAB       =  9 ; 
                                        var ENTER     = 13 ; 
                                        var SHIFT     = 16 ; 
                                        ...
                                        
                                        

                                        Just one question: why the space before the semicolon?

                                        Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          driven
                                          last edited by

                                          hi,

                                          I can't believe it myself, but I now have it working on my Mac...

                                          I changed it to "darwin" in line 137 and he longer falls

                                          	if RUBY_PLATFORM.include?("darwin") then script = "top.GROUNDZ = " + groundZ.to_s + ";"
                                          	else script = "newGroundZ(" + groundZ.to_s + " );" ;  
                                          	end ; 
                                          	dialog.execute_script(script);
                                          

                                          now to see if all else works.....

                                          john

                                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                                          1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            todd burch
                                            last edited by

                                            @martinrinehart said:

                                            Todd Burch,

                                            Congratulations on the quality of that code. To my eye, this is super readable:
                                            . . .

                                            Just one question: why the space before the semicolon?

                                            Habit. Most languages I code in require a semi colon (C / C++ / Java / Javascript / PL/1 ) and other languages (Ruby, REXX) a semi colon is optional. Just a style I've developed over the last ... 26 years I guess it is now...

                                            Thanks. Todd

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement