Turn processing patch (CLOSED)
Moderator: thunderchero
Forum rules
Please search before starting new topic.
There is a good chance it has already been asked.
Please search before starting new topic.
There is a good chance it has already been asked.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: testers needed for Turn processing patch
@mullet Just a note on your original saved game you sent me,
on turn 266 - 267 un-patched or patched with internal 33 sec but external patch was 25 sec.
I thought about it a little bit, and UDM has code for "Unlocking Empire Borders for all Treaties" this might be causing slower turn time on it's own. not many mods use this code change. but changing code mid game might not have any effect since border is all ready open in saved game.
on turn 266 - 267 un-patched or patched with internal 33 sec but external patch was 25 sec.
I thought about it a little bit, and UDM has code for "Unlocking Empire Borders for all Treaties" this might be causing slower turn time on it's own. not many mods use this code change. but changing code mid game might not have any effect since border is all ready open in saved game.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: testers needed for Turn processing patch
Ok this is interesting, all of my tests have been from previous saved games.
if I start a new game with external patch dll I can play as many turns as I want, but as soon close game and reopen save game and reload save game will crash with any mod that uses 18 fleet task force.
crash logs;
File: ..\..\source\game\ship.c, Line: 968, taskForce != NULL
If I use internal patch it has no issues. so external patch dll is no long available or suggested.
if I start a new game with external patch dll I can play as many turns as I want, but as soon close game and reopen save game and reload save game will crash with any mod that uses 18 fleet task force.
crash logs;
File: ..\..\source\game\ship.c, Line: 968, taskForce != NULL
If I use internal patch it has no issues. so external patch dll is no long available or suggested.
-
- Rear-Admiral
- Posts: 1210
- Joined: Thu May 01, 2008 2:00 am
Re: testers needed for Turn processing patch
Weird.
"Evil is easy, and has infinite forms." -- Pascal
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: testers needed for Turn processing patch
Hi Everyone,
I was just wondering if anyone else has been testing this patch? and if so what results they have gotten?
I was just wondering if anyone else has been testing this patch? and if so what results they have gotten?
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: testers needed for Turn processing patch
NOTE: this patch has a conflict with UDM, so testing should not be done on UDM (all versions) until trek.exe has been corrected.
-
- Cadet 4th Year
- Posts: 18
- Joined: Sat Feb 10, 2018 10:30 pm
Re: testers needed for Turn processing patch
corrected how?
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: testers needed for Turn processing patch
I am currently rebuilding the trek.exe from scratch to find error. but to be honest it could be anything or any other file.
My main problem is most changes will require starting a new game to test and this may take a long time.
My main problem is most changes will require starting a new game to test and this may take a long time.
-
- BORG Trouble Maker
- Posts: 3258
- Joined: Sun Apr 27, 2008 2:00 am
- Location: Hamburg, Germany
Re: testers needed for Turn processing patch
when there is a "conflict" it either is hex overlapping or it is that the circular buffer is too small or limited some other way from what I can guess, so possibly a large map conflict
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: Turn processing patch (CLOSED)
Well I did some long term testing on BOPL,
This patch has a major memory leak, you must restart game every 10 turns or turn time will increase far beyond original (un-patched) TPT.
The patch will remain in first post if someone wants to play with it.
as for UDM I found no errors in code. but patch had little to no effect on UDM.
as for other mods I really can not explain improvements in TPT.
This patch has a major memory leak, you must restart game every 10 turns or turn time will increase far beyond original (un-patched) TPT.
The patch will remain in first post if someone wants to play with it.
as for UDM I found no errors in code. but patch had little to no effect on UDM.
as for other mods I really can not explain improvements in TPT.
-
- Cadet 4th Year
- Posts: 18
- Joined: Sat Feb 10, 2018 10:30 pm
Re: Turn processing patch (CLOSED)
Well, i'm sorry things did not go better.......... its probably a wee smidge promising that you *caused* a memory link, since, you may be defeating Smartheap, which is in there *because* of a memory leak.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
New Turn processing patch
Hi Everyone,
here is part 1 to improve TPT
this patch decreases ship range and removes tech range bonuses
new ship ranges applied by this patch
short 1
medium 2
long 3
in my tests on mullet's saved game at turn 270 - 271 un-patched was 1:04
after patch below was applied TPT 34 sec
on my UM5 test save un-patched was 1:55
after patch below was applied TPT 11 sec (i expect a large amount of ships were trapped out of range and could not move?)
patch name in QD patcher
"lower ship base range and no tech range bonuses"
note; since this is a universal patch some mods will display red before installing and removing patch will return values to vanilla.
This can be applied to saved game but AI may scrap ships that are now out of range.
This patch may require AI and human player to build more outposts and starbases (but will AI build more?)
part 2 will be closed borders on all treaties except war pact, if I can figure out code. lol
but before I do part 2, I will test this patch from turn 1 to see how AI advances. I hope others will also test.
The patch above is lowest possible ranges so once both patches are ready some balancing/value editing could be done to balance AI advancement vs TPT?
here is part 1 to improve TPT
this patch decreases ship range and removes tech range bonuses
new ship ranges applied by this patch
short 1
medium 2
long 3
in my tests on mullet's saved game at turn 270 - 271 un-patched was 1:04
after patch below was applied TPT 34 sec
on my UM5 test save un-patched was 1:55
after patch below was applied TPT 11 sec (i expect a large amount of ships were trapped out of range and could not move?)
patch name in QD patcher
"lower ship base range and no tech range bonuses"
note; since this is a universal patch some mods will display red before installing and removing patch will return values to vanilla.
This can be applied to saved game but AI may scrap ships that are now out of range.
This patch may require AI and human player to build more outposts and starbases (but will AI build more?)
part 2 will be closed borders on all treaties except war pact, if I can figure out code. lol
but before I do part 2, I will test this patch from turn 1 to see how AI advances. I hope others will also test.
The patch above is lowest possible ranges so once both patches are ready some balancing/value editing could be done to balance AI advancement vs TPT?
You do not have the required permissions to view the files attached to this post.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
My first test results
here is my first test results from lower range patch above.
UDML 1366 x 768 tech 1 start all races, I played as Cardassians
no "game play" by me only turn after turn until turn 450 (took less than 1 1/2 hours)
I started with shortest range so I was able to increase to see how expanding range would effect TPT better.
using patched above :28
vanilla range values 1:08
un-edited UDML values 1:29
note; only range patch was installed (gHeap patch was not installed)
Most AI races have 35 - 40 systems (except romulans that is under attack from fed)
but very little contact between AI races (federation at war with romulans and Dominion has just meet Klingons)
All AI Races have a good supply of war ships. (200 - 400 ships)
from summary all AI races have made it to tech 9+
here is overview from Cardassian view the next 3 is from switched race save to Dominion to show range differances
first patched from above (:28) vanilla range code (1:08) un-edited UDML values (1:29) This test confirms what I have always suspected, what the AI ship can see (or able to select to move) directly effects TPT.
UDML 1366 x 768 tech 1 start all races, I played as Cardassians
no "game play" by me only turn after turn until turn 450 (took less than 1 1/2 hours)
I started with shortest range so I was able to increase to see how expanding range would effect TPT better.
using patched above :28
vanilla range values 1:08
un-edited UDML values 1:29
note; only range patch was installed (gHeap patch was not installed)
Most AI races have 35 - 40 systems (except romulans that is under attack from fed)
but very little contact between AI races (federation at war with romulans and Dominion has just meet Klingons)
All AI Races have a good supply of war ships. (200 - 400 ships)
from summary all AI races have made it to tech 9+
here is overview from Cardassian view the next 3 is from switched race save to Dominion to show range differances
first patched from above (:28) vanilla range code (1:08) un-edited UDML values (1:29) This test confirms what I have always suspected, what the AI ship can see (or able to select to move) directly effects TPT.
You do not have the required permissions to view the files attached to this post.
-
- Cadet 4th Year
- Posts: 18
- Joined: Sat Feb 10, 2018 10:30 pm
Re: Turn processing patch (CLOSED)
uh........i can't do much with this. I just don't have any aptitude for tracking things down in these hex strings.
I'm sure this reasonable proof of the AI storing possible ship movements in RAM might help somebody make progress.
I did notice that the AI will adapt to the change, and, use stations to build out to a system that they can "see". To be expected, but, i also could have seen them not bothering, or, somehow expecting stations to still have the unpatched range, and, just flat out stopping when reaching the limit provided by shipyards.
I'm sure this reasonable proof of the AI storing possible ship movements in RAM might help somebody make progress.
I did notice that the AI will adapt to the change, and, use stations to build out to a system that they can "see". To be expected, but, i also could have seen them not bothering, or, somehow expecting stations to still have the unpatched range, and, just flat out stopping when reaching the limit provided by shipyards.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: Turn processing patch (CLOSED)
Hi mullet,
I don't expect you or any member to do things they are not comfortable with.
the range patch above would be installed same as first patch (copy patch to patches folder and run QD patcher to install.)
This last patch for range would never be applied to all mods since it would change AI behavior way too much.
I don't expect you or any member to do things they are not comfortable with.
the range patch above would be installed same as first patch (copy patch to patches folder and run QD patcher to install.)
This last patch for range would never be applied to all mods since it would change AI behavior way too much.
-
- Site Administrator aka Fleet Admiral
- Posts: 7972
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
My second test results
here is my second test results from edited lower range patch.
Note; I used same starting seed as first test.
UDML 1366 x 768 tech 1 start all races, I played as Cardassians
no "game play" by me only turn after turn until turn 450 (took less than 1 3/4 hours)
new patch base values with closed borders on non aggression, friendship, affiliation
short 2
medium 3
long 5
using edited patched :42
vanilla range values 1:29
un-edited UDML values 1:53
note: during random testing of turn speed from turn 300 I noticed it varied from 25 sec to 40 sec depending on if feds had non aggression treaty.
note; only range patch was installed (gHeap patch was not installed)
Dominion AI races have 64 systems other AI races 25 - 28
but very little contact between AI races (federation at war with romulans)
All AI Races have a good supply of war ships. dominion 1045 ships at home system, other AI 200 - 450 war ships
from summary all AI races have made it to tech 9+
here is overview from Cardassian view the next 3 is from switched race save to Dominion to show range differances
first patched from above (:42) vanilla range code (1:29) un-edited UDML values (1:53) Next I want to run an unedited from turn 1 to see how it will advance that way. but this will take much longer to do
Note; I used same starting seed as first test.
UDML 1366 x 768 tech 1 start all races, I played as Cardassians
no "game play" by me only turn after turn until turn 450 (took less than 1 3/4 hours)
new patch base values with closed borders on non aggression, friendship, affiliation
short 2
medium 3
long 5
using edited patched :42
vanilla range values 1:29
un-edited UDML values 1:53
note: during random testing of turn speed from turn 300 I noticed it varied from 25 sec to 40 sec depending on if feds had non aggression treaty.
note; only range patch was installed (gHeap patch was not installed)
Dominion AI races have 64 systems other AI races 25 - 28
but very little contact between AI races (federation at war with romulans)
All AI Races have a good supply of war ships. dominion 1045 ships at home system, other AI 200 - 450 war ships
from summary all AI races have made it to tech 9+
here is overview from Cardassian view the next 3 is from switched race save to Dominion to show range differances
first patched from above (:42) vanilla range code (1:29) un-edited UDML values (1:53) Next I want to run an unedited from turn 1 to see how it will advance that way. but this will take much longer to do
You do not have the required permissions to view the files attached to this post.