Author Topic: Yitzi's unofficial SMAX patch 2.5g  (Read 2937 times)

0 Members and 1 Guest are viewing this topic.

Offline Yitzi

Yitzi's unofficial SMAX patch 2.5g
« on: April 28, 2014, 03:44:34 PM »
Yitzi's unofficial SMAX patch 2.5g

http://alphacentauri2.info/index.php?action=downloads;sa=view;down=171

Fixed another bug.

As with all sub-versions, this requires all other files from 2.5.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #1 on: April 29, 2014, 06:32:16 PM »
It appears to me as though Spoils of War, the faction bonus TECHSTEAL, and the targeted probe team techsteal operate in the manner of only allowing you to choose technologies that you have at least one of the prerequisites for. I will be done working on this feature once I fix the bug that effects how the second option in #DECIPHER operates with regards to stealing a faction's map.
« Last Edit: April 29, 2014, 07:16:51 PM by Dio »

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #2 on: April 30, 2014, 04:04:27 PM »
@Yitzi: Are you willing to add this feature to the patch once you get the other potential probe team costs in place?

Offline Yitzi

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #3 on: April 30, 2014, 05:12:48 PM »
@Yitzi: Are you willing to add this feature to the patch once you get the other potential probe team costs in place?

If you write the code (just put in the code to test for any bit as the alphax option and I can adjust it to match where I end up putting that option), I can probably even include it before I do the other stuff.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #4 on: April 30, 2014, 05:52:23 PM »
How do you add a alphax variable under your new system?

Offline Yitzi

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #5 on: April 30, 2014, 08:49:56 PM »
How do you add a alphax variable under your new system?

The 585xxx area loads them; in order to avoid conflicts, though, simply assume when writing your code that it's a memory address (for this, a single bit will suffice) and check its value.  Then you can just tell it to check it (for a bit, it would be TEST BYTE PTR DS:[xxxxxxxx], xx); just fill in the x's however you want and I can change them and take care of loading the variable when I add it to my patch.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #6 on: May 01, 2014, 04:00:07 AM »
Is this what you would want?
0058571B      A3 23015A00                     mov dword ptr ds:[5A0123], eax
00585720      F600 02                         test byte ptr ds:[eax], 2

What purpose would this serve? The only coding change needed to make the DECIPHER script function is to change jnz short terranx_.005A013A to je short terranx_.005A013A.


Offline Yitzi

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #7 on: May 01, 2014, 04:28:19 AM »
Is this what you would want?
0058571B      A3 23015A00                     mov dword ptr ds:[5A0123], eax
00585720      F600 02                         test byte ptr ds:[eax], 2

What purpose would this serve? The only coding change needed to make the DECIPHER script function is to change jnz short terranx_.005A013A to je short terranx_.005A013A.

Firstly, I didn't realize that no further changes are necessary to enable it.

However, even so, it would serve the purpose of making it so that people who want to play without that option can.  Unlike your previous changes, it's an actual change to gameplay, so unless consensus is that it would be a bugfix, people should have the option.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #8 on: May 01, 2014, 04:41:38 AM »
Is this what you would want?
0058571B      A3 23015A00                     mov dword ptr ds:[5A0123], eax
00585720      F600 02                         test byte ptr ds:[eax], 2

What purpose would this serve? The only coding change needed to make the DECIPHER script function is to change jnz short terranx_.005A013A to je short terranx_.005A013A.

Firstly, I didn't realize that no further changes are necessary to enable it.

However, even so, it would serve the purpose of making it so that people who want to play without that option can.  Unlike your previous changes, it's an actual change to gameplay, so unless consensus is that it would be a bugfix, people should have the option.
The topic on the Theory of Everything I started seems to indictate most of the respondents are fine with having additional options.

Offline Buster's Uncle

  • In Buster's Orbit, I
  • Ascend
  • *
  • Posts: 49279
  • €532
  • 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: Yitzi's unofficial SMAX patch 2.5g
« Reply #9 on: May 01, 2014, 06:04:11 AM »
Apologies to everyone.  The scenario threads are an autopost when you add something to Downloads, and I'm posting a lot to Downloads this week, catching up on something I should have taken care of two years ago.

Altera Centauri is a large but finite scenario set- I'm over a third of the way through, and  there's no point in turning off the autoposts now - the damage was already done yesterday.  By sometime Saturday, it should be over, and we can bump the important stuff back up.

Tomorrow, there will probably be a temporary respite.  There's a GotM to get ready for release while it's still the 1st of May here, and that'll have to come first.  Thank you for your patience while I do the necessary work to get our house in order before BE comes out.

-Also, Yitzi, note that I'm 10 posts from another Obnoxious PC Thread post... ;)

Offline Yitzi

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #10 on: May 01, 2014, 02:24:00 PM »
Is this what you would want?
0058571B      A3 23015A00                     mov dword ptr ds:[5A0123], eax
00585720      F600 02                         test byte ptr ds:[eax], 2

What purpose would this serve? The only coding change needed to make the DECIPHER script function is to change jnz short terranx_.005A013A to je short terranx_.005A013A.

Firstly, I didn't realize that no further changes are necessary to enable it.

However, even so, it would serve the purpose of making it so that people who want to play without that option can.  Unlike your previous changes, it's an actual change to gameplay, so unless consensus is that it would be a bugfix, people should have the option.
The topic on the Theory of Everything I started seems to indictate most of the respondents are fine with having additional options.

That was about whether most people would like to see it, but that's not enough to remove the option of having the old way.  The only time it's ok to remove the old way is if that was a bug...and there doesn't seem to be any discussion of that question.  I'll put up a poll on the issue.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #11 on: May 01, 2014, 03:11:01 PM »
As far as I know, my change to the code does not change how the old way of probe tech steal operates. The first option in the script is identical to the original method of probe tech steal. In addition, the alphax variable for disabling probe tech steal effects both options.

Offline Dio

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #12 on: May 01, 2014, 03:18:44 PM »
How can you disable one option with an alphax variable when they both go through the majority of the same procedure?

Offline Yitzi

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #13 on: May 01, 2014, 05:50:04 PM »
How can you disable one option with an alphax variable when they both go through the majority of the same procedure?
Simple: Have it test a particular bit, and if the bit is off, jump past that procedure.  Actually, having one variable control techsteal at all and another for targeted is redundant, so instead that variable would be changed to random techsteal, and where it tests if techsteal is possible it would test if either type is possible; if only one type is possible it uses that, and if both are it would provide the option.

Offline stecauri

Re: Yitzi's unofficial SMAX patch 2.5g
« Reply #14 on: May 01, 2014, 09:23:18 PM »
Hello

I'd like to help out a bit and report a bug I stumbled upon.

The game crashes when setting the Battle Ogre Mk1 as primary defender in the following savegame.

Edit: Oh and I'm using gog version.

 

* 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

Although Planet's native life is based, like Earth's, on right-handed DNA, and codes for all the same amino acids, the inevitable chemical and structural differences from a billion years of evolution in an alien environment render the native plant life highly poisonous to humans. Juicy, ripe grenade fruits may look appealing, but a mouthful of organonitrates will certainly change your mind in a hurry.
~ Lady Deirdre Skye ‘A Comparative Biology of Planet’

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

[Show Queries]