column5 Posted October 25, 2007 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! Quote
Nesher Posted October 25, 2007 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) Quote
column5 Posted October 25, 2007 Author 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. Quote
TeTeT Posted October 25, 2007 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. Quote
+Dave Posted October 26, 2007 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. Quote
+Dave Posted October 26, 2007 Posted October 26, 2007 I need and old priest and a young priest..... Quote
TeTeT Posted October 26, 2007 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 Quote
column5 Posted October 26, 2007 Author 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? Quote
TeTeT Posted October 26, 2007 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 Quote
column5 Posted October 26, 2007 Author 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. Quote
+Dave Posted October 26, 2007 Posted October 26, 2007 Not sure why the editor isn't working for you. Works for me. Quote
column5 Posted October 26, 2007 Author 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. Quote
+Crusader Posted October 26, 2007 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.... Quote
TeTeT Posted October 26, 2007 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. Quote
column5 Posted October 26, 2007 Author 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. Quote
TeTeT Posted October 31, 2007 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. Quote
column5 Posted November 1, 2007 Author 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.