Jump to content

Detokenize DLL  2.0

   (1 Review)

1 Screenshot

About This File

A DLL Plugin for SimCity 4 that adds a cheat to display text token values.

This DLL is intended for experimentation and debugging, I am not sure it is useful for normal game play.

Text tokens are strings enclosed in # characters that SC4 will resolve to another value.  For example, Detokenize game.g_city_rci_population would display the value of the total RCI population variable that Lua scripts can use in trigger conditions.

System Requirements

  • Windows 10 or later

The plugin may work on Windows 7 or later with the Microsoft Visual C++ 2022 x86 Redistribute installed, but I do not have the ability to test that.

Installation

  1. Close SimCity 4.
  2. Copy SC4Detokenize.dll  into the top-level of the Plugins folder in the SimCity 4 installation directory or Documents/SimCity 4 directory.
  3. Start SimCity 4.

Usage

The Detokenize cheat takes the name of the text token to resolve and any required parameters.
Examples:

  • Detokenize game.ga_mayor_rating will display the numeric value of the mayor rating.
  • Detokenize GetDirectory UserPlugins will display the path to the user plugins folder, typically Documents\SimCity 4\Plugins.

Troubleshooting

The plugin should write a SC4Detokenize.log file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.

Source Code and Support

Plugin thread: https://community.simtropolis.com/forums/topic/763788-detokenize-dll/

The plugin's source code and issue tracker are located on GitHub: https://github.com/0xC0000054/sc4-detokenize

  If you would like to make voluntary contributions to support me in continuing to create more content for SimCity 4, I accept donations via PayPal: https://paypal.me/0xC0000054
 

Thanks to the few people who have donated to me.


What's New 2.0   View Changelog


Released

  • Fixed a bug that prevents items with multiple parameters from working.
  • Added support for resolving some Maxis development commands.
  • Like 10
  • Thanks 1



User Feedback

Create an account or Sign In to leave a review

You need to be a member in order to leave a review

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


sejr99999

   1 of 1 member found this review helpful 1 / 1 member

thank you for a new tool for debugging this game  I can't test it but I am confident based on your other tools this will work as intended

  • Like 1

Share this review


Link to review
×

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