![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
09-03-12, 09:59 AM
|
#1 | |
|
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
|
#2 |
|
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:53 AM
|
#3 | |
|
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
|
#4 |
|
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
|
#5 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
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. Quote:
|
||
|
|
09-03-12, 11:39 AM
|
#6 |
|
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
|
#7 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
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
|
#8 |
|
Black Magic
![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
