Jump to content
Kel9509

Custom Queries for Custom Buildings

318 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 
9 minutes ago, Kel9509 said:

Sometimes it takes a while to make it JUUUUUUUUUST RIGHT.

huhu (my apologies to Ms Kel) ... no no no  .. I don't expect it today ..*:D nor tomorrow, but in ... a few days, or more ... I will propose on my thread both 2.2A and B for users (following a request on Reddit).

  • Like 1

What is good when you have nothing to say is that you can always pretend to listen. Anyway it does not prevent to think!

>> My little plugins contribution << -- >> Depot | Fabrik | Testing <<

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Now that looks much more readable than before, thanks for all the effort! *:party: If I may do some very minor nitpicking, I'd say add a horizontal line above the stats, and make the other lines just a few pixels longer, so they line up with the left and right border of the text (see below).

SC4_new_query_window.jpg

  • Like 3

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    4 hours ago, CorinaMarie said:

    You're going to need more room. 

    You're right.  I suppose I do need a bit more.  Right now the columns are equal in size.  I wonder if I should only expand the right one?  I'd hate for it to look lopsided though.  Hmm..

    4 hours ago, Andreas Roth said:

    If I may do some very minor nitpicking, I'd say add a horizontal line above the stats, and make the other lines just a few pixels longer, so they line up with the left and right border of the text (see below).

    Good idea also.  

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    5 minutes ago, Kel9509 said:

    I wonder if I should only expand the right one?

    I'm guessing go ahead and move the middle vertical divider to the left and squish up the left side. Then if that's still not enough room on the right, make the entire UI another 100 or 200 pixels wider.

    I don't believe it needs to be symmetrical. The side with small data can be small and look good and then the other side needs to be larger.

    • Like 2

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I didn't move any values in the left column, but I did move the middle divider left to be closer to them.  That gave some room, and then I squished up the right descriptive values so they were equidistant from the column, moving the descriptions left.  I also added that mod you mentioned in order to get the higher demand #s.

    I'm wondering if this is enough room for a CAM game.  The values for R$$ Active Demand/Regional, for instance, are approximately 120 in length.  Prior to this revision it was 107.  It's not much different but it might matter.  I don't know if I want to be 10000% certain it'll fit by adding 50px or even 100px in length to the query.  But I don't play a CAM game and have no idea how high those values typically are.

    Here's how it looks now:

    67a9821cdea8f_SC4Fixr72_9_202511_23_22PM.jpg.ad6f3674ac885c39e3a7e999e4f0941d.jpg

    • Like 3

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Excellent work incorporating those changes. I think it looks even more neatly presented now, and I like how the values are on the right side helps for readability. The values this way are aligned by digits, which is always a good idea for representing numerical data. *:)

    I'm unsure about CAM either. Maybe something @Ulisse Wolf could comment on, as I know he's a CAM user (and developer).

    • Like 2

    Quick Links

    “SimCity 4 is not just a game, but a tool driven by our own imagination and creativity.”

    Buy me a coffee

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    13 hours ago, Cyclone Boom said:

    I'm unsure about CAM either. Maybe something @Ulisse Wolf could comment on, as I know he's a CAM user (and developer).

    Testing needs to be done. Unfortunately, I don't have the data of CAM 2.1.1 (Missing tables) to give an accurate value.


    Federal Republic of SiculiaFederal Republic of Sonora

       Ain Member  Wiki

    NAM Team - Co-developer of Pedestian Revolution Mod - Railway Department (Hybrid Railway | HRW Expert) - MTA Member - BAT Creator

    Ulisse Wolf YouTube Channel - Ulisse Wolf Mastodon Profile

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    1 hour ago, Ulisse Wolf said:

    Testing needs to be done. Unfortunately, I don't have the data of CAM 2.1.1 (Missing tables) to give an accurate value.

    I don't need the range of demand values CAM provides (although knowing that would be nice).  I just need to know some typical values of these stats from a large city, in order to see if I have enough space to display them for anyone who uses CAM. A screenshot from the existing query from anyone with a decent sized city & region would help.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    maybe we should bring @Haljackey into this, cause I'm pretty sure he's running CAM with his crazy region, lol


    I'm the guy who leaves 5 page essays as comments >.<

    "I thought of the tornado as a huge, eager, but destructive dog." ---Ocean Quigley

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    56 minutes ago, Ryuu Tenno said:

    maybe we should bring @Haljackey into this, cause I'm pretty sure he's running CAM with his crazy region, lol

    Haljackey does not use CAM

    57 minutes ago, Kel9509 said:

    I don't need the range of demand values CAM provides (although knowing that would be nice).  I just need to know some typical values of these stats from a large city, in order to see if I have enough space to display them for anyone who uses CAM. A screenshot from the existing query from anyone with a decent sized city & region would help.

    With CAM, a maximum population of 6 million can be reached, and that is purely theoretical. The most populated city I have reaches 5 million

    • Like 1

    Federal Republic of SiculiaFederal Republic of Sonora

       Ain Member  Wiki

    NAM Team - Co-developer of Pedestian Revolution Mod - Railway Department (Hybrid Railway | HRW Expert) - MTA Member - BAT Creator

    Ulisse Wolf YouTube Channel - Ulisse Wolf Mastodon Profile

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    On 2/10/2025 at 11:36 AM, Kel9509 said:

    I'm wondering if this is enough room for a CAM game.

    14 hours ago, Ryuu Tenno said:

    maybe we should bring @Haljackey into this, cause I'm pretty sure he's running CAM with his crazy region, lol

    Or me,

    67ab1cb8a6c10_Screenshot(730).png.6660892c5eb08734683019af861b7579.png

    Oops, I used the A version. I need to scroll down a bit.

    67ab1cbf05fc1_Screenshot(731).png.e6a09d87b70d10ec22c6c9ae8cd488ad.png

    • Like 2
    • Thanks 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    While waiting for @Null 45 to post the latest version of the Query Extensions DLL mod, I've decided to slightly augment the width of the Query to incorporate the larger numerical values shown in @Jidan's screenshots.  Now the query can handle the largest of CAM regions:

    67ad6017eedff_GDriverWindow--DirectX2_12_20259_54_23PM.jpg.bd6684c769d7eb8d7a0d07fa8e5b3400.jpg

    In the Commercial and Industrial queries, I'm going to use tooltips to explain the Active Jobs and Travel Jobs.  So I decided to add tooltips to everything else, including the native Maxis items (previously I had only tooltips on the capacity and demand items).  I did this with the idea that a casual player might find the information helpful.  But you tell me if I went a bit overboard here (not all are like this one):

    67ad607c14487_GDriverWindow--DirectX2_12_20258_43_13PM.jpg.920d27b696dd7964400bb9a2955c8d71.jpg

    • Like 3

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I definitely like the more room for the right side data. *:ohyes:

    For the hover over (not mentioning the: "that that") I feel it's excessive for there, but doesn't really hurt anything since peeps aren't forced to read it. OTOH, having that data in a nicely gridded table would go very well for each educational building query. Like a chart at the bottom.


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    4 minutes ago, CorinaMarie said:

    For the hover over (not mentioning the: "that that") I feel it's excessive for there, but doesn't really hurt anything since peeps aren't forced to read it. OTOH, having that data in a nicely gridded table would go very well for each educational building query. Like a chart at the bottom.

    Don't worry, I'm still planning on that.  I'm going to do a Department of Education building, or Unemployment Office, or something, that has that chart in there in picture format (or retyped in a grid).  I can try the default query also if you think it'd be worth seeing every time.

    The other tooltips are just stuff from the Prima Strategy guide, pretty simple stuff.  

    • Like 2

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I kinda got lost when you start listing up all the values those EQ... values in the hover query, but I agree that this could be used for a specialized query UI somewhere else. I do like the general explanation, even though it's just some basic information from the Prima guide. Since those hover queries only show up when you enabled them in the settings, it's fine for novice or casual players, the diehard fans have switchend them off anyway, most likely. Anyway, it looks like you're having fun to make the most out of your query window, so please go ahead! *:golly:

    • Like 1
    • Yes 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I'm nearly done with the Commercial and Industrial queries.  Here's a preview:

    67b190c24f488_GDriverWindow--DirectX2_16_20252_00_37AM.jpg.d234827801daf0d568df441d96a3c2f1.jpg

    67b190c8e0eaf_GDriverWindow--DirectX2_16_20252_08_01AM.jpg.ff18b4c253bf106c1c2d250c2c3bde1f.jpg

    One question - should I remove the colon ":" from the right side descriptive items?  I guess I should but wanted to be sure.  I think it makes sense to keep it with "Building Style" but the others probably don't need it.

    • Like 4

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    1 hour ago, Kel9509 said:

    should I remove the colon ":" from the right side descriptive items?

    You indeed should. And actually, if you can style the Building Style caption, go ahead and remove the colons too.

    • Like 1
    • Yes 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Since all the values in the left column don't have a colon, I'd say remove it in the right column, too. I'd keep it with "Building Style", since the list might get a bit longer, so it makes more sense there. But it's a matter of taste after all. As Jidan mentioned, using a bold fold for "Building Style" would be nice, if possible. The wealth level at the top looks a bit lost, so it might benefit from a bold typesetting, too.

    • Yes 2

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I agree too. 

    Nix the right side colons and implement the two bold suggestions. *:ohyes:


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    7 hours ago, Kel9509 said:

    I'm nearly done with the Commercial and Industrial queries.  Here's a preview:

    The $ signs before numbers (under Actual Jobs and Travel Jobs), instantly pop out at me as hard to see, I think adding a space between them and the number would do wonders for readability.

    • Like 3

    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    13 minutes ago, rsc204 said:

    I think adding a space between them and the number would do wonders for readability.

    I believe this is out of Kel's control, but could be done in Null's DLL which provides that data.


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    1 hour ago, rsc204 said:

    I think adding a space between them and the number would do wonders for readability.

    I was also going to suggest that. It may also make more sense visually to use the § symbol instead of dollar signs.

    1 hour ago, CorinaMarie said:

    I believe this is out of Kel's control, but could be done in Null's DLL which provides that data.

    The DLL just provides the numbers as a string, I didn't add any prefix.

    • Like 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    The Current Jobs number in the top left of the first image has no comma separation for the numbers; 4144 as opposed to 4,144. All other numbers that are beyond 999 are comma separated. Mentioned for consistency's sake and so as to not trigger an OCD incident in myself and possibly others.

    • Like 1
    • Thanks 1

    Humor is the second most subjective thing on the planet

    Brevity is the soul of wit and vulgarity is wit's downfall

    Good Night and Good Luck - Read You Soon

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I can add a space between the symbol and the jobs, since as Null said the DLL just provides the raw numbers.  However, I don't know if I'll be able to add the "§ " symbol since in my prior testing with the Census Repository it didn't work.  Maybe it's the font?  I'll see if I can add it, if I use maybe a budget-type font.  I didn't like using dollar signs anyway since those are American and other countries don't use them.  

    9 hours ago, CorinaMarie said:

    Nix the right side colons and implement the two bold suggestions.

    For me to bold things I think I'll need to change the font.  I'll see what's there but currently using GenBodyMedium, which is size 13 and not bolded.  There is "Heading5" which is nearly the same, but it says it's bold.  I'll give it a try.  

    EDIT: I think I can add the § symbol.  I'll see about bolding the Building Styles list as well. 

    EDIT2: Well, that didn't work.  Everything I do to add the § symbol doesn't work.  Fonts don't matter at all.  Hmm....

    EDIT3: Ok, I got it.  Had to use an actual LTEXT with Unicode instead of just a regular ASCII file.  Now to try and bold it...

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    2 hours ago, Nite Owl said:

    All other numbers that are beyond 999 are comma separated. Mentioned for consistency's sake and so as to not trigger an OCD incident in myself and possibly others.

    Unfortunately I don't think this can change, since the Current Jobs/Current Occupancy numbers are from the base game and they didn't add commas to them.  I'm not sure if the numbers from the DLL can remove the commas, but it's up to Null.  

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    1 hour ago, Kel9509 said:

    There is "Heading5" which is nearly the same, but it says it's bold.

    It is identical to "GenBodyMedium" for all the other parameters:

       "Arta", "13", "aa=bg|linespacing=2|xscale=0.95|xadvancescale=0.99"

    So yes, bold is the only difference for "Heading5".

     

    1 hour ago, Kel9509 said:

    I'll see about bolding the Building Styles list as well.

    I believe the consensus is the title "Building Styles:" is what gets bolded, not the list itself.

     

    1 hour ago, Kel9509 said:

    Everything I do to add the § symbol doesn't work.

    Are you doing something like:

       $#jobs_low_wealth#, $$#jobs_medium_wealth#, $$$#jobs_high_wealth#

    for that line?

     

    1 hour ago, Kel9509 said:

    Unfortunately I don't think this can change, since the Current Jobs/Current Occupancy numbers are from the base game and they didn't add commas to them.

    Those numbers are coming from:

       iid=IGZWinText id=0x00001051

    So yeah, we mere mortals won't be able to slip any commas in there.

     

    1 hour ago, Kel9509 said:

    I'm not sure if the numbers from the DLL can remove the commas, but it's up to Null.

    Uhm, I don't believe we want to bork all the rest by removing commas just to make them match the one we cannot change. :uhm:  Or am I missing what you are suggesting?


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Here's some  tests for the "§" symbol.  The font really matters here so I'm trying to get it right.  I added a space between the symbol and the amount, but frankly it isn't so evident all the time depending on the font.  I tried GenBodyMedium and the symbol looks really small and wimpy.  

    This picture below uses "BdgtLedgerLineHeavy" for the Actual Jobs numbers, and "BdgtLedgerHeader" for the Travel Jobs numbers.  

    67b27685c3644_GDriverWindow--DirectX2_16_20256_30_45PM.jpg.758032f07681c65062b4dbcb26968c7f.jpg

    And this picture below again uses "BdgtLedgerLineHeavy" for the Actual Jobs, but "BdgtSummaryMoYrly" for the Travel Jobs.

    67b27707740b6_GDriverWindow--DirectX2_16_20256_22_33PM.jpg.4e474325ffc182d086a14b39433646b0.jpg

    The symbol in the "Wealth" line is a BMP picture and doesn't even look like anything in the budget window fonts at all, so there's probably no way I can get something close to that.

    • Like 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    @CorinaMarie, the reason why the symbol didn't appear is because I needed to use an actual LTEXT file with Unicode-8 (UTF-8) format.  For whatever reason, my Notepad++ was set to UTF-16.  

    11 minutes ago, CorinaMarie said:

    Uhm, I don't believe we want to bork all the rest by removing commas just to make them match the one we cannot change. :uhm:  Or am I missing what you are suggesting?

    I agree, I don't think removing the commas in the numbers is necessary either.  Sorry @Nite Owl!

    15 minutes ago, CorinaMarie said:

    I believe the consensus is the title "Building Styles:" is what gets bolded, not the list itself.

    Got it.  I'll see what I can do.

    • Like 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    5 minutes ago, Kel9509 said:

    "BdgtLedgerLineHeavy" for the Actual Jobs,

    This is the same as "GenBodyMedium", but in size 14 instead of 13. I like that. So what about adding a space, then an equal sign, then another space between the § and the number?

         § = 28, §§ = 215, §§§ = 33


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections