sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ”Œ Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] [CityGen] - Core [WIP] (0.1.3a) β€” 19 September 2009

    Scheduled Pinned Locked Moved City Generator
    109 Posts 23 Posters 75.8k Views 23 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.
    • utilerU Offline
      utiler
      last edited by

      Win 7, SU 8.0.4811 and Firefox 3.6.15....
      πŸ‘

      Just Curious...

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        @utiler said:

        Win 7, SU 8.0.4811 and Firefox 3.6.15....
        πŸ‘

        No - not what browser you use, what Internet Explorer version is installed? SketchUp use the Internet Explorer engine for the windows we can create with the Ruby API. The Internet Explorer engine is used by many application in similar way.

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • utilerU Offline
          utiler
          last edited by

          Buggered if I know, Thomas!! 🀣 What should I have installed to make it work more to the point..... Then I'll go work out what I need to alter....
          πŸ‘
          OK, back in the office now.... downloading IE 9 as i didn't have 8 loaded. maybe that was the problem... I'll see if it works now.
          thanks Thom.
          πŸ‘

          Just Curious...

          1 Reply Last reply Reply Quote 0
          • utilerU Offline
            utiler
            last edited by

            OK, IE 9 loaded and still the problem is apparent....

            Just Curious...

            1 Reply Last reply Reply Quote 0
            • utilerU Offline
              utiler
              last edited by

              Thom, I have IE8 64bit loaded on my PC. Would this be conflicting with it?

              Just Curious...

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                Sorry for the delay - I've been away in Dubai for a week.
                So you got IE8 or IE9 ? πŸ˜• ❓

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • utilerU Offline
                  utiler
                  last edited by

                  Thanks Thomas, I heard you were away...
                  I uninstalled IE9 9 because it said that a Flash plugin was not yet available.... So I'm left with IE 8 [64bit]

                  I tried it on my laptop [Windows XP, 32bit, IE 8] also and got this as a result of running Street Generator:


                  StreetGen-Issue_on_XP.swf


                  StreetGen-XP_IE8.png

                  Just Curious...

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    StreetGen.png

                    There's your problem. It's not installed correctly.
                    CityGen and StreetGen is a very experimental project - it has some special extra installation requirements.

                    See the installation notes of this thread in the first post.

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • utilerU Offline
                      utiler
                      last edited by

                      Thanks Thomas!! Neat little tool.... πŸ‘

                      One thing: When you 'Define Types', the New / Edit / Delete functions do not seem to provide any options. [see attached]

                      Questions:

                      1. How does color get assigned to street types?
                      2. The resulting road system creates an interpolating line which is hidden. Is there a way to be able to create the face as a whole so if you need to pushpull you only need to select on face...?

                      An idea:

                      1. Is there a way to include merging lanes such as acceleration and deceleration lanes? Maybe byway of color....? Break a line where the lane widens to two and color differently.....

                      Anyhow, thanks for helping out getting it loaded. πŸŽ‰ I've been asked to collaborate on an Urban Renewal Proposal so I hope to give this a try for it!

                      Cheers,


                      StreetGen-Dialogue.swf

                      Just Curious...

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        grakeskull
                        last edited by

                        HI HOW ARE YOU, THIS PLUGON IS GREAT I JUST HAVE A QUESTION. IS THERE ANY WAY THAT I BE ABLE TO GENERATE BUILDING TOO? THANKS...

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @Andrew: Sorry - I've yet not been able to look into this. I've gotten a leak in my ceiling I'm currently trying to deal with (along side my full time job) 😞

                          @grakeskull said:

                          HI HOW ARE YOU, THIS PLUGON IS GREAT I JUST HAVE A QUESTION. IS THERE ANY WAY THAT I BE ABLE TO GENERATE BUILDING TOO? THANKS...

                          Chris and Jim was working on a building module - though I don't think anything is released.

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • utilerU Offline
                            utiler
                            last edited by

                            No worries Thomas. Sounds like you need a Plugon....... πŸ˜‰

                            Just Curious...

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

                              Hi, I tried installing this plugin like what the instruction said in the readme file

                              Plugins\city_gen.rb <- Core CityGen file
                              Plugins\Gity_Gen\street_gen.rb <- Core Street Generator module file - loaded by city_gen.rb
                              Plugins\City_Gen\Street_Gen\ <- Street Generator's support folder

                              But, I still get the File cannot load error "Even the file is in the correct folder".. Is there a way to fix it?

                              @thomthom said:

                              This plugin is a work in progress. It's made public because it is a collaboration project.
                              This is in it's very early beginning, so lots of things will change, and lots of bugs are to be expected. Feel free to share your ideas or join in on this project. See this thread for the discussion of the overall project. This thread is an overview of the related modules and the development thread for the core files.

                              CityGen - Core
                              Core and Installation Check
                              This is the main file that centralise information and load the other modules.
                              Modules are located in Plugins\CityGen\modules\.

                              Please remove any old CityGen installations prior to installing.

                              Menu entry is located under the Tools menu. Should this be under Plugins you think?

                              Modules

                              • Street Generator

                              For Module Developers
                              Core and Installation Check
                              You can add this code to your module to check if the core is installed and that the module is installed in the correct location.

                              
                              > ### CORE & INSTALLATION CHECK ### ------------------------------------------------------------------
                              > # Core check
                              > if not file_loaded?('city_gen.rb')
                              > 	if Sketchup.find_support_file('city_gen.rb', 'Plugins') == nil
                              > 		UI.messagebox('The CityGen\'s core files is missing. Install the required core files.')
                              > 	else
                              > 		UI.messagebox('The CityGen\'s core files is not loaded. Ensure you installed this plugin correctly.')
                              > 	end
                              > 	raise 'CityGen Core error.'
                              > end 
                              > # Correct installation check
                              > if Sketchup.find_support_file('City_Gen/' + File.basename(__FILE__), 'Plugins') == nil
                              > 	UI.messagebox("This module (#{File.basename(__FILE__)}) has not been installed properly. It should be installed under Plugins\\City_Gen\\")
                              > 	raise 'CityGen Module path error.'
                              > end
                              > 
                              > module City_Gen
                              > 	module Some_Module
                              > 		# stuff
                              > 	end
                              > end
                              > 
                              
                              
                              > # CHANGELOG
                              > # 0.1.0a - 31.05.2009 (Thom)
                              > #		 * Initial build.
                              > #
                              > # 0.1.1a - 31.05.2009 (Thom)
                              > #		 * Change in the module error checking routine.
                              > #
                              > # 0.1.2a - 31.05.2009 (Thom)
                              > #		 * Added version constant.
                              > #
                              > # 0.1.3a - 31.05.2009 (Thom)
                              > #		 * Updated to the new file structure for use with Tortoise.
                              > 
                              
                              1 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by

                                You're missing the full path. Observe: Plugins\CityGen*modules*\

                                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

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

                                  Guys,

                                  I hope someone can help.

                                  I have loaded City-Gen (correctly, I think!).

                                  When I attempt to use the plug-in (for example when I click on Tools > City Generator > Streets > Define Types, I get a pop-up box stating that*"This program cannot display the webpage"*.

                                  I am not sure the plug-in would be attempting to connect to the internet.

                                  Any advice, please, on how I might be able to fix this?

                                  Cheers....Scotty

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    Under what OS? OSX? I see your profile says you use OSX and Windows.

                                    There might be an issue under OSX - due to an Safari update that happened after this plugin as made.

                                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

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

                                      Thomas,

                                      thanks for taking the time to respond.

                                      The problem I have exists when I am using Windows 7 OSX. I haven't tried it on Mac as yet.

                                      Not sure if this helps, but my file set-up is

                                      plugins > city_gen_loader.rb
                                      plugins > citygen > city_gen.rb
                                      plugins > citygen > modules > street_gen.rb
                                      plugins > citygen > modules > webdialog > ......

                                      Many thanks again for the help.

                                      Cheers....Scotty

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        hmmm

                                        If you open the Ruby Console before you try to use the tool? do you get errors?

                                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

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

                                          Thomas,

                                          there don't appear to be any error messages in the Ruby Console related to Citygen. Sorry!!

                                          Cheers....Scotty

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            hmmm... this is strange...

                                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                            List of my plugins and link to the CookieWare fund

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

                                            Advertisement