Author Topic: Steps for finding the intense rivalry rule and other things  (Read 4474 times)

0 Members and 1 Guest are viewing this topic.

Offline Dio

Steps for finding the intense rivalry rule and other things
« on: August 27, 2013, 06:01:49 AM »
The first picture is ,I think, the code for the 5 different selections for the AI in the faction files.
« Last Edit: August 27, 2013, 06:26:02 AM by Dio »

Offline Dio

Re: Steps for finding the intense rivalry rule
« Reply #1 on: August 27, 2013, 06:03:38 AM »
Now this is the procedure which is called by each of them.

Online Buster's Uncle

  • In Buster's Orbit, I
  • Ascend
  • *
  • Posts: 49271
  • €440
  • View Inventory
  • Send /Gift
  • Because there are times when people just need a cute puppy  Soft kitty, warm kitty, little ball of fur  A WONDERFUL concept, Unity - & a 1-way trip that cost 400 trillion & 40 yrs.  
  • AC2 is my instrument, my heart, as I play my song.
  • Planet tales writer Smilie Artist Custom Faction Modder AC2 Wiki contributor Downloads Contributor
    • View Profile
    • My Custom Factions
    • Awards
Re: Steps for finding the intense rivalry rule
« Reply #2 on: August 27, 2013, 06:09:32 AM »
scient tells me
Quote
a dissembler
 makes doing code analysis much easier
Are you using one?

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #3 on: August 27, 2013, 06:23:10 AM »
I am only using ollydebugger and my handy intel architecture reference manual. This call is highlighted with my pointer  bar.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #4 on: August 27, 2013, 06:24:46 AM »
Which takes you here.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #5 on: August 27, 2013, 03:29:05 PM »
Okay, this is the whole rules list except for the randomize faction profile and agenda.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #6 on: August 27, 2013, 03:42:06 PM »
This is the code for the rules selection. I noticed case F of this switch is missing.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #7 on: August 27, 2013, 03:45:06 PM »
Now I am getting somewhere. The currently selected memory address goes to things like goverment options for the AI. This address also happens to be under the rules section. In addition, it controls various aspects of the random tech (blind research) rule option.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #8 on: August 27, 2013, 03:56:44 PM »
Hmmm. It appears that certain social effects have some effect on how the AI behaves.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #9 on: August 27, 2013, 04:03:33 PM »
Also, various things like world size effect AI behavior. I am now officially confused and puzzled somewhat by why the rules section is linked so intimately with the AI behavior and why the customized world is also in this picture.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #10 on: August 27, 2013, 04:18:25 PM »
Sometimes I feel like I am  :stickpoke: this program.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #11 on: August 30, 2013, 06:14:28 PM »
Yitzi, you should probably look in the memory register at address 009a649c. However, I am warning you it is contains a lot of references. So far I have found things for the Diplomatic victory option, the iron man rule and scenario rules.

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #12 on: August 30, 2013, 06:17:51 PM »
Also, this address is referenced at least once in every faction's AI section.

Offline Yitzi

Re: Steps for finding the intense rivalry rule and other things
« Reply #13 on: August 30, 2013, 09:25:50 PM »
Yitzi, you should probably look in the memory register at address 009a649c. However, I am warning you it is contains a lot of references. So far I have found things for the Diplomatic victory option, the iron man rule and scenario rules.

Thanks.  I'm sure that is a bitfield of all the rules; can you figure out which one is intense rivalry?

(If it helps, what I really want is the places where the difficulty level affects the AI aggressiveness; I figure those will also be affected by intense rivalry, which will be an easier way of finding it.)

Offline Dio

Re: Steps for finding the intense rivalry rule and other things
« Reply #14 on: August 31, 2013, 07:25:04 PM »
Yitzi, you should probably look in the memory register at address 009a649c. However, I am warning you it is contains a lot of references. So far I have found things for the Diplomatic victory option, the iron man rule and scenario rules.

Thanks.  I'm sure that is a bitfield of all the rules; can you figure out which one is intense rivalry?

(If it helps, what I really want is the places where the difficulty level affects the AI aggressiveness; I figure those will also be affected by intense rivalry, which will be an easier way of finding it.)

I will try.

 

* 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

And when at last it is time for the transition from megacorporation to planetary government, from entrepreneur to emperor, it is then that the true genius of our strategy shall become apparent, for energy is the lifeblood of this society and when the chips are down he who controls the energy supply controls Planet. In former times the energy monopoly was called 'The Power Company', we intend to give this name an entirely new meaning.
~CEO Nwabudike Morgan 'The Centauri Monopoly'

* 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: 41.

[Show Queries]