SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Multiple UIs for SH5 with TDC (https://www.subsim.com/radioroom/showthread.php?t=166093)

Zedi 03-01-11 11:53 AM

Quote:

Originally Posted by TheDarkWraith (Post 1609624)
Yes it is very possible to do something like that. I can even add additional pages if necessary via the arrows at the bottom like you have. I could add a Page x at the top denoting what page you are currently viewing.

Now here's another idea: We can leave the ship image on the left side of the page and on the right side add a listbox. The list box is scrollable and thus we can put an unlimited amount of text in it and the user can scroll it to read everything. You can see an example of the listbox with the flags and countries on the right side of the page currently.


Yep, sound good and it's more easy to implement than adding multiple pages.

This is what I added in the NLL cfg now:

-----------------------------------
[AdditionalInfo]
2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in Baltimore.The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for cargo and passengers).

The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors, and 21 to 40 naval personnel to operate defensive guns and communications equipment.The first of these new ships was launched on September 27, 1941. Based on a British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build. The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for steam engines, and 'C1' for design C1.
-----------------------------------

This should be enough for now to make the template.

mobucks 03-01-11 12:34 PM

Sank an inland freighter, the DMmarker showed it sank onland. (random offset?)

Not using RealNav.

TheDarkWraith 03-01-11 12:35 PM

This is something I should've done a long time ago. The draggable SH5 heading/rudder dial doesn't zoom like the dials do in the SH3/4 styles. Now it does. You can now specify if it zooms and also the zoom level:
http://www.subsim.com/radioroom/pict...pictureid=3728

Jaeger 03-01-11 01:49 PM

@magnum: impressive work. i like it :up:

@tdw: do we have high res images for the zoomed dials? the compass needs some high res textures for a better reading. i think we can take them from antoher sh3/sh4 mod???

Zedi 03-01-11 01:55 PM

Thanks.

Church just released today a compass, maybe he has some high res textures too.

Trevally. 03-01-11 02:53 PM

Quote:

Originally Posted by TheDarkWraith (Post 1609649)
This is something I should've done a long time ago. The draggable SH5 heading/rudder dial doesn't zoom like the dials do in the SH3/4 styles. Now it does. You can now specify if it zooms and also the zoom level

This is great news TDW:DL

@Magnum
New SOAN is looking great. very good idea adding the info:up:

TheDarkWraith 03-01-11 03:14 PM

Quote:

Originally Posted by mobucks (Post 1609648)
Sank an inland freighter, the DMmarker showed it sank onland. (random offset?)

Not using RealNav.

It's possible this can happen due to rounding and floating point errors (which I can't control). Can you post a screenshot of it though?

TheDarkWraith 03-01-11 06:01 PM

Quote:

Originally Posted by Magnum (Post 1609631)
Yep, sound good and it's more easy to implement than adding multiple pages.

This is what I added in the NLL cfg now:

-----------------------------------
[AdditionalInfo]
2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in Baltimore.The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for cargo and passengers).

The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors, and 21 to 40 naval personnel to operate defensive guns and communications equipment.The first of these new ships was launched on September 27, 1941. Based on a British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build. The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for steam engines, and 'C1' for design C1.
-----------------------------------
This should be enough for now to make the template.

Ok, coded in and working :rock:

Notice the ADDITIONAL INFO button located below the stats (length, width, mast, etc.):
http://www.subsim.com/radioroom/pict...pictureid=3730

Clicking that button will show the additional info:
http://www.subsim.com/radioroom/pict...pictureid=3729

The additional info text scrolls. To scroll the text place mouse in text and use mousewheel. Press CLOSE to close additional info and go back to stats.

@Magnum: here's how the NLL.cfg file looks now:

[Unit]
ClassName=LL
3DModelFileName=data/Sea/NLL/NLL
UnitType=102
MaxSpeed=13
Length=140.91
Width=21.35
Mast=26.18
Draft=8.20
Displacement=7170
DisplacementVariation=5
RenownAwarded=220
CrewComplement=40
SurvivalRate=70
SurvivalPercentage=40
RecManualCategory=Freighter
BowShape=Raked
Superstructure=Composite
Islands=None
ShowInRecognitionManual=Yes

[AdditionalInfo]
AIText=2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in
Baltimore.| |The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them
through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the
rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for
cargo and passengers).| |The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors,
and 21 to 40 naval personnel to operate defensive guns and communications equipment.| |The first of these new ships was launched on September 27, 1941. Based on a
British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build.
The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for
steam engines, and 'C1' for design C1.

;************ THE END ***********

Notice the AIText= entry. Any text after the equals sign will be shown in the additional info
Notice the | | entries. Those signify a blank line. A single | signifies new line (carriage return + linefeed)

:|\\

EDIT:

I see one problem with our configuration: different languages! We should move this additional info to it's own file (something like NLL.ait located in the same folder as the NLL.cfg) so that users of other languages can make their own additional info texts. I'm going to change the code to do this. The new file should have the class name and .ait as the extension. So in this example the new file would be NLL.ait and it's contents would be:

[AdditionalInfo]
AIText=2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in
Baltimore.| |The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them
through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the
rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for
cargo and passengers).| |The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors,
and 21 to 40 naval personnel to operate defensive guns and communications equipment.| |The first of these new ships was launched on September 27, 1941. Based on a
British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build.
The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for
steam engines, and 'C1' for design C1.

stoianm 03-01-11 06:03 PM

congrat guys... the things changes in better every day... :rock:

THE_MASK 03-01-11 06:12 PM

Noob question , is 1920 x 1080 = 16x9 ?
Is Manos Scopes-patch for 16x9 the base file ?

stoianm 03-01-11 06:13 PM

Quote:

Originally Posted by sober (Post 1609862)
Noob question , is 1920 x 1080 = 16x9

yes ( i do like this 1920/1080=16/9=1.77)
nope - you must put this one after manos scope core

TheDarkWraith 03-01-11 06:20 PM

@Magnum: code changed to use class name.ait for the additional info. So if you take the folder name of the ship and add .ait to it I'll find the file and read in the info :up:

Drewcifer 03-01-11 06:24 PM

I LOVE the new SOAN!! tdw, Magnum GREAT job its a sleek new look and the additional info just adds that lil bit extra that makes your mod a better experience. :rock:

TheDarkWraith 03-01-11 06:35 PM

I can add more info to SOAN. I'd like to see info on weapons onboard along with the kind of ASW the ship has. These can be added via more entries in the x.ait file and I can read them in and display.

We could add formatting to the text to say that x text can only be displayed during y timeperiod.

Zedi 03-01-11 06:52 PM

Just brilliant. Too tired to follow all info posted now, but I will tommorow. This is really cool.

Just discovered the tutorial tool in this mod and saw few made by Trevally. This gave me an idea... to make a tutorial that will be pure lecture for long travels. Like u-boot/war stories with rich image feedback. Is the next stuff 2 do for me after SOAN. Great tools you had built here TDW, they just need to be used a bit better than now.

Thanks


All times are GMT -5. The time now is 01:19 AM.

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