View Single Post
Old 08-15-07, 02:17 PM   #79
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by panthercules
so I'm not sure whether I'll need/use those command bar parts of this latest version or not
Well you'll have to check it and see if I'm supporting anything you haven't mapped to a key yet. Use whatever works for you. I think keypressing is the best method overall since there's no chance of the mousecursor being "invisible" and it yanking your periscope view while reaching for a button. So, you can either choose to spend a bunch of time mapping keys and avoiding the command bar, or just use it as is and get the hang of how the mouse commands works.

Quote:
with all the changes that RFB seems to have made with the command bar - how does the program deal with the fact that certain commands are not always present on the bar in the same place or on the same screens?
It doesn't deal with this at all. It is set up for SH4 Defaults + Trigger Maru (TM is only additional buttons, not changes.) Each command bar button is defined as an absolute x/y coordinate for each resolution. It has to be right or it'll press a different button - it doesn't know any better. If this RFB thing you speak of moves buttons around, you'll have to update the CSV.

It's really easy to update the mouse coordinates - look at the coordinates already in there - it's the same ones over and over since there's only a few button positions. The Y position is always the same and the difference between each X position is constant, like +60 pixels or so to move to the next button. So if a mod swaps the position of two buttons, then swap the coordinates of those two buttons with each other in the CSV and you're good, and if there's a new button on the right of a bar that never had a button there, it shouldn't be hard to figure out the coordinate without even having to pinpoint it on a screenshot. As I've mentioned, The Gimp is a free photoshop-like program that is perfect for getting the coordinates - you just move the cursor and it updates the x/y coordinates in the status bar at all times.

I'm considering adding real-time file reading support. This way, you could edit CSVs (like from a 2nd laptop PC) while running the game and try out your changes in realtime, without having to restart anything. This would make experimentation and tuning a lot easier.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote