Author Topic: It seems that the "attacking along road" bonus always applies  (Read 2347 times)

0 Members and 1 Guest are viewing this topic.

Offline Yitzi

In the course of testing my patch, I discovered that the "attacking along a road" bonus (if not set to 0) applies even when there is no road present.  So to fix whatever bug I'd accidentally introduced, I compared it to what happens in Kyrub's patch...and the same thing happens.  Same in Scient's.  (Due to a side effect of my work*, I am unable to test it with the no-official-patches version, so if someone else wants to, that would be appreciated.)

*In the course of my latest patch, I've moved around a few alphax variables, which will of course cause problems for earlier patches.  Scient's and Kyrub's patch allow enough access for me to get around that, but the no-official-patches version doesn't.

Offline Petek

Re: It seems that the "attacking along road" bonus always applies
« Reply #1 on: March 14, 2013, 01:10:10 AM »
Looks like this bug is present in the official patched versions, since it's mentioned in Darsnan/Rubin's Alpha(x) Guide. Is that what you were looking for, or were you interested in the versions with no patches whatsoever installed?

Offline scient

Re: It seems that the "attacking along road" bonus always applies
« Reply #2 on: March 14, 2013, 06:52:37 AM »
I actually patched this already for up coming release.


Offline Yitzi

Re: It seems that the "attacking along road" bonus always applies
« Reply #3 on: March 14, 2013, 01:49:08 PM »
I actually patched this already for up coming release.




Thanks.  However, could you change it to have that reference to DWORD PTR DS:[9497BC] have enough room for a MOVSX from a WORD instead?  The large part of my patch 2.0 is reducing the size that alphax RULES variables take up to make room for more, and that variable was moved to a WORD, so having room for a WORD would be necessary to combine it with my patch.  (As programmed, it's limited to values between -100 and 1000 if I remember correctly, so restriction to a WORD isn't an added limitation.)  Thanks.

(I also was using that area for other stuff in earlier patches, but those will no longer be needed in 2.0, so that won't be an issue.)

Offline gwillybj

Re: It seems that the "attacking along road" bonus always applies
« Reply #4 on: March 14, 2013, 02:14:05 PM »
It is correct that attack-along-road has always applied to all attacks when given a non-zero value, patched or not patched, so it has always been left at zero. Seems odd that something so basic to nearly all wargames was not fixed a long time ago.
Two possibilities exist: Either we are alone in the Universe or we are not. Both are equally terrifying. ― Arthur C. Clarke
I am on a mission to see how much coffee it takes to actually achieve time travel. :wave:

 

* 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

God does not play dice.
~Albert Einstein

* 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]