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

0 Members and 1 Guest are viewing this topic.

Offline Bertilak

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 Bertilak

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.

Offline Buster's Uncle

  • Outspam me IF you CAN; I, the
  • Planetary Overmind
  • *
  • Posts: 50280
  • €390
  • 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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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 Bertilak

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.

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
-=-
105 (33%)
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: 316
AC2 Wiki Logo
-click pic for wik-

* Random quote

By creating a planetary network, mankind on Planet now has the ability to share information at light-speed. But by creating a single such network, each faction has brought themselves closer to discovery as well. At the speed of light, we will catch your information, tag it like an animal in the wild, and release it unharmed-if such should serve our purposes.
~Datatech Sinder Roze 'The Alpha Codex'

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

[Show Queries]