Thread: [REL] FOTRS Ultimate Project
View Single Post
Old 05-18-17, 07:17 AM   #4582
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by propbeanie View Post
I'll look through the menu.txt file, and see if maybe there's a placeholder like #boat# that can have #playername# input instead, so that it credits the Captain's career - if possible... as you say though, the count of missions is probably a variable in-game. Darn shame we can't do scripting in some of these game files to "fix" things like that... hmmm...

Edit: Some quick research:
"variable" Strings used in menu.txt

%s - ie: "You are transferred to %s".
%d
%s||%s (??)
80= on line 99 in the file: %s %s%s
81=TOTAL CREW;Sailors: %02d %02d|PettOfficers: %02d etc. (again ??) does the "pipe" here get a newline??
86=%.02f
95=Patrol %3d
98=Patrol: Start Date: %s %d, %d End Date: %s %d, %d - %s

From my previous edge-yu-mah-kay-shun, it looks like the %s pulls in a string, and %d pulls in a digit (thank you Mr Obvious), and the commas and dashes and colons and semi-colons are just text punctuation. I have no idea where the game pulls those strings and digits from. It appears that if you want a "comment" line, the semi-colon has to be the first character, and everything after that is just text. dunno fer sertinn... what the "f" is, is beyond me. I'm also not certain of the numbers with the %d, in that if you're after the 2 digit, why lead with a zero, and not do like the "%3d" example?... Oh, wait! I just found another, and it looks like it's formatting... %02d would be for like a date, leading zeroes, using 2 places, such that January 1st, 1941 with a "%02d/%02d/%04d" would render as 01/01/1941... %.02f would be 2 decimal places?? Or else adding a comma marker, such as "10,000"??

#BASE#
#DATE#
#FLOTILLA#
#MEDALNAME#
#NAME#
#NEWLINE#
#PATROLNUMBER#
#SUBMARINECLASS#
#SUBMARINENAME#
#TITLE#
#TONNAGE#
#UNIT#

5890 on line 2917 of the file has a lot of these for the President of the United States awarding #MEDALNAME# to #TITLE# #NAME# of #SUBMARINENAME# on #DATE#

5891 is the German version (or Japanese, if you do mods of that sort...)

All of the wording in that file can be turned around, so long as a person is careful with the white space, and doesn't lose the formatting. I'll see if I can do that good enough in the 5890 section for inclusion in the next round... It looks to me that one of the programmers misplaced their math in the looping for the patrol count, and we are stuck with #PATROLNUMBER# being what it is at one too many (for now)...
Ok Professor........You're talking over my head!!

BUT, it looks like you're onto understanding those menu.txt string syntax formulas. That's important!

I can't remember if the Ultimate "Presidential Citation" is my doing or not....I think it is. When we first got started I put our medals/awards system to follow the mod I made, which adds/changes that 5890 line. Not knowing much about how the syntax worked, I changed the wording but kept it following the stock set up. Which puts the citation to read with the straight margin on the right side, instead of the left. I remember doing a lot of trial and error in just making the heading centered over the page. If you can make it look better....please do!
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote