different colour phasers

Ship Specific Weapon Animations; support/discussion/questions

Moderator: thunderchero

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

Re: different colour phasers

Post by Spocks-cuddly-tribble »

Ladies and gentlemen, the prototype code for ship specific weapon animations is out for testing. :)


*phaser/plasma.hob -> * = shiplist.sst +0x11A (-> esp+20 is start of shiplist.sst entry in sub_496340)

*plasma.hob

Code: Select all

trek.exe at 0x95759 replace 0xF bytes with:

8A 84 24 3A 01 00 00 90 90 90 90 90 90 90 90

asm code:
00496359     8A8424 3A010000   MOV AL, [ESP+13A]
00496360-496367     90         NOP
*phaser.hob

Code: Select all

trek.exe at 0x957BF replace 0xD bytes with:

8A 84 24 3A 01 00 00 90 90 90 90 90 90

asm code:
004963BF     8A8424 3A010000   MOV AL, [ESP+13A]
004963C6-4963CB     90         NOP
*photon.hob -> * = shiplist.sst+0x11B

Code: Select all

trek.exe at 0x95406 replace 0x27 bytes with:

03 C2 8B D4 E8 51 28 09 00 8A 84 24 1B 01 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90

asm code:
00496006     03C2              ADD EAX, EDX // ds:597864 entry of the firing ship
00496008     8BD4              MOV EDX, ESP
0049600A     E8 51280900       CALL 528860 // shiplist.sst entry to [edx]
0049600F     8A8424 1B010000   MOV AL, [ESP+11B]
00496016-49602C     90         NOP
thunderchero wrote:You could also use different torpedeo types (hob) as below
Remember, although torpedoes can be oblong, they must be mirror symmetric, since depending on the last selected perspective i.e. not always the firing ship resp. target.

But I just discoverd some code that seems to control the 3D animations. So maybe we can fix the issue in future versions (and even better the plasma :wink: ).

geon wrote:What I'm asking is this. Is it possible, using the UE, to have, say h phaser 1 (blue) assigned to one ship and h phaser 2 (orange) assigned to another ship. And will the game be able to differentiate these, or will just one colour still be assigned to the whole Federation?

Take another more complicated example.

For Cardassians, c phaser 1 (purple for the early compression beams), c phaser 2 (orange for phasers some ships have), c phaser 3 (later gold disruptor beams).

Would the current game recognise some ships with the purple beams and some with the orange if I assigned them to different ship models?

And would it upgrade all to the yellow beams at a higher tech level?
The code effectively enables all the requests, but it's not UE ready (yet) and also older ships keep their old weapon animations until their next upgrade (appears realistic).

Code: Select all

NAME: Ship Specific Weapon Animations (shiplist.sst)
DESC: Allows different colour weapons within empire fleets (even for upgrades e.g. quantum for later federation, red for early klingons) and for minors/monster. 
DESC: Minor/stolen keep their original weapons when joining other fleets. 
AUTHOR: Spocks-cuddly-tribble
URL: https://www.armadafleetcommand.com/onscreen/botf/viewtopic.php?p=32043#p32043

# *plasma.hob -> * prefix = shiplist.sst +0x11A
>> 0x95759 66 83 FB 05 73 5C 31 C0 88 D8 E8 18 48 FA FF
<< 0x95759 8A 84 24 3A 01 00 00 90 90 90 90 90 90 90 90

# *phaser.hob -> * prefix = shiplist.sst +0x11A
>> 0x957BF 66 83 FB 05 73 57 88 D8 E8 B4 47 FA FF
<< 0x957BF 8A 84 24 3A 01 00 00 90 90 90 90 90 90

# *photon.hob -> * prefix = shiplist.sst +0x11B
>> 0x95406 66 8B 84 02 DC 01 00 00 25 FF FF 00 00 89 84 24 CC 01 00 00 83 F8 05 7D 47 31 C0 8A 84 24 CC 01 00 00 E8 53 4B FA FF
<< 0x95406 03 C2 8B D4 E8 51 28 09 00 8A 84 24 1B 01 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
Last edited by Spocks-cuddly-tribble on Tue Aug 03, 2021 12:53 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: 7824
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: different colour phasers

Post by thunderchero »

Great, :D

I just tested and all works now. :wink: So some one needs to start creating new phaser colors and torpedeo gifs. :wink:

or even new torpedeo hobs :roll:

thunderchero
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2392
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: different colour phasers

Post by Tethys »

Oh dear, this is great news :D

Tc feel free to use my phaser pack, one may need to be created for Cardassians now unless there is one out there I dont know about
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Darth_Windu
Lieutenant-Commander
Lieutenant-Commander
Posts: 156
Joined: Sat Jul 19, 2008 2:00 am

Re: different colour phasers

Post by Darth_Windu »

For those of us who aren't Bynars, like some of you seem to be, how do we actually get this in-game, and how do we define which ships use which phaser and photon colours?
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7824
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: different colour phasers

Post by thunderchero »

Darth_Windu wrote:For those of us who aren't Bynars, like some of you seem to be, how do we actually get this in-game, and how do we define which ships use which phaser and photon colours?
If you do not understand hex coding you would need wait and see if DCER adds this to UE (expect 2-3 weeks or more). But creating new/different colors has not begun yet by anyone I know of. (other than tethys phaser pack)

thunderchero
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2392
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: different colour phasers

Post by Tethys »

And even my pack is not perfect as I would like it to be. Someone still needs to decypher fully the phaser hobs and how/where ALL color/shading/coordinates are and what they do. My pack is merely a publicly downloadable experiment that is still incomplete and probably bugged (altho noone has reported any bugs). Perhaps when the hobs are fully understood an option can be added to UE to change phaser color on the fly. But Im not sure it would be worth it, imo.
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Darth_Windu
Lieutenant-Commander
Lieutenant-Commander
Posts: 156
Joined: Sat Jul 19, 2008 2:00 am

Re: different colour phasers

Post by Darth_Windu »

Ah right, waiting for an updated UE seems like a good idea at the moment.

Thanks :)
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Re: different colour phasers

Post by DCER »

UE 0.7.2dev5 has this option added under Ship Stats now. Make backups before using dev versions in case of bugs.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7824
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: different colour phasers

Post by thunderchero »

DCER wrote:UE 0.7.2dev5 has this option added under Ship Stats now. Make backups before using dev versions in case of bugs.
I have sent a PM to DCER UE will set code and allow changing of hob but still need to set each/every ship for this to work.

so you would need to set each phaser and torpedeo to incorrect hob then set to the one you want to use to set shiplist.lst correctly (every ship needs to be set for new code to work).

I hope this will be fixed shortly

thunderchero
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2392
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: different colour phasers

Post by Tethys »

Thanks DCER and TC, I will download this when I reinstall botf, should be soon I hope
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Re: different colour phasers

Post by DCER »

I've uploaded a fix, enabling the options in Ship Stats will now set the default prefixes for all ships as it should.
User avatar
xDx
Commander
Commander
Posts: 299
Joined: Sat May 10, 2008 2:00 am
Location: East Coast, USA

Re: different colour phasers

Post by xDx »

Thanks DCER :) I am downloading new version now. I made changes with other version lol but it works great. So many possibilities now with width and color and so easy a Pakled can do it :)
"The only thing we have to fear is fear itself." -- FDR
User avatar
EnPhreg
Lieutenant-Commander
Lieutenant-Commander
Posts: 130
Joined: Thu Jul 10, 2008 2:00 am

Re: different colour phasers

Post by EnPhreg »

want to give my ships some additional specific phaser colos and keep also the old ones. but can't select my new imported phaser hobs in UE.
so do i have to register the new imported phaser hobs? imported the simply with zip into the stbof.res.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7824
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: different colour phasers

Post by thunderchero »

EnPhreg wrote:imported the simply with zip into the stbof.res.
I do not understand this statement of what you did.

any file to be added to the stbof.res should be added using UE
EnPhreg wrote:want to give my ships some additional specific phaser colos and keep also the old ones. but can't select my new imported phaser hobs in UE.
so do i have to register the new imported phaser hobs?
the file name is important and limited. *phaser.hob you can only change the first letter. so max you can have is 37.
a-z = 27 (6 already used c,f,h,k,m,r)
and
0-9 = 10
User avatar
EnPhreg
Lieutenant-Commander
Lieutenant-Commander
Posts: 130
Joined: Thu Jul 10, 2008 2:00 am

Re: different colour phasers

Post by EnPhreg »

yes, discovered this issue already by myself yesterday.
didn't noticed that only first letter can be changed.
everything fine now. thanks.
Post Reply

Return to “Ship Specific Weapon Animations”