column5 63 Posted October 25, 2007 Could someone write a program with the following specifications? The program opens a text file and allows you to specify a pattern. For example, [AirUnit###] The program searches the text file for the pattern, and sets the first occurence to [AirUnit001], and then increments each occurence after the first by 1, so the next occurence would be [AirUnit002], etc. Seems like a fairly easy task in VB, but then I'm not a programmer... Thanks! Share this post Link to post Share on other sites
Nesher 628 Posted October 25, 2007 if i would find the time for it i'll do it (in C# if you won't mind.. requires .NET Framework 2.0) Share this post Link to post Share on other sites
column5 63 Posted October 25, 2007 Anything would be great. When there are over 100 squadrons in a campaign, and you add one up in the friendly section, it takes f o r e v e r to renumber all the entries. Share this post Link to post Share on other sites
TeTeT 0 Posted October 25, 2007 Anything would be great. When there are over 100 squadrons in a campaign, and you add one up in the friendly section, it takes f o r e v e r to renumber all the entries. I have something available that might come in handy for you:http://woffle.de/wov/weaponsCheck/" target="_blank"> http://woffle.de/wov/weaponsCheck/. Not sure if I'll find tonight to update it for your purpose. It requires a Java Runtime Environment, though. If someone wants the source, drop me a line. Share this post Link to post Share on other sites
+Dave 2,322 Posted October 26, 2007 What about using lowengrin campaign editor? I got one of his beta he never released and it works just fin for that.Check your pm Don. Share this post Link to post Share on other sites
+Dave 2,322 Posted October 26, 2007 I need and old priest and a young priest..... Share this post Link to post Share on other sites
TeTeT 0 Posted October 26, 2007 Here's a small Java tool that should do the job unless there are duplicate entries in the INI file: Count On Me You need a Java Runtime Environment (JRE), for example from Java @ Sun Share this post Link to post Share on other sites
column5 63 Posted October 26, 2007 What about using lowengrin campaign editor? I got one of his beta he never released and it works just fin for that.Check your pm Don.Doesn't seem to want to work with WOE... Here's a small Java tool that should do the job unless there are duplicate entries in the INI file:Count On MeYou need a Java Runtime Environment (JRE), for example from Java @ Sun I installed the latest JRE...but how do I run the java app? Share this post Link to post Share on other sites
TeTeT 0 Posted October 26, 2007 (edited) ... :sorry:I installed the latest JRE...but how do I run the java app? Double click should be working. When I d/l the .jar via Firefox it asks me if I want to open it with Java. Right click offers me the option 'Open With'->'Java Platform SE binary' Edited October 26, 2007 by TeTeT Share this post Link to post Share on other sites
column5 63 Posted October 26, 2007 OK, I got it to run. For some reason, it was downloading as a .zip file. I changed the extension to .jar and it works. Problem is, I purposefully added a numbering error to one of my campaign files, and it failed to find it. Share this post Link to post Share on other sites
+Dave 2,322 Posted October 26, 2007 Not sure why the editor isn't working for you. Works for me. Share this post Link to post Share on other sites
column5 63 Posted October 26, 2007 Not sure why the editor isn't working for you. Works for me. It won't accept WOE.exe as the game path. Share this post Link to post Share on other sites
+Crusader 2,101 Posted October 26, 2007 It won't accept WOE.exe as the game path. try to put a exe of the other games in the WOE folder..... so that the prog can find it.... Share this post Link to post Share on other sites
TeTeT 0 Posted October 26, 2007 OK, I got it to run. For some reason, it was downloading as a .zip file. I changed the extension to .jar and it works. Problem is, I purposefully added a numbering error to one of my campaign files, and it failed to find it. Can you send me the INI, I'd like to take a look at it. Share this post Link to post Share on other sites
column5 63 Posted October 26, 2007 Can you send me the INI, I'd like to take a look at it. Sure thing, I'll send it when I get home tonight. Share this post Link to post Share on other sites
TeTeT 0 Posted October 31, 2007 I've uploaded an updated version of countOnMe. Please see if this fixes your problem. The first version didn't recognize any duplicate sections in an INI at all. This one only takes a look at the text of the INI section. Share this post Link to post Share on other sites
column5 63 Posted November 1, 2007 I've uploaded an updated version of countOnMe. Please see if this fixes your problem. The first version didn't recognize any duplicate sections in an INI at all. This one only takes a look at the text of the INI section. It works! Thanks a bunch! This will make campaign editing a lot easier now. Share this post Link to post Share on other sites