Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Dragable Chronometer in ALL screens (Ver. 1.1 available)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
Vonotto



Joined: 07 Jul 2002
Posts: 551
Location: Alexandria, Va

PostPosted: Thu Mar 02, 2006 12:24 pm    Post subject: Reply with quote

JonZ wrote:
Vonotto wrote:
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?
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Thu Mar 02, 2006 12:32 pm    Post subject: Reply with quote

Vonotto wrote:
JonZ wrote:
Vonotto wrote:
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.
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Thu Mar 02, 2006 6:39 pm    Post subject: Reply with quote

Demonspawn wrote:
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.
Back to top
View user's profile Send private message
Demonspawn



Joined: 26 Feb 2006
Posts: 12

PostPosted: Thu Mar 02, 2006 7:00 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
lurker_hlb3



Joined: 09 Apr 2005
Posts: 32

PostPosted: Thu Mar 02, 2006 7:17 pm    Post subject: Reply with quote

JonZ wrote:
I've been putting the last details. Reflections on wood and the Hakenkreuz.



Here it is at work:



When do you plan to release this ????
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Thu Mar 02, 2006 9:10 pm    Post subject: Reply with quote

ref wrote:


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 Embarassed 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 Smile
Back to top
View user's profile Send private message
don1reed



Joined: 16 Dec 2004
Posts: 437
Location: Valhalla

PostPosted: Thu Mar 02, 2006 11:43 pm    Post subject: Reply with quote

@ 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.
Back to top
View user's profile Send private message Send e-mail
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Thu Mar 02, 2006 11:49 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
don1reed



Joined: 16 Dec 2004
Posts: 437
Location: Valhalla

PostPosted: Fri Mar 03, 2006 12:07 am    Post subject: Reply with quote

Tnx m8...I'll give that a try.
Back to top
View user's profile Send private message Send e-mail
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Fri Mar 03, 2006 2:42 am    Post subject: Reply with quote

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:





Last edited by JonZ on Fri Mar 03, 2006 10:22 am; edited 1 time in total
Back to top
View user's profile Send private message
don1reed



Joined: 16 Dec 2004
Posts: 437
Location: Valhalla

PostPosted: Fri Mar 03, 2006 9:53 am    Post subject: Reply with quote

Kudos, Herr JonZ.

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

tnx agn,
Back to top
View user's profile Send private message Send e-mail
don1reed



Joined: 16 Dec 2004
Posts: 437
Location: Valhalla

PostPosted: Fri Mar 03, 2006 11:23 am    Post subject: Reply with quote

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,
Back to top
View user's profile Send private message Send e-mail
Samwolf



Joined: 23 Jan 2006
Posts: 89
Location: Oregon, soon to be North Carolina

PostPosted: Fri Mar 03, 2006 12:14 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Fri Mar 03, 2006 2:48 pm    Post subject: Reply with quote

Samwolf wrote:
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.
Back to top
View user's profile Send private message
Samwolf



Joined: 23 Jan 2006
Posts: 89
Location: Oregon, soon to be North Carolina

PostPosted: Fri Mar 03, 2006 3:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
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