Minor update to All in One will be in the works

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

Moderator: thunderchero

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

Re: Minor update to All in One will be in the works

Post by thunderchero »

Spocks-cuddly-tribble wrote: Tue Aug 17, 2021 7:51 am IIRC you had a small installer tool for adding files to stbof.res without corrupting it due to wrong compression?
easiest way to use is un-zip to "C:\" and use in that location.
adjust path in add.bat if location changed.
Default locations;
"C:\add files" (location of stbof,res)
"C:\add files\mod" (loction of new files to be added to stbof.res)
"C:\add files\7za.exe" (location of 7za.exe)
add files.zip
(293.9 KiB) Downloaded 89 times
Spocks-cuddly-tribble wrote: Tue Aug 17, 2021 7:51 am EDIT: I fear it's too late, but I got the hotfixes done: https://workupload.com/file/AYPd4kJkdCk
will add when I have time. I have been busy with some home projects. :wink:
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

thunderchero wrote: Wed Aug 18, 2021 4:36 pmwill add when I have time. I have been busy with some home projects. :wink:
That goes without saying, there is no urgency. :wink:

Squeezing in all the update research, coding and testing during the last two months was a bit exhausting.

Meanwhile I will re-download all-in-one 2.0, since I have yet to figure out a way to get OllyDbg to modify trek.exe when no game is installed.

EDIT: I forgot about having selected 512 replacement textures when installing vanilla, must have misread this as always A hob with A texture(512). A personal perception bias due to Joker's description of his old hob-fix (removed and forgotten as a result of a shitstorm from Hades fans over twenty years ago).

So ignore my unqualified comment on the ship textures in vanilla. :wink:
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

I had some time last night and edited the script for installer to add ECM-SH version. currently I set it up as you suggested (same as large version of other mods)

But this got me worried, this will install ECM (base) and ECM-SH any time ECM is installed. (no SH option during install)
also when uninstaller is ran it will uninstall base and SH with single click.

will that be ok or did you want them completely separate installs with separate uninstallers?
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

thunderchero wrote: Fri Aug 20, 2021 10:33 amwill that be ok or did you want them completely separate installs with separate uninstallers?
If I understand this correctly, it's just three small end user inconveniences wrt an potentially unwanted option:

- used HD space
- installation/deinstallation time
- DxWnd launch list 'spammed' with a potentially unwanted mod (if not launching via shortcut icons)

I have no problem with that, let's hope there won't be end user complaints.


Nice thing about ECM-SH is savegame compatibility with base version. So the same turn 1 save game can be tested for AI vs AI re-balance effects and/or each battle with both options. :wink:


In case you need to recompile anyway, here is AI industry output check fix (but unimportant):

>> 0x40B6A 0F B6 F4 8D 04 F5 00 00 00 00 01 F0 C1 E0 02
<< 0x40B6A 6B D2 58 8B 84 11 6C 02 00 00 E9 E6 00 00 00

EDIT: Adding this might be not a good idea due to other silly AI codes, but this fix is useful: viewtopic.php?p=54681#p54681
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: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

I rescaled two ships in trek.exe.

But looking at your great research/testing of scale vs effective hit probability, this would mean I have to change defense values in shiplist.sst to compensate the effect of scale. If so, by what factor?

thunderchero wrote: Wed Jun 08, 2016 4:05 pm"model radius" value in the hobs at 0x68

in combat this value is used to calculate hit/miss probability, the larger the target the easier to hit.
thunderchero wrote: Thu Apr 17, 2014 10:19 pmboth ships 100 meters, 100% scale in trek.exe

both ships 100 meters, 750% scale in trek.exe
thunderchero wrote: Fri Apr 18, 2014 1:23 pmI was surprised to find ship scale made a big difference In out come of combat.

example
out come of first image above no damage ship retreated

out come of second image shields down hull to 39% and ship retreated
thunderchero wrote: Fri Apr 18, 2014 3:05 pmI also did third test, both ships 750 meters, 100% scale in trek.exe and vanilla initial combat distance of 900 units (450 * 2)

both ships 750 meters, 100% scale in trek.exe and vanilla initial combat distance of 900 units (450 * 2)
as
both ships 100 meters, 750% scale in trek.exe and vanilla initial combat distance of 900 units (450 * 2)

Hob 'model radius' * trek.exe scale -> i.e. same effect both scales

Example scale 1.0 -> 1.1 (easier to hit, no matter Hob or exe) -> defense +10% in compensation?

EDIT: Ignore my question.

Changing defense values will influence outcome of automatic battles (i.e. AI vs AI fights) and the AI combat simulation, leading to a misjudgment of odds in tactical combat for the AI command selection.

Plain speak: Re-scaling ships in ECM is a big no-no. :sad: :dwn:
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

New All in One beta version available

for latest beta see this topic
viewtopic.php?p=57818#p57818

Note; this version has changes to DxWnd.ini file. So DxWnd should be uninstalled and reinstalled fron new installer for proper shortcut function.

enjoy
thunderchero
Spocks-cuddly-tribble wrote: Fri Aug 20, 2021 11:45 am In case you need to recompile anyway, here is AI industry output check fix (but unimportant):

>> 0x40B6A 0F B6 F4 8D 04 F5 00 00 00 00 01 F0 C1 E0 02
<< 0x40B6A 6B D2 58 8B 84 11 6C 02 00 00 E9 E6 00 00 00

EDIT: Adding this might be not a good idea due to other silly AI codes, but this fix is useful: viewtopic.php?p=54681#p54681
added AI industry output check fix to latest version (should this be removed?)

Unwanted AI Ship Scrapping Fix has not been added yet.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

Thank you very much. :cool:

No need to stress ourselves with adding each single hot-fix, I will collect all changes in updates list for final release. :wink:

E.g. undoing re-scaling negh'var and vor'cha :sad: , unless there is a trick to rescale rendered ships without affecting combat calculations :?:
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

Spocks-cuddly-tribble wrote: Sun Aug 22, 2021 8:12 am E.g. undoing re-scaling negh'var and vor'cha :sad: , unless there is a trick to rescale rendered ships without affecting combat calculations :?:
if model is re-converted at proper/desired scale you would need to adjust model radius of hobs to not effect combat calculations. but this would introduce a shield display issue.

edit; btw I changed how SH version installs and uninstalls. it is separate install/uninstall.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

thunderchero wrote: Sun Aug 22, 2021 8:24 amif model is re-converted at proper/desired scale you would need to adjust model radius of hobs
In order to 're-converted at proper/desired scale' one must know how to create Hob files (BotF 3D ship designs) from scratch?
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

Spocks-cuddly-tribble wrote: Sun Aug 22, 2021 9:32 am In order to 're-converted at proper/desired scale' one must know how to create Hob files (BotF 3D ship designs) from scratch?
scratch no, but current model would need to be converted to 3ds then phaser slots added and converted to flt -> hot -> and back to hob
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

thunderchero wrote: Sun Aug 22, 2021 10:06 amconverted to 3ds then phaser slots added...
The working effort and the shields-glitch aside, this means losing the damage animation feature (if I'm not mistaken).

So I think for the time being, the Negh'var has to remain a small 'toy' ship and the Vor'cha a giant. :wink:
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

Spocks-cuddly-tribble wrote: Sun Aug 22, 2021 10:28 am this means losing the damage animation feature (if I'm not mistaken).
correct
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

I'm currently researching for further AI improvements, in case anyone wants to test ECM here is hot-fix patch:

Code: Select all

# undo AI Industry output check fix (good for auto build feature, but shared AI code needs nominal values)
>> 0x40B6A 6B D2 58 8B 84 11 6C 02 00 00 E9 E6 00 00 00
<< 0x40B6A 0F B6 F4 8D 04 F5 00 00 00 00 01 F0 C1 E0 02

# undo Negh'Var KM3 & Vor'cha KH1 rescaling
>> 0x18FF08 CD CC 8C 3F
<< 0x18FF08 00 00 80 3F
>> 0x18FE78 CD CC 8C 3F
<< 0x18FE78 9A 99 99 3F

# Unwanted AI Ship Scrapping Fix (base version)
>> 0xC5B3 E8 78 FC FF FF
<< 0xC5B3 90 90 90 90 90
>> 0xC5DD F7 F6
<< 0xC5DD 90 90
>> 0xC601 31 FF
<< 0xC601 8B CB

Btw, Gomtuu is filing a plagiarism lawsuit against Thunderchero, the idea for his 'Reacting to Cloaked Ships' code was stolen from Gomtuu (only monster that can do that). :wink: :wink:
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: 7929
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Minor update to All in One will be in the works

Post by thunderchero »

Spocks-cuddly-tribble wrote: Mon Aug 23, 2021 4:27 pm Btw, Gomtuu is filing a plagiarism lawsuit against Thunderchero, the idea for his 'Reacting to Cloaked Ships' code was stolen from Gomtuu (only monster that can do that). :wink: :wink:
My Lawyer told my all I can say is "No Comment"
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1925
Joined: Sun Apr 27, 2008 2:00 am

Re: Minor update to All in One will be in the works

Post by Spocks-cuddly-tribble »

I tested the new 'All in One' and it's the best and clearest version we ever had. It was the first time I understood all options. So a big thumbs up for thunderchero's work. :wink:


Two points could be further improved:

DxWnd -> I'd remove default icon paths option -> pointless + windowed/fullscreen selection will also affect DxWnd mod-list shortcut when unselecting mod shortcuts

ECM Shield Level Fix needs an explanation. Can we squeeze in into installer menu: -> Shield Level Fix (reduced torpedo efficiency against shields for realism & longer battles)



Here is ECM5 trek.exe update patch + stbof.res files

Known issues:

- AI battle prognosis still bugged (eg. 1 better ship vs a fleet of weaker ships = unrealistic high)
- AI building behavior still bugged


stbof.res files: https://workupload.com/file/QXSmGLnLpnF

- removed most Tethys phaser (edited Joker phaser instead)
- edited bldset*.bin 2-4 (for AI & updated extra Starting Systems fix)


Trek.exe update patch:

Code: Select all

# undo AI Industry output check fix (good for auto build feature, but shared AI code needs nominal values)
>> 0x40B6A 6B D2 58 8B 84 11 6C 02 00 00 E9 E6 00 00 00
<< 0x40B6A 0F B6 F4 8D 04 F5 00 00 00 00 01 F0 C1 E0 02

# undo Negh'Var KM3 & Vor'cha KH1 rescaling
>> 0x18FF08 CD CC 8C 3F
<< 0x18FF08 00 00 80 3F
>> 0x18FE78 CD CC 8C 3F
<< 0x18FE78 9A 99 99 3F

# Unwanted AI Ship Scrapping Fix (base version)
>> 0xC5B3 E8 78 FC FF FF
<< 0xC5B3 90 90 90 90 90
>> 0xC5DD F7 F6
<< 0xC5DD 90 90
>> 0xC601 31 FF
<< 0xC601 8B CB

# AI multiple one-per-empire buildings fix
>> 0xB2BF 24 66 8B 4E 08 66 83 F9 20 0F 83 98 00 00 00 B8 01 00 00 00 D3 E0 89 C1 23 4C 24 68 83 F9 01
<< 0xB2BF 12 8A 46 08 8B D1 E8 B6 FB 02 00 85 C0 0F 85 F9 FA FF FF 80 7C 24 72 04 74 05 80 7C 24 72 24

# AI power up all/more OBs when systems in danger (fix)
>> 0xA339 32
<< 0xA339 0A
>> 0xA345 32
<< 0xA345 0A

# AI ship sorting by function - deviation fix
>> 0x188CFA 01 00 02
<< 0x188CFA 02 00 01

# Number of unused dilithium sources (fix) for AI build ship tasks
>> 0xBDB0 8D 04 CD 00 00 00 00 01 C8 C1 E0 02 01 C8 C1 E0 02 89 C1 C1 E0 02 29 C8 05 98 1A 5B 00 8D 48 54 8B 40 50 66 8B 59 0C
<< 0xBDB0 69 C1 BC 01 00 00 05 98 1A 5B 00 8B 58 60 3B 58 64 7F 04 33 DB EB 03 2B 58 64 8B 40 50 90 90 90 90 90 90 90 90 90 90

# Protecting the AI from Black Holes
>> 0x6B1D6 00 00 00 00 00 00 00 00 00 00
<< 0x6B1D6 33 C0 81 C4 50 01 00 00 5D C3
>> 0x6B222 66 8B 50 34 66 89 94 24 4C 01 00 00 66 83 FA 23 76 0A 31 C0 81 C4 50 01 00 00 5D C3
<< 0x6B222 51 66 8B 48 34 66 89 8C 24 4C 01 00 00 B5 01 D2 E5 84 2D 28 2B 5A 00 59 74 9A 90 90

# undo 'custom planet names for any system (fix)' -> breaks cardassia 1/2 & romulus 4/5 planet names fix in planet.pst!!!
>> 0xFC2E9 90 90 90 90 90 90
<< 0xFC2E9 0F 83 FA 03 00 00

# undo Planet name 'Minos' Position Fix
>> 0x50F78 0F B6 47 6A 48 D1 E8
<< 0x50F78 31 C0 66 8B 47 6A 48

# Change Drone system name to Minos Fix
>> 0x50F86 8B BF B0 00 00 00
<< 0x50F86 83 C7 08 90 90 90
>> 0x50F91 01 C7
<< 0x50F91 90 90

# Update 'extra Starting Systems without Special Buildings Fix (OBs only is a Bug)' with auto-correct bldset.bin 
>> 0x5043E 8B 84 24 50 01 00 00 80 78 30 00 0F 84 14 FE FF FF 31 C0 89 E2 66 8B 84 24 1E 01 00 00 E8 50 F4 FF FF 80 7C 24 73 02 0F 85 E6 01 00 00
<< 0x5043E 33 C0 8B D4 66 8B 84 24 1E 01 00 00 E8 61 F4 FF FF 8B 84 24 50 01 00 00 80 7C 24 73 02 0F 85 F0 01 00 00 80 78 30 00 0F 84 F8 FD FF FF
>> 0x50654 70 80 FB 00 0F 84 0D FE FF FF 80 7C 24 71 0B 75 13 90 90 8B 84 24 50 01 00 00 F6 40 71 08
<< 0x50654 71 80 FB 08 74 1E 8A CB BB 01 00 00 00 D3 E3 85 58 70 90 90 90 90 90 90 90 90 90 90 90 90
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”