• 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

custom query data?

Started by justinrpg, May 31, 2011, 05:20:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

justinrpg

Is it possible to have a custom query data for B.A.T.s and/or lots? what I mean is for example, if you query the Zoo it will have 'escaped animals' as info... for airport you will see 'lost luggage' and the private school you will see 'noogies given'

is there any way to make my own custom query data (or info) for B.A.T.s or lots that i create? I have a few parks and other stuff I made that I want to personalize with my own query info...

RebaLynnTS

Yes, it can be done. I'll try to give you more info later.
Becca

Look for me at ... Becca At Bat

justinrpg

how long is later? I'm on pins and needles

joelyboy911

It is very possible indeed.

Here's what RippleJet told me, when I wanted advice on a project of my own.

Quote from: RippleJet on March 16, 2010, 01:47:44 PM

That requires the property Goofy Stat Response Curve.
E.g, if you want "Engines Repaired" to be, say somewhere between 0 and 10,
you could give the Goofy Response Curve the following four values:

-100, 0, 0, 2, 50, 5, 100, 10

Mathematically that would first generate a random number between -100 and 100,
which would then be mapped to a number between 0 and 10 with the following chances:


  • 50% chance for a number between 0 and 2
  • 25% chance for a number between 2 and 5
  • 25% chance for a number between 5 and 10

That mapped number can then be referred to in a query with the id=0x0000106b

So essentially you mod your query, quite easy to add the text, then add the ID above (or use a query that already has a goofy stat indicator, and add the goofy stat response curve property to your building exemplar.

Hope this has helped.
SimCity Aviation Group
I miss you, Adrian

justinrpg

can you show me with images and also what program(s) do you need?

for example how would i have something like...
Cats found: highest value
kittens found : i would want a number lower than cats found but higher than birds found (see next)
Birds found: lowest number of the three

here is an example of what could possibly come out
Cats Found: 10
Kittens Found: 5
Birds Found: 1


as you see here, I would like the best chance for 'cats found' to have a high number, an average 'kittens found' chance and 'birds found' doesn't have a very good chance to gain query data stats...

this is just an example, i may not use these exact query data, but it gives an idea of what i'm trying to do...


in order to do this, what program(s) do i need, and i would need the logic of the mathematics so i can accurately do this, a few lots i want to do this with alrady exist is some cities, will it take effect on those once edited?


images would be nice since i don't get what you are explaining

catty

I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

justinrpg

I am stuck...
Number 1:
it says to open simcity_1.dat and look for UI file???
but that isn't coming up in that file...
it is full of S3D files, Exemplar Files, Cohort Files, and INI files...

but there isn't one UI files


Number 2:
this tutorial looks like it is just for custom text and background... not custom query data that I am trying to do there no mention of the 'Goofy Stat Response Curve' as mentioned by joelyboy911


for number 1, what am i doing wrong or is something else wrong? why isn't this UI file as the tutorial explains there...


for number 2: is there a different tutorial for what I am actually trying to achieve?

justinrpg

what is a custom XA file and how do I add one?

jmyers2043

This topic should probably go in the modding help thread as it hasn't anything to do with batting.

@ Justin ... you're opening up a can of worms. The modification of queries that you're trying to do is not for the faint of heart. The skill set you're going to need is akin to intermidiate level or higher. Definitely not for beginners - else - you'll be asking for help every step of the way.

The best advice I'll give is for you to grab a lot with a query that has different types of goofy remarks and study it like crazy. Knowledge of iLives 'reader' and iLives 'LE prop' are a must.



- Jim

Jim Myers  (5th member of SC4 Devotion)

JBSimio

Quote from: jmyers2043 on June 01, 2011, 08:36:47 PM
Knowledge of iLives 'reader' and iLives 'LE prop' are a must.

iLive's UI Editor would be a great help here too.  My first forray into custom content was through custom queries.  I can certainly help if need be.  If you can't figure it out then let me know  ;)


Never trust a god who grins all the time and wears a top hat, that's my motto.  -Terry Pratchett

It's from JBSimio.  Need we say more?  -BadgerBoy of SC4 Devotion

RebaLynnTS

Check out one of my Modular Motel's they have custom queries that work like you want to do.
Becca

Look for me at ... Becca At Bat

justinrpg

Quote from: jmyers2043 on June 01, 2011, 08:36:47 PM
This topic should probably go in the modding help thread as it hasn't anything to do with batting.

@ Justin ... you're opening up a can of worms. The modification of queries that you're trying to do is not for the faint of heart. The skill set you're going to need is akin to intermidiate level or higher. Definitely not for beginners - else - you'll be asking for help every step of the way.

The best advice I'll give is for you to grab a lot with a query that has different types of goofy remarks and study it like crazy. Knowledge of iLives 'reader' and iLives 'LE prop' are a must.



- Jim




If Ilives reader and modding isn't for beginners, how in the world is it possible to get intermediate? the first time ANYONE uses that, I can probably say they were a beginner... if Ilives is a intermediate/advance tool, no one would be able to use it (except probable the people who created it) my logic would be that it would impossible for anybody new to become intermediate/advanced... I have fixed a lot of people's computers, Installed operating systems for people, and cleaned several people's computers of malware. so, I am very computer savvy, and I cannot figure this out... so it isn't being computer savvy and using Ilives together that gets people to the Intermediate/advanced level.

jmyers2043

Hey Justin

Quote from: justinrpg on June 02, 2011, 08:02:05 AM
so, I am very computer savvy,

good for you.

Quote from: jmyers2043 on June 01, 2011, 08:36:47 PM
The best advice I'll give is for you to grab a lot with a query that has different types of goofy remarks and study it like crazy.

As I said yesterday

Quote from: RebaLynnTS on June 02, 2011, 06:55:38 AM
Check out one of my Modular Motel's they have custom queries that work like you want to do.

There you go. Grab Reba's lot and study it. I'm sure the parts to the puzzle will fall into place.


Good Luck

- Jim

Jim Myers  (5th member of SC4 Devotion)

justinrpg

Quote from: RebaLynnTS on June 02, 2011, 06:55:38 AM
Check out one of my Modular Motel's they have custom queries that work like you want to do.
um, can you link me?


justinrpg

Quote from: RebaLynnTS on June 02, 2011, 06:36:50 PM
Sure.

http://www.simpeg.com/forum/index.php?action=downloads;sa=view;down=572
I opened the .dat with the reader and there is nothing in there about that kind of queries!!!! is it because it is dat packed and I don't have access to the .sc4lot... or is this protected is some sort of way?

Lowkee33

You will need the resource file, not the lots.

The UI, PNG, and Unknown entries are the query.  Not too sure about queries myself, but this looks like a good example for what you want to do.