SUBSIM Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters > DW Mod Workshop
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-22-2017, 12:05 PM   #1
Nippelspanner
Ocean Warrior
 
Join Date: Dec 2003
Location: Germany
Posts: 3,248
Downloads: 203
Uploads: 0


Default How to rename object names?

Hello,
I am modifying the game (and RA) to my liking and wonder how I can rename existing platforms/objects.

Example:
In the loading section it always annoys me that some weapons have their correct Nato designation, while others are just called "sunburn" or "mine" etc.

I'd love to give each their correct designation. But how?
Nippelspanner is offline   Reply With Quote
Old 01-22-2017, 02:42 PM   #2
Pirate
Officer
 
Join Date: Sep 2003
Location: Oeiras, PORTUGAL
Posts: 248
Downloads: 133
Uploads: 0
Default

There's 2 ways to do that.

1 - Delete the object, go to the respective 3d object and rename it. Create the object again with the new name.
Note: You can't rename a 3d object while it's linked to an object.
Also deleting an object also deletes other records on other tables that are linked to it so you'll also need to recreate them later.

2- Open the following database files in a Hex Editor and change the names there: 3dobject.e3d, entity.eed, object.eod

I prefer and always use method number 2, cause in the end it's just faster.
But it's more risky of breaking the database!

Hope this helps...
__________________
Pirate is offline   Reply With Quote
Old 01-22-2017, 04:04 PM   #3
Nippelspanner
Ocean Warrior
 
Join Date: Dec 2003
Location: Germany
Posts: 3,248
Downloads: 203
Uploads: 0


Default

That's what backups are for, so method 2 sounds good to me. However, I have no experience with hex, can you recommend a tool I could use?
Nippelspanner is offline   Reply With Quote
Old 01-23-2017, 04:47 AM   #4
Pirate
Officer
 
Join Date: Sep 2003
Location: Oeiras, PORTUGAL
Posts: 248
Downloads: 133
Uploads: 0
Default

I use MiTec Hex Editor.

EDIT:
When renaming database objects, you also have to update the links in the USNIData.grp, otherwise you'll end up with broken links in the USNIData to the objects and 3d objects.
__________________

Last edited by Pirate; 01-23-2017 at 05:16 AM.
Pirate is offline   Reply With Quote
Old 01-23-2017, 07:10 AM   #5
Nippelspanner
Ocean Warrior
 
Join Date: Dec 2003
Location: Germany
Posts: 3,248
Downloads: 203
Uploads: 0


Default

Yeah I already had that in mind since I'm re-building the USNI library completely as well - thanks for the heads up though!

Will try the suggested tool today, hope it is rather easy to use.
Nippelspanner is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1995- 2020 Subsim