Menu

LEX File Exchange EA Support Files
SC4 Wikipedia Network Addon Mod
Dependencies Chat

Author Topic: Assigning Your Favorite Lots to Keyboard Shortcuts  (Read 2445 times)

0 Members and 1 Guest are viewing this topic.

Offline ebina

  • NAM Team
  • Forums Governor
  • *
  • Posts: 390
  • Reputation: 12
  • CL: Mr. Wizard
Assigning Your Favorite Lots to Keyboard Shortcuts
« on: November 27, 2009, 07:37:34 AM »
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...
Code: [Select]
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.
Code: [Select]
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.
« Last Edit: November 29, 2009, 05:25:04 AM by ebina »

Offline xxdita

  • Global Moderator
  • Forums Parliamentarian
  • *
  • Posts: 1713
  • Reputation: 8
  • CL: Mr. Fixxit
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #1 on: November 27, 2009, 07:44:23 AM »
Wow. I'm gonna hace to play around with this over the weekend. Great tutorial ebina.

Offline RippleJet

Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #2 on: November 27, 2009, 07:54:59 AM »
It's amazing that Maxis left that single Ctrl-M definition that way, with the reference to the lot's IID... ::)
Excellent tutorial, ebina! :)

Offline Bobbi

  • Forums Governor
  • *
  • Posts: 475
  • Reputation: 1
  • Annihilation Angel
    • A space on deviantArt(Nothing)
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #3 on: November 27, 2009, 07:55:43 AM »
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.:)

Offline Travis

  • Forums Senator
  • *
  • Posts: 722
  • Reputation: 15
  • c'est la vie
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #4 on: November 27, 2009, 07:59:51 AM »
excellent tutorial indeed, I'll put this method to good use. ;) thanks for sharing it. :)

Offline TheTeaCat

  • The NUTS
  • Forums Guru
  • *
  • Posts: 3064
  • Reputation: 26
  • Take it easy! If you get it easy? Take it twice!
  • CL: Official Teamaker
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #5 on: November 27, 2009, 12:13:17 PM »
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

Offline DAB_City

  • Forums Councilmember
  • *
  • Posts: 116
  • Reputation: 0
    • DAB_CityImages
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #6 on: July 27, 2011, 11:11:43 AM »
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/

Offline xtsigs

  • Forums Inhabitant
  • *
  • Posts: 5
  • Reputation: 0
Re: Assigning Your Favorite Lots to Keyboard Shortcuts
« Reply #7 on: September 22, 2013, 11:45:20 PM »
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.