SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
09-03-12, 09:59 AM | #1201 | |
Black Magic
|
Quote:
As the patcher evolves and patches more files simply copy the needed files into your \Patched Files folder. Just turned the hard coded data entries into menu.txt entries AND wrote a nice little function that will accept two arguments: start of entry in menu.txt file and number of entries (this will be used for random entries). This nifty little function takes start of entry in menu.txt file + (random number * number of entries) and returns the resultant string. Thus getting a random menu.txt file entry! |
|
09-03-12, 10:15 AM | #1202 |
Lieutenant
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
|
Thank you sir!
i copy my related files before patching (but after the 1.2.0 patch) in my personal "sh5 origininal file" folder. And when a new patch comes out i use this files. So i have everytime a original version of the files. The thing with the menu.txt, will there are problems using a "deutschmod" in the end of the mod list, which include a translation of all menu.txt lines. |
09-03-12, 10:30 AM | #1203 | ||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
I wonder what makes installing your patches or using JSGME still so difficult for many people. Anyway, I think you see now one of the reasons for me asking, a while back, whether you could have done your patcher to patch the game on the fly, instead of modifying the stored exe and act files. Quote:
|
||
09-03-12, 10:43 AM | #1204 |
Lieutenant
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
|
gap
what does it mean with the menu.txt file. Canīt figure out and how itīs touch the german translation of the menu.txt. My english isnīt goog enough to understand it. |
09-03-12, 10:53 AM | #1205 | |
Black Magic
|
Quote:
I added two new variables to the Contact report wolfpacks patch: start of random Bdu responses in menu.txt file (currently set at 10050) and number of random responses (currently set to 5). This means people can add/remove random responses as they wish (all are defined in the menu.txt file starting at 10050) |
|
09-03-12, 11:18 AM | #1206 |
Lieutenant
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
|
TDW and great thx,
now iīve understand. |
09-03-12, 11:30 AM | #1207 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
I am sure UI mods and language packs will feature soon your new messages. In the meanwhile an esay trick for avoiding confusion, if only people could get accustomed to it, would be following the Tutorial by Trevally, by including the modded/localized menu.txt in the "patch mod" and by making sure to enable it at the end of the JSGME list. Another solution that occurs to me though is to make your patch to look for a custom txt file, that should be enabled like a normal mod after installing the patch. Sorry Kalle: I see TDW was faster than me |
|
09-03-12, 11:39 AM | #1208 |
Black Magic
|
Yes could be a minor problem if a mod is enabled that overwrites the patched menu.txt file. Just something user will have to be aware of.
I have the start of the random Bdu responses in the menu.txt file set at 10050...only my UIs mod even comes close to this number. I built safeguards into the patch that will check to see what the max # of entries defined in the menu.txt is and if that number is less than the entries the patch is calling for then no message is displayed to user (it's actually built into the random menu.txt entries function I made) |
09-03-12, 12:01 PM | #1209 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
anyway, why not displaying a standard message stored into your code, instead of not displaying a message at all? |
|
09-03-12, 12:15 PM | #1210 |
Black Magic
|
|
09-03-12, 01:09 PM | #1211 |
Black Magic
|
Added a standard message in case the menu.txt file isn't patched or gets overwritten:
Shadow contact/convoy and remain undetected So if you see this and it's in English you know your menu.txt isn't updated with the new entries for the Contact report wolfpack patch. Also changed where the random Bdu messages for this patch are going to start in the menu.txt file to 11000. This will ensure noone will ever get close to these I'll have revised version of patcher available here soon (though it will not be able to patch the menu.txt file yet - you'll have to manually add the required entries for now) |
09-03-12, 01:09 PM | #1212 |
Engineer
Join Date: Mar 2002
Location: BF79
Posts: 209
Downloads: 71
Uploads: 0
|
TDW, sorry to bug you with this again, but somewhere between version 1.60 and 1.69 it seems you've gone back to compile against .NET 3.5, as you know, some of us (well I think it might well be just me! ><) can't run it under linux... so please, when you have the time, would you be so kind...?
I didn't bug you before since I was quite happy with my patching, but I really want to try the wolfpack function! |
09-03-12, 01:10 PM | #1213 | |
Black Magic
|
Quote:
|
|
09-03-12, 01:11 PM | #1214 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
Ops... I didn't see your most recent post. I've just noticed that you did it yet |
|
09-03-12, 01:26 PM | #1215 | |
Black Magic
|
Quote:
|
|
|
|