SketchUcation Plugin Store

 

 

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

Moderator: Jim

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

Postby thomthom » Wed Feb 03, 2010 12:17 am

The Core:

citygen folder
city_gen_loader.rb
These goes into the plugins folder.


Street Gen

street_gen folder
street_gen.rb
These goes into plugins/citygen/modules/


I don't know why any of these would be causing crashes. I've not experienced it myself.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 2009

Postby thomthom » Wed Feb 03, 2010 12:18 am

Jim wrote:The plug-in is not really ready for use, but I made a Windows installer for the current version.

That's interesting. What did you use to create that?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 2009

Postby Jim » Wed Feb 03, 2010 12:21 am

Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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

Postby Foun10Head-X » Wed Feb 03, 2010 12:48 am

Thanks, thomthom et. al. I managed to get it running smoothly.

What I did was searching through Google and there was an Alpha installer of CityGen, but it froze my SU -- but (d'uh on my part :mrgreen: ), I "forgot" to put the city_gen loader.rb in the plugin, the CityGen in the Citygen folder and the streetGen in the modules your stated... To make a long story short - it was a real bumpy ride, no pun intended.

Thanks guys for all your help. I'll keep playing with this feature.
Foun10Head-X
 
Posts: 9
Joined: Sun Sep 27, 2009 7:15 am
Name: Jay

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

Postby Foun10Head-X » Wed Feb 03, 2010 1:15 am

Jim wrote:The plug-in is not really ready for use, but I made a Windows installer for the current version. See the Downloads tab:

http://code.google.com/p/citygen/

Note: both the plugin and the installer should be considered experimental. Let me know if it works.



Yes, I did do that, and what I did I installed it, but it was the old version, and I had to uninstall it. And used thomthom's zip files.

Thank you jim.

:thumb:
Foun10Head-X
 
Posts: 9
Joined: Sun Sep 27, 2009 7:15 am
Name: Jay

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

Postby foleypro » Sat Feb 26, 2011 5:21 am

Awesome work folks...
foleypro
 
Posts: 1
Joined: Fri Feb 25, 2011 6:40 pm
Name: Brian foley

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

Postby utiler » Fri Mar 18, 2011 7:32 am

Hi Guys, I've been trying to make time to spend playing with this plugin so I loaded it and intend to give it a whirl ovber the weekend...
a few things:
I loaded it OK but not really sure how you are assigning color to lines: is that by material or layer?
Also, when I run the plugin the dialogue activates and goes blank. [see attached screen shot]

Looking forward to giving it a run!!
:thumb:
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 Foun10Head-X » Fri Mar 18, 2011 10:27 am

utiler wrote: not really sure how you are assigning color to lines: is that by material or layer?[see attached screen shot]

Looking forward to giving it a run!!
:thumb:


Wondering the same thing too.
Foun10Head-X
 
Posts: 9
Joined: Sun Sep 27, 2009 7:15 am
Name: Jay

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

Postby utiler » Sun Mar 20, 2011 11:57 pm

Here is a screenshot, thomthom. Any ideas?

Many thanks,
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 » Mon Mar 21, 2011 9:12 am

What Windows, SketchUp and Internet Explorer versions do you have?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 utiler » Mon Mar 21, 2011 11:38 pm

Win 7, SU 8.0.4811 and Firefox 3.6.15....
:thumb:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 » Tue Mar 22, 2011 9:18 am

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 utiler » Tue Mar 22, 2011 12:41 pm

Buggered if I know, Thomas!! :roflmao: What should I have installed to make it work more to the point..... Then I'll go work out what I need to alter....
:thumb:
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.
:thumb:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 utiler » Wed Mar 23, 2011 1:10 am

OK, IE 9 loaded and still the problem is apparent....
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 utiler » Fri Mar 25, 2011 2:23 am

Thom, I have IE8 64bit loaded on my PC. Would this be conflicting with it?
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
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 » 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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 1928
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 1928
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 1928
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 38
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 38
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
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 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: 38
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: 17688
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to City Generator

Who is online

Users browsing this forum: No registered users and 1 guest