SC4D Homepage
BSC File Exchange
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Author Topic: Error on creation of Opera House desc  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Offline M4346

Error on creation of Opera House desc
« on: January 30, 2017, 07:34:28 AM »
Afternoon one and all!

I get the following error when I try to create a .desc file for an Opera House:

Quote
[(u'Students', u'(max(SCCSOpera,50*int(1+Volume/40000.)))'), (u'CivicJobs', u'(int(ceil(Students/30.)))'), (u'Jobs1', u'(5+int(CivicJobs*1./8.))'), (u'Jobs2', u'(2+int(CivicJobs*5./8.))'), (u'Jobs3', u'(0+int(CivicJobs*2./8.))'), (u'Radius', u'(40*int(135+0.75*Students**0.4))'), (u'MCost', u'(10*int(13+0.035*Students**0.9))'), (u'PCost', u'(1000*int(20+0.020*Students**1.1))'), (u'BCost', u'(20*int(15+0.025*Students**1.1))'), (u'BaseCapacity', u'(round(3+Volume/(3*15)))'), (u'BiasedBC', u'(int(round(min(500.,BaseCapacity)*max(1.,sqrt(BaseCapacity/500.)))))'), (u'AirPollutionFactor', u'(0.006)'), (u'WaterPollutionFactor', u'(0.004)'), (u'GarbagePollutionFactor', u'(0.003)'), (u'PowerConsumedFactor', u'(0.01)'), (u'WaterConsumedFactor', u'(0.04)'), (u'CalculatedElevation', u'(max(Height,Volume/(Width*Depth)))'), (u'BiasedVol', u'(Volume*min(1,0.51+(Volume/26000.0)**2))')]
ItemOrderForOpera
Traceback (most recent call last):
  File "treeDnD.pyo", line 93, in OnData
  File "SC4PIMApp.pyo", line 2918, in OnDrop
  File "SC4PIMApp.pyo", line 2988, in CreateAnExamplar
  File "<string>", line 0, in ?
NameError: name 'ItemOrderForOpera' is not defined

I think the main error is the issue highlighted in the last line.

Is there any way I can fix this? Or has this been addressed?

Thanks!

M
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dedgren ♦ dmscopio ♦ Ennedi
emilin ♦ Heblem ♦ jplumbley ♦ moganite ♦ M4346 ♦ papab2000
Shadow Assassin ♦ Tarkus ♦ wouanagaine

Sim City 4 Devotion Forums

Error on creation of Opera House desc
« on: January 30, 2017, 07:34:28 AM »

Re: Error on creation of Opera House desc

Offline CasperVg

Re: Error on creation of Opera House desc
« Reply #1 on: January 30, 2017, 08:54:48 AM »
Do you have a config.ini file in the SC4PIM directory? If yes, does it contain the following lines of text? If you have a config.ini with this content and it still crashes, then it might be a bug.

Code: [Select]
ItemOrderForOpera      = 300
QueryForOpera       = 0x12121201
Follow my SimCity 4 Let's play on YouTube

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #1 on: January 30, 2017, 08:54:48 AM »

Re: Error on creation of Opera House desc

Offline vortext

Re: Error on creation of Opera House desc
« Reply #2 on: January 30, 2017, 09:01:25 AM »
Yep, had the same issue and can confirm Casper's suggestion fixed it on my end. Though in my case the file is called settings.ini.

time flies like a bird
fruit flies like a banana

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #2 on: January 30, 2017, 09:01:25 AM »

Re: Error on creation of Opera House desc

Offline M4346

Re: Error on creation of Opera House desc
« Reply #3 on: January 30, 2017, 09:08:58 AM »
Thanks! I don't have a config.ini file, I have a settings.ini file (not sure why, I reinstalled the SC4PIM to see if that fixes it, it doesn't) so I have added that info to the settings.ini file and it seems to have fixed it!
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dedgren ♦ dmscopio ♦ Ennedi
emilin ♦ Heblem ♦ jplumbley ♦ moganite ♦ M4346 ♦ papab2000
Shadow Assassin ♦ Tarkus ♦ wouanagaine

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #3 on: January 30, 2017, 09:08:58 AM »

Re: Error on creation of Opera House desc

Offline CasperVg

Re: Error on creation of Opera House desc
« Reply #4 on: January 30, 2017, 01:21:52 PM »
The config and settings.ini files are actually quite interesting. They are interpreted as code by SC4PIM. So if you add the following lines to one of them, an extra window with the title "Hello" will be fired up each time you start SC4PIM. The more you know :P

Code: [Select]
import wx
app = wx.App(False)
frm = wx.Frame(None, wx.ID_ANY, "Hello")
frm.Show(True)
Follow my SimCity 4 Let's play on YouTube

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #4 on: January 30, 2017, 01:21:52 PM »

Re: Error on creation of Opera House desc

Offline Andreas

  • *
  • *
  • *
  • *
  • *
  • *
  • Posts: 4709
  • Country: de
  • Total likes: 908
  • Reputation: 33
  • Gender: Male
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: Error on creation of Opera House desc
« Reply #5 on: January 30, 2017, 02:16:43 PM »
IIRC, the "settings.ini" is the default ini file, and the "config.ini" (which is using the very same format) can be used for custom additions and overrides. If you're using a set of custom queries for your lots, you could add some lines like

Code: [Select]
QueryForResidential = 0x00000001
QueryForCommercial = 0x00000002
QueryForIndustrial = 0x00000003

which are used instead of the default Maxis values.
« Last Edit: January 30, 2017, 02:20:36 PM by Andreas »
Andreas

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #5 on: January 30, 2017, 02:16:43 PM »

Re: Error on creation of Opera House desc

Offline mgb204

Re: Error on creation of Opera House desc
« Reply #6 on: January 30, 2017, 04:02:27 PM »
Useful advice right here  :D.

Now I no longer have to manually adjust the item order to be at the top of the parks menu when making test lots, thanks Casper/Andreas.

Sim City 4 Devotion Forums

Re: Error on creation of Opera House desc
« Reply #6 on: January 30, 2017, 04:02:27 PM »

 


If you experience visual glitches in our site, we strongly suggest you to use Firefox to browse the forums. Also a 1024*768 or higher resolution is highly recommended to view this site

SMF 2.0.15 | SMF © 2017, Simple Machines
TinyPortal © 2005-2011
SMFAds for Free Forums

Page created in 0.308 seconds with 69 queries.