All in one 2.0.1 beta 5 available

You can talk about anything. (please read forum rules before posting)

Moderator: thunderchero

User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 4 available

Post by Spocks-cuddly-tribble »

thunderchero wrote: Fri Jun 17, 2022 11:35 pmI got ECM patches added tonight (not tested ini changes) but with my mind I am lost on what great new patches to add to MUM or other of my mods since I have not had any time to test effects.
You don't need to test ini defaults for ECM, just add in ECM ini:

Code: Select all

BORG=ON -> default i.e. redundant?

AUTOSAVE=OFF -> sometimes sporatic issues with the feature
TOOLTIPS=OFF
RANDOMEVENTS=OFF

SHAPE=0
SIZE=2
RACENUM=2
DIFFICULTY=4
CIVLEVEL1=0
CIVLEVEL2=0
CIVLEVEL3=0
CIVLEVEL4=0
CIVLEVEL5=0

ECONFILTER=159
EVENTFILTER=433
MILITARYFILTER=83

Code: Select all

NAME:  Must/should have for your mods:

# 'Required Food' fix for "Automatic" Build function and AI - ECM deviation

>> 0x41258 90 90 90 90 90 90 90 90 90 90 90 90 90 66 8B 79 1C
<< 0x41258 0F B7 79 1A 85 ED 74 09 8B 06 E8 09 1C 00 00 8B F8

# TT ground combat popup fix with empire-wide ground combat bonus

>> 0xEA735 31 C0 89 84 24 24 05 00 00 89 E8 89 AC 24 20 05 00 00 31 E8 DF AC 24 20 05 00 00 66 8B 41 28 DD 9C 24 20 05 00 00 E8 90 B0 F7 FF DC 8C 24 20 05 00 00
<< 0xEA735 8D 94 24 20 05 00 00 0F B6 41 28 DB 41 70 69 C8 BC 01 00 00 0F B7 89 A6 1B 5B 00 83 C1 64 89 0A DB 02 DC 0D 7C 87 57 00 DE C9 E8 8C B0 F7 FF DE C9 90

# system attack ground combat calculation fix with empire-wide bonus factor of attacking TTs now squared

>> 0x6672E DC 8C 24 20
<< 0x6672E 8B 84 24 F8
>> 0x66751 8B 84 24 F8 03 00 00 DC 0D 6C AC 57 00
<< 0x66751 DC 0D 6C AC 57 00 D8 C8 90 90 90 90 90

# ground combat bonus for attackers when freeing systems

>> 0x66761 DD 9C 24 20 03 00 00 E8 83 F5 FD FF 89 84 24 10 04 00 00 DB 84 24 10 04 00 00 DC C8 DC 84 24 20 03 00 00 DC BC 24 20 03 00 00
<< 0x66761 8D 94 24 98 03 00 00 DD 5A 88 E8 80 F5 FD FF 83 7A 48 01 74 09 8B C8 C1 E9 02 90 90 2B C1 89 02 DB 02 D8 C8 DC 42 88 DC 7A 88

# AI ShipUnits Crew Experience Bonuses Bug FIX 2 (@ 1 see combat.bin AI ship sorting fix)

>> 0x00007ce9 94
>> 0x00007cfc 89 94 24 2c 01 00 00 e8 cc 4d 11 00 db 9c
>> 0x0002a3ef 94
>> 0x0002a400 89 94 24 48 01 00
>> 0x0002a407 89 e8 de c1 89 ca e8 c2 26 0f 00 db 9c 24 48 01 00 00
<< 0x00007ce9 84
<< 0x00007cfc e8 d3 4d 11 00 db 1c 24 8b 14 24 90 01 94
<< 0x0002a3ef 84
<< 0x0002a400 de c1 e8 cd 26 0f
<< 0x0002a407 db 1c 24 8b 14 24 01 94 24 48 01 00 00 90 8b c5 8b d1

# AI Check of Industry Capacities for Ship Construction - Dilithium Allocation Fix

>> 0x00060477 e8 54 22 fe ff 01 fb
>> 0x000604ac 8b 14
>> 0x000604af 8d 34 95 00 00 00 00 29 d6 c1 e6 02 29 d6 c1 e6 03 0f bf 18 69 db 28 03 00 00 8b 15 c8 36 5a 00 01 da 81 c2 40 02 00 00 01 f2 85 c9 76 1a
>> 0x000604ed d2
<< 0x00060477 03 df 8b 43 3c 90 90
<< 0x000604ac 6b 34
<< 0x000604af 58 0f bf 18 69 db 28 03 00 00 03 1d c8 36 5a 00 8d 94 33 40 02 00 00 85 c9 76 2d 83 7a 3c 01 75 27 90 90 90 90 90 90 90 90 90 90 90 90 90
<< 0x000604ed c2

# AI Offensive Military Power Check - Ratio & Source Data Optimisation

>> 0x0002cad6 8d 04 d5 00
>> 0x0002cadc 00 01 d0 c1 e0 02 01 d0 c1 e0 02 89 c2 c1 e0 02 29 d0
>> 0x0002cb4e 8d 04 d5 00
>> 0x0002cb54 00 01 d0 c1 e0 02
>> 0x0002cb5e 01 d0
>> 0x0002cb65 e0 02
>> 0x0002cb6a c2 c1 e0 02
>> 0x0002cb72 29 d0
<< 0x0002cad6 69 c2 bc 01
<< 0x0002cadc 8b 90 4c 1c 5b 00 c1 ea 03 89 54 24 24 90 90 90 90 90
<< 0x0002cb4e 69 c2 bc 01
<< 0x0002cb54 8b 90 4c 1c 5b 00
<< 0x0002cb5e 90 90
<< 0x0002cb65 ea 03
<< 0x0002cb6a 54 24 20 90
<< 0x0002cb72 90 90

# Intercept Fix for Ally Ships

>> 0x695FA 31 C0 31 D2 66 8B 46 34 66 8B 53 34 39 D0 0F 84 73 01 00 00
<< 0x695FA 8B 46 34 8B 53 34 3B C2 74 45 E8 77 20 FD FF 85 C0 75 3C 90

# Dynamic Danger Check for AI Colonize, Tform & BldBase Tasks 

>> 0x7A9F 30 DB BF 01 00 00 00 88 D9 89 F8 8B 14 24 D3 E0 21 D0 75 4E FE C3
<< 0x7A9F 6A 00 8B 44 24 40 50 8B 44 24 40 50 8B C5 E8 AE 34 02 00 EB 3B 90

# Auto-Upgrade Fix for AI Ships Under Construction

>> 0x00049860 0f 84 bb 00 00 00
>> 0x0004c437 c0
>> 0x0004c43c 8b
>> 0x0004c442 8b bc 07 a8 00 00 00 89 f8 83 c7 60
>> 0x0004c477 00 00 00 00 00 00 00 00

<< 0x00049860 90 90 90 90 90 90
<< 0x0004c437 f8
<< 0x0004c43c 03
<< 0x0004c442 80 7f 04 02 75 2b 33 c0 b0 a8 eb 29
<< 0x0004c477 8b 04 38 8d 78 60 eb cf
NOTE: AI Check of Industry Capacities for Ship Construction - Dilithium Allocation Fix
-> code deviation for mods with disabled dilithium requirements for finishing ships (e.g. UDM3) viewtopic.php?p=56634#p56634

Code: Select all

NAME: Deviation patch after main patch:

>> 0x604C8 76 2D
<< 0x604C8 90 90


Optional:

Create patch to remove command ship requirement for group vs solo target option: viewtopic.php?p=56596#p56596 (2x nop jump)

Rebalancing the AI Income Cheat -> Only needed if AIs with better credit-income are too strong vs other AIs in low tech/ epic games in that mod (like in vanilla)

Code: Select all

# AI OB attack check for Invade and Harass tasks - Fleet Shields + Hull vs OB Firepower -> Ratio 2:1

>> 0x78D3F 8A 40 52 89 E2 25 FF 00 00 00 E8 72 60 FF FF 8B 54 24 68 66 83 FA 04 0F 85 FF 00 00 00 31 C0 66 8B 84 24 1C 01 00 00 47 01 C6
<< 0x78D3F 8B 68 3C 89 E2 0F B6 40 52 90 E8 72 60 FF FF 8A 44 24 68 3C 04 7F 13 8B 94 24 94 00 00 00 3C 03 75 03 D1 E2 90 03 EA 47 03 F5
>> 0x78DA1 E8 DA 9C FD FF 89 C3 0F AF D9 31 C0 BA 02 00 00 00 8A 45 4C E8 C6 9C FD FF 0F AF C1 8B 94 24 30 01 00 00 01 D8 0F AF D0 8D 04 95 00 00 00 00 29 D0
<< 0x78DA1 3C 23 75 03 8A 45 44 E8 D3 9C FD FF 8B 9C 24 30 01 00 00 3B FB 7D 02 33 FF 0F AF C1 0F AF C3 90 90 3B C6 7C 02 33 FF 8B D0 D1 E0 90 90 90 90 90 90

# AI Invade task ground combat check - Source Data Corrected & output changed from Ratio to Success Chance

>> 0x78F6C E8 0F 9B FD FF
<< 0x78F6C 90 90 90 90 90
>> 0x78F91 31 C0 8D 94 24 20 01 00 00
<< 0x78F91 03 7B 70 EB 55 90 90 90 90
>> 0x79006 89 84 24 4C 01 00 00 8B 84 24 5C 01 00 00 8B 94 24 5C 01 00 00 8B 40 40 66 8B 52 44 89 84 24 48 01 00 00 31 C0 DF AC 24 48 01 00 00 66 89 D0 DD 9C 24 48 01 00 00 E8 AF C7 FE FF DC 8C 24 48 01 00 00 D9 84 24 60 01 00 00
<< 0x79006 8B D4 8B C5 89 3A DB 02 69 C8 BC 01 00 00 0F B7 89 A6 1B 5B 00 83 C1 64 89 0A DB 02 DC 0D 7C 87 57 00 DE C9 E8 C1 C7 FE FF DE C9 D8 C8 8B 84 24 5C 01 00 00 0F BF 00 E8 AE CC FC FF 89 02 DB 02 D8 C8 D8 C1 DE F9 EB 75 90

# AI Income Cheat based on Total Population and Average Tech Level

>> 0x00039820 86 A5 43 00 F5 A5 43 00 09 A6 43 00 2E A6 43 00 48 A6 43 00
>> 0x000399e4 3d 04
>> 0x000399e7 77
>> 0x000399e9 25 ff ff 00 00 ff 24 85 20 a4 43 00 8b 46 04 8b 2e d1 e8 01 c5 89 2e 83 c4 04 5d 5f 5e 59 5b c3 8b 5e 04 83 fb 64 76 0d 89 d8 01 06
<< 0x00039820 00 00 00 00 00 00 00 00 64 00 00 00 7D 00 00 00 AF 00 00 00
<< 0x000399e4 83 f8
<< 0x000399e7 74
<< 0x000399e9 3e 0f b7 1c 4d 60 36 5a 00 c1 eb 03 83 c3 08 0f af 5e 18 c1 eb 03 b1 04 2a c8 d3 eb 8b 04 85 20 a4 43 00 3b d8 7d 02 8b d8 01 1e 90

Code: Select all

NAME:  Rebalancing the AI Income Cheat + 25% * (average tech level - 1) -> Deviation patch after main patch:

>> 0x399F7 08
<< 0x399F7 03
>> 0x399FE 03
<< 0x399FE 02
Min num of TTs test patch: viewtopic.php?f=4&t=4186&p=56595#p56595

AI cheat option: Increasing the AI's offensive ground combat strength

AI battle modifiers is a tough call depending on the mod each.

Hope this helps.


EDIT: Older patches you should check:

Unwanted AI Ship Scrapping Fix -> viewtopic.php?p=54681#p54681
Capping TTs in AI Fleet Buildup -> viewtopic.php?p=54715#p54715

EDIT2:

Wrong Ship displayed after Successful Ramming (Fix): viewtopic.php?p=54579#p54579

AI multiple One-per-Empire buildings fix & unpowered OBs fix: viewtopic.php?p=54784#p54784 (I feel this helps the AI in epic games)

EDIT3: Also make sure you always have the five major shipyards in aibldreq.bin (very needed for larger maps): viewtopic.php?p=34190#p34190
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Hi Everyone,

here is new link for All in one 2.0.1 beta 5

Installer latest release links
changes in beta 5
updated patches and base ini settings for ECM
updated patches for MUM, UDM, UCW, NBU, TMPM, FLG
edited ship scale for MUM
removed dxwnd "warning" text (install first) in installer

see first post for complete changes
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Spocks-cuddly-tribble »

I quick tested the new installer and give a thumbs up. Very clean/simple and no issues so far. :up:

Also I updated many modding topics with recent patches/research, so with updated mods/installer and upcoming UE improvements by Flocke I think we are very well positioned. :wink:

One last thing that bugs me is the repeated/troublesome quest for fair map starting positions for tests/games. Hence for ECM....

Code: Select all

NAME: Fairer Starting Positions Spread for Default Maps
DESC: Adds GalaxySize (0-2) to the default MinHomeSystemDistance values for a more equal spread.
AUTHOR: Spocks-cuddly-tribble
URL: 

>> 0x000ae4c3 8b 15 44 b3 5c
>> 0x000ae4ce 89 d0 c1 fa 1f f7 ff

<< 0x000ae4c3 03 0d b8 36 5a
<< 0x000ae4ce a1 14 b3 5c 00 90 90

#004AF0C3     030D B8365A00    ADD ECX,[5A36B8] // MinHomeSystemDistance + GalaxySize (0-2)

#004AF0CE     A1 14B35C00      MOV EAX,[5CB314]  // LongEdge1
#004AF0D3     9090             NOP
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Deimos
Lieutenant-Commander
Lieutenant-Commander
Posts: 168
Joined: Sat Apr 26, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Deimos »

I notice during the end of the installation it takes a few minutes to "compress files to Stbof.res".

Wouldn't it be easier to just not compress the files? and/or wouldn't game performance be better working from uncompressed content?
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Deimos wrote: Tue Jun 21, 2022 7:25 pm I notice during the end of the installation it takes a few minutes to "compress files to Stbof.res".

Wouldn't it be easier to just not compress the files? and/or wouldn't game performance be better working from uncompressed content?
stbof.res will not work uncompressed, but that operation is adding modded files to base install (language files, mod files and resolution files) this greatly reduces installer size. without doing this installer would be over 20 gigs
User avatar
Deimos
Lieutenant-Commander
Lieutenant-Commander
Posts: 168
Joined: Sat Apr 26, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Deimos »

Gotcha :) thanks Thunder!
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Spocks-cuddly-tribble wrote: Tue Jun 14, 2022 9:32 pm Exactly, that's why I noticed in current AIO vanilla ini BORG=OFF (and there is no ingame button to change this unlike random events).
thunderchero wrote: Tue Jun 14, 2022 10:34 pm exactly that knife goes both ways (no ingame button to turn off borg) :wink:
more complaints about borg ruined game than how do I turn borg "on"
just an idea here since there is 2 places to edit "Randoms on\off" could one location be changed to "borg on\off"?
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Spocks-cuddly-tribble »

Only if you're willing to spend MANY working hours for this and even tech averse folks can edit stbof.ini text or launch trek.exe with -BorgOff. :wink:

The Borg setting has no GUI support (intricate setup with three dynamic variables each e.g. for read/display PushBtn_ClickCallback + possible MP issues).

Easiest would be a Random Events triple choice button: 0=OFF, 1=ON, 2=ON+BORG

Codes are known but this is stuff for hardcore GUI code modders....
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Spocks-cuddly-tribble wrote: Thu Jun 23, 2022 12:30 pm Codes are known but this is stuff for hardcore GUI code modders....
what I was thinking was simple gui edit change text for option screen "random -> Borg"

I expect when screen is loaded it check current value
game setup screen randoms on/off (unchanged)
option screen Borg on/off (change random to borg in option screen)

no problem, as you said it is easily edited
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Spocks-cuddly-tribble »

I understood your idea, but you still need OPTIONS to change random events on/off in running games.

EDIT:

Code: Select all

NAME: Using GameSetup TACTICAL COMBAT Button for BORG ON/OFF (needs edited cc_bkgd.tga)
DESC: The new game must be started to change the BORG stbof.ini setting.
AUTHOR: Spocks-cuddly-tribble
URL: 

>> 0x000beb02 e8 b4 5c
>> 0x000bf2f2 8b 15 e8 b4 5c 00 42 bb 03 00 00 00 89 d0 c1 fa 1f f7 fb
>> 0x000bf30b 89 15 e8 b4 5c 00 83 fa 01 74 2f 83
>> 0x000bf318 e8 b4 5c
>> 0x000bf31c 02
>> 0x000bf320 34 00
>> 0x000bf351 6d 02
>> 0x000bff8b 83
>> 0x000bff8d e8 b4 5c
>> 0x000bff91 02
>> 0x000bff99 34 00
>> 0x000c01cc 6d 02

<< 0x000beb02 40 1a 5b
<< 0x000bf2f2 32 c0 80 3d 6b 18 5b 00 00 75 08 b0 01 90 90 90 90 90 90
<< 0x000bf30b a2 6b 18 5b 00 90 90 90 90 90 90 80
<< 0x000bf318 6b 18 5b
<< 0x000bf31c 00
<< 0x000bf320 70 03
<< 0x000bf351 72 03
<< 0x000bff8b 80
<< 0x000bff8d 6b 18 5b
<< 0x000bff91 00
<< 0x000bff99 70 03
<< 0x000c01cc 72 03


#004BF701     A1 401A5B00         MOV EAX,[5B1A40] ; TACTICAL_DETAILED_QUICK_for_INI


#004BFEF2     32C0                XOR AL,AL
#004BFEF4     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG
#004BFEFB     75 08               JNZ SHORT 4BFF05
#004BFEFD     B0 01               MOV AL,1
#004BFEFF     909090909090        NOP

#004BFF0B     A2 6B185B00         MOV [5B186B],AL ; BORG
#004BFF10     909090909090        NOP
#004BFF16     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG

#004BFF1F     B8 70030000         MOV EAX,370 ; ON

#004BFF50     B8 72030000         MOV EAX,372 ; OFF


#004C0B8B     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG

#004C0B98     B8 70030000         MOV EAX,370 ; ON

#004C0DCB     B8 72030000         MOV EAX,372 ; OFF
Patch changes button display to ON/OFF but 'TACTICAL COMBAT' must be corrected to BORG (wdf?).

Note Borg ON is pointless if Random Events OFF (except for cube replication after system destruction).



Re-checking the random events code I found solutions to another two old issues: :wink:

- Rebellion main code mistakenly part of the random events (exploitable bias like the eliminated empire bug) viewtopic.php?p=18755#p18755

- Combat Drone mistakenly NOT part of the random events (could protect AI in low tech/epic games) viewtopic.php?p=33718#p33718

Code: Select all

NAME: ECM Update

# Fairer Starting Positions Spread for Default Maps

>> 0x000ae4c3 8b 15 44 b3 5c
>> 0x000ae4ce 89 d0 c1 fa 1f f7 ff
<< 0x000ae4c3 03 0d b8 36 5a
<< 0x000ae4ce a1 14 b3 5c 00 90 90

# Combat Drone & 'artifacts' only with Random Events

>> 0x00050e82 4c 24 10 8b 3d c8 36 5a 00 01 cf 66 83 7f 44 ff 74 52 0f bf cb 31 d2 89 c8 66
>> 0x00050e9d 57 44
>> 0x00050fad 8b 7c 24 10 81 c7 28 03
>> 0x00050fb6 00 43 89 7c 24 10
>> 0x00050fbd b0

<< 0x00050e82 3d c8 36 5a 00 03 7c 24 10 80 7f 44 ff 0f 84 1a 01 00 00 0f b7 57 44 0f bf cb
<< 0x00050e9d c1 90
<< 0x00050fad eb 0d 80 3d 46 2b 5a 00
<< 0x00050fb6 0f 85 2a ff ff ff
<< 0x00050fbd e9

# Enabling Rebellions without Random Events

>> 0x0004b290 cc be 44
>> 0x0004b294 e1 be 44
>> 0x0004b298 d1 be 44
>> 0x0004b29c f6 be 44
>> 0x0004b2a0 0b bf 44
>> 0x0004b2a7 1e 00
>> 0x0004b2ba 66 3d 04 00
>> 0x0004b2c0 25 ff ff 00 00 ff 24 85 90 be 44 00 ba 2d 00
>> 0x0004b2d0 00
>> 0x0004b400 a3 c1 44
>> 0x0004b404 c4 c1 44
>> 0x0004b408 cb c1 44
>> 0x0004b40c d2 c1 44
>> 0x0004b410 d9 c1 44
>> 0x0004b596 11
>> 0x0004b59c ff 24
>> 0x0004b5a3 b9 2d 00 00 00 3b 0d 18 29 5a 00 0f 87 66 ff ff ff
>> 0x00057741 74 0f

<< 0x0004b290 2d 00 00
<< 0x0004b294 23 00 00
<< 0x0004b298 1e 00 00
<< 0x0004b29c 14 00 00
<< 0x0004b2a0 0a 00 00
<< 0x0004b2a7 10 27
<< 0x0004b2ba 8a c8 3c 04
<< 0x0004b2c0 80 3d 46 2b 5a 00 00 74 08 8b 14 8d 90 be 44
<< 0x0004b2d0 90
<< 0x0004b400 2d 00 00
<< 0x0004b404 23 00 00
<< 0x0004b408 1e 00 00
<< 0x0004b40c 14 00 00
<< 0x0004b410 0a 00 00
<< 0x0004b596 22
<< 0x0004b59c 8b 0c
<< 0x0004b5a3 3b 0d 18 29 5a 00 77 0e 80 3d 46 2b 5a 00 00 74 05
<< 0x00057741 90 90
Last edited by Spocks-cuddly-tribble on Sat Jun 25, 2022 9:51 am, edited 1 time in total.
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Spocks-cuddly-tribble wrote: Fri Jun 24, 2022 10:35 am but 'TACTICAL COMBAT' must be corrected to BORG (wdf?).
tga edit of cc_bkgd.tga
english tga
800.zip
(259.22 KiB) Downloaded 46 times
1024.zip
(328.16 KiB) Downloaded 45 times
1366.zip
(488.7 KiB) Downloaded 46 times
1080.zip
(1.11 MiB) Downloaded 44 times
preview jpg
cc_bkgd.jpg
cc_bkgd.jpg (250 KiB) Viewed 2800 times
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Spocks-cuddly-tribble »

thunderchero wrote: Fri Jun 24, 2022 6:29 pmtga edit of cc_bkgd.tga
Thank you, very nice!

But this looks like a tremendous effort for each language / resolution / custom mod GUI i.e. not text, but picture editing?

Shall we use this option for AIO vanilla (1.0.3) and ECM?

Tactical Combat manual/automatic is still in options menu and I think BORG makes more sense at the given position in startup screen.
Almost like this positioning error was meant for this i.e. in default screen Tactical Combat should be where Random Events is or at bottom with timers.
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7849
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: All in one 2.0.1 beta 5 available

Post by thunderchero »

Spocks-cuddly-tribble wrote: Fri Jun 24, 2022 10:35 am Note Borg ON is pointless if Random Events OFF (except for cube replication after system destruction).
could code be changed, if Borg "ON" to set Random Events "ON"?

just asking, probably not worth effort.
Spocks-cuddly-tribble wrote: Sat Jun 25, 2022 9:47 am But this looks like a tremendous effort for each language / resolution / custom mod GUI i.e. not text, but picture editing?
I saved most of the psd's (layered image) so making changes like this is not too bad also "BORG;" would not change on German and I already have that now.
Spocks-cuddly-tribble wrote: Sat Jun 25, 2022 9:47 am Shall we use this option for AIO vanilla (1.0.3) and ECM?
ECM is up to you :wink:
Vanilla I am a little torn I don't really want to make alt set of trek.exe's so if I did add it, it would be for base version.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Re: All in one 2.0.1 beta 5 available

Post by Spocks-cuddly-tribble »

thunderchero wrote: Sat Jun 25, 2022 10:21 amcould code be changed, if Borg "ON" to set Random Events "ON"?

EDIT: Here is patch updated as requested: (not perfect i.e. no check for mismatching default settings or turning off Random Events afterwards)

Code: Select all

NAME: Using GameSetup TACTICAL COMBAT Button for BORG ON/OFF (needs edited cc_bkgd.tga)
DESC: New Borg button works for the current session. Starting new game or OPTIONS Accept button updates stbof.ini.
DESC: Borg ON is pointless if RandomEvents OFF in gameInfo (except for cube replication after system destruction).
AUTHOR: Spocks-cuddly-tribble
URL: 

>> 0x000beb02 e8 b4 5c
>> 0x000bf2f2 8b 15 e8 b4 5c 00 42 bb 03 00 00 00 89 d0 c1 fa 1f f7 fb
>> 0x000bf30b 89 15 e8 b4 5c 00 83 fa 01 74 2f 83
>> 0x000bf318 e8 b4 5c
>> 0x000bf31c 02
>> 0x000bf320 34 00
>> 0x000bf32a 59 64 89 c2 89 d8
>> 0x000bf335 8b 41 64 e8 03 1a 08 00 e8 ee d6 07 00 59 5b c3 8d 1c 12 89 1d e8 b4 5c 00
>> 0x000bf351 6d 02
>> 0x000bff8b 83
>> 0x000bff8d e8 b4 5c
>> 0x000bff91 02
>> 0x000bff99 34 00
>> 0x000c01cc 6d 02

<< 0x000beb02 40 1a 5b
<< 0x000bf2f2 32 c0 80 3d 6b 18 5b 00 00 75 08 b0 01 a2 3d 1a 5b 00 90
<< 0x000bf30b a2 6b 18 5b 00 90 90 90 90 90 90 80
<< 0x000bf318 6b 18 5b
<< 0x000bf31c 00
<< 0x000bf320 70 03
<< 0x000bf32a d8 8b d3 8b 41 64
<< 0x000bf335 80 3d 6b 18 5b 00 01 75 0a 8b 41 70 8b d3 e8 18 1c 08 00 59 5b c3 90 90 90
<< 0x000bf351 72 03
<< 0x000bff8b 80
<< 0x000bff8d 6b 18 5b
<< 0x000bff91 00
<< 0x000bff99 70 03
<< 0x000c01cc 72 03


#004BF701     A1 401A5B00         MOV EAX,[5B1A40] ; TACTICAL_DETAILED_QUICK_for_INI


#004BFEF2     32C0                XOR AL,AL
#004BFEF4     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG
#004BFEFB     75 08               JNZ SHORT 4BFF05
#004BFEFD     B0 01               MOV AL,1
#004BFEFF     A2 3D1A5B00         MOV [5B1A3D],AL ; RANDOMEVENTS
#004BFF04     90                  NOP

#004BFF0B     A2 6B185B00         MOV [5B186B],AL ; BORG
#004BFF10     909090909090        NOP
#004BFF16     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG

#004BFF1F     B8 70030000         MOV EAX,370 ;

#004BFF29     8BD8                MOV EBX,EAX
#004BFF2B     8BD3                MOV EDX,EBX
#004BFF2D     8B41 64             MOV EAX,[ECX+64] ; BORG display

#004BFF35     803D 6B185B00 01    CMP BYTE [5B186B],1
#004BFF3C     75 0A               JNZ SHORT 4BFF48
#004BFF3E     8B41 70             MOV EAX,[ECX+70] ; RANDOMEVENTS display
#004BFF41     8BD3                MOV EDX,EBX
#004BFF43     E8 181C0800         CALL 541B60
#004BFF48     59                  POP ECX
#004BFF49     5B                  POP EBX
#004BFF4A     C3                  RETN
#004BFF4B     909090              NOP

#004BFF50     B8 72030000         MOV EAX,372 ;


#004C0B8B     803D 6B185B00 00    CMP BYTE [5B186B],0 ; BORG

#004C0B98     B8 70030000         MOV EAX,370 ;

#004C0DCB     B8 72030000         MOV EAX,372 ;
But be prepared to explain a thousand times that BORG is an INI only setting like Tooltipps (i.e. shared for all games untill next change).

Random, Tactical & Timers are also INI settings, BUT read/stored for each game in savegame gameInfo.

Can be changed in Options screen (displays current INI not last loaded game settings) for BOTH at the same time (current game & INI).

Also note that BORG OFF doesn't work in multiplayer (a funny code exception).

thunderchero wrote: Sat Jun 25, 2022 10:21 amif I did add it, it would be for base version.
That's what I meant (i.e. always/forced same as ship HOB LOD tactical combat random crash fix)?


EDIT: 370h & 372h should be lexicon.dic entries for ON/OFF, but I can't see them in default lexicon.dic?

A small side project (not great):

Code: Select all

NAME: Difficulty Level with Color Scheme Workaround

>> 0x000bf3c4 89 c2 89 c8 e8 93 1b 08 00 8b 43 58 e8 6b 19 08 00
<< 0x000bf3c4 0f b6 15 fe b4 5c 00 4a 83 ec 28 e9 d7 fc ff ff 90

#004BFFC4   0FB615 FEB45C00   MOVZX EDX,BYTE [5CB4FE]
#004BFFCB   4A                DEC EDX
#004BFFCC   83EC 28           SUB ESP,28
#004BFFCF  ^E9 D7FCFFFF       JMP 4BFCAB
#004BFFD4   90                NOP

And here is a very needed fix for the crappy BotF random engine: [EDIT -> Corrected a code mistake - first patch version did nothing]

Code: Select all

NAME: BotF Random Engine Fix
DESC: Randomizes all random seeds using system time each start of single player turn process.
AUTHOR: Spocks-cuddly-tribble
URL: 

>> 0x0005763f 0f 84 6e ff ff ff e8 86 79 0b 00 83 c4 1c 5e 5a 59 c3
>> 0x00057652 00 00 00 00
>> 0x00057657 00 00 00 00
>> 0x0005765c 00 00 00 00
>> 0x0005768d 0a

<< 0x0005763f 74 05 e8 8a 79 0b 00 e9 68 ff ff ff 33 c0 e8 f5 e9 0b
<< 0x00057652 a3 ac 6b 59
<< 0x00057657 e8 f4 fb 0a
<< 0x0005765c dd d8 eb 38
<< 0x0005768d bd


#0045823F     74 05           JE SHORT 458246
#00458241     E8 8A790B00     CALL 50FBD0
#00458246    ^E9 68FFFFFF     JMP 4581B3
#0045824B     33C0            XOR EAX,EAX
#0045824D     E8 F5E90B00     CALL 516C47 // get time
#00458252     A3 AC6B5900    MOV [596BAC],EAX // use as random Seed
#00458257     E8 F4FB0A00    CALL 507E50 // FPU random (randomize seeds)
#0045825C     DDD8           FSTP ST // clear FPU
#0045825E     EB 38          JMP SHORT 458298

#0045828C    ^74 BD           JE SHORT 0045824B // single player turn process go randomize seeds
The new random feature switch is set for single player only to avoid any unforeseen multiplayer issues.


Latest ECM updates patch with BORG button code and 'AI Retreat Fix for Importance 0 Battles': viewtopic.php?p=52751#p52751

Code: Select all

NAME: ECM Update

# Fairer Starting Positions Spread for Default Maps

>> 0x000ae4c3 8b 15 44 b3 5c
>> 0x000ae4ce 89 d0 c1 fa 1f f7 ff
<< 0x000ae4c3 03 0d b8 36 5a
<< 0x000ae4ce a1 14 b3 5c 00 90 90

# 0.85 -> 0.98 (AI Invade Task TTs' ground combat ratio max limit 1:7)

0x175554 33 33 33 33 33 33 EB 3F
0x175554 5C 8F C2 F5 28 5C EF 3F

# Combat Drone & 'artifacts' only with Random Events

>> 0x00050e82 4c 24 10 8b 3d c8 36 5a 00 01 cf 66 83 7f 44 ff 74 52 0f bf cb 31 d2 89 c8 66
>> 0x00050e9d 57 44
>> 0x00050fad 8b 7c 24 10 81 c7 28 03
>> 0x00050fb6 00 43 89 7c 24 10
>> 0x00050fbd b0

<< 0x00050e82 3d c8 36 5a 00 03 7c 24 10 80 7f 44 ff 0f 84 1a 01 00 00 0f b7 57 44 0f bf cb
<< 0x00050e9d c1 90
<< 0x00050fad eb 0d 80 3d 46 2b 5a 00
<< 0x00050fb6 0f 85 2a ff ff ff
<< 0x00050fbd e9

# Enabling Rebellions without Random Events

>> 0x0004b290 cc be 44
>> 0x0004b294 e1 be 44
>> 0x0004b298 d1 be 44
>> 0x0004b29c f6 be 44
>> 0x0004b2a0 0b bf 44
>> 0x0004b2a7 1e 00
>> 0x0004b2ba 66 3d 04 00
>> 0x0004b2c0 25 ff ff 00 00 ff 24 85 90 be 44 00 ba 2d 00
>> 0x0004b2d0 00
>> 0x0004b400 a3 c1 44
>> 0x0004b404 c4 c1 44
>> 0x0004b408 cb c1 44
>> 0x0004b40c d2 c1 44
>> 0x0004b410 d9 c1 44
>> 0x0004b596 11
>> 0x0004b59c ff 24
>> 0x0004b5a3 b9 2d 00 00 00 3b 0d 18 29 5a 00 0f 87 66 ff ff ff
>> 0x00057741 74 0f

<< 0x0004b290 2d 00 00
<< 0x0004b294 23 00 00
<< 0x0004b298 1e 00 00
<< 0x0004b29c 14 00 00
<< 0x0004b2a0 0a 00 00
<< 0x0004b2a7 10 27
<< 0x0004b2ba 8a c8 3c 04
<< 0x0004b2c0 80 3d 46 2b 5a 00 00 74 08 8b 14 8d 90 be 44
<< 0x0004b2d0 90
<< 0x0004b400 2d 00 00
<< 0x0004b404 23 00 00
<< 0x0004b408 1e 00 00
<< 0x0004b40c 14 00 00
<< 0x0004b410 0a 00 00
<< 0x0004b596 22
<< 0x0004b59c 8b 0c
<< 0x0004b5a3 3b 0d 18 29 5a 00 77 0e 80 3d 46 2b 5a 00 00 74 05
<< 0x00057741 90 90

# Undo outdated Generated Monsters Bitmask 5A2B78 workaround via alienInfo

>> 0x4A693 4C 20
<< 0x4A693 78 2B
>> 0x4A6A7 4C 20
<< 0x4A6A7 78 2B

# Generated Monsters Bitmask Load Game Bug Fix

>> 0x0004ace5 89 15 78 2b 5a 00
<< 0x0004ace5 90 90 90 90 90 90

# AI Retreat Fix for Importance 0 Battles

>> 0x000771d9 7f 0d 83 3d 64 58 5b 00 00 0f 85 d5 fd ff ff
<< 0x000771d9 0f 84 de fd ff ff 83 3d 64 58 5b 00 00 75 e9

# BotF Random Engine Fix for single player turn process (remove before testing new special features)

>> 0x0005763f 0f 84 6e ff ff ff e8 86 79 0b 00 83 c4 1c 5e 5a 59 c3
>> 0x00057652 00 00 00 00
>> 0x00057657 00 00 00 00
>> 0x0005765c 00 00 00 00
>> 0x0005768d 0a
<< 0x0005763f 74 05 e8 8a 79 0b 00 e9 68 ff ff ff 33 c0 e8 f5 e9 0b
<< 0x00057652 a3 ac 6b 59
<< 0x00057657 e8 f4 fb 0a
<< 0x0005765c dd d8 eb 38
<< 0x0005768d bd

# Using GameSetup TACTICAL COMBAT Button for BORG ON/OFF (needs edited cc_bkgd.tga)

>> 0x000beb02 e8 b4 5c
>> 0x000bf2f2 8b 15 e8 b4 5c 00 42 bb 03 00 00 00 89 d0 c1 fa 1f f7 fb
>> 0x000bf30b 89 15 e8 b4 5c 00 83 fa 01 74 2f 83
>> 0x000bf318 e8 b4 5c
>> 0x000bf31c 02
>> 0x000bf320 34 00
>> 0x000bf32a 59 64 89 c2 89 d8
>> 0x000bf335 8b 41 64 e8 03 1a 08 00 e8 ee d6 07 00 59 5b c3 8d 1c 12 89 1d e8 b4 5c 00
>> 0x000bf351 6d 02
>> 0x000bff8b 83
>> 0x000bff8d e8 b4 5c
>> 0x000bff91 02
>> 0x000bff99 34 00
>> 0x000c01cc 6d 02

<< 0x000beb02 40 1a 5b
<< 0x000bf2f2 32 c0 80 3d 6b 18 5b 00 00 75 08 b0 01 a2 3d 1a 5b 00 90
<< 0x000bf30b a2 6b 18 5b 00 90 90 90 90 90 90 80
<< 0x000bf318 6b 18 5b
<< 0x000bf31c 00
<< 0x000bf320 70 03
<< 0x000bf32a d8 8b d3 8b 41 64
<< 0x000bf335 80 3d 6b 18 5b 00 01 75 0a 8b 41 70 8b d3 e8 18 1c 08 00 59 5b c3 90 90 90
<< 0x000bf351 72 03
<< 0x000bff8b 80
<< 0x000bff8d 6b 18 5b
<< 0x000bff91 00
<< 0x000bff99 70 03
<< 0x000c01cc 72 03
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1884
Joined: Sun Apr 27, 2008 2:00 am

Strangest game I have ever played

Post by Spocks-cuddly-tribble »

ECM5 with latest patch -> Cardassians, all T1, hard, large, irregular, no minors, no random events
Cardassians = hardest low tech empire (no scrapping revenue, auto-upgrade hull-damage & solo-ram only with command-ship/station hurts them the most)

I managed to befriend the much more powerful Klingons. We butchered the Ferengi, Romulans & Federation, but the Klingons refused to sign an alliance treaty for the team-domination victory. The were just happy the way the things are and didn't want the game to end....:???: So I had to betray them and take their biggest systems to get more than 60% of the galactic population.

End game powergraph: (score drop due to loss of more than 60 heavy cruiser 2 against the max-teched klingon fleet & no trade routes income)

power.png
power.png (415.18 KiB) Viewed 2084 times

The end battle was really nice with genuine DS9 vibes and it's a shame that I mistakenly deleted the save before I could test it with the shield-level fix. :sad:

Nice:

- ship specific weapon animations with different torpedo types for klingons and feds ( thanks again to thunderchero :wink: )
- aft topedo launcher for most cruisers and 360 arc for strike cruiser
- new AI codes for diplomacy-, sysdev-, ship-tasks and tactical combat - [EDIT: with new codes AI should finally be ready for larger maps :idea:]




Save-Game Screen -> Buttons Fix?

Mistakenly clicking SAVE GAME instead of LOAD GAME and confirming without noticing the wrong screen cost me many saves.
save_button.png
save_button.png (307.32 KiB) Viewed 2084 times
Can we make the SAVE GAME more prominent in the upper blue bar and ACCEPT SAVING in the button (+ ACCEPT = LOAD in LOAD GAME screen)?




Cardassian SYSTEMS List Fix?
systems_list.png
systems_list.png (454.41 KiB) Viewed 2084 times
E.g. 'Melona... (1 turn)' is really hard to see (e.g. for buy orders to prevent waste of industry production) -> changing font color or background suggestions?




INTEL MANAGEMENT Screen -> locked-sliders of eliminated empires Bug: -> The forum doesn't allow me to upload a third picture for this post (limit?).

Sum of Total Percentage(s) in my case 81% (3 empires gone with 19% Intel locked in hidden sliders)

If an intel slider was locked while the target empire dies the assigned intel percentage is lost for good....(funny bug :shock: ). Any solution?
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
Post Reply

Return to “General Chat”