Jump to content


Photo

DCG - Fbdj requests


  • Please log in to reply
14 replies to this topic

#1 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 18 February 2015 - 12:12 AM

Hi m8,

I am fiddling since a few days...well weeks in the meantime, wit hDCG and FBDj2.

We all know FBDj got no real switch for DCG as the Server Commander offered.

 

However ,I was able to get DCG generated mission running and  I am on a good way to get the stats being counted by the website aswell.

 

I just paint what I did and what I think is needed basically to get the framework DCG/FBDj2 working.

 

the path:

The most common problem to all is, that FBDj just accepts a dedicated FBDj folder from where it reads the missions  and writing fbdj files to, that contain plane numbers and limits etc. DCG generates its mission to Mission/Net/dogfight/DCG. FBDJ wants it to be at Misisons/FBDj.

 

That means I have to move each generated mission manually to that folder, although I guess an easy Xcopy batch could do the job aswell.

However, here comes my first FBDJ related request:

 

A customizable path for dogfight generated mission files.

Is it possible somehow to offer a way for changing the folder destination?

Maybe a new function that changes the paths to a custom path, like an  entry in the dcg.ini or sth?

 

the WING

FBDj databse is suffering from identifying AI planes being shot by humans properly. For being able to make the FBDJ recognize AI planes and human players in that regards, all dedicated AI squadrons need to be marked "AI ONLY", all dedicated human squadrons need to be marked as "HUMAN ONLY".

That means you have to seperate AI from Human squadrons, otherwise the FBDJ spits following logs:

[17 Feb, 2015 22:56:15] EventLogParser.parseEvent - New Event Log Line:
 ** ([9:56:13 PM] Il-2_3 damaged on the ground at 107615.45 79190.87) **
[17 Feb, 2015 22:56:15] EventLogParser.checkPilotName - Unknown pilotName (Il-2_3) from eventLog
[17 Feb, 2015 22:56:15] EventLogParser.isMissionObject - (Il-2_3) is NOT a mission object

The AI plane (Il-2_3 here) is not recognized as mission object and wont be counted properly of course.

To  eliminate that issue I changed the [WING] tag in the generated mission file to [Wing].

The master mission file uses small letters [Wing], but the generated mission got capitals here [WING].

 

Editing the tag manually is kind of pita, as I forget about it every 3rd time at least :rolleyes: .

 

This would be my second request:

Is it possible to make the Wing tag in small letters as in the master file?

 

 

 

Ashamely, I wasnt able up to now to find a workaround for transfering the plane limits, DCG creates into the FBDj , but manually.

 

 

I know Il2 1946 is an old piece of master code, aswell as your DCG.

However there still so much people out there who enjoy both working together and in that way your work.

The FBDJ with its Stats Module is basically the only all in one solution.

:)



#2 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 230 posts

Posted 18 February 2015 - 11:20 PM

Here is what have been tried to get FBDj "DCG compatible"

 

http://www.warbirdso...p?topic=11208.0

 

I think that RAF238thWildWillie, the FBDj designer, have never wanted to help DCG users.

 

So we use and enjoy IL2SC. No AI planes kills in the stats. That's all.

it does not matter to us. The scores are accurate.
Follow the link "Overall Statistics".


#3 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 18 February 2015 - 11:38 PM

Sometimes I really feel to be on another star ....

 

Idefix, you dont need to answer on every on my requests or posts, if your content is not helping any further.

Even more as I was able to get a workaround for counting AI kills in the stats.

If or if not DCG was intended for being implemented is not on your side to judge, as it sounds you never talked to Willi and you maybe do not know what happened behind the scenes, so please dont spread untrue rumors.

 

I feel sorry for you, that you are not able to get AI kills counted neither in FBDj nor in SC, however I am and it would be easier with the mentioned fix above.



#4 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 230 posts

Posted 19 February 2015 - 09:55 PM

Follow the first link.

And call me Moron after having read the post.

Thanks.

 

Being the best, you don't need to apologize.



#5 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 23 February 2015 - 05:28 AM

Whatever....

 

I wrote a cheap workaround for not rewriting  & copying the single misson files.



powershell -Command "(gc %~n1.mis) -replace 'WING', 'Wing' | Out-File -encoding ASCII 'D:\IL2 Dedicated Server\Missions\FBDj\%~n1.mis'"




::Batch zum Umschreiben und Verschieben einer DCG generierten
:: xyz.mis Datei in den absoluten Pfad des FBDj Missionsordners.
::Anwendung:Anpassen des absoluten FBDj Ordner Pfades
:: Missionsdatei auf die Batchdatei ziehen.
::Umschreiben des [Wing] Tags damit der FBDj die KI Fluege erkennt.
::Anmerkung: Alle KI Fluege muessen im DCG als AI Only/Human Only gesetzt werden.
:: Anpassen des absoluten FBDj Pfades

 

 

 

 

::Batch to rewrite the mis file generated by DCG into the FBDj mission folder.
::Use: adjust the path for FBDJ Mission folder
::drop your mission file onto the batch

::Rewrite the [WING] Tab , so FBDj inditfies AI flights
::note: all flights need to be set to either AI Only or Human Only in DCG GUI.

::adjust the absolut path to FBDj Mission folder

 

 

 

 

Create a txt file, copy the stuff into it.

You will have to adjust the absolute path to the FBDj mission folder

save it as (e.g.) WING.bat

Drop the mission DCG generated onto the bat file.

A copy of the mission will be created with the [WING] tag changed to [Wing].

However you will also have to define AI Only and Human Only flights in DCG Gui aswell.

 

 

The reason for that workaround is that FBDj recognizes AI kills of DCG generated missions as probable kills and not as real kills.



#6 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 683 posts

Posted 26 February 2015 - 04:15 AM

If I understand right, you need DCG to do three things...

 

1. A customizable path for dogfight generated mission files.

 

Does it have to be customizable or can it just be the default FBDj dogfight folder...?  Because the latter is simpler, I just need to add FBDj to the options for Dogfight Mode.

 

2. Is it possible to make the Wing tag in small letters as in the master file?

 

Yes, so long as it doesn't impact any other mode (offline or coop).  I assume it won't.

 

3.  Find a workaround for transferring the plane limits that DCG creates into the FBDj.

 

What's it look like in FBDj?



#7 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 27 February 2015 - 03:11 PM

Hi buddy, good to read from you.

Atm I am struggling with powershell and batch to achieve and test a cooperative live of DCG & FBDj2.

 

Does it have to be customizable or can it just be the default FBDj dogfight folder...?  Because the latter is simpler, I just need to add FBDj to the options for Dogfight Mode

 

I think the FBDj Folder should be fine, as this is the one and only FBDj reads from.

Like: Mission Path = FBDj\

I humbled about another issue, which also depends to the dedicated FBDj folder and the eventlog.lst path entry (more to that below).

 

Yes, so long as it doesn't impact any other mode (offline or coop).  I assume it won't.

 

I will test SP, Coop and DF in ServerCommander envirenment to be sure the change wont bother, but I guess it doesnt as well.

The default [Wing] Tag in each misison of the game is aswell written in small letters but the first one.

Just tested and it works w.o. any issues neither in SP nor Coop.

 

3.  Find a workaround for transferring the plane limits that DCG creates into the FBDj.

 

Well here we go, where I am a bit lost.

The problem is, that the user creates an own  missionname.fbdj file with all info in it.

It is coded in a format wich is just partially readable by e.g. notepad ++. I just attached an example of that file below.

 

The FBDj Code is open source now, which you can find at SourceForge

I ve no clue where to look for what could be helpfull here.

In the Gui the admin has to adjust the available planes/airfield.

At the end it is a nice-to-have feature, if aircraft limitation would work, but no bonebreaker if not, due time/effort calcualtions.

The downgrades would work anyways.

 

 

BUT...what I noticed yesterday... , the eventlog is not being parsed properly by DCG anymore and I guess the reason is due the changed path entry.

Let me express what I mean.

A default eventlog by a DCG created mission looks like that (line 1):

[31.01.2015 23:02:07] Mission: net/dogfight/DCG/invasion44194406080.mis is Playing
[23:02:07] Mission BEGIN
[23:02:13] 100040_Static destroyed by 229_Static at 75887.0 81313.0
[23:02:14] 100030_Static destroyed by 100060_Static at 75806.0 81176.0
[23:02:20] 1./JG42 Nephris selected army Blue at 109038.0 99286.0
[23:02:21] 100010_Static destroyed by 100020_Static at 75784.0 81184.0
[23:02:26] 100050_Static destroyed by 100020_Static at 75840.0 81163.0
[23:02:36] 115_Chief0 destroyed by 218_Static at 61342.027 79699.37
[23:02:53] 1./JG42 Nephris selected army Blue at 73300.0 62102.0
[23:02:59] 1./JG42 Nephris selected army Blue at 143570.0 55223.0

As I have to copy the DCG generated mission to the Mission/FBDj folder, I receive the following entry (line 1)

[Feb 26, 2015 9:06:01 PM] Mission: FBDj/Krim1944194404140.mis is Playing
[9:06:01 PM] Mission BEGIN
[9:06:03 PM] flesch has connected
[9:06:05 PM] Amarok has connected
[9:06:21 PM] 1./JG42_Nephris has connected
[9:06:47 PM] Printe has connected
[9:07:22 PM] Zwerg has connected
[9:07:22 PM] Gerstel53 has connected
[9:07:22 PM] GrafZahl has connected
[9:08:42 PM] flesch selected army Blue at 117887.0 66491.0
[9:09:01 PM] Amarok selected army Blue at 189690.0 90277.0
[9:09:03 PM] -=MaD=- selected army Blue at 189690.0 90277.0
[9:09:07 PM] -=MaD=- selected army Blue at 83528.0 85992.0
[9:09:30 PM] 1./JG42_Nephris selected army Blue at 117887.0 66491.0
[9:10:08 PM] -=MaD=- selected army Blue at 189690.0 90277.0
[9:10:12 PM] flesch selected army Blue at 189690.0 90277.0
[9:10:15 PM] Printe selected army Blue at 117887.0 66491.0
[9:10:35 PM] -=MaD=- selected army Blue at 117887.0 66491.0
[9:10:36 PM] Zwerg selected army Blue at 189690.0 90277.0

I am unsure if sth else is going wrong, but blasted tanks at the front reappear each mission at the same location again.

So iI suppose DCG is not able to parse the eventlog anymore, by the change path entry ,pointing to FBDj folder?

 

Just as explanation, what I do, to get the improvised construct working:

1. DCG generates a mission

2. I copy the mission from net/dogfight/DCG/ over to FBDj/

3. adjust settings & create the fbdj file, for the mission to be running

 

 

edit:

I just  changed the path in the eventlog from FBDj/ back to net/dogfight/DCG/ manually and DCG was again able to parse properly.

I guess this has sth to to with the MissionPath entries, I can also note in the dcgerror.txt?

[2015.02.27 16:46:35.634] Campaign folder (D:\IL2 Dedicated Server\Missions\Net\Dogfight\DCG\) selected.
[2015.02.27 16:46:35.636] Game Path = D:\IL2 Dedicated Server\
[2015.02.27 16:46:35.637] Finding configuration file to determine log file name.
[2015.02.27 16:46:35.639] Logfile = eventlog.lst
[2015.02.27 16:46:35.640] The recommended setting for the IL-2 "eventlogkeep" parameter is "0" in the game CONF.INI and/or server CONFS.INI file.
[2015.02.27 16:46:35.644] Copying Eventlog to log.dcg.
[2015.02.27 16:46:35.683] Mission Path = net\dogfight\dcg\

As DCG cant find any eventlog entry pointing to one of that paths, there is nothing to process?

 

 

 

 

Thx again for taking a look into it.

 

 

 

 

edit once more:

as quick workaround I am using now a powershell command, executed bat.

powershell -Command "(gc eventlog.lst) -replace 'FBDj/', 'Net/dogfight/DCG/' | Out-File -encoding ASCII eventlog.lst"

save the term in a txt file and call it replace.bat

Drop your "dirty" eventlog on it and a cleared one will be created.

 

In the meantime I will try to create one script of all posted above...although I hope Paul will be quicker than me investigating :P

Attached Files


Edited by Nephris, 27 February 2015 - 07:37 PM.


#8 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 230 posts

Posted 28 February 2015 - 11:51 AM

I just tried [Wing] in dogfight mode online with the client and the dedicated server. It runs without problem.

 

If it can help...



#9 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 683 posts

Posted 05 March 2015 - 04:47 AM

You're right about the parsing the file.  DCG is expecting the campaign folder path to be what it created not FBDj.

 

I haven't had time to work on a fix specifically for FBDj yet.  But issues #1 and #2 are fairly easy to solve.  #3 is not so easy, but possible (though probably time consuming).



#10 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 05 March 2015 - 01:58 PM

I guess #1 #2 are a good compromise.

We should keep the time/effort variable in sight.

 

DCG is a great tool, but Il2 1946 is not what it was 6yrs ago.



#11 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 683 posts

Posted 06 March 2015 - 05:48 AM

Just posting a new beta which will hopefully address the "[WING]" issue and the path problems for writing and reading missions.



#12 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 06 March 2015 - 01:31 PM

Thx a lot.

We will run it this weekend.



#13 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 16 March 2015 - 01:42 PM

I do not want to open an extra bug report, to that topic.

 

I generated a mission with the new version with FBDj implemented.

At first time DCG read the eventlog created by the former verison.

 

The second mission, generated again by the new version caused an error while generating.

No squadrons were present anymore and I received a cleared squadorn editor, however the campaigns squadron.dat was ok (all squadorns entered)

 

I know that sounds a bit washed for now, am at work and will post the coming evening the error.txt and a screenshot and I guess the eventlog + campaign to import would also be of interests?



#14 Nephris

Nephris

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts

Posted 19 March 2015 - 04:58 PM

So back at home ...

Am receiving with the new beta build (FBDj implementation & activated) an I/o error 1224

 

dcg.error

[2015.03.19 17:54:38.89] Campaign folder (D:\IL2 Dedicated Server\Missions\FBDj\) selected.
[2015.03.19 17:54:38.89] Ship Info processed.
[2015.03.19 17:54:38.104] Target Locations processed.
[2015.03.19 17:54:38.104] Read Territory information.
[2015.03.19 17:54:38.120] Set Target Nation Began.
[2015.03.19 17:54:38.136] Set Target Nation Ended.
[2015.03.19 17:54:38.136] Checking Stationary List
[2015.03.19 17:54:38.792] Stationary Objects Check.
[2015.03.19 17:54:40.214] Squadron base routine started.
[2015.03.19 17:54:40.229] II_SchG20 was removed from an enemy airfield.
[2015.03.19 17:54:40.229] II_SchG20 was assigned to Simferopol_Sud_Airfield.
[2015.03.19 17:54:40.229] III_StG20 was removed from an enemy airfield.
[2015.03.19 17:54:40.245] III_StG20 was assigned to Simferopol_Sud_Airfield.
[2015.03.19 17:54:40.245] g011 was removed from an enemy airfield.
[2015.03.19 17:54:40.245] g011 was assigned to Sevastopol_Ost_Airfield.
[2015.03.19 17:54:40.276] Squadron base routine ended.
[2015.03.19 17:54:40.276] Check for Duplicate Squadrons.
[2015.03.19 17:54:40.276] Load Pilot Information.
[2015.03.19 17:54:40.542] ErrorWarning before MasterLog Check =
[2015.03.19 17:54:40.557] Territory Capture Check.
[2015.03.19 17:54:40.573] Tatarengraben_Depot lost 1 Axis troops.
[2015.03.19 17:54:40.573] Konev_Depot lost 3 Axis troops.
[2015.03.19 17:54:40.573] Konev_Depot lost 2 Axis troops.
[2015.03.19 17:54:40.573] Konev_Depot lost 6 Axis troops.
[2015.03.19 17:54:40.573] Konev_Depot lost 9 Axis troops.
[2015.03.19 17:54:40.573] Konev_Depot lost 7 Axis troops.
[2015.03.19 17:54:40.589] Kertsch_Depot lost 10 Axis troops.
[2015.03.19 17:54:40.589] Kertsch_Depot lost 2 Axis troops.
[2015.03.19 17:54:40.589] Kertsch_Depot lost 13 Axis troops.
[2015.03.19 17:54:40.589] Kertsch_Depot lost 11 Axis troops.
[2015.03.19 17:54:40.589] Kertsch_Depot lost 1 Axis troops.
[2015.03.19 17:54:40.604] Dzhankoy_Bridge8 lost 5 Axis troops.
[2015.03.19 17:54:40.604] Mysovoe lost 3 Axis troops.

What else is needed for help?Any further files?

I regenarated with the former build, which then turned out to work ok again.

Sorry m8. -_-



#15 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 683 posts

Posted 22 March 2015 - 11:10 PM

Make sure your FDBj folder is not read only.  That's all I can think of at the moment.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users