New SMAC quizzes available.Test your Alpha Centauri knowledge! Chess is back.Challenge someone!
0 Members and 2 Guests are viewing this topic.
Quote from: Yitzi on September 21, 2015, 03:06:10 PMQuote from: Dio on September 20, 2015, 11:48:20 PMWould it be feasible to include the additional bonuses for the Citizens as described in the #CitizenHeck section of the help file? This might become my second nomination if it remains a viable option.It would be fairly major, though doable at the cost of limiting bonuses to a maximum of 127 and minimum of -128. (I don't think that will be an issue.) We'd have to figure out what each of those bonuses means, though.I think it best that we stick with tackling the probe team issues at the moment because that way the workload remains manageable, and we can tackle issues that already exist within the game before adding anymore features that might create additional issues. I am able to help with the probe teams because I have become fairly familiar with that section of the code. I think I will stick with the nominations for the probe teams except for the fact that so many of them have a classification as "features."
Quote from: Dio on September 20, 2015, 11:48:20 PMWould it be feasible to include the additional bonuses for the Citizens as described in the #CitizenHeck section of the help file? This might become my second nomination if it remains a viable option.It would be fairly major, though doable at the cost of limiting bonuses to a maximum of 127 and minimum of -128. (I don't think that will be an issue.) We'd have to figure out what each of those bonuses means, though.
Would it be feasible to include the additional bonuses for the Citizens as described in the #CitizenHeck section of the help file? This might become my second nomination if it remains a viable option.
I had an idea this morning. This idea went something along the lines of the fact that the game already checks a maximum and a minimum morale level for probe teams. Would it become possible to add a variable in alphax that corresponds to the location in this procedure that checks the the probe team morale level before it returns from the procedure? This would allow an individual to set the maximum and minimum morale levels that the game uses while determining probe team morale.
Most of the citizens bonuses appear fairly clear except for one. The efficiency bonus could operate in a similar manner to a children's creches.The morale bonus could operate in a similar manner to either the children's crèche or command center depending upon what people want.The Psi Defense bonus could increase the basic base bonus during psi combat. The commerce bonus appears fairly clear because I have a fairly good Idea where the game calculates the commerce income at each base. I imagine it might operate as a commerce tech for the purpose of that base.The aliens bonus could operate in a similar manner to biology labs.The production bonus remains the only questionable bonus because it could mean many different features depending upon the context.
It presently appears as though the calculations for Probe Team Morale start at green.
This appears because the various bonuses for Probe Teams all have (Bonus-1) included.
Was this particular feature intended by you? I do not think it was because it appears in scient's patch from 2010. The bugs from this unusual occurence include:1. The morale bonus from the PROBE bonus operates in your current version of the patch as (PROBE Bonus[1-3]-1).
I found the location that cause this particular bug. In the latest version of your patch the address of this bug occurs at 004C1DA8. The game only calls this if particular morale check if the unit weapon is a probe team module. This location then proceeds to push 0 and 0 onto the stack as arg 1 and 2 in this particular check. The regular morale check for probe teams is push 0 and 1 onto the stack. This means that the game checks the morale at this point as though the unit had a green morale level. In order to fix this bug you need to change the push command at address 004C1DA8 to push 1.
On another note, I hope this change does not cause this issue to disappear
I also noticed that -2 Morale does not halve the probe team morale bonus from Covert Ops Center because the bonus occurs outside the procedure that controls this feature.
Quote from: Dio on September 22, 2015, 06:33:02 PMI found the location that cause this particular bug. In the latest version of your patch the address of this bug occurs at 004C1DA8. The game only calls this if particular morale check if the unit weapon is a probe team module. This location then proceeds to push 0 and 0 onto the stack as arg 1 and 2 in this particular check. The regular morale check for probe teams is push 0 and 1 onto the stack. This means that the game checks the morale at this point as though the unit had a green morale level. In order to fix this bug you need to change the push command at address 004C1DA8 to push 1. You must have mistyped something; 4C1DAB is the middle of an instruction. And which bug is this causing?QuoteOn another note, I hope this change does not cause this issue to disappearWhen I get to changing it, I'll make sure (as best I can) that it doesn't cause any unwanted changes in the process.QuoteI also noticed that -2 Morale does not halve the probe team morale bonus from Covert Ops Center because the bonus occurs outside the procedure that controls this feature.Yeah, MORALE is not supposed to affect probe teams.
Quote from: Yitzi on September 24, 2015, 12:55:36 PMQuote from: Dio on September 22, 2015, 06:33:02 PMI found the location that cause this particular bug. In the latest version of your patch the address of this bug occurs at 004C1DA8. The game only calls this if particular morale check if the unit weapon is a probe team module. This location then proceeds to push 0 and 0 onto the stack as arg 1 and 2 in this particular check. The regular morale check for probe teams is push 0 and 1 onto the stack. This means that the game checks the morale at this point as though the unit had a green morale level. In order to fix this bug you need to change the push command at address 004C1DA8 to push 1. You must have mistyped something; 4C1DAB is the middle of an instruction. And which bug is this causing?QuoteOn another note, I hope this change does not cause this issue to disappearWhen I get to changing it, I'll make sure (as best I can) that it doesn't cause any unwanted changes in the process.QuoteI also noticed that -2 Morale does not halve the probe team morale bonus from Covert Ops Center because the bonus occurs outside the procedure that controls this feature.Yeah, MORALE is not supposed to affect probe teams.The proper address is 004C1DAB and the correction described above fixes the miscalculation that occurs when the game determines bonuses to Probe Team Morale. This bug appears, for example, when you run Fundamentalist with a faction. The faction should receive a +2 bonus to Probe Team Morale and this bonus would cause a disciplined probe team to reach veteran without any other bonuses. The bug, however, causes the probe team to have a displayed morale of Hardened instead of Veteran.
Hey Yitzi - would fixing the no-tabout junk introduced in the GOG version so users of it don't have to find and implement the workaround be out side the scope of this project? I'm guessing that would be a popular feature, so good for the community, good for the patch project and good for you...
I'm still surprised that trick doesn't introduce a million other problems...