Jump to content
Sign In to follow this  
Daeley

Daeleys Custom Query Stuff

150 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 
With everybody making these BAT showcases I felt a sudden urge to expose my talents to everyone 9.gif So here's the very first ever Query Showcase! ;)
In case you'd have missed them, here are my RCI Queries created for the BSC project:
 
/idealbb/files/customhttps://www.simtropolis.com/idealbb/files/custom%20res%20query%20v2.jpg border=0>
 
/idealbb/files/custom
 
/idealbb/files/customhttps://www.simtropolis.com/idealbb/files/custom%20ind%20Query%20v1.jpg border=0>
 
voila ;)
Basically if anybody has any requests, shoot away! It's not that hard to do all this stuff, it just takes some time :)
Should I create similar Query windows for parks / landmarks / utility buildings?

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    ask and you shall recieve ;)
     
    oh and I was thinking about that Casino Query you talked about earlier, the one that gives you a chance of money when you click it. How about these chances: (it's pretty easy to implement once I've got the figures)
    25% +1.000

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    so there is also a chance either or both could be 0? I like these ideas... It would also give a variance as you could get the sum of the two numbers, so more outcome options without more coding.  Could there be a news story or something that tells you how much you won or lost?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    this depends... with the coding I'm using now, that wouldn't be possible... however, if I could add the random chance generators to a news message instead of in the Query window, perhaps that might be possible... will take a bit of investigation though
     
    edit: I think that trough the creation of a helper function in the edited news LUA this might be possible :) it will depend on how the game calls on this though... if it only calls it once, the result will only change each time you restart the game

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    you deserve a lot of credit for your contributions. Your queries and tutorials are revolutionalizing the game...excellent stuff!
     
    I still don't like the colors though 3.gif LOL...and I still think the simoleons logo should be transparent, but I also still think they are a vast improvement over the standard in game queries.
     
    Another suggestion i have is a standard Architect field, maybe a landscape architect field, and then a contributors field, but I realize you might have intended the BSC Info line to do most of this...but...its just my preference...

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     
    This will be indeed very useful to the ST community!
     

    Share this post


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

    You know, I was always wanting the low end residential lots to be plain and bland looking, and the upscale lots to have elaborate looking Queries so I could kinda tell without reading it weather the home was low, medium or upscale or not. (those $$$ signs are confusing) so I wouldnt have to actually remember things when i wanted to see weather my apartments are ritzy or just plain crap.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    well, my original idea with the Queries in the first post was to create them in a way that the icon would rotate for all wealth levels, and then use them to replace the original Queries with a mod. Unfortunatly, all wealth levels use the same query, so this would've required me to go over every single building made and change their Query GUID number.
     
    Well Cerulean, since you've been nagging so hard for easier colors, I'll see what I can do for you ;)
     
    progress update on casino: Things are going smoother than I expected :) I have been succesfully able to create a new function wich generates chances each time the lot is clicked, and further more these chances are global variables wich can be called on from news messages or the lot Query itself.
    However, there is an old problem that continues to bug me... whenever I add one of these variables to a statement and the variable is not 1, the entire statement becomes invalid... Once I work my way around this, the casino effect is pretty much complete.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    excuse me for bumping my own thread, but I think this is worth a new post ;)
    I have been able to succesfully add a function that stores several chance variables which can be called upon from Queries (so they should also be available to news messages). Furthermore, by calling this function each time the lot is Queried, the chance variables are reset with each click.
    A small demonstration of a modded up lot:
     
    /idealbb/files/Casino
     
    some of the outcomes of clicking my test lot :)
    To realise this I've made some more changes to an LUA file (the one also used for the Ultimate Budget Tool) so unless anyone knows how to add LUA files to the game, I hereby declare (ca63e2a3, 4a5e8ef6, fff88ab4) as my personal playground 10.gif

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    Superb! Could you make it to take away money and give money randomly on each click? That way, us non-cheaters won't be so 'guilty'2.gif3.gif18.gif

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    well actually I set the chances pretty high to test it easier 70-35-15-5%
    Obviously I could add chance to lose money, or lose money on each click or whatever, but unfortunatly it's not possible to replace you have won with you have lost according to the sum of what has been gained.
    37.gif wait a minute... it is possible to do that... just have to write another function!
    *hurries away with new idea*
     
    UPDATE: I have created changing Query text!! Observe:
     
    /idealbb/files/Casino
     
    yeah baby! 10.gif Wasn't that hard to do actually... and this should have plenty more applications actually 1.gif

    Share this post


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

    Wow this is turning out great! I cant wait to downlaod it.
    Good job with the chance stuff.44.gif

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    So I followed Cerulean's advice and made the colors a bit lighter... and I must say it does look a bit less heavy that way...
    here's the residential query, tell me what you think:
     
    /idealbb/files/custom

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    yeah!!! I like that better!!
     
    another thing that I I have found is the simoleons logo might be problematic the way I have it setup (not the way you have it set up) in mine, I wonder when it is degraded...it will probably still say $$$...I still like it transparent though...

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    I expressed the title a bit more, and I made the simoleons transparent. I looked at your way Cerulean, and I'm afraid your simoleons won't be functional.
    I took the regular .png file, gave it a (255,0,255) background and the set the cackground color to the color of the query in the UI file
     
    /idealbb/files/custom

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    I've spent a few days working on obtaining unique LUA script ID's for Daeley's LUA script and have come up with a semi blank.
     
    I'll enlist anyone else here that wishes to continue this as Daeley is using and replacing an existing LUA script ID (which can cause problems in the future when Daeley upgrades or add new scripts).
     
    The LUA script command dofile(...) doesn't seem to allow us to create and execute new files (whether they are self contained or external).
     
    However there is hope as apparently the new Landmarks from Maxis have new self-contained LUA's which seems to get registered throught the commands of : (from Plugin_002_TheLivingMall.dat)
     
     
    --#-package:00005000# -- package signature
    --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    --~~  Advice and advisors package
    --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    dofile(plugin_002_adv_const.lua)
    dofile(plugin_002_adv_fluffnews.lua)
     
    which registers the following ID to be recognized as a valid LUA script:
    CA63E2A3     4A5E8EF6     FF2511A6 
     
    Within my test, the living mall dat file has been reduced to that one LUA file.
     
    As I no longer have time to persue this.....
     
    Ralphael

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    ahhh very helpful :) I never thought of looking at the plugin landmarks...
    maybe I can find it out myself... but if anyone want to help they're welcome :)

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    I have finished round-up on the improved commercial query
    here's what it looks like right now
     
    /idealbb/files/custom
     
    I think it's an improment from the previous one :)
    anyway, i'll put these on mail once I finish the industrial one (probably not today) unless anyone wants to have them earlier.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    I can't seem to find a way to create custom LUA ID's... I tried noting down a lot of the ID's used in the landmark files by Maxis but there just doesn't seem to be a pattern in it... so I'm probably gonna release my LUA edit as a standalone file and update it with each released lot, that seems like the safest thing to do
     
    anyway, I've been toying around with some more simple scripts and just made a counter script :) the results look like this:
     
    /idealbb/files/funny
     
    pretty neat huh? ;)
     
    update: I just had a neat idea how to implement changing colors and fonts... will show something like that later... not sure it's gonna work

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    You just keep coming up with neat ideas.  This could make a neat random number prompt (brain freeze--there's a name for it I know, now what is it? umm, it'll come to me after I hit submit...(Edit : Goofy Stat...).  On that line, have the count.  Maybe for our new Bank project : Number of transactions completed :
     
    Does this reset each time the game is re-opened?  I would think so, not an issue, just curious.
     
    Number of files corrupted on your hard drive from clicking this lot : ??, now I'm getting devious.....
     
     

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    I have tested it out, and it resets each time you leave a city (even if you save).
    This is probably a good things, this way lots in different cities don't interfere with each other.
    I don't really see it to much use on the BAT bank personally... after all, you're most likely only gonna click it a few times, right? Might be fun on a casino lot though 9.gif
     
    btw, SimGoober, did you get the new res and comm Queries?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    there really nice you get a bunny35.gif35.gif

    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

    Sign In to follow this  

    ×

    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