SketchUcation Premium Membership

 

 

[Plugin] [CityGen] - Core [WIP] (0.1.3a) — 19 September 2009

Moderator: Jim

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Tue Mar 29, 2011 12:48 pm

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
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby utiler » Tue Mar 29, 2011 11:08 pm

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:
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1936
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Wed Mar 30, 2011 8:36 am

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.
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby utiler » Thu Mar 31, 2011 5:19 am

Thanks Thomas!! Neat little tool.... :thumb:

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. :bounce: I've been asked to collaborate on an Urban Renewal Proposal so I hope to give this a try for it!

Cheers,
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1936
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby grakeskull » Fri Apr 01, 2011 8:24 am

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...
grakeskull
 
Posts: 1
Joined: Fri Feb 05, 2010 6:46 pm
Name: CARLOS

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Fri Apr 01, 2011 8:32 am

@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 wrote: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
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby utiler » Fri Apr 01, 2011 2:27 pm

No worries Thomas. Sounds like you need a Plugon....... ;)
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1936
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby mpowell1234567890 » Mon Jul 18, 2011 5:02 am

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


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.
Code: Select all
### 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



Code: Select all
# 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.
mpowell1234567890
 
Posts: 108
Joined: Sat May 17, 2008 5:30 am

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Fri Jul 22, 2011 11:53 am

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
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby stuartmitch » Thu Mar 01, 2012 12:30 am

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
stuartmitch
 
Posts: 41
Joined: Fri Sep 17, 2010 7:40 am
Location: Melbourne, Australia
Name: Scotty

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Thu Mar 01, 2012 9:45 am

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
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby stuartmitch » Fri Mar 02, 2012 12:00 pm

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
stuartmitch
 
Posts: 41
Joined: Fri Sep 17, 2010 7:40 am
Location: Melbourne, Australia
Name: Scotty

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Fri Mar 02, 2012 12:49 pm

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
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby stuartmitch » Sat Mar 03, 2012 4:10 am

Thomas,

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

Cheers....Scotty
stuartmitch
 
Posts: 41
Joined: Fri Sep 17, 2010 7:40 am
Location: Melbourne, Australia
Name: Scotty

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Mon Mar 05, 2012 9:21 am

hmmm... this is strange...
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby caronte01 » Sat Apr 21, 2012 4:50 pm

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
caronte01
 
Posts: 111
Joined: Sun Mar 16, 2008 2:49 pm
Location: Bogota, Colombia
Name: Santiago Molina
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby stuartmitch » Sun Jul 08, 2012 10:18 am

thomthom wrote:
utiler wrote:Win 7, SU 8.0.4811 and Firefox 3.6.15....
:thumb:

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
 
Posts: 41
Joined: Fri Sep 17, 2010 7:40 am
Location: Melbourne, Australia
Name: Scotty

Re: [Plugin] CityGen - Core [WIP] (0.1.3a) — 19 September 20

Postby thomthom » Mon Jul 09, 2012 12:06 am

stuartmitch wrote: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!!

:lol:

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

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17909
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Previous

Return to City Generator

Who is online

Users browsing this forum: No registered users and 1 guest