LEX Latest Uploads

Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat
Welcome, Guest. Please login or register.
Did you miss your activation email?

April 16, 2021, 06:17:06 PM

Login with username, password and session length

Author Topic: SC4Savegame Explorer  (Read 32878 times)

0 Members and 1 Guest are viewing this topic.

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
SC4Savegame Explorer
« on: March 25, 2009, 04:27:01 PM »
Here is the support thread for my new tool

Dependancies:
msvcp71.dll
gdiplus.dll
glu32.dll
glut32.dll
Put them on your installed folder
You will also need a descent graphic card ( I think a geforce 5 or even a geforce 4 are ok )


Introduction
The tool is a SC4 savegame explorer.
You can for now see only some entries of the savegame, as others are not yet decoded or if decoded I didn't had time to code something for them.
The tool is actually used to find the root cause of the prop pox, but I hope to turn it into something more general and more usefull in the long term.

usage
When running you'll get something like following, with your regions folder and all savegames displayed


Then navigate into your savegames and double click on the one you want to explore, this will bring a new tab:

The tab shows you some of the entries of the savegame that you can explore

Double clic on one and you'll get some info about it
Here is an example for the Prop entry


If you clic on the 'Lot' or 'Building' or 'Prop' it will open a 2D view of the city with the prop/building/lot information visualized in 2D

You can zoom in/out using the mousewheel
You can pan the city by dragging with left button
If you have a layer selected ( in the top left corner of the window ), then when you'll move the mouse over something in the 2D view, you'll get the information about it

As you can see, this can be something interesting for map makers

The tool will be soon available on the LEX after scrutiners reports.
the tool can be found at http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=2021


Edit:
Many thanks to BarbyW, Ennedi, and Ripplejet for decyphering various savegames

An update/patch for the SC4 Savegame Explorer can be found here!
« Last Edit: September 30, 2012, 08:24:25 AM by CasperVg »
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline JoeST

  • Forums Guru
  • *
  • Posts: 2648
  • Total likes: 15
  • Reputation: 10
  • fbstj
  • CL: Not your average...
Re: SC4Savegame Explorer
« Reply #1 on: March 25, 2009, 04:35:38 PM »
that is an awesome tool, thankyou :)

Joe
Copperminds and Cuddleswarms

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #2 on: March 25, 2009, 05:02:18 PM »
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline mightygoose

  • 3RR Team
  • Forums Parliamentarian
  • *
  • Posts: 1885
  • Total likes: 7
  • Reputation: 12
  • duck duck....
Re: SC4Savegame Explorer
« Reply #3 on: March 25, 2009, 05:25:18 PM »
had a play and this tool is very exciting, it has alot of potential, I assume to intend to eventually replace region census, if you could include the region census repository functions with the overview data of RC plus the additional info here you woul have a very powerful regional management tool... in fact you could even call it that, region manager.... or Region Manager X if you so wished....

fantastic new toy
NAM + CAM + RAM + SAM, that's how I roll....

Offline bob56

Re: SC4Savegame Explorer
« Reply #4 on: March 25, 2009, 06:11:40 PM »
That is really cool!!! While i'm not a modder, i've always wondered how the game creates saves. This could be a really useful application!! &apls
You can call me Grif

--Currently out of the office, will resume SC4 7/19

Offline sithlrd98

Re: SC4Savegame Explorer
« Reply #5 on: March 25, 2009, 07:15:51 PM »
 &apls  You've created one cool little app here! &apls Looks a lot like a circuit board when looking at some of these cities!

Jayson

Offline High5Tower

Re: SC4Savegame Explorer
« Reply #6 on: March 25, 2009, 09:07:58 PM »
Very nice addition here,thank you. :thumbsup:

After checking out all my cities in one region in found that a few cities had a much higher figure for "disabled props found in city". So what are disabled props? (And please don't say "props that are disabled")

Any chance of getting one of your custom icons for the desktop shortcut folder? This deserves something special.

Your description of this tool should have said "And provides hours of fun."
Thanks again. ()stsfd()

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #7 on: March 26, 2009, 02:14:04 AM »
Thanks

Disabled props are props that are presents in the savegame, but not visible in the game.
In a non prop poxed city, this is usually the result of a massive bulldozing and saving right after, the bulldozed props are still in the savegame. I think it is related to how SC4 manages its memory. It helps to keep large memory blocs alive instead of reclaiming them to the OS every time the game need it.
In a prop poxed city, however there are many more disabled props, with non valid values, and all of them are located in the northwest corner, something maybe related to the lot of sim crowds some people see in that place after being hit by prop pox.

I don't intend to replace Region Census, but I'll add more plugins for others known entries. The first one will certainly be a 'Flora/tree' viewer. And as it is a plugins based application, it will be a light download



New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline High5Tower

Re: SC4Savegame Explorer
« Reply #8 on: March 26, 2009, 03:42:52 AM »
A agree with your answers. I my sandbox Region since using custom content (Dec 2006) I have done a lot a radical things in a lot of the cities while experimenting with building all the neat stuff that's available. As a test just now I bulldozed clean one of my small cities that I have used constantly in the last 2 years for viewing new downloads. It had 37 disabled props and they are still there in the savegame memory file. I believe I will obliterate the tile to get a clean slate.
I checked my old regions before Dec 2006 and they a very clean of disabled props. I remember years ago doing large bulldozing and rebuilding and sometimes the city just didn't feel right so I learned to just obliterate those cities. Now I know why.
My old Berlin region(Pre Dec 06) has some cities that are close the starting stage for the prop pox and I am going to go ahead and take them over the edge and see if they will become prop poxed.Yes I have plenty of backups.
With all the great map makers out there I have started using many maps and not constantly changing each city to cut down on the save game factor.
Thanks for your great contributions to this game. :thumbsup:

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #9 on: March 26, 2009, 01:49:16 PM »
So here is a Flora plugin, that once you unzip it in SC4Savegame explorer folder, will allow you to see the flora entry. The flora entry is where almost all god/mayor flora are saved

So just unzip and replace the external.py with the one inside the zip

Let's see if you're a green mayor :)
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline JoeST

  • Forums Guru
  • *
  • Posts: 2648
  • Total likes: 15
  • Reputation: 10
  • fbstj
  • CL: Not your average...
Re: SC4Savegame Explorer
« Reply #10 on: March 26, 2009, 02:06:56 PM »
Thanks again Wou, I went ahead and created a Wiki page for it [here] :)

Joe
Copperminds and Cuddleswarms

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #11 on: March 26, 2009, 02:11:52 PM »
 :thumbsup: for the wiki page

I think that once we get time, we will write the format of known entries

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline bat

  • Forums Legend
  • *
  • Posts: 8999
  • Total likes: 2
  • Reputation: 20
    • Capporth City - my first and only MD
  • CL: bester deutscher Verfechter
Re: SC4Savegame Explorer
« Reply #12 on: March 27, 2009, 09:00:12 AM »
Nice program there! ;)

Offline Zaphod

  • 3RR Team
  • Forums Governor
  • *
  • Posts: 345
  • Total likes: 0
  • Reputation: 2
  • Enjoyer of Simcity 4 Graphic Blandishment
Re: SC4Savegame Explorer
« Reply #13 on: March 27, 2009, 09:05:48 PM »
Here's an idea, make the program output a list of plugins being used, integrate this with links to download on the LEX.

Basically now we could upload and share cities, without the sticky issue of trading plugins folders. People would just download what they don't have.
War Kittens !?

Offline Pat

  • when life tosses you lemons, make lemonade!
  • 3RR Team
  • Forums Legend
  • *
  • Posts: 8812
  • Total likes: 6
  • Reputation: 45
  • SC4D Podcast, You Know You Wanna Hear IT!!!!
  • CL: ()pathfire() gettin' it right!
Re: SC4Savegame Explorer
« Reply #14 on: March 27, 2009, 09:13:49 PM »
Hey Steph this is a cool new programe here!!! Thank you for it!!!  :thumbsup: &apls

Don't forget the SC4D Podcast is back and live on Saturdays @ 12 noon CST!! -- The Podcast soon to Return Here Linkie

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #15 on: March 28, 2009, 03:37:28 AM »
Here's an idea, make the program output a list of plugins being used, integrate this with links to download on the LEX.

Basically now we could upload and share cities, without the sticky issue of trading plugins folders. People would just download what they don't have.
Only the TGI of what is on the your city is saved, I hardly see how I can link that TGI to a download link
Only a huge database of everything that has been produce and where it can be found( LEX/STEX/PLEX/Japanese... etc ) can solve the problem, and I doubt someone is willing to compile and maintain such a database

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline ElPhantasmo69

Re: SC4Savegame Explorer
« Reply #16 on: March 31, 2009, 02:23:25 PM »
Is it possible to use this tool to discover why I have immortal lots? Even removing it from my plugins doesn't seem to slay an immortal hospital in one of my cities.

Offline High5Tower

Re: SC4Savegame Explorer
« Reply #17 on: March 31, 2009, 02:34:26 PM »
To remove your immortal lot you need to surround it with the same immortal lot and then bulloz the entire mess. Which hospital has this issue by the way?

Offline wouanagaine

  • Moderator
  • Forums Guru
  • *
  • Posts: 2854
  • Total likes: 9
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: SC4Savegame Explorer
« Reply #18 on: March 31, 2009, 02:42:22 PM »
Is it possible to use this tool to discover why I have immortal lots? Even removing it from my plugins doesn't seem to slay an immortal hospital in one of my cities.
Maybe, you can at least check the props and building around your hospital lot and see if there is something strange around
if you can post a pic of the 2D view at that place, we might find some interesting stuffs

To remove your immortal lot you need to surround it with the same immortal lot and then bulloz the entire mess. Which hospital has this issue by the way?
Yes, which hospital ?

Edit: BTW something you'll soon be able to see on your own computer :)
« Last Edit: March 31, 2009, 02:48:41 PM by wouanagaine »
New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4Savegame Explorer
« Reply #19 on: March 31, 2009, 02:55:29 PM »
 :o :o
Is that the route sims take to work????!!!
This program is amazing!!!

Jonathan