SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-06-10, 09:59 AM   #1
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

I can't figure how to insert the code for the renumbering macro into a word document, can you please upload again the document with the macro already built in?

Thanks
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 03-06-10, 05:48 PM   #2
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

[QUOTE=Hitman;1297760]

See if this one works. http://www.filefront.com/15759753/MenuRenumber.docm

This macro only changes the text that you paste inside this file.
1. Copy/Paste the entire text from menu_1024_768.ini file.
2. Go to the Developer Tab (must enable it in the Word Options first) and click on Macros. You'll see the macro in the list.
3. Click Run and enter the page number (G26, G28, G2B, etc.). Then press Renumber. Wait for it to finish (it will take a while).
4. Then select the entire text and paste it on top of the menu_1024_768.ini file.

Yes, it also works for the SH5 page.ini files.

Tell me if it works.
karamazovnew is offline   Reply With Quote
Old 03-07-10, 03:29 AM   #3
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Will give it a try ASAP, thanks

Will it work if I only paste there the section I'm modifying, e.g. G26?
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 03-08-10, 02:27 AM   #4
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Quote:
Originally Posted by Hitman View Post
Will give it a try ASAP, thanks

Will it work if I only paste there the section I'm modifying, e.g. G26?
Ofc, but you can also paste in any text. What it does is this:
- you tell it to look for page GXX
- it starts from the beginning of the file and searches for "[GXX I"
- then it replaces the following number with an incremental value (starting from 1) until it finishes the entire document

That's why you shouldn't have commented items in your file and they should be pretty much in order. Also, you only need to bother to rename copy/pasted items so that they have the proper page number:


[G27 I103]
[G27 I82]
[G27 I82]
[G27 I102]

is ok, but


[G27 I103]
[G27 I82]
;[G27 I82]
[G27 I102]

is not and neither is


[G27 I103]
[G27 I82]
[G26 I82]
[G27 I102]

It won't bug the macro, but it will bug the game
karamazovnew is offline   Reply With Quote
Old 03-11-10, 04:52 AM   #5
Seabass
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

This interface rocks.

It confounded me at first, but after playing with it for a bit, I loaded up the OM convoy tutorial and sunk both merchants from 4.8km with two single shots on first try. My comfort zone for vanilla SH4 was 1.5 to maybe ~2km. Lol.

Anyway, nice work Karamazov. Might be just a tad overpowered though
  Reply With Quote
Old 03-11-10, 10:09 AM   #6
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Can't open the document with Word 2003, codification not recognized

[EDIT] I have no Word 2003 at my home system, it's the one in my office and it is installed in the net or whatever (I'm just another user, not the admin), does it have something to do with that?
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 03-19-10, 06:37 PM   #7
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Quote:
Originally Posted by Hitman View Post
Can't open the document with Word 2003, codification not recognized

[EDIT] I have no Word 2003 at my home system, it's the one in my office and it is installed in the net or whatever (I'm just another user, not the admin), does it have something to do with that?
Ups, sorry for the delay... I think it's a Visual Basic problem. It's included in Word 2007, no idea about 2003...
karamazovnew is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.