![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-09-25, 05:55 AM
|
#1 |
|
Engineer
![]() |
Thank you!
I was wondering why there were 4 or sometimes 8 cropping sections in some of the files. This is something I wasn't able to find, so thank you once again for explaining that! ![]() I did try the omnimeter approach, but it didn't work too well. The top and bottom parts slide well together, but for some reason the "clicking" or "grabbing" part is somewhat "jumpy" on my end. I'm wondering if there is something that can be adjusted since the interface for the sliders there is based on the sliders of the message box? I'll try the different cropping lines after work tonight and report back tomorrow morning before heading off to work again. My only question is regarding "upper" and "lower" extending parts? Do you mean that the "Mat 1" would be the slider and the "Mat 2" would be the cursor, or the "lower" is something "underneath" the "upper" graphic being cropped? I understand the "transparent" since it would make sense now to have a transparent "base" of sorts for the "fixed" graphic. Once again, thanks for the feedback! It may seem obvious to many, but I'm still learning to crawl! ![]() Saludos! ElCid97 Picture of what the final thing "should" look like and function. Cursor would be "upper" as "Mat 1" and slide the "lower" as "Mat 2" with the main image background as the "Mat 0" with a transparent backing for everything as "Mat 3", correct? And would I have to add the "Left/Right" entry I've seen in various places using the center of the image as a referrence?: Last edited by ElCid97; 04-09-25 at 06:19 AM. |
|
|
04-10-25, 12:13 AM
|
#2 |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
Uploads: 0
|
From your picture, it is not clear what should move, how this tool worked in real life. I counted four parts and they could all move relative to each other.
"SLT", "B-C1-C", "ADK" - inscriptions on the left. 1 - metal cursor 2 - the middle part of the upper 'B-C1-C' 3 - wide upper part 'ADK' 4 - narrow lower part 'SLT' 5 - a wide lower fixed part of the yellow color. Perhaps the metal cursor in the game can be made stationary, and the rest of the parts will move relative to it. With omnimeter technology, you can make no more than TWO moving parts, the third part is stationary. So the omnimeter is not suitable. If parts 1 and 5 of my list are stationary and the other 2, 3, 4 are moving then you really need to do it like in RAOBF. But this is very difficult and you need to look at the work of RAOBF, not the omnimeter. Then the disks in the form of rulers are not studied at all, how it will work is not clear. After all, the disks in RAOBF itself also move poorly. Learn to count Crop, the size of the picture from the fourth message - 1400x416, For an element with the inscription SLT on the left, data are: 127,277 - zero point length=1400-127=1273 height=345-277=68 Crop 0=(127/1400),(277/416),(1273/1400),(68/416) --- |
|
|
04-10-25, 06:27 AM
|
#3 |
|
Engineer
![]() |
Thanks for the help and, more importantly, for the patience!
Yes, the instrument only has two (2) moving parts: 1. "B-C1-C" which is the slider which moves left/right and is used to calculate values. 2. "Metal Cursor" which is moved back and forth to "read" the values and is placed above everything else. The metal cursor has a line called the "Index Line" which is used to read the values. The "S-L-T" part at the bottom is actually the BACK part of the "B-C1-C" slide and would be used for angles. In real life, you would slide the "B-C1-C" slide out and re-insert it into the instrument after flipping it over. I don't know how the RecMan does the changing of the image for the different angles, so I just went with the "lazy" way of doing it and just placed it at the bottom and lined up the marks so it works. Well, from a "math" point of view, anyway. ![]() If I'm understanding this better, I can just use the image in post #7 by just placing the cursor off to the left and adding an area underneath for the "border" area as used by default dials? Maybe just move the cursor off to the left? I did some work last night, but not enough. I'll do some more tonight and see what I can update tomorrow. Thanks again for everything! ElCid97 |
|
|
04-11-25, 02:45 AM
|
#4 |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
Uploads: 0
|
This is not an instruction, but just tips, until you figure out how RAOBF or an omnimeter works RAOBF or an omnimeter, you will not succeed. The answer to all your questions is - 'NO, you can't', but others do it somehow - so you look at others and change their working code for your needs. It would be easier with an omnimeter, more difficult with RAOBF.
You can try replacing the graphics in the already working RAOBF with round disks with your graphics with rectangular rulers. Just for the test - maybe it will work out so the omnimeter will work better than RAOBF with rulers. In order not to calculate the crop, divide the image into separate parts as you wanted. You insert these two lines into the function that draws the largest stationary round disk in RAOBF: Mat 0=data/menu/skins/american/gui/ADK_line.tga Crop 0=0,0,1,1 Its code in menu. ini is located below all other disks (the number I is larger than all other disks [G3F I222]). Well, you probably need to change the coordinates so that the ruler appears in the center of the screen. [G3F I222] is just an example number. The code for B-C1-C_line will be placed between the code for ADK_line and the code for metal_cursor in menu.ini (the number I will be between 222 and 200 in our example): Mat 0=data/menu/skins/american/gui/B-C1-C_line.tga Crop 0=0,0,1,1 The uppermost code will be for the metal cursor (the I number is the smallest of all[G3F I200]): Mat 0=data/menu/skins/american/gui/metal_cursor.tga Crop 0=0,0,1,1 For B-C1-C and metal_cursor, you need to select the disks that you will change. There are several spinning discs in RAOBF, one disc is definitely spinning by the game itself - it is not needed, two discs are spinning by hand, so you need them. In them you will write your Crop_0 Mat_0 from the B-C1-C line and from metal_cursor. If there are any extra discs, slide them off the screen. Well, in dials.cfg, in the disks that you will use, do not forget to change lines to RealVal=180,-180 and Circular=No Probably everything. |
|
|
04-12-25, 07:11 PM
|
#5 |
|
Engineer
![]() |
Well, still getting nowhere with this.
At least I've been able to get a single object to move -- either the slide or the cursor -- but not both independently of each other and niether of them horizontal or in rotation. All either will do is move up and down the screen, depending on which one is being called up in the Dials.cfg file. Furthermore, I can't "grab" them in the tool. I have to move them with an existing tool, which in the latest case/test has been the AOB wheel on the upper portion of the attack and observation periscopes. Nothing possible so far with the Omnimeter changes, either. No matter what I tried to do other than change the graphics, it just breaks when I try to use something of my own with the original stuff. If I could get my hands on the "kit" or "raw" files from Karamazov, I could PROBABLY try and see how things were done. As it stands with only the final product, well, nothing really makes much sense since I have no access as to WHY or HOW things are interacting with each other. On the bright side, I can probably make a PDF with these and upload something like the "is-was" that you could print and use at home. Maybe even write a manual to help the user actually use the tool to calculate things. We'll see. ElCid97 |
|
|
04-13-25, 01:50 AM
|
#6 | |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
Uploads: 0
|
Quote:
I thought you would choose from the Angriffsscheibe discs that suit you and insert your graphics into these discs. If Dark Waters doesn't have attack dials, then download where they are, KSD for example. And in KSD conduct your experiments with 'linear disks'. Each disk consists of several layers. The first draws graphics, this is the function where your Crop_0 Mat_0 will be: Mat 0=data/menu/ksd_main_interface/attack_disk/ad_outer_ring.tga the second draws a transparent square, Mat 0=data/menu/ksd_main_interface/lagewinkelscheibe/bkgr.tga you move the mouse along this square, something clings there and the disk moves. You need to find these 2 layers so that they are connected to each other (I don't know how to explain), in the first layer you change the graphics, coordinates, size, in the second you change the coordinates and size of this transparent area. This size must match the size of your picture from Crop_0 Mat_0. To find layers, the first layer with graphics can be moved slightly to the side, and the second layer can be repainted black. bkgr.tga is transparent, and let's say bkgr_FFFF.tga is black, you change it: Mat 0=data/menu/ksd_main_interface/lagewinkelscheibe/bkgr_FFFF.tga. I looked at the code a little - I don't want to understand it at all. |
|
|
|
04-13-25, 09:09 AM
|
#7 |
|
Engineer
![]() |
Thanks for the patience, my friend, I really appreciate it!
Yes, the Attack Disk was an initial "customer" for me, but since I handn't seen any for SH4, I figured the RAOBF would be a better candidate. I'll have to look at installing KSD-II if for no other reason than to lurk around it and see what I can find. I had done the same with DW6, which is what I have been using as a "template" of sorts. I never found an Attack Disk there. Which brings me to another question which I think has been posted somewhere on the forums before: Is there a difference in how the sim "looks" at things you can have in-sim depending on which "career" you choose? (i.e. -- whether you are German or American). My guess is "yes" since I've seen posts where some radar data, for example, was saparated from US and German into two (2) different categories. Not only that, but it was WAY off from what it should be. I believe Capt Scurvey fixed some of those things and they are now part of TMO and FotRSU, but not sure. If this is the case, then we probably can't have a disk or AOB "tool" on the American side because it has been "coded-out" by the devs since Americans are "supposed" to be using TDC/PK for everything. THAT would be a definate "buzz-kill" for the S-Boats since they were basically an American copy of WWI U-Boats (well, sort of). I'll keep digging. If I can find the Attack Disk, I can probably just swap out the graphics for an "is-was" and just leave it at that. I just like the possibility of using the S495/S505 since it can be used for FAR more things in-sim than just AOB. ![]() ElCid97 |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
