[Plugin] [CityGen] - Core [WIP] (0.1.3a) โ 19 September 2009
-
Sorry for the delay - I've been away in Dubai for a week.
So you got IE8 or IE9 ?

-
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:

-

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.
-
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:
- How does color get assigned to street types?
- 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:
- 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,
-
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...
-
@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.
-
No worries Thomas. Sounds like you need a Plugon.......

-
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 folderBut, 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 inPlugins\CityGen\modules\.Please remove any old CityGen installations prior to installing.
Menu entry is located under the
Toolsmenu. Should this be underPluginsyou think?Modules
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. > -
You're missing the full path. Observe: Plugins\CityGen*modules*\
-
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
-
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,
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
-
hmmm
If you open the Ruby Console before you try to use the tool? do you get errors?
-
Thomas,
there don't appear to be any error messages in the Ruby Console related to Citygen. Sorry!!
Cheers....Scotty
-
hmmm... this is strange...
-
HI Thomas, Thanks for the plugin. It's very useful.
One thing is that it does not work well with the "000_AdditionalPluginFolders" plugin. I use sketchup on two different computers, and use this to sync my plugins between machines. I finally placed yours on the native plugins folder and it worked.
Anyway, thanks, your work has saved me a lot of time.
Santiago
-
@thomthom said:
@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.
Given that IE is a Windows product, are there any issues with using CityGen on a mac? When I have tried to use it on a mac, the pop-up boxes for "Street Generator - Parameters" and "Street Generator - Street Types" appear but are entirely blank.
By the way, my files are loaded as follows:
Library>Application Support>Google SketchUp 8>SketchUp>Plugins>**city_gen.rb** Library>Application Support>Google SketchUp 8>SketchUp>Plugins>**Citygen**> Library>Application Support>Google SketchUp 8>SketchUp>Plugins>Citygen>modules>**street_gen**> Library>Application Support>Google SketchUp 8>SketchUp>Plugins>Citygen>modules>**street_gen.rb**This seems to be a great plugin judging from what everyone has said on these posts. At the moment, I feel like the only boy in class who hasn't kissed a girl and all my classmates are telling me how good it is!! Seems all I have to look forward to is blindness and strong forearms!!
Cheers....Scotty
-
@stuartmitch said:
At the moment, I feel like the only boy in class who hasn't kissed a girl and all my classmates are telling me how good it is!!

Now that's a first for a description of a plugin!

I don't remember how the code looks like, but there is a chance the blank dialogbox is due to an Safari update that cause problems with some plugins. I'd have to look up the code first.
-
Does an RBZ is existing for 2015 & 2016 ?
Because seems actually don't works with them!

Ps With Street generator inside if possible!

Advertisement