Sim City 4 Devotion Forums

Sim City 4 Devotion Tools => Tools - General Discussion => Topic started by: A_1P on January 03, 2021, 07:37:56 AM

Title: Custom Query Boxes
Post by: A_1P on January 03, 2021, 07:37:56 AM
Hi Everyone,

I am trying to fit my lots with custom query boxes and can't quite make it work. In the game there is still the query box of the original lot showing up.
I also posted this on simtropolis with a few other questions here (, but I hope to get a broader audience (I know lots of you are active on both sides tho).

Maybe someone with experience in creating custom query boxes can enlighten me.

Here is what I did:

1. Exported an existing UI from the game using UIEditor
2. Adjusted the Group and Instance ID using Reader0.93 and edited the query box a little (see below)
3. Adjusted the Query Exemplar GUID of the Lot with Reader0.93 to match the ID set in step 2.

Title: Re: Custom Query Boxes
Post by: fantozzi on January 03, 2021, 08:46:57 AM
If the UI file can't be found nothing happens when you click on the lot. If the UI file isn't integer the game crashes when clicking. I 

If you click and the old/standard querry window apears most probably there is a conflict with the querry ID - f.e. you have two lot versions in your plugin folder and the first (older) is loaded. SC4 loads the content of subfolders of the plugin folder first. Or the ID is already in use.
Title: Re: Custom Query Boxes
Post by: A_1P on January 03, 2021, 09:04:26 AM
Hi fantozzi,

thanks for the reply. I guess your first instinct is correct. There seems to be an issue finding the UI file.

I tried linking the lot to a random standard UI file in the simcity_1.dat and that worked.

My UI-file is the only file in a *.dat-file that is located in my plugin folder and that does not seem to work? Also when I try to import from this dat-file with the UI reader, it lists the UI but then when I try to import nothing happens.

In the Reader it says it contains a UI file and the preview works.
Title: Re: Custom Query Boxes
Post by: Tyberius06 on January 03, 2021, 12:55:37 PM
Hi there,

Download this file and follow the steps...

Daeley's Query editing (revised)  (

I used the newer Readers, and some of the steps are easier or more flexible with those, than the good old v0.93. Also used GIMP for photoediting.
I created these for the revision of the Heretic Seaports/Heretic-PEG-CDK3 Costal Remake Project.


Advice: use unique instance IDs for your UIs and the additional Ltext and PNG properties.

- Tyberius