SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Dragable Chronometer in ALL screens (Ver. 1.1 available) (https://www.subsim.com/radioroom/showthread.php?t=90060)

Vonotto 03-02-06 12:24 PM

Quote:

Originally Posted by JonZ
Quote:

Originally Posted by Vonotto
For many many people manual editing is scary and just to much for them. Slap this into a JSGE mod folder and make it easy to use for everyone.

I wish it was easy that way.

Many mods like RuB, IuB, HT147 and SimFree slideouts (and more) Alter the menu_1024x768.ini.


Tonight I'll see if I can slap all these three majors in one.

are you not altering the file anyway? so whats the difference if a mod enabler alters the files or you manualy do it?

JonZ 03-02-06 12:32 PM

Quote:

Originally Posted by Vonotto
Quote:

Originally Posted by JonZ
Quote:

Originally Posted by Vonotto
For many many people manual editing is scary and just to much for them. Slap this into a JSGE mod folder and make it easy to use for everyone.

I wish it was easy that way.

Many mods like RuB, IuB, HT147 and SimFree slideouts (and more) Alter the menu_1024x768.ini.


Tonight I'll see if I can slap all these three majors in one.

are you not altering the file anyway? so whats the difference if a mod enabler alters the files or you manualy do it?

Well, if the player have already these mods I mentionned above, he won't notice a difference, except additions of features like Navimap mod and slideout FABC. I'm not even sure if it a good idea myself so.

What could be a better solution? I don't see any.

JonZ 03-02-06 06:39 PM

Quote:

Originally Posted by Demonspawn
now this is REALLY getting wierd.....

I decided to move the chrono down so that I can see the face even if I can't drag it. I edited the position of dial down to 800. The only hand of the chrono that works is the estimated minute hand. The actual minute hand as well as the second hands (actual and estimated) start to drop from the top of the screen at around 15 seconds now (or 3 minutes for the minute hand) and continue to fall untill they reach the top (60 seconds, when the minutes maxes out it remains at the bottom). It's as if they arn't attached to the stopwatch properly. Of course, it is still not dragable. :damn:

Yes, I have moved the settings to the bottom of the .ini file. I have double checked and all values (other than the first Pos= line for the total chrono) are as listed in this post. The only difference between minutes and estimated minutes are the names, crop values, and critvals. Now, for grins and giggles, I switched the G3F Ixxx values as well as the dial numbers for the real seconds and estimated minutes. Only difference is the real seconds no longer show up and fall down when the stopwatch is running, but the estimated seconds still do. So I decided to change them back to normal (dial number and G3F Ixxx number) and switch the critvals. Same thing, only the real seconds doesn't show up now.....

Wait a sec.. I noticed something.... :hmm:

HOLY F@&*#^! poo poo!!!
I figured it out
Because I copy and pasted from the website, there was a space after drag=true (making it undragable) and after circular=true for all but the estimated minutes (it was last, making the rest linear). I removed this space and guess what? It works now!!! :rock: Well, other than the minor problem that the red estimated seconds/minutes are on top of the actuals. EDIT: I un-edited the dial numbers, but I forgot to do so with the G3F Ixxx numbers. Now that I have, it works perfectly!

Stupid whitespace =P This was never a problem in C++

panthercules, check to see if this is your problem as well.

That's great news!

Can you pinpoint the portion of my code that was wrong in my post? I will make corrections tonight to an improved version with the needle pin on the chrono.

Demonspawn 03-02-06 07:00 PM

Actually, nothing at all was wrong with your post, other than the fact it was on a webpage rather than a .txt file for copying and pasting. In the end, the only problems that I had were (first) skipping from 329 to 340... TWICE! and at the end the spaces at the end of the lines. When I was playing around with the numbers attempting to switch the "working" estimated minutes with the non-working actual seconds, I realized there was a space at the end of the line where there wasn't on other entries. I then noticed there wasn't a space on the last line I C&Ped from the website, which was the circular line for the estimated minutes. Change everything back to how it was, remove spaces, and bingo it works.

My first time doing a 'hands on' modification and dang I learned an important lesson!

As far as making a JSGE mod for this... well menu_1024_748.ini is a heavily modified file by many mods. I made my own JSGE for this mod so I could 'back out' when I had problems (which I did). It would be possible to use simple .diff files and use VIM or some other tool to insert if if wasn't for the G3F Ixxx numbering. We'd need another tool to automate it fully.

lurker_hlb3 03-02-06 07:17 PM

Quote:

Originally Posted by JonZ
I've been putting the last details. Reflections on wood and the Hakenkreuz.

http://img224.imageshack.us/img224/9...casing53kx.jpg

Here it is at work:

http://img63.imageshack.us/img63/447...casing65ao.jpg

When do you plan to release this ????

panthercules 03-02-06 09:10 PM

Quote:

Originally Posted by ref

the navimap mod sliding chrono is to small for me

ARE YOU SH***ING ME??? What sliding chrono in the navimap mod are you talking about, and where is it hiding????? I can't believe that there's been one in there all this time and I didn't realize it :oops: Man - I gotta read those readme files more carefully :damn:

Anyway - great catch about those extra spaces Demonspawn - I'm gonna go ahead and check that out 'cause I did the same thing about pasting from the web page on the forum here and probably got the same result.

Thanks

[edit] OMG!!! it actually works - removing those extra spaces did the trick - you guys are awesome :rock:

And I never did find any sliding chrono on my navimap mods screen, so the fact that this works is waaaayy cooool :)

don1reed 03-02-06 11:43 PM

@ Demonspawn and/or Panthercules:

I've got the same problem. Chrono won't slide down and the droopy second hand...and...


I don't have any extra spaces in the txt files ???

I have Sales slideout TDC dials and meters.

I followed installation instructions, putting the dial files at the end and properly numbered and likewise with the ini file. All numbers are in sequence. I'm at a loss.

panthercules 03-02-06 11:49 PM

Bummer - I don't know what to tell you - I opened up the dials.cfg and the menu... file in Word, turned on the "show symbols/paragraph marks" or whatever function, and that made it easy to find all those (single) extra spaces at the ends of the pasted lines just like Demon said, and when I removed them it worked like a charm all of a sudden. Not sure why you're still having the problem, but I hope you get it sorted 'cause this is awesome when it works :yep:

Just for troubleshooting purposes, it might be worth a shot to temporarily disable that TDC mod you have via JSGME and then try this, just in case there is some sort of conflict with that one.

don1reed 03-03-06 12:07 AM

Tnx m8...I'll give that a try.

JonZ 03-03-06 02:42 AM

Ok, I've updated the first page.

I have uploaded the new chrono skin and renewed the instructions to install it.


I've also put a ready to use version for IuB/RuB/HT1.47 ready.

Unfortunately, not compatible with any other mods that alter the menu1024 file, like Simfree from Sale's.

Screenshots:

http://img46.imageshack.us/img46/427...casing79ak.jpg

http://img62.imageshack.us/img62/221...casing67dt.jpg

don1reed 03-03-06 09:53 AM

Kudos, Herr JonZ.

Mega tnx to panthercules who helped me during a senior moment. Yep, it was the "•¶"

tnx agn,

don1reed 03-03-06 11:23 AM

JonZ is there anyway to upload to http://u-boot.realsimulation.com/ , as Rapidshare isn't working for me ??

Whoops! Nevermind...it's working now.

Tnx,

Samwolf 03-03-06 12:14 PM

I made the changes to the files, loaded the game and started the chrono in the UZO screen but when I go to the Binocular screen although the chrono is there and dragable, the hands aren't moving.

Any ideas on what I should look at?

I made sure there are no blanks in either of the files, the numbering is sequential and that the item id's are not being used anywhere else.

Also, is the chrono supposed to slide under the black mask on the Binocular screen?

TIA.

JonZ 03-03-06 02:48 PM

Quote:

Originally Posted by Samwolf
I made the changes to the files, loaded the game and started the chrono in the UZO screen but when I go to the Binocular screen although the chrono is there and dragable, the hands aren't moving.

Any ideas on what I should look at?

I made sure there are no blanks in either of the files, the numbering is sequential and that the item id's are not being used anywhere else.

Also, is the chrono supposed to slide under the black mask on the Binocular screen?

TIA.

Frankly, I never had time to test particuliar areas to put the chrono. I'm sure that the Masking thing is a stacking order problem. The
only solution I have in mind is to put the chrono before the masking parameter sequences. If the mask is called in G27 i2 for example, the chrono should be placed at G27 i2 and the mask at G27 i3 and renumber all the Gs after.


Paste the codes here, I'll see what I can do to it tonight - make tweaks etc.

To this point, the goal of the next releases will be to fix unessessary codes or add more snipets to make the mod stable.

Samwolf 03-03-06 03:10 PM

I made these changes based on your original version without the new chronograph.tga


Here are the changes I made to the Dials.cfg file


Used to be DialsNo=44

[DIALS]
DialsNo=48

****


[Dial44]
Name=Add_ChronoSec
Type=13; DIAL_CHRONO_SEC
Dial=0x0
CrtVal=0x27F00004
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial45]
Name=Add_ChronoMin
Type=14; DIAL_CHRONO_MIN
Dial=0x0
CrtVal=0x27F00005
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes


[Dial46]
Name=Add_ChronoEstSec
Type=40; DIAL_TORP_ESTIM_SEC
Dial=0x0
CrtVal=0x27F00006
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial47]
Name=Add_ChronoEstMin
Type=41; DIAL_TORP_ESTIM_MIN
Dial=0x0
CrtVal=0x27F00007
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

Here are the changes I made to the menu_1024_768.ini file

Last entry was G27 I12

[G27 I13]
Name=Dial
Type=1031;Stat bmp array
ItemID=0x27F00000
ParentID=0x27000000
Pos=220,350,163,213
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.00292969,0.767578,0.15918,0.208008
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G27 I14]
Name=Sec
Type=1031;Stat bmp array
ItemID=0x27F00004
ParentID=0x27F00000
Pos=81,-70,10,120
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0.3125,0,0.3125,0.9375
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G27 I15]
Name=Min
Type=1031;Stat bmp array
ItemID=0x27F00005
ParentID=0x27F00000
Pos=82,-83,8,40
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0,0,0.25,0.3125
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G27 I16]
Name=Estim Sec
Type=1031;Stat bmp array
ItemID=0x27F00006
ParentID=0x27F00000
Pos=81,-70,10,120
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0.6875,0,0.3125,0.9375
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G27 I17]
Name=Estim Min
Type=1031;Stat bmp array
ItemID=0x27F00007
ParentID=0x27F00000
Pos=82,-83,8,40
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0,0.492188,0.25,0.3125
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF


All times are GMT -5. The time now is 10:18 PM.

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.