|
Post by propbeanie on Sept 27, 2016 3:21:52 GMT
OK, I am basically a newb when it comes to scripting anymore. The last time I tried any was a few months ago when I was trying to do a python script in the Windows scripting thingie, trying to pull metadata out of a file in order to sort it for the different sound mods out there, so we could compare file length etc... I ended up abandoning that idea because of Windows "security" kept me locked out of the script runner thingie, of which I've already forgotten the name... Prior to that, I did scripting in an archaic, proprietary editor, probably an old mainframe app that had been converted to DOS, and was being used in Windows 3.1 by "shelling out" to the command line... sheeesh... and I had thought until then that programming Windows itself in C was difficult.
Anyway, any help you can provide there Privateer for scripting would be most appreciated. Hopefully, a few examples and I can get the knack of it again, and do my own.
I need to plan my course of attack on the Campaign files, since I just found an [OtherCoastalTraffic] MIS file that has 248 RGGs in it. There's no way that the computer can keep track of all the RGGs floating around, along with the Time Compression stuff, is there?... There's the JPCoastalTraffic that had like 250 RGG that I cut down. I plan on adding TMO stuff to the 42a layer. There's the JPConvoy layer with like 20 RGG, Merchants with 76 RGG, the JPSubHunters, which now only has six in the 42a level, and Duci's layer added to it, JPTaskForce layer with a dozen, JPTroopConvoy with 8 RGG, USMerchants with 56 RGG, USTaskForce with 5 (it gets dropped after 42b), and an OtherCoastal that shrinks each year, and then grows again towards the end of the war, with a high of 248 RGG (!!!). That's a whopping 681 for the 41a time period of Dec 1, 1941 to February 28, 1942. Some of them get checked every 24 hours for possible spawning, some once every week.
My current tentative plan is to cut down a lot of the RGG in the CoastalTraffic stuff, by about half. I'll need to re-define the RGG into "standard" [Unit x] definitions, wherein lies the rub. It'll be more than just an IF-THEN-ELSE thingie, in that i'll have to increment several things, but unless I'm dreaming, should be doable in 010... right?? :lol:
|
|
|
Post by cdrsubron7 on Sept 27, 2016 5:00:43 GMT
Hey pb
Have you noticed that when you open the mis.files with the ME that some of them give error messages invalid class units? It was from the 41a_Jap_Convoys file. There where three invalid class units for the RGG Fast Merchant Convoys. The ships were the Chitose, Naka, and Kuma. The funny thing was that it looked like the two convoys had been merged.
|
|
|
Post by propbeanie on Sept 27, 2016 11:11:12 GMT
The Chitose is the seaplane tender, right? The Naka & Kuma are Light Cruisers. I'm not sure why any of the three are missing from the catalog, but I substitute the Catapult ship for Chitose, and GENERIC Light Cruiser for the other two. I'm wondering if CapnScurvy's float plane enabler stuff may have taken out some of the CA and CL designations... ??
When you open some of the other MIS files, you'll find quite a few merchants missing in the catalog, along with some of the BB that can now launch Floaties. This will be where the 010 editor is easiest for me to use, which is in straight-up substitions, where you open the MIS file in the 010 Editor, 'find' the invalid ship name , and 'replace' it with a valid one. Only problem being, which ships are valid?
|
|
|
Post by cdrsubron7 on Sept 27, 2016 15:47:58 GMT
The Chitose is the seaplane tender, right? The Naka & Kuma are Light Cruisers. I'm not sure why any of the three are missing from the catalog, but I substitute the Catapult ship for Chitose, and GENERIC Light Cruiser for the other two. I'm wondering if CapnScurvy's float plane enabler stuff may have taken out some of the CA and CL designations... ?? When you open some of the other MIS files, you'll find quite a few merchants missing in the catalog, along with some of the BB that can now launch Floaties. This will be where the 010 editor is easiest for me to use, which is in straight-up substitions, where you open the MIS file in the 010 Editor, 'find' the invalid ship name , and 'replace' it with a valid one. Only problem being, which ships are valid? we really need Jeff_Groves and s7trikback to finish they're work on the ships first before we start making changes. At least that way we won't have to go back and redo everything again.
|
|
|
Post by Privateer on Sept 28, 2016 15:53:52 GMT
I'll post how I found and sorted the ships in .mis files and in the Rosters folders. Then it's easy to compare them and find the invalid ships.
|
|
|
Post by propbeanie on Sept 30, 2016 5:33:19 GMT
Ever have an idea, get distracted, and forget it? I don't want to go to bed now, 'cause I've forgotten what it was... I was thinking of The Wolves of the Kaiser mod, my grandpa in France during the Great War, my dad being a SeaBee in the Philippines, torp juice, FotRSU, S3d instances, the 010 Hex Editor, another person's special project, and got distracted by trying to get an upload of the Cookie Monster on Photobucket to give me a link for here... wanting to get into the 010 editor section to ask Privateer if he thought the idea feasible (in the 010 Editor??), but it's apparently too ~evil~ for us to contemplate just yet...
I was hoping that typing about it would help. It didn't. It's for Fall of the Rising Sun, but usable elsewhere... nutz
|
|
|
Post by propbeanie on Oct 2, 2016 16:14:59 GMT
|
|
|
Post by Privateer on Oct 2, 2016 18:45:13 GMT
I've got that script. I've been planning to do just what your suggesting. But I don't need that script. The built in ReplaceAll function should do what your wanting.
|
|
|
Post by propbeanie on Oct 2, 2016 22:44:51 GMT
What I'm looking at is the two & three line combinations, such as "Class= and Type=" in the Campaign MIS files, that are one after the other in the [RndGroup x.RndUnit x] definitions of what will get generated. Then, on the regular [Unit x] definitions, there's "Name= and Class= and Type=" on three lines in a row. If you "Search" on just the "Type=" without the corresponding "Class=" with it, you get all sorts of hits besides the ships. With some of the MIS file "importing" we're expecting to try to do, we'll be converting calls for other ships to FotRSU versions, in addition to converting FotRS v2 to FotRSU stuff... Can the ReplaceAll handle what we may twist it in to?... :lol:
I also have another question: I opened incorrect files for when I was looking up the stuff for the paragraph above, and I notice that there is an NBB_Ise and an NBB_Ise2 in the Data/Sea folder, but only a BBIse.cfg file in the Roster/Japan/Sea. Is that like the Deutschland, where both ships come from the one cfg file? All I can say, is I'm glad you and s7rikeback and cdrsubron7 are doing that portion of this, 'cause I'm naturally confused anyway, and lower-case and upper-case do me in all the time, but that stuff... phwew!...
|
|
|
Post by Privateer on Oct 3, 2016 14:16:46 GMT
An If Else structure should handle anything like that.
|
|