SC4D Homepage
BSC File Exchange
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 

News:

Have a city to share that's not from SC4? Our MD Section is here for you too!


Author Topic: SC4Fix - DLL to fix the puzzle piece x TE lot crash  (Read 14012 times)

0 Members and 1 Guest are viewing this topic.

Offline simmaster07

SC4Fix - DLL to fix the puzzle piece x TE lot crash
« on: December 27, 2015, 01:59:39 PM »
I posted this over on ST but wanted to make sure SC4D got in on this as well. Hopefully I'm doing this whole posting thing right, it's been a while since I've been here.

What does this do
  • Resolves a crash-to-desktop when hovering NAM puzzle pieces over transit-enabled lots.
  • Allows other DLLs to load into SC4's memory without a GZCOM framework.

Requirements
This fix is made for versions 640 and 641 of SimCity 4 on Windows. Version 640 is a fully-patched SC4 retail copy, and version 641 is a fully-patched digital distribution version (i.e. Steam, Origin, GOG). v641 was tested by myself on Steam, and other users have reported success with GOG.

If your version of SC4 is unsupported, an error message will appear with update instructions, and no changes will be made to your game.

Installation
Download from the STEX or GitHub and simply unzip the DLL to your My Documents\SimCity 4\Plugins folder.

To see if SC4Fix is working properly, check the title of your game window. If you are playing in fullscreen mode, alt-tab out and hover over the SimCity taskbar icon. The titlebar will show "SC4Fix (version #)" if loaded properly.

Demonstration
Click here for a video showing the ability to hover puzzle pieces over transit-enabled lots with this DLL.

Resources
Development Thread on ST
Source Code

Sim City 4 Devotion Forums

SC4Fix - DLL to fix the puzzle piece x TE lot crash
« on: December 27, 2015, 01:59:39 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline compdude787

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #1 on: December 27, 2015, 02:41:35 PM »
I've said it before, but I'll say it again: This is an awesome new fix to a bug that has annoyed probably every single SC4 player and caused lots of work to be lost. It's truly revolutionary!
Check out my MD, United States of Simerica!
Last updated: March 5, 2017

My YouTube Channel

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #1 on: December 27, 2015, 02:41:35 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Andreas

  • *
  • *
  • *
  • *
  • *
  • *
  • Posts: 4665
  • Country: de
  • Total likes: 843
  • Reputation: 33
  • Gender: Male
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #2 on: December 27, 2015, 03:02:22 PM »
Wow, this is awesome alright! I did a very quick testing on my German SC4+Rush Hour+Patch 6.40 version, and it seems to work as advertised. I put the DLL into C:\Program Files(x86)\Maxis\SimCity 4\Plugins (same position where I moved the ExtraCheats.dll), and apparently, it gets picked up, as the window title says "pre3". This is a fantastic Christmas present, and takes one big worry off of our shoulders when dealing with complicated network setups. Amazing work, thanks for looking into this! :)
Andreas

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #2 on: December 27, 2015, 03:02:22 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Themistokles

  • *
  • Posts: 544
  • Country: se
  • Total likes: 249
  • Reputation: 3
  • Gender: Male
  • If Simcity were a democracy we'd all be ostracised
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #3 on: December 27, 2015, 03:09:50 PM »
Yes, I've also been running this for the last half hour or so, and it's truly stunning. It has already solved one big STR worry for me :bnn:
Come join me on a hike to St Edmea!

Latest update: 7

"In the end, our society will be defined not only by what we create, but by what we refuse to destroy." - John Sawhill

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #3 on: December 27, 2015, 03:09:50 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Fasan

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #4 on: December 27, 2015, 03:41:54 PM »
Delightfully! &apls
A fantastic and wonderful work that a large
Prevents problems. Thank-you!  :thumbsup:

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #4 on: December 27, 2015, 03:41:54 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Mikey Knox

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #5 on: December 28, 2015, 01:51:10 PM »
Genius  :thumbsup:

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #5 on: December 28, 2015, 01:51:10 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline mgb204

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #6 on: December 28, 2015, 02:07:04 PM »
I've been busy testing a lot of puzzle pieces and NAM stuff today. Every time I select one I can't help but see if I can get a CTD to happen. So I go nuts putting the cursor in all those places you shouldn't. Nothing happens, suddenly I realise how amazing this is. For my entire time with SC4 and mods, I've learned to be super-delicate with PPs. It's so freeing to just stop thinking about it.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #6 on: December 28, 2015, 02:07:04 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline FrankU

  • It's Frank, the U is just for the suspense
  • *
  • Posts: 3337
  • Country: nl
  • Total likes: 181
  • Reputation: 14
  • Gender: Male
  • Dutch Housing Project
  • CL:
    U Grow It
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #7 on: December 28, 2015, 03:26:37 PM »
Did anyone say SC4 is dying?  :bomb:
This seems to be a revolutionary development.... Can someone give this guy a karma point?

And now that there is a way of loading DLL's..... does this open new perspectives for other options? I remember there was a discussion about the possibilities if could be DLL's loaded a long time ago.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #7 on: December 28, 2015, 03:26:37 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline InvisiChem

  • *
  • Posts: 201
  • Country: us
  • Total likes: 33
  • Reputation: 3
  • Gender: Male
  • I woke up breathing. It's a good day.
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #8 on: December 28, 2015, 03:54:55 PM »
This is an amazing bug fix!!! Already installed, although I can't test it out quite yet. Working on a big project. This fix is cannot even have a value placed on it. Keep up the awesome work, I will be following along as well. I can imagine a lot of possibilities with this. Keep up the great work.
Everyone has something to offer, most do not possess the courage to offer it.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #8 on: December 28, 2015, 03:54:55 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Online dyoungyn

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #9 on: December 28, 2015, 05:14:14 PM »
Unfortunately,

I am not able to use this as the error says my version of SC4 Deluxe at which I use a CD to start up is not capable.  I bought the game back in 2003/4 and still working great.  The website the error suggest does not link to the fix and only the SC4 Devotion site with the BAT Architect and other misc texture fixes but no game update or capability fix.

dyoungyn

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #9 on: December 28, 2015, 05:14:14 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline simmaster07

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #10 on: December 28, 2015, 06:27:59 PM »
Unfortunately,

I am not able to use this as the error says my version of SC4 Deluxe at which I use a CD to start up is not capable.  I bought the game back in 2003/4 and still working great.  The website the error suggest does not link to the fix and only the SC4 Devotion site with the BAT Architect and other misc texture fixes but no game update or capability fix.

dyoungyn

The patch will be labeled "Sim City 4 Buildings Update"; here's a direct link:

http://www.sc4devotion.com/maxis/SC4Update4BAT.zip

By downloading it, you're agreeing to the Maxis/EA EULA:

http://sc4devotion.com/forums/index.php?page=6

And now that there is a way of loading DLL's..... does this open new perspectives for other options? I remember there was a discussion about the possibilities if could be DLL's loaded a long time ago.

Well at the least this opens up the door for some more advanced mod management options. With a DLL loaded into memory, you can detect not only when the game starts, but also when it's shutting down, so it would make any post-shutdown cleanup of changes easier.

From there you could probably hook into some game functions to notify you when something is happening like a building plop or a game save, but this would require where in the game's memory these functions actually are. At the higher end of the spectrum you'd have the ability to modify hardcoded things like traffic networks and the user interface, but this would require at least a few more years of research and reverse engineering IMO.

Like I said in the ST thread, it wouldn't be impossible, and it wouldn't be the first time such a project was done. OpenTTD started in 2003 some nine years after Transport Tycoon Deluxe's release. OpenRCT2 started in 2014, 12 years after the release of RCT2. I think it'd be pretty neat to have a project like that for SC4, but we are also dealing with a far more complex game than either of those.
« Last Edit: December 28, 2015, 06:35:50 PM by simmaster07 »

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #10 on: December 28, 2015, 06:27:59 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Tropod

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #11 on: December 28, 2015, 10:39:20 PM »
I'll repeat my sentiments here also......

Quite impressive, both the fix itself & source code. :thumbsup:.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #11 on: December 28, 2015, 10:39:20 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline dragonshardz

  • *
  • Posts: 1385
  • Country: 00
  • Total likes: 1
  • Reputation: 1
  • Gender: Male
  • Feel free to call me Patrick.
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #12 on: December 29, 2015, 02:51:21 AM »
Whoa, a fix to the age-old PP/TE crash and a way to hook DLLs into the game at will?

Nice!

E: Can someone pin this?

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #12 on: December 29, 2015, 02:51:21 AM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline fefenc

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #13 on: December 29, 2015, 01:21:58 PM »
Congratulations sir, the game will crash less often thanks to your work  &apls

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #13 on: December 29, 2015, 01:21:58 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Online dyoungyn

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #14 on: December 29, 2015, 02:06:32 PM »
Unfortunately,

I am not able to use this as the error says my version of SC4 Deluxe at which I use a CD to start up is not capable.  I bought the game back in 2003/4 and still working great.  The website the error suggest does not link to the fix and only the SC4 Devotion site with the BAT Architect and other misc texture fixes but no game update or capability fix.

dyoungyn

The patch will be labeled "Sim City 4 Buildings Update"; here's a direct link:

http://www.sc4devotion.com/maxis/SC4Update4BAT.zip

By downloading it, you're agreeing to the Maxis/EA EULA:

http://sc4devotion.com/forums/index.php?page=6

And now that there is a way of loading DLL's..... does this open new perspectives for other options? I remember there was a discussion about the possibilities if could be DLL's loaded a long time ago.

Well at the least this opens up the door for some more advanced mod management options. With a DLL loaded into memory, you can detect not only when the game starts, but also when it's shutting down, so it would make any post-shutdown cleanup of changes easier.

From there you could probably hook into some game functions to notify you when something is happening like a building plop or a game save, but this would require where in the game's memory these functions actually are. At the higher end of the spectrum you'd have the ability to modify hardcoded things like traffic networks and the user interface, but this would require at least a few more years of research and reverse engineering IMO.

Like I said in the ST thread, it wouldn't be impossible, and it wouldn't be the first time such a project was done. OpenTTD started in 2003 some nine years after Transport Tycoon Deluxe's release. OpenRCT2 started in 2014, 12 years after the release of RCT2. I think it'd be pretty neat to have a project like that for SC4, but we are also dealing with a far more complex game than either of those.

Unfortunately,  I still can't get this to work and keep getting errors saying my version of SC4 Deluxe is not compatible.  Again, I am using the CD set from 2003.  No matter how many times I download both patches from Maxis, I still cannot get the fix to work. When it came to transit enable lots, I have learned to be VERY CAREFUL and SAVE frequently.

dyoungyn

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #14 on: December 29, 2015, 02:06:32 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Tropod

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #15 on: December 30, 2015, 06:16:05 PM »
Quote

....No matter how many times I download both patches from Maxis, I still cannot get the fix to work....

dyoungyn

I also still have original disks from way back when.

Not sure about now days but when SC4/Deluxe first came out the patches were specific to regions (ie much like CD/DVD movies) & required players to use the right patch/update for their region of the game in order to update properly. I remember having the same problem but after having a play around with the updates, all worked ok.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #15 on: December 30, 2015, 06:16:05 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline matias93

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #16 on: December 30, 2015, 08:54:01 PM »
Has anyone tried to save a city using Ctrl + Alt + S with the new DLL installed? I've just done that and get a CTD, but I'm not sure the DLL is the cause. I'll keep trying some variations and posting in a few hours, but it would be useful to know if anyone else get the same results.

"Lets be scientists and as such, remember always that the purpose of politics is not freedom, nor authority, nor is any principle of abstract character,
but it is to meet the social needs of man and the development of the society"

— Valentín Letelier, 1895

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #16 on: December 30, 2015, 08:54:01 PM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline mgb204

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #17 on: December 31, 2015, 04:01:18 AM »
Has anyone tried to save a city using Ctrl + Alt + S with the new DLL installed? I've just done that and get a CTD, but I'm not sure the DLL is the cause. I'll keep trying some variations and posting in a few hours, but it would be useful to know if anyone else get the same results.

To begin with, you only need to use CTRL + S, the Alt key is unnecessary here.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #17 on: December 31, 2015, 04:01:18 AM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline catty

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #18 on: December 31, 2015, 04:12:46 AM »
...Not sure about now days but when SC4/Deluxe first came out the patches were specific to regions (ie much like CD/DVD movies) & required players to use the right patch/update for their region of the game in order to update properly....

There are a total of 10 patches, 5 specific for the SC4 Vanilla and then another 5 for rushhour

SC4 Readme - https://city-builders.info/cbex/download?path=SC4%2Band%2BSC4D%2BDownloads%252Fupdate-sku1-to-p2.zip

SC4D Readme - https://city-builders.info/cbex/download?path=SC4%2Band%2BSC4D%2BDownloads%252Fupdate_sku1_to_p1_b638.zip

I've no idea how places like Steam work out what version you get, in my case I ended up with a right-hand version of the game, which is a real pain when you drive on the left in RL had to change the SC4 Language in Steam before it would drive on the left, but the NAM still thinks I've got a RH drive game so have to manually change it when I doing a NAM install.
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.

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #18 on: December 31, 2015, 04:12:46 AM »

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash

Offline Andreas

  • *
  • *
  • *
  • *
  • *
  • *
  • Posts: 4665
  • Country: de
  • Total likes: 843
  • Reputation: 33
  • Gender: Male
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #19 on: December 31, 2015, 04:18:28 AM »
There is a little difference between CTRL + S and CTRL + ALT + S. The latter will skip updating the region view graphics, so it works a bit faster than simply saving the city. I didn't check if the DLL affects this feature somehow, but one thing that I got used to is pausing the game before saving it. I had some random crashes and lock-ups in the past when I didn't do that, but it seems to work fine that way. Also, I rarely do a "save and exit", but save first, and then exit to region view or quit the game without saving again.
« Last Edit: December 31, 2015, 04:22:30 AM by Andreas »
Andreas

Sim City 4 Devotion Forums

Re: SC4Fix - DLL to fix the puzzle piece x TE lot crash
« Reply #19 on: December 31, 2015, 04:18:28 AM »

 


If you experience visual glitches in our site, we strongly suggest you to use Firefox to browse the forums. Also a 1024*768 or higher resolution is highly recommended to view this site

Latest News

Have a city to share that's not from SC4? Our MD Section is here for you too!

SMF 2.0.13 | SMF © 2016, Simple Machines
TinyPortal © 2005-2011
SMFAds for Free Forums

Page created in 0.465 seconds with 110 queries.