shipname.bin

shipname.bin; support/discussion/questions

Moderator: thunderchero

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

shipname.bin

Post by thunderchero »

Hi everyone,

I have been tring to edit shipname.bin so it has more groups since we can now can add more models?

all my efforts have failed :cry:

there are 62 groups that can be edited I would like to have 75 -100 groups if possible :?:

the first 248 Bytes hold info of how many entrys for each group 4 Bytes per group.

next is "FC 00 00 00" I thought this was for pointer for start of name list but changing this has no effect :?

after that it is only each name entry of 44 Bytes.

so is it possible to have more groups?

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

Re: shipname.bin

Post by Spocks-cuddly-tribble »

thunderchero wrote:next is "FC 00 00 00" I thought this was for pointer for start of name list but changing this has no effect :?
Not tested yet, but try this:

In trek.exe at 0x749C8 (F8 00 00 00) seems to be offset of pointer for start of name list (FC 00 00 00) in shipname.bin.

Good luck!


EDIT:

I added in shipname.bin the new name group 0x3E and it worked fine.

But for some reason letters of ships begin with "B" instead of "A". :?


Btw it would be nice if ships start without letter (i.e. a space) instead of "A" for first ship with the name.
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Has anything been done with this? Asking in referenece to my post in "Modding Help Please"

I will play around with the values I suppose and see what come up with :P
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1928
Joined: Sun Apr 27, 2008 2:00 am

Post by Spocks-cuddly-tribble »

Name groups without appendix (A, B, C,...):

47560D test bx, bx -> (same as cmp bx, 0)
475612 cmp bx, 32h
475618 cmp bx, 33h

This can be controlled via removing of the jump statments or usage of "lower/greater or equal".


Offset of pointer for start of name list (FC 00 00 00) in shipname.bin:

4755C6 mov esi, [ebx+0F8h]

An increasing of both each by 4*[number of new name groups] should work.


So you need to find out (via code analysis of sub_475440 and try & error) the cause for the strange behavior.

Maybe these values have something to do with it:

dbl_596E18 ( 3E5h)
508189 cmp eax, 14Eh
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Those arent Hex are they... if you could explain this a little bit better I may be able to work with it but I have no clue what/where 47560D or sub_475440 is...

Thank you for the reply, I just wish I could understand it a bit better
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7936
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Post by thunderchero »

Tethys wrote:Those arent Hex are they... if you could explain this a little bit better I may be able to work with it but I have no clue what/where 47560D or sub_475440 is...

Thank you for the reply, I just wish I could understand it a bit better
these values are assembly locations you can use UE to convert them to hex values 0047560D and 00475440

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

Post by Tethys »

ok thanks I will try to do this..
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

Has anyone had any luck / breakthroughs with this topic?
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

I was thinking the same thing last week, but i didnt wanna post again, since i had already tried to get new slots with no luck. i set the offset pointer in trek.exe to read F8 00 00 00 ( instead of FC 00 00 00 ) as the starting point of name list just so i could add 1 extra group to the end, no luck.

even tried to copy existing name group to end of shipname.bin group 3E (62) no luck either :(
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

cool I'll see what I can see... see you on the otherside of the mountain guys...
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

SCT wrote:-
In trek.exe at 0x749C8 (F8 00 00 00) seems to be offset of pointer for start of name list (FC 00 00 00) in shipname.bin.
Good luck!
I added in shipname.bin the new name group 0x3E and it worked fine.
so SCT at 0x749C8 F8 00 00 00 change to 09 01 00 00 (400dec - 100 groups of 4)
this will give me 100 name groups? but i didn't understand the problem with
But for some reason letters of ships begin with "B" instead of "A"
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

shipname.bin adds a "A" "B" "C" etc to the end of the ship name as they are built, only 3 other name groups do not have these suffixes. Group 0, Group 50, and Group 51 (so try to get them all to be like those 3 groups if u can!)
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

thanks tethys for your responce but I was wondering why the ship names started with eg USS ENTERPRISE B not USS ENTERPIRSE A?

is there a test in the trek.exe that need looking at?
Last edited by Peter1981 on Wed Apr 28, 2010 6:01 pm, edited 1 time in total.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

Just to let you know what i'm upto...

changes in shipname.bin

FC 00 00 00 -> 94 01 00 00

added 38 new indicies (01 00 00 00)
added 38 new Names one for each index (44 bytes) 2byte index (e.g. 5a 00) the FF FF and a single letter as a name diffrent for each new ship index.

changes to trek.exe

at 0x749C8 F8 00 00 00 [62*4=248 dec] -> 90 01 00 00 [100*4=400 dec]

Upon loading the latest version of UE the shipnames only list 0 to 61? does anyone know if UE supports extra shipname.bin indices?

EDIT:- CTD no crash.log :( HELP any ideas lads?
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Peter1981 wrote:thanks thunderchero for your responce
last time i checked my name was Tethys lol

and i think you need to multiply it by the # of NEW groups (eg 4*38 and not 4*100)

edit: another thing u can try is use older UE versions for example UE 6.7 - that seemed to be a big release for quite some time, perhaps there was something in it of value that is not in the newer versions, just go to DCER's 4shared folder
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
Post Reply

Return to “shipname.bin”