SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & 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 03-18-11, 07:26 PM   #1
Krabb
Navy Dude
 
Join Date: Apr 2009
Posts: 172
Downloads: 32
Uploads: 0
Default

Welcome Aboard!

To add a new interface will probably be too difficult. You need to hex-edit, disasm, and such. It will be easier to copy interface of Perry.

Firstly, you need to copy interface folder. Secondly, you need to copy its entry in controllers.ini. Thirdly, you need to adjust this entry (sorry, I don't know the meaning of its values). Fourthly, you need to modify interface graphics. To do this you will need decompress.exe utility (to unpack) and cmputil.exe (to pack) (sorry again, I don't know where you can get them).

I hope I missed nothing. Perhaps someone can explain better.
Krabb is offline   Reply With Quote
Old 03-19-11, 04:32 AM   #2
The Admiral
Swabbie
 
Join Date: Mar 2011
Posts: 5
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Krabb View Post
Thirdly, you need to adjust this entry (sorry, I don't know the meaning of its values).
Which entry? :P

Thanks anyway, this is a good starting point I guess. Anymore help would be appreciated.

Last edited by The Admiral; 03-19-11 at 05:39 AM.
The Admiral is offline   Reply With Quote
Old 03-19-11, 06:01 AM   #3
Krabb
Navy Dude
 
Join Date: Apr 2009
Posts: 172
Downloads: 32
Uploads: 0
Default

@The Admiral:
You need the lines describing interface of Perry (middle part skipped):
Code:
[Interface] "FFG" 377
...
[END]
"FFG" should be replaced by the name of your interface, such as "Type45". The number after it should be changed too, but I do not know by what rule it should be changed. Other strings (till [END]) should probably be changed as well.
Krabb is offline   Reply With Quote
Old 03-19-11, 06:34 AM   #4
The Admiral
Swabbie
 
Join Date: Mar 2011
Posts: 5
Downloads: 0
Uploads: 0
Default

Ok... what do I need to change in the .exe itself?

Btw, I've worked out that the number after the [Interface] "FFG" thing is the shipclass id, that I looked up by using the RA database editor

427 is my number ^_^

----
EDIT: Just created a custom mission in the editor, was able to select the Type 45 as a playable platform, then loaded the mission. It crashed :P I just had to try xD

----
EDIT 2: Trying to find a .exe decompressor atm, but to no avail. Is decompressor.exe the exact name of the thing?

----
EDIT 3: Ok, from cruising around Dangerous Waters mod forums, I've discovered the program, and figured out that it's unpacking the .grp files, not the .exe So what do I need to change xD

Last edited by The Admiral; 03-19-11 at 08:47 AM.
The Admiral is offline   Reply With Quote
Old 03-19-11, 08:57 AM   #5
Krabb
Navy Dude
 
Join Date: Apr 2009
Posts: 172
Downloads: 32
Uploads: 0
Default

I remembered where I downloaded these tools: http://subguru.com/. But they are only required for modifying interface graphics and sounds.

But since you have crashes, it is a more serious problem. Sensors from the database for Type 45 doesn't correspond to the sensors defined in the Perry interface. It is solved only by hex-editing of the interface DLL's, which I cannot help.

You can also try to edit sensors for Type 45 in the DB. What's important is the order of the sensors types. For example Perry has ESM sensor in slot 3, and so should be for Type 45. But there is a problem: I see Type 45 doesn't have TA, which is necessary to avoid crashes with Perry interface...
Krabb is offline   Reply With Quote
Old 03-19-11, 01:16 PM   #6
The Admiral
Swabbie
 
Join Date: Mar 2011
Posts: 5
Downloads: 0
Uploads: 0
Default

Ahhh ofc, I forgot I'd need to adapt that. No problem, this RA database thing has a gui sensor editor thing

P.S. "TA"?

---
EDIT: Gah, this database thing isn't saving what I edit properly :/ I tried just switching what the ship's stats are to the Perry class, so I could test it... I'll see if I can manually edit the db with a text editor or exel or sommet.

---
EDIT 2: Ok, I just realised you had to click "save" to ... save... the database. XD But no, changing the stats to the Perry does not work. The search goes on, I guess....

---
EDIT 3: Right, I've recognise that although you can change the "object ID", you can't change the "object" type it links to, and all it's stats, like sensors and launchers. I'll try adding it to the Perry ship class, whilst keeping the Type 45 object id. :S

---
EDIT 4: Ok, that didn't work. And neither did assigning the ship the same object id and type as the Perry. :stumped face:

---
EDIT 5: Well, I'm stumped at what to do to make the Type 45 actually workable, so whilst I await some help or come across some magical document to aid me, I assigned the Perry object the Type 45 destroyer 3D models.




However, the animations don't work and the mesh coordinates are messed up, as I just changed the file strings, not the whole thing. This will all change when I get the Type 45 working properly

And then maybe some other classes like the Astute and the Invincible, for funzies ^^

Last edited by The Admiral; 03-19-11 at 04:28 PM.
The Admiral is offline   Reply With Quote
Old 03-20-11, 05:59 AM   #7
Krabb
Navy Dude
 
Join Date: Apr 2009
Posts: 172
Downloads: 32
Uploads: 0
Default

You shouldn't change object ID or whatever, only sensors (what sensor in which slot).

After changes are done you need to click "Apply", close object page and then save the database. Perhaps there is a tutorial somewhere on DB editor.

TA - Towed Array.
Krabb is offline   Reply With Quote
Reply

Tags
mod, playable, type 45


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 02:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.