| View previous topic :: View next topic |
| Author |
Message |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Mon Mar 28, 2005 9:24 pm Post subject: Tool enhancements to the compass rose mod |
|
|
For those of you who have installed the compass rose MapRose.tga mod, which places a fixed compass rose in the center of the map screen-
As it stands, the compass is fixed at the center of the map. You operate it by moving the map under it. If the definition of the compass rose in menu_1024_768.ini is replaced with the following, you can move the compass around the map anywhere you like.
The drawback-
Making the compass draggable means you can't select any object under it or start drawing (lines, waypoints, etc.) under it. However, the beauty in the mod is that you can move the compass out of the way whenever you want, or easily move it over any object's center when you want. Maybe what we need at this point is a slightly smaller compass rose? Somewhere between 1/2 to 2/3 this one's size might be optimal? A better graphic artist than me ought to make it though if this is the course.
BTW, I did some experimenting trying to get it to rotate with the mouse but didn't have any luck. Maybe luck will be better in the future.
The change within menu_1024_768.ini. Delete the old {G31 I18} in its entirety and replace with the following. Be sure to save the old version in case you like the other fixed compass rose better.
[G31 I18]
Name=Target
Type=1031;Stat bmp array
ItemID=0x31000006
ParentID=0x31000000
Pos=287,659,479,479
Color=0xFFFFFF80
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/maprose.tga
Crop 0=0.0332031,0.0332031,0.935547,0.935547
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
........................
-timetraveller
Last edited by timetraveller on Tue Mar 29, 2005 1:17 am; edited 1 time in total |
|
| Back to top |
|
 |
Sean
Joined: 23 Mar 2005 Posts: 156 Location: :noitacoL
|
Posted: Mon Mar 28, 2005 9:34 pm Post subject: |
|
|
Now we just need a parallel ruler mod.  |
|
| Back to top |
|
 |
Jace11
Joined: 16 Mar 2005 Posts: 1091
|
Posted: Mon Mar 28, 2005 10:18 pm Post subject: |
|
|
Oooo, I tried altering those variables but not in that combination, so I never got that to work,
Now...
I am thinking I could make another rose that looks like a plastic protracter sitting on top of the map instead of pencil lines, that would be nice no?
Or someone else could have ago, as I might not have time this week |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Mon Mar 28, 2005 10:44 pm Post subject: |
|
|
| Jace11 wrote: | Oooo, I tried altering those variables but not in that combination, so I never got that to work,
Now...
I am thinking I could make another rose that looks like a plastic protracter sitting on top of the map instead of pencil lines, that would be nice no?
Or someone else could have ago, as I might not have time this week |
Yep, sounds good.
Since we can move them around now, I think this should open up the ability to have multiple graphic tools on screen at one time by adding items to the G31 area. It will simply be a matter of keeping them on the smallish size (width x height) and moving them around to keep them out of the way when you don't want to use them.
-timetraveller |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Mar 29, 2005 1:16 am Post subject: |
|
|
Okay, looks like the tools will scale smaller or larger by tweaking some values, so probably no need to make the compass rose graphic smaller.
I've been able to get a second smaller tool on the map. It's movable too. Getting it to be crisp and in focus is a different story. Still working on that.
Hopefully we'll get the tool rotation thing going too. I have some ideas on this, if they pan out.
Tools are layered though. Put one underneath another and you'll have to move the top one over to get to it again. And to get to the ships you've got to move them too. What are ya gonna do....the price of victory, I guess.
-timetraveller |
|
| Back to top |
|
 |
Duke of Earl
Joined: 01 Feb 2003 Posts: 667 Location: 20 Meter von einer Wasserbombe
|
Posted: Tue Mar 29, 2005 8:06 am Post subject: |
|
|
Not to stray off topic too much... but...
Is there any way to make those TDC dials and stuff draggable on the Attack Chart by doing an edit in the .ini file?... it's huge and I can't seem to find them in there...
Also, I found a way to enlarge the Navigation Chart to full screen with a simple text edit in a .cfg file...
But, I can't get rid of the horizontal white bar thing at the bottom of the Nav Chart screen... so, the big Nav Chart is masked behind it...
i.e. when I hide the main GUI console on the Nav Chart, I see this white bar at the bottom... with the Nav Chart behind it... it's some kind of overlay that I can't get rid of...any suggestions on how to fix this problem?
Cordialement, Duke of Earl |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Mar 29, 2005 12:42 pm Post subject: |
|
|
| Duke of Earl wrote: | Not to stray off topic too much... but...
Is there any way to make those TDC dials and stuff draggable on the Attack Chart by doing an edit in the .ini file?... it's huge and I can't seem to find them in there...
Also, I found a way to enlarge the Navigation Chart to full screen with a simple text edit in a .cfg file...
But, I can't get rid of the horizontal white bar thing at the bottom of the Nav Chart screen... so, the big Nav Chart is masked behind it...
i.e. when I hide the main GUI console on the Nav Chart, I see this white bar at the bottom... with the Nav Chart behind it... it's some kind of overlay that I can't get rid of...any suggestions on how to fix this problem?
Cordialement, Duke of Earl |
Hi Duke,
The problem with draggable TDC dials is they are composed of multiple parts, usually the dial background and a pointer and/or sometimes other parts. The drag operation would have to move all the parts together as a whole and I'm not sure that is possible. The other thing that I suspect, is that if you make a control draggable, it can't be made to rotate. I think they might be mutually exclusive. More testing to be done here.
Please pass on the tweak for making the navagation map full screen. I don't believe the actual map part is full screen height (768) if I remember correctly. In other words, there may not be a map under that white bar at the bottom. I could be wrong.
-timetraveller |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Mar 29, 2005 6:19 pm Post subject: |
|
|
Ive got two protractors built, a 270 thru 90 degree one (the top), and a 90 thru 270 degree one (the bottom). Actually, they come from one image - the red compass rose - which I did some graphic enhancements to. By simple (yeah right, simple) cropping of the image like they do with the buttons and other graphics in this sim, you can use the parts you want. They do take up a bit of the screen. Hope they don't get in the way.
Some notes on sizing in-game and cropping, for those interested. From the menu_1024_768.ini file:
SIZING
-------------
Pos=287,659,320,161
The last two fields here (320,161) are the size you want the graphic to be displayed in the game (width x height). This way you can scale the image to any size you want. The first two fields are the screen position (left and top, I believe). Still playing with this.
CROPPING
-------------
Crop 0=0.04296875,0.04296875,0.9140625,0.458984375
This is the complicated one.
Crop 0=A,B,C,D
I describe the fields calculations seperately.
Field A-
Amount of the left side of the image to be cropped (amount in pixels / original width in pixels).
Field B-
Amount of the top side of the image to be cropped (amount in pixels / original height in pixels).
Field C-
Amount of image width we want to display after cropping left side (amount in pixels / original width in pixels).
Field D-
Amount of image height we want to display after cropping top (amount in pixels / original height in pixels).
Again, movable tools can get in the way. You cannot make waypoints underneath them, or draw lines, etc. The protractors must be moved out of the way first. Splitting the original circular protractor into two halves, top and bottom, will help this some, as the player ship is basically accessible and not then directly in the middle like it would be with a circular protractor. We'll see how it goes.
More tomorrow. Got a bunch of other stuff to do today.
-timetraveller |
|
| Back to top |
|
 |
Duke of Earl
Joined: 01 Feb 2003 Posts: 667 Location: 20 Meter von einer Wasserbombe
|
Posted: Tue Mar 29, 2005 6:25 pm Post subject: |
|
|
| timetraveller wrote: | Hi Duke,
The problem with draggable TDC dials is they are composed of multiple parts, usually the dial background and a pointer and/or sometimes other parts. The drag operation would have to move all the parts together as a whole and I'm not sure that is possible. The other thing that I suspect, is that if you make a control draggable, it can't be made to rotate. I think they might be mutually exclusive. More testing to be done here. |
Yeah, you're right about the multiple parts thing... I hadn't thought of that.. but what about being able to toggle it on and off like the main GUI console?.... to remove those huge dials so I can see the Attack Chart better...
| timetraveller wrote: |
Please pass on the tweak for making the navagation map full screen. I don't believe the actual map part is full screen height (768) if I remember correctly. In other words, there may not be a map under that white bar at the bottom. I could be wrong.
-timetraveller |
Sure thing.. in the Silent Hunter III/data/Menu/cfg folder.... open Maps.cfg and edit this section:
| Quote: |
[Map0]
MapID=Navigation_map
Position=0,0
Resolution=1024,656 <------ CHANGE THIS TO 768
MajorSqrs=4,2.4 <----- CHANGE THIS TO 3
MinorSqrs=5,5
PixPerUnit=50
ZoomLevels=1,2,5,10,20,50,100,200,500,1000,2000,4000,10000,20000,40000; meters per pixel
InitialZoom=500
SymbolZoom=10;units are drawn as symbols from this zoom up
GroupsZoom=100;units are drawn in groups from this zoom up
CityZoom=10000;city names are displayed from this zoom down
KriegZoom=2000;krieg labels are separated displayed from this zoom up |
When I look at the result, I'm convinced that the Navigation Chart is being displayed full screen... for one thing, the Compass Rose is cut in half by that horizontal white bar thing... for another, I can't see the black & white edging stuff at the bottom of the Chart....
So, because I can't erase that white horizontal bar at the bottom of the Chart screen page, I can't see the whole Chart... and I've tried removing various .tga files from the data/GUI/Layout folder too.. any help would be appreciated....
Cordialement, Duke of Earl |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Mar 29, 2005 6:32 pm Post subject: |
|
|
I'll do some playing around with it Duke. Thanks. Might be a day or two....
Not sure how you can toggle the dials off.
Company calls....
-timetraveller |
|
| Back to top |
|
 |
Duke of Earl
Joined: 01 Feb 2003 Posts: 667 Location: 20 Meter von einer Wasserbombe
|
Posted: Tue Mar 29, 2005 10:02 pm Post subject: |
|
|
Question: How can I Photoshop the .tga alpha channels to make a transparent .tga?...
I'm thinking that the white bar thing can be made transparent if I can find the right .tga and know how to Photoshop it...
Cordialement, Duke of Earl |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Wed Mar 30, 2005 11:08 am Post subject: |
|
|
| Duke of Earl wrote: | Question: How can I Photoshop the .tga alpha channels to make a transparent .tga?...
I'm thinking that the white bar thing can be made transparent if I can find the right .tga and know how to Photoshop it...
Cordialement, Duke of Earl |
A definite possibility. I use the program DxtBMP here to separate the alpha channel and to allow you to edit it in Photoshop or PaintShopPro, as I'm a little shaky with splitting alphas in my PSP. This program makes it very simple once you learn the technique. It was written by a guy who was big into Flight Sim but works equally as well for all TGAs and DDS files. Freeware too. The best kind.
Look for the DxtBMP button on the bottom of the page.
http://fly.to/mwgfx/
Install the program. Set up the graphic editor you are using (point to the .EXE). Open the TGA in DxtBMP. Send the alpha channel to the editor. The editor program opens with the alpha channel. Modify the alpha channel in your editor. Savealpha channel using "Save" (don't use Save As). Back in DxtBMP, refresh the alpha channel. Preview if you like. Save the new TGA. You can also doctor the main image this same way.
-timetraveller |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Wed Mar 30, 2005 12:15 pm Post subject: |
|
|
Two movable protractors. They are scaled pretty small so as not to take up much screen space.
You all don't get too excited though, as the quirk of the movable ones is they don't allow starting or dropping waypoints, marks, and ruler points underneath them. The trick is to draw the line startpoint/endpoint outside of the tool first.
-timetraveller |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Thu Mar 31, 2005 1:33 am Post subject: |
|
|
Another little deal I'm working on. A small compass ring which is still fairly accurate. I've always felt the problem with the compass rose and protractors was the size was too big. This seems to fit the bill.
Still playing with tools. Maybe out of this will come something in a few days. I want to try to get the navigation map to full screen as Duke of Earl has suggested (remove that bottom strip like in the attack map).
-timetraveller |
|
| Back to top |
|
 |
jmr
Joined: 24 Sep 2004 Posts: 296
|
Posted: Thu Mar 31, 2005 2:22 am Post subject: |
|
|
| Wow impressive work! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|