![]() |
All U.S.M.C. Scenarios for 2019
Once the 2019 patch is out, with the CD version of ScenHack you get quite a lot of useful and powerful tools at your disposal, not only for Scenario Designers, but for players as well.
There is a host of SQL in the "SQL" folder (for both games) and I helped create these SQL so that both players and Designers can query the databases and find some interesting information. For a small example, here is a listing of all the USMC scenarios sorted by year and month where the U.S.M.C. is Player One (U.S.M.C.-Player-1-Scenarios-by-Year-Month.sql): Code:
001 Obong-Ni Ridge 8/50 8 1950 U.S.M.C. N.Korea Here is the query I used to get that total: Code:
SELECT COUNT(*) AS Total Code:
U.S.M.C. China 1950 4 If you have any questions about the SQL's ask me, most standard queries should work. |
Re: All U.S.M.C. Scenarios for 2019
I assume Russia is a participant in more scenarios then any other nation ;)
|
Re: All U.S.M.C. Scenarios for 2019
Quote:
|
Re: All U.S.M.C. Scenarios for 2019
You can run this in the version you already have simply cut and past it into the SQL window
it will show you every nation that Russia is the P2 opponent and add that to the 34 as P1 SELECT P1Name, P2Name, sYear, COUNT(sYear) AS Total FROM ScenData.db WHERE P2Name = "Russia" GROUP BY sYear, P2Name, P1Name That gives you the totals by year and by national opponent as P1 BUT with that version you MUST go to the SORT tab first and press Create Tables for it to find the info you are asking for with that SQL That said pressing Create Tables the first time you use it and any time you make changes to Scenarios is best SOP This one SELECT P1Name, P2Name, COUNT(P2Name) AS Total FROM ScenData.db WHERE( LOWER(p2Name) like "%russia%") GROUP BY P2Name, P1Name Will total the number of scenarios Russia is the P2 opponent by nation but not by year. Also note the use of WHERE( LOWER(p2Name).....using LOWER allows you to enter the name in all lower case so it ignores capitols..useful if you are looking for all the SdKfz... it can be written sdkfz. P1Name P2Name Total Belgium Russia 1 Canada Russia 1 China Russia 4 Czechoslovakia Russia 1 Finland Russia 5 France Russia 2 GB Russia 4 Germany Russia 10 Greece Russia 1 Italy Russia 1 Japan Russia 1 Netherlands Russia 3 Norway Russia 5 Poland Russia 3 Romania Russia 2 Sweden Russia 8 U.S.Army Russia 28 U.S.M.C. Russia 6 Yugoslavia Russia 1 SQL's are powerful sorting tools but they aren't Google search... they give you exactly what you ask for but you must ask the question exactly right This SELECT P2Name, COUNT(P2Name) AS Total FROM ScenData.db WHERE( LOWER(p2Name) like "%russia%") GROUP BY P2Name Will give you one total..... and that is 87 as P2 ( in my files ) Also, keep in mind that when Sort tables runs it sorts through EVERYTHING in your scenario folders including Any WIP scenarios you might have |
Re: All U.S.M.C. Scenarios for 2019
Thanks Don.
The actually current count is 120 scenarios for Russia as Player 1 or Player 2. The query I used is: Code:
SELECT count(*) So changing it to 7 for Great Britain yields 41 scenarios and to 4 for Israel shows 47 scenarios and lastly 12 for the USA shows 103 scenarios. As Don points out SQL is a powerful query language. One last example shows all the USA scenarios by year, month and player one, mission and player two: Code:
SELECT ScenID, Title, sMonth, sYear, P1Name, Mission, P2Name Code:
ScenID Title sMonth sYear P1Name Mission P2Name |
Re: All U.S.M.C. Scenarios for 2019
Just remember it totals WIP or special saved scenarios as well. My total running that SQL you gave is 122
When I restrict it to the number of scenarios in the next patch I get 121 so IDK how you get 120 SELECT count(*) FROM ScenData.db WHERE sMonth > 0 AND sYear > 0 AND ScenID <488 AND P1ID = 11 OR P2ID = 11 |
Re: All U.S.M.C. Scenarios for 2019
Excellent!!! Thank you!!! Just in these days I thought that it would be good to order the scenarios by date. You solved it before you ask the question .... Fantastic !!!
|
Re: All U.S.M.C. Scenarios for 2019
1 Attachment(s)
Yes, here is the scenarios ordered by date.
|
Re: All U.S.M.C. Scenarios for 2019
Sorting all scenarios by date is one of the basic functions of Scenhack sort and has been all along and does not require a special SQL and anyone with the CD version can do that now
|
All times are GMT -4. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.