Author Topic: Decompilation coordination thread  (Read 24537 times)

0 Members and 1 Guest are viewing this topic.

Offline scient

Re: Decompilation coordination thread
« Reply #45 on: December 19, 2014, 03:17:33 PM »
I just thought, I could send you a new map file if that would be helpful. I have the Win class mapped out best I can.

Offline ete

Re: Decompilation coordination thread
« Reply #46 on: December 19, 2014, 03:47:56 PM »
Would it be practical to include your working map file in the repository? You could use .gitignore to keep the things you'd like to clean up first out until you're ready, and that way Plotinus would know exactly what's been done/what he can work on without duplicating effort at all times (so long as you push regularly).

Offline scient

Re: Decompilation coordination thread
« Reply #47 on: December 19, 2014, 04:25:05 PM »
Well, I should be done with mapping out pretty much the rest of main classes by end of next week. I was going to share my IDA database with whoever wants it.

However, putting up a map file on github is a good idea for future. One thing that needs to be done is fixing up all the prototype information regarding variables and data types. So far, I have only done that for functions I've worked on. The pretty much complete analysis of all the functions will greatly aid in any future work on SMAC/X.

Offline ete

Re: Decompilation coordination thread
« Reply #48 on: December 19, 2014, 04:52:35 PM »
Okay, sounds good. I'd also like to see the IDA db on github when you're ready to release, opens up much more streamlined collaboration.

Offline Dio

Re: Decompilation coordination thread
« Reply #49 on: December 21, 2014, 06:51:15 PM »
I am currently working on identifying the various constants and memory addresses that control AI behavior. So far I have identified the memory addresses that control an AI faction's interest in Explore, Discover, Build, Conquer, and Fight (Willingness to use Force). I have also identified at least three different memory addresses that control various aspects of AI behavior and diplomacy. These memory addresses are then compared to various constants and constant combinations to generally determine AI behavior. Finally, I am making a text file with all of my findings as I go along.

Offline ete

Re: Decompilation coordination thread
« Reply #50 on: December 21, 2014, 09:42:12 PM »
Cool stuff. I encourage you to set up github for windows and keep your text file updated here https://github.com/OpenSMACX/OpenSMACX/tree/master/Information/Dio

Offline Dio

Re: Decompilation coordination thread
« Reply #51 on: December 22, 2014, 01:40:12 AM »
Cool stuff. I encourage you to set up github for windows and keep your text file updated here https://github.com/OpenSMACX/OpenSMACX/tree/master/Information/Dio
I will post my text file once I have gathered as much information as I can in various areas :).

Offline Dio

Re: Decompilation coordination thread
« Reply #52 on: December 22, 2014, 05:56:58 AM »
I can not add my text file on github because I lack adminstrative access. I will post it here for now. I will also probably add additional information to the file later this week .
« Last Edit: December 22, 2014, 06:36:27 AM by Dio »

Offline ete

Re: Decompilation coordination thread
« Reply #53 on: December 22, 2014, 02:31:16 PM »
Your account is on the contributors team, which is set to "This team grants Write access: members can read from and push to the team's repositories." so you should be able to edit repository contents.. could you describe to me exactly what stops you so I can try and figure out what's going on?

Offline Dio

Re: Decompilation coordination thread
« Reply #54 on: December 22, 2014, 04:06:58 PM »
Quote
You're creating a file in a project you don't have write access to. We've created a fork of this project for you to commit your proposed changes to. Submitting a change will create the file in a new branch in your fork, so you can send a pull request.

This is the message I get whenever I try to add a file. Basically it makes a copy, or branch, of the original project with my proposed changes. The proposed changes then need to be approved by one of the adminstrators of the repository.

Offline ete

Re: Decompilation coordination thread
« Reply #55 on: December 22, 2014, 04:36:35 PM »
Does that happen when you click Clone in Desktop? Or this? You don't need a separate branch, just a clone.

Offline Dio

Re: Decompilation coordination thread
« Reply #56 on: December 22, 2014, 05:05:01 PM »
Clicking on Clone from the github desktop downloads the contents of the repository onto your computer. Clicking the link leads me to an error loading page message.

Offline ete

Re: Decompilation coordination thread
« Reply #57 on: December 22, 2014, 06:03:40 PM »
Clicking on Clone from the github desktop downloads the contents of the repository onto your computer. Clicking the link leads me to an error loading page message.
Okay, do you have a clone on your computer and github for windows? https://windows.github.com/ if yes to both, try moving the text file into the github folder on your computer and making a commit via github for windows? If it gives an error, please tell me exactly what causes it/what the error message is.

And right, that link must only work on github.com. You should be able to clone from there still.

Offline kyrub

Re: Decompilation coordination thread
« Reply #58 on: December 25, 2014, 11:28:39 PM »
Hi guys,
it's nice there seems to be a major cooperation, at last.

I have moved on in my life and I won't be cooperating directly on anything relating gaming. But I am willing to give you all my gathered info on SMAC AI. The tricky part is that I am not a programmer (so my notes don't follow typical structure yours probably do) and I never intended to share my notes with anybody and my notes have been incredibly confusing since my grammar school. So I guess it's down to you to understand... still it is possible to get some good information from the most important parts.

I'll make a search on my old laptop to find out the IDA dbase.
k

Offline kyrub

Re: Decompilation coordination thread
« Reply #59 on: December 25, 2014, 11:59:02 PM »
This is my IDC database for SMAC exe. Concentrate on fontions starting with "AI" prefix, especially AI_build and AI_mvt_ut. There is a lot of info in there. Beware not all my "bugs" ended being one... Double slashes indicate places that I changed in my patch... sadly, not all changes are indicated by "//", as I chose later to abandon the habit. Confusing, I know.
https://www.mediafire.com/?oa2q9932yzsawpk


As far as data addresses go, I guess the others have a lot more insight than me.
There are internal flags however:
"continental_flags"
01 - no place to expand on conti
02 - 1 colony pod on conti
04
08 - > 1 colony pod
10
20 - other player present
40 - other player at war present
80
100
200
400 - conti with base taken by human player
800
1000
2000
4000 - invasion by other palyer (I forgot the internal weighs... sorry)

There are other important Ai related flags for baseData 0x30
200 - srapped facility
8000 - ocean base
1000 - IS energy needed +1 > MineralNeeded?
2000 - IS mineralNeeded +1 > EnergyNeeded?
100000 - attacked by plane
200000 - attacked by artillery
80000 -bring terraformed
400 - arifact connected
2000000 - just built colonyx pod
1000000 - just built colony pod nr.2

x34
4000 - nutrients needed

I guess that is my input done.
Good luck there, scient & co.!


 

* User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

Men in their arrogance claim to understand the nature of creation, and devise elaborate theories to describe its behavior. But always they discover in the end that God was quite a bit more clever than they thought.
~Sister Miriam Godwinson 'We must Dissent'

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 40.

[Show Queries]