• Welcome to SC4 Devotion Forum Archives.

Assigning Your Favorite Lots to Keyboard Shortcuts

Started by ebina, November 27, 2009, 05:37:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ebina

You may have thought how convenient is it if custom lots can be selected by pressing keys like the Maxis lots. This is a tutorial for people who want to assign your favorite lots to keyboard shortcuts.


1. Run the Lot Editor and find lots you want to assign to keys, then write down the instance IDs of lots shown in the left side of the dialog.

After collecting the instance IDs, quit the LE.

2. Run the Reader, and open the simcity_1.dat.

3. Open the Filters dialog from Tools menu, or one on the tool bar. Click "Uncheck all" button, recheck only "KeyCfg", and click "Refresh" button. Close the Filters dialog. Now only KEYCFG files should be listed.


4. Right click on a KEYCFG file of Instance 6a9362ef, click "Save decoded file" and save it as txt file. You need to manually enter extension.

After saving a file you will get a file of TGI extension. It is better to keep TGI file as it makes reimporting easier.

5. Open the txt file in the text editor. There's a line which can be used as template so let's search for this line.

if the image cannot be loaded...
Control M               = 0xec3e82f8   0x8bd88057 "Build Passenger Ferry Terminal"

0x8bd88057 is only one string that matches IID in the simcity_1.dat. By adding lines like this you can assign any lots to keys.
KeyCombination = 0xec3e82f8 0xNNNNNNNN
(NNNNNNNN = IID of lot)

Make sure key combinations you will assign are not used by anything. You can disable existing key combinations which you rarely use. If a line starts with semicolon it will be handled as comment, will not function.

6. Save the txt file after editing.
Maybe editing KEYCFG file in the Reader directly would be possible as it is still short. If you will edit the file in the Reader, you need to click "Edit" button to start to edit. Do not forget to click "Apply" button after editing. Also if you edited in the Reader, you do not need to take the following steps 7 and 8.

7. In the Reader create a blank file by selecting File > New from menu.

8. Right click on the left pane and select "Insert & compress file". Select the txt file you modified.
A dialog will appear, answer "Yes" to it.

If you deleted TGI file this step will be different.

9. Save the dat, copy it to the Plugins folder and test in the game.

If your new key combinations do not function you may have entered invalid strings. If you have problems with your key combinations please post it here.


Important :
Attached file is experimental version, based on my personal key combinations. Please open a txt file included in the attachment before trying it in game.


Edit :
11/29/2009 - Corrected a spelling miss.

xxdita

Wow. I'm gonna hace to play around with this over the weekend. Great tutorial ebina.

RippleJet

It's amazing that Maxis left that single Ctrl-M definition that way, with the reference to the lot's IID... ::)
Excellent tutorial, ebina! :)

Bobbi

Many thanks to ebina and your great tutorial. ()flower()

On June 6th[link], I tried assigning the shortcut. But I didn't found there is a different key which is Ctrl+M that day, so I give it up.

And now, I know how to do. :D

2010.8.4 - I get on SC4D with PSP. So cool.:D
2010.8.14 - I can get on the Internet at home.:)

Travis

excellent tutorial indeed, I'll put this method to good use. ;) thanks for sharing it. :)

TheTeaCat

OOOh  very clever indeed &apls

Excellent explanation also.
I'll have to give this a try :thumbsup:

Thanks for sharing

Derry
Kettle's on. Milk? Sugars?    ps I don't like Earl Grey  $%Grinno$%
Reduce, Reuse, Recycle - If you're not part of the solution , you're part of the problem!
"Never knock on Death's door: Ring the bell and run away! Death really hates that!"
Tales at TeaTime      Now A proper NUT      TTC plays GRV II

DAB_City

Does anyone know how to do this for transport networks? I could really use a one-way road or ground highway key combo... Thanks for this anyway, I'll find it very useful!  ;D
Hello SimCity Devotees! If you want to find out more about me, why not visit my profile? Free drinks and biscuits, if that would tempt anyone ;)

http://www.simtropolis.com/forum/user/360022-dab-city/

xtsigs

Click, click, scroll, & select lot. Point and click again to plop. My index finger was dying a death of 10,000 clicks. You saved its life. Thanks muchly.