[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Collins
Author Collins
Posiden


Joined: Aug 29, 2002
Posts: 439
From: new jersey
Posted: 2002-08-29 23:40   
i downloaded from somewhere a mod that lets you drive the collins? and specifics?

  View Profile of Posiden   Email Posiden   ICQ status         Edit/Delete This Post   Reply with quote
Stewy


Joined: Feb 28, 2002
Posts: 785
From: Australia
Posted: 2002-08-30 01:11   
I think there's a problem in the translation Poseidon, what do you mean?

_________________
Aussie, Aussie, Aussie

Stewy


HMAS Sheean
'Fight On'

[ This Message was edited by: Stewy on 2002-08-30 01:12 ]


  View Profile of Stewy      Edit/Delete This Post   Reply with quote
Posiden


Joined: Aug 29, 2002
Posts: 439
From: new jersey
Posted: 2002-08-30 11:24   
Collins InterFace AddOn

Be sure to read and understand the information given in this file,
before you install the AddOn !!!

NOTE
The periscope, Radar, Radio and ShipControl Screen a modified Version
of the original Interfac-Dll's.
They might cause errors and game crashes !!!

OTHER LANGUAGE VERSIONS THAN ENGLISH:
If you are using a different lang version, you MUST delete all
database files in your database directory prior to install this add on.
Then after installation has finished, open a Dos-Box, navigate to
your database directory and type rename *.e* *.g*
This will rename the english database to german version.
The Leter 'g' in the term '*.g* is used for german version, I assume french version will use
letter 'f'


Installation Process:
1. Make a backup of the files inside your database
directory
The installation process will overwrite your old db files and replace
them with a slightly modificated version of TE KAHA'S DATABASE
(actually I just added Masts and Sensors for the Collins)

2. Make a backup of your Controllers.ini file
The extraction process will overwrite your Contralloers.ini and replace
it with a modified one.

2. Open the installation zipfile and extract all files into the installation
dir of Sub Command (the directory with Subcommand.exe in it)
Answer yes, if you are asked to overwrite an existing file (remeber,
the databases will be overwritten!!!)

3. After extraction there should be a file named 'makecollins.bat'
This file will make the necessary modifications to your
Sub Command Installation:
- it stuffs the J3D-Object for the Collins-Masts into your 3D graphics
archive (I make no backup, it doesn't harm the original install..)
- It copies some of the Interface-Data of the 688I interface into the
Collins Interface Folder.

Double-Click MakeCollins.bat to start the Modifications

4. Close the Dos-Box and start Sub Command

5. To Test the installation, you can go to Single Missions.
Choose the Usercreated Mission 'tmpCollins' and start it.
You ride in the Collins, nearby is another ship for Sonar-
Operation-Test.

6. If something nasty happens,
- the Game won't load
- the game freezes
- the periscope Screen behaves unnormal
- the ShipControl Screen behaves unnormal
- the Radar Screen behaves unnormal
- the Radio Screen behaves unnormal
You migth try this trick

EMERGENCY OPERATION
If you encounter one of the above problems:
Coppy ALL the files of your Interfaces688I folder
to the InterfacesCollins folder.
The only drawback you now have, the Collins uses the 688I float wire,
the 688I radio, and the 688I radar masts.

Further Information on the abilities of this Addon
- You may have to adjust the Masts position, I copied them from the 688I
changed the coordinates to Stewy's Collins Mast Coords and modified them
so that they look good for me. But the positions might no be very realistic.
- You can modify all the grafic screen bitmaps of the Collins.
They are completely indepentend of the other subs.
But you should not modify the positions of the Buttons or other Widgets
because the Interface-Dlls have hardcoded position data.
- It is not possible to change the weaponloadout, or the amount of tubes etc.
This data is hardcoded in the Interface-Dll's and cannot be changed
(At least not at the moment and never without support/hint of Sonalysts)
If you don't like the Collins to have VLS-Tubes, just modify the background
image, place a nice poster over the VLS-Controls and don't click there

Some very boring pure technical info on making own Interfaces:

The periscope, Radio, ShipControl Radar and (wpnLoadout) Dll's have hardcoded
names in them, of the origianl sub. You couldn't really good Hexedit the files,
the 688i name(4 chars) would only allow an Ohio Class
So I decided to decompile them into Assembler code, searched the strings,
replaced them and reassambled them again.
Unfortunately I haven't the much clue of what my dissassembler were doing.
The tiny little thing exchanged the names of the exported API's and I had a
hard time, reconstructing the right order. I also hadto scan the whole dll for
constants allocated in the .code section, cause the disassembler messed up
converting them. So the average time for preparing one dll is appx. 1H
I wasn't able to rebuild the wpnloadout.Dll, the reproduced dll had a completely
different .data segment size. And I must give this up.
So the possibility of creating really new Weaponloadouts or fully selfmate
Interfaces keeps a dream for now.
I tried a different approach about gathering info to modify the Interface data,
by installing a 'cabletapping-dll' (read too much Blind man's bluff) between the
original interface dll and the game.
I was able to capture all (?hope so) data tranfer, and decoded parts of the
structure containing the controls. (At least their ID, position, Bitmap, Wav)
So it might be possible to change at least the position of the Buttons etc.
on the screen.
But without exact knowledge of the Commands and structures passed to the
Interface DLL's mainly the
UINT DLLHandleCommand(
UINT nCtrlID, // pointer to struct GUI_ELEM.ACTION_ID
UINT message,
UINT nCommand, // 0x01 for GUI_ELEM.ACTION_ID
LONG lParam) // all based on guess
function it is impossible to build own ones.

Last but not least, I hope I didn't made Sonalyst to much angry whith this
release (I posted some tiny hints about htis topic but didn't get a reply..)
and hope this could encourage them to created a kind of Sub Command SDK package

P.S.
Please don't mail me to created the interface for Class blablabla sub.
(Only if you supply a complety and very, very cute set of screen gfx)



01.02.2002
Ludger Styra
l_styra@bielefeld.netsurf.de
http://www.bielefeld.netsurf.de:8080/~l_styra/subcommand/


does this let you drive the collins?

[ This Message was edited by: Posiden on 2002-08-30 11:25 ]


  View Profile of Posiden   Email Posiden   ICQ status         Edit/Delete This Post   Reply with quote
Stewy


Joined: Feb 28, 2002
Posts: 785
From: Australia
Posted: 2002-08-30 22:41   
There's probably a simpler way - basically you can drive any sub in SC that you want, check out the instructions at the SCX website.

To have your new German/Japanese/Brazillian sub looking right and to have all of the sonar working, you have to sacrifice one of the default subs, but a small price to pay.

I got rid of the seawolf to play my Collins, although now that the new model is planned for SCX 1.3 - I'm being patient...
_________________

"Damn the torpedoes, Full speed ahead!"
Admiral David Glasgow Farragut, 1864"


  View Profile of Stewy      Edit/Delete This Post   Reply with quote
Posiden


Joined: Aug 29, 2002
Posts: 439
From: new jersey
Posted: 2002-08-30 22:54   
so you have to give up one of the existing subs, and theres no way to be able to play it without getting rid of the other subs?

  View Profile of Posiden   Email Posiden   ICQ status         Edit/Delete This Post   Reply with quote
Stewy


Joined: Feb 28, 2002
Posts: 785
From: Australia
Posted: 2002-08-30 23:03   
Only if you're prepared to accept two things...

You need to play with 'Show truth" on because you new playable sub won't have the right sonar for your interface...Your sub will be deaf...

And that when you pop the masts or periscope, they won't come out of the sail/fin becuase the mast coordinates will be set for the default sub - the masts will appear out of thin air...
_________________

"Damn the torpedoes, Full speed ahead!"
Admiral David Glasgow Farragut, 1864"


  View Profile of Stewy      Edit/Delete This Post   Reply with quote
Posiden


Joined: Aug 29, 2002
Posts: 439
From: new jersey
Posted: 2002-08-30 23:06   
so to play with more than 3 subs, you need to do extensive tweaking?

  View Profile of Posiden   Email Posiden   ICQ status         Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.037334 seconds.