• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Change Library Radius In Query UI File

Started by bento, October 09, 2009, 10:50:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bento

Is it possible to change the radius of the library in the Query tool? What I am trying to do is have a library which you can set the number of books in the library (just like you normally can) as well as change the radius which the library affects. I have edited the UI file and have a fair understanding of what goes on in the file but so far I have found no information on editing the library radius and I am starting to wonder if this is even possible. So I thought I would ask the experts.

RippleJet

Quote from: bento on October 09, 2009, 10:50:41 PM
I am starting to wonder if this is even possible.

No, it isn't possible to separate the number of books and the radius.

Changing the monthly funding of e.g. a library with the slider,
changes both the number of books and the radius.

The only thing you can change in a query has to have an associated slider (IGZWinSlider).
This is the case with the monthly funding of civic buildings and power plants:


  • 0x1002 (Slider) - 0x1102 (Local Funding) - Fire
  • 0x1009 (Slider) - 0x1109 (Local Funding) - Police
  • 0x1018 (Slider) - 0x1118 (Local Funding) - Education
  • 0x1019 (Slider) - 0x1119 (Local Funding) - School Bus
  • 0x1021 (Slider) - 0x1121 (Local Funding) - Hospital
  • 0x1022 (Slider) - 0x1122 (Local Funding) - Ambulance
  • 0x1063 (Slider) - 0x1163 (Local Funding) - Power

There are no other known id's to change anything else though...

bento

So I was experimenting while I was waiting for a replay and discovered a way to make the library radius change using the 0x1019 School Bus Slider that you in the end mentioned RippleJet. But when I read your post you are saying that it can not be done. So I am wondering is there a problem in making the library use the School Bus Slider? Below are two images to illustrate what I have done:


By bento73


By bento73

Thanks for your help RippleJet, much appreciated.

RippleJet

#3
Quote from: bento on October 10, 2009, 02:50:43 AM
So I was experimenting while I was waiting for a replay and discovered a way to make the library radius change using the 0x1019 School Bus Slider that you in the end mentioned RippleJet. But when I read your post you are saying that it can not be done. So I am wondering is there a problem in making the library use the School Bus Slider?

That actually seems to be working! :thumbsup:
I assume you've tested that out by including two Budget Items for your library;

Budget Item: Department = Education Staff, Education Coverage
Budget Item: Purpose = School Staff, School Coverage

That way you could confirm that its funding (administration area) changes when the slider is moved.
Also see if it appears as School Buses in the budget panel.

After this you could test by setting the second budget item value to 0.
I assume the slider wouldn't work after this anymore...
If I remember correctly, It didn't work for me when I added sliders to the private schools.

bento

Quote from: RippleJet on October 10, 2009, 07:49:23 AM
That actually seems to be working! :thumbsup:
I assume you've tested that out by including two Budget Items for your library;

Budget Item: Department = Education Staff, Education Coverage
Budget Item: Purpose = School Staff, School Coverage

Yeah I have looked at the Budget Items and they work correctly.

Quote from: RippleJet on October 10, 2009, 07:49:23 AM
Also see if it appears as School Buses in the budget panel.

Quote from: RippleJet on October 10, 2009, 07:49:23 AM
After this you could test by setting the second budget item value to 0.
I assume the slider wouldn't work after this anymore...

Good ideas, I will try them now. Thanks for all your help in this.