Jump to content

[WIP] OOB and Formation Recorder


Japanzer

Recommended Posts

Is there any sound to the video?

Is it export only?

The xls /appears/ to have points values assigned to units. Is the tool only used for QBs or can it be used in the editor too? If it can be used in the editor, does it automagically assign points values based on the equivalent QB values?

Link to comment
Share on other sites

JonS,

The video doesn't have any sound. Maybe video caputure was not able to record sound.

>Is it export only?

This tool can scan OOB/Formation only. Unit purchaser, my another script, can auto purchase units.

Unfortunaly, the .csv format of OOB and Formation Recorder and Unit purchaser is different.

OOB and Formation Recorder works on QB and editor. But, it doesn't automagically assign any point value.

It can scan only.

The charts base on QB Formation(setting: Rarity standard, Typically). Not on the editor.

I don't have CMFI, so I don't know this tool can work on CMFI. But, it may work on CMFI with minor change.

CMx2 interfaces are almost the same.

Link to comment
Share on other sites

  • 3 years later...
Hi,
 
Currently, I don't have CMFB and CMSF in my pc, so I can't confirm my tool, OOB and Formation Recorder, running on CMFB and CMSF.
 
If you want to confirm it, please try the followings.
 
1. Using RezExplode.exe in CM mod tools folder, explode the .brz files.
2. Copy "editor option button [Nation].bmp" and "editor option button [Nation] down.bmp" files and paste them to the img folder of my tool.
3. Start my tool and confirm it.
4. If failed, the nation bmp size would cause malfunction. Cut 2 pixel on all side of the "editor option button [Nation].bmp" and "editor option button [Nation] down.bmp" files in the img folder, and you'll get 28x28 pixel "editor option button [Nation].bmp" and "editor option button [Nation] down.bmp" files.
5. Start my tool and confirm it.
6. If failed, I'm affraid that I don't have any idea.
Link to comment
Share on other sites

Hi Japanzer,

thanks for your detailed answer.

Wanted to test again the tool with CMBN first to make sure what to expect and I'm having an issue, as it keeps looping with that command :

c8a23731cdbf90ee68750f9ff5ae3840.png

OOBandFormation Recorder Log.txt

16-04-14 16:33  25sec. 857; LeftClick 1089:69
16-04-14 16:33  26sec. 428; LeftClick 1089:53
16-04-14 16:33  26sec. 944; refreshScreen(Searching PLUS mark position)
16-04-14 16:33  *** 2sec. ***
16-04-14 16:33  28sec. 75; CMActivate()
16-04-14 16:33  28sec. 75; !!! CMid is NOT active. CMid Title=CM Normandy; CMid Path=
16-04-14 16:33  28sec. 75; Active Win@CMActivate()=Order of Battle and Formation Recorder 263.uws; Path=C:\uwsc522\UWSC.exe
16-04-14 16:33  29sec. 474; plusExist=1
16-04-14 16:33  30sec. 29; ScanX1@ExtendPurchaseScreen()=1072
16-04-14 16:33  30sec. 29; plusNum@ExtendPurchaseScreen()=2
16-04-14 16:33  30sec. 56; LeftClick 1089:69
16-04-14 16:33  30sec. 645; LeftClick 1089:53
16-04-14 16:33  31sec. 146; refreshScreen(Searching PLUS mark position)

I do have CMBN 3.12 with all modules activated, on Win10 and my screen resolution is 1920 x 1080 (you mention 1920 x 1020 in the readme but I assume it's a typo, right?)

The plus mark on the units screen ingame still looks like your (+).bmp so I'm not sure what I'm doing wrong.

Link to comment
Share on other sites

Hi,
 
As you said, 1920 x 1080 is correct. It's my typo.
The positons of plus mark in the scenario editor are serched by (+).bmp.
 
Sometimes, the refresh screen dialog displays wrong message, but it don't affect any bad effect.
 
The log.txt seems to be right.
Link to comment
Share on other sites

As I don't look your PC, I don't know the exact conclusion, but maybe it's normal.
 
The tool may takes 20 minutes for overall info.
Plus mark positions searching and clicking them in one page takes 5-10 sec, as your log indicates.
 
>16-04-14 16:33  26sec. 944; refreshScreen(Searching PLUS mark position)
>....
>16-04-14 16:33  31sec. 146; refreshScreen(Searching PLUS mark position)
 
More Nation, Branch, Formation take more time.
Page move, Nation or Branch change take time, too.

 

 

Link to comment
Share on other sites

Japanzer, here's the video (very amateurish, sorry) :

As you now actually see, the tool keeps searching for the Plus mark position and it does for hours (no kidding, I let it ran all night to be sure).

Am I doing something wrong?

Link to comment
Share on other sites

I see your problem, now.
It's not normal. And you don't mistake anything.
 
I've uploaed my video on youtube, which shows mouse click on "+" mark and extention of the formation smoothly.
 
It seems that the tool goes on normaly, but can not control your mouse on CM editor.
 
Two points to be confirmed.
[1] What mouse do you use?
If your PC is notetype, your mouse might be the reason of failure.
 
[2] CM option
High Priority Process --> off(smoother mouse)
Edited by Japanzer
Link to comment
Share on other sites

Hi Japanzer,

[1] a cheap Microsoft USB Optical Mouse 200

Can you please guide on how do I check if my PC is "notetype" or not?

[2] on off already.

I'll try on another computer tonight.

Edited by CMFDR
Link to comment
Share on other sites

My mouse is a cheap USB optical mouse, too. So, your mouse seems to be okay.
 
The notetype I said means that nootbook computer netbook, tablet, and so on.
These type PCs often use their own devices, including mouse.
 
>I'll try on another computer tonight.
 
Good luck!
 
Link to comment
Share on other sites

@Japanzer

I'm happy to report that it works! :)

Here is a CMFB typical Straggler Group with both options on.

d08bc432c5e729fc180d092460539f7e.png

 

The problem I had was ridiculous! After testing in various configuration for about an hour (Firewall, Security suite, Fraps, Gaming Software, etc. on and off, Windows regional settings), I realized that the Order of Battle and Formation Recorder 263 worked much better when I don't run CM... as an Administrator. Old habit!

Then it only was a matter of a few modifications, some images added and Order of Battle and Formation Recorder worked with all CM 2.0x titles I own, including Black Sea and Final Blitzkrieg.

Man, your tool is amazing! ;)

 

Here are the modifications I made in GeneralFunctionCM.uws:

*Public mods:
- added CMBS and CMFBfile path

*Functions mods:
- Added Windows 8.1 and 10 to WinVer (found values on a webpage, not sure it actually works.)
- modified "Fortless Italy" to "Fortress Italy"
- Added CM Black Sea and CM Final Blitzkrieg to getCM(OS), getGameTitle

*Procedures mods :
- Added CM Black Sea and CM Final Blitzkrieg to CMActivate, CMActivateForEditor, CMStart(filepath), Wait_BMP, checkStyleMods(filepath)

*Note: CM Black Sea u.s. army bmp files overwrites WW2 era files so it's probably best to have a second OOB recorder installation to not interfere with WW2 titles.

Here are the files: 

I'm probably missing a lot since there are probably several text image and functions (transword for example) that should be updated too but for now I'm just happy that it essentially works.

http://superdupontzeserveur.fr/cm/OOBandFormationRecorderUpdate.zip

 

Thanks a lot for your efforts and patience Japanzer.

 

 

Edited by CMFDR
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...