Menu

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

Author Topic: Reverse engineering SC4, help welcome.  (Read 8823 times)

0 Members and 1 Guest are viewing this topic.

Offline FrankU

  • It's Frank, the U is just for the suspense
  • BeNeLux Team
  • Forums Guru
  • *
  • Posts: 3339
  • Reputation: 14
  • Dutch Housing Project
  • CL:
    U Grow It
Re: Reverse engineering SC4, help welcome.
« Reply #20 on: February 10, 2016, 09:40:24 AM »
Does this open new possibilities for modding and editing the game?

Offline vester

  • Administrator
  • Forums Legend
  • *
  • Posts: 4839
  • Reputation: 27
    • My bat cave.
  • CL: Tickets Please
Re: Reverse engineering SC4, help welcome.
« Reply #21 on: February 10, 2016, 10:47:08 AM »
speeder: That is good news.

Frank: Possible, all depends on what is discovered.

Offline Pat

  • when life tosses you lemons, make lemonade!
  • 3RR Team
  • Forums Legend
  • *
  • Posts: 8812
  • Reputation: 45
  • SC4D Podcast, You Know You Wanna Hear IT!!!!
  • CL: ()pathfire() gettin' it right!
Re: Reverse engineering SC4, help welcome.
« Reply #22 on: February 10, 2016, 09:21:56 PM »
Speeder you gotten my attention and intrest here on this.... Even though i cant code to save my life, I like to watch and give support where possible

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

Offline speeder

  • Forums Citizen
  • *
  • Posts: 55
  • Reputation: 1
Re: Reverse engineering SC4, help welcome.
« Reply #23 on: February 10, 2016, 10:42:15 PM »
Speeder you gotten my attention and intrest here on this.... Even though i cant code to save my life, I like to watch and give support where possible

Thanks!

Unfortunately for now the only thing to do is code heavy lifting, and nagging EA.

And the nagging EA I think for now I am enough :) I managed to nag lots of people (there are 2 ex-EA employees nagging EA for me, and 1 current EA employee, also I sent e-mail to their board of directors, spammed their support system, their forums, Steam, reddit...)

I am hopeful that one of the ex-EA employees will reply soon, last I talked to him he was going to see if he could put me in touch with the TheSims 4 team (that currently have all Maxis stuff).

"Unfortunately" those employees are related to EASTL, so they are probably swamped with e-mails (with people congratulating, nagging, asking for help, and so on...) and are probably eager to code (they all were nagging EA to release EASTL because they wanted to maintain it... I imagine they are diving into code right now to add all updates that they wanted).

As for me I decided to take a different approach for now:

Instead of butting my head against SC4 itself, I decided to see if I can instead re-create the cheats DLL... If I succeed in that, there will be two important results:

1) We will have my own version of SC4 SDK (meaning that people will be able to make their own DLLs).

2) I will be able to call arbitrary objects from the game and see what they do. << this is my focus, but I am sure most of the community will appreciate number 1 instead.

Offline InvisiChem

  • Forums Mayor
  • *
  • Posts: 201
  • Reputation: 3
  • I woke up breathing. It's a good day.
Re: Reverse engineering SC4, help welcome.
« Reply #24 on: February 10, 2016, 10:47:19 PM »
I see why you are banging your head against the wall here. lol. I loaded up IDA and disassembled the SimCity 4 executable.

I now remember why I hate looking at assembler code.  :angrymore:   Anyways, once I discover something new I'll let you know and you can post it. Right now, at least the variables listed in the LUA script are accurate. I did not find any for current IR demand or the IR CAP.

I'm kind of casually on this right now, working on CAM pretty hard right now still, but I'll still play around more.
Everyone has something to offer, most do not possess the courage to offer it.

Offline speeder

  • Forums Citizen
  • *
  • Posts: 55
  • Reputation: 1
Re: Reverse engineering SC4, help welcome.
« Reply #25 on: February 10, 2016, 10:59:34 PM »
What variables in Lua script?

Offline InvisiChem

  • Forums Mayor
  • *
  • Posts: 201
  • Reputation: 3
  • I woke up breathing. It's a good day.
Re: Reverse engineering SC4, help welcome.
« Reply #26 on: February 11, 2016, 09:32:53 AM »
In SimCity_1.dat TGI ca63e2a3 4a5e8ef6 ffbf9ccf is an LUA script that lists several variables that can be used by building queries, different tutorials, etc. They have a name structure of game.g_city_ir_population  These are used by the Census Repository to read the data for city and region, extrapolated values among others.

I was looking through the disassembled code and noticed they have these values set in the exe to allow external plugins to read the values, as stated, but still did not include the IR demand or IR CAP variable. (sad, especially since the new CAM makes IR CAP work like all other industrial CAPs now).

From the disassembled code, it seems as though these variables are programmer designed structures. A little more clear would be the standard C Struct statements. Hopefully this does help a little.
Everyone has something to offer, most do not possess the courage to offer it.

Offline speeder

  • Forums Citizen
  • *
  • Posts: 55
  • Reputation: 1
Re: Reverse engineering SC4, help welcome.
« Reply #27 on: February 11, 2016, 10:19:58 AM »
In SimCity_1.dat TGI ca63e2a3 4a5e8ef6 ffbf9ccf is an LUA script that lists several variables that can be used by building queries, different tutorials, etc. They have a name structure of game.g_city_ir_population  These are used by the Census Repository to read the data for city and region, extrapolated values among others.

I was looking through the disassembled code and noticed they have these values set in the exe to allow external plugins to read the values, as stated, but still did not include the IR demand or IR CAP variable. (sad, especially since the new CAM makes IR CAP work like all other industrial CAPs now).

From the disassembled code, it seems as though these variables are programmer designed structures. A little more clear would be the standard C Struct statements. Hopefully this does help a little.

Ah, those!

I did saw it, but I kinda ignored it, since I am concerned about other things now :)

Also what CAM changed in IR cap?

Offline InvisiChem

  • Forums Mayor
  • *
  • Posts: 201
  • Reputation: 3
  • I woke up breathing. It's a good day.
Re: Reverse engineering SC4, help welcome.
« Reply #28 on: February 11, 2016, 11:45:53 AM »
IR CAP has been added to growable IR Buildings, removed from the other RCI types and added to the Industrial Connections for CAP Relief.

The CAP Relief is fully functional, but unfortunately this deprecates the ability of the Repository Facility and Repository Vault to accurately report the CAP Level now.

Everyone has something to offer, most do not possess the courage to offer it.

Offline alejogc13

  • Forums Governor
  • *
  • Posts: 457
  • Reputation: 3
  • Goldman Sachs
Re: Reverse engineering SC4, help welcome.
« Reply #29 on: April 25, 2019, 03:28:05 PM »
:/
Goldman Sachs