Jump to content

Recommended Posts

AeroCrab
Posted

@jpanside @CosmicComet56 There are a couple of things I can think of here. The first is what PWCG calls "skirmishes," which are historical timeframes and areas where specific activities were taking place. If it finds one of these, it makes whatever was going on the only thing that happens (to be clear, there can be more than one activity in a skirmish, but you are only going to get one of those). You can see if this is what is affecting you by going into <install location>\BoSData\Input\Normandy and renaming the "Skirmishes" directory to something else temporarily. Generate some new missions and see if you get something else.

 

Before that, though, you might want to check on another possibility (especially as you are both doing Channel stuff): your mission box may not extend into enemy territory, or enough into enemy territory. In the campaign "advanced" config, under mission limits, there are entries relating to the mission center and mission box - try setting the "max" mission center to something larger, along with the size of the mission box. The general idea is to make sure PWCG can look for mission targets in a place where they might actually be (rather than, say, "the middle of the Channel").

 

@Vishnu Does the error log have anything interesting to say (<install location>PWCGErrorLog.txt)? Is there any chance that there are write protections set on the "missions" directory?

Vishnu
Posted (edited)

 

@AeroCrab I found this under PWCG BOS.  Everything looks fine, but it doesn't show in the "Missions" drop down in game.   I'm so frustrated because I have it working for years.  Now nothing.  You can follow the file folders, I have it in at the top.

PWCGErrorLog.txt

Screenshot 2025-05-22 084552.png

Screenshot 2025-05-22 084808.png

Edited by Vishnu
AeroCrab
Posted (edited)

Since the issue is one of missions not showing up, we'd need to look at the error log from immediately after the mission was generated. So basically go into PWCG, generate a new mission, leave PWCG and look at the error log - it gets wiped out each time you run PWCG, so it has to happen in that order. What you have shown above looks fine (provided that the PWCG you are running is the one shown). Have you checked the properties of the Missions directory? Maybe there is some strangeness there related to Steam?

 

<edit> Also, at the risk of sounding silly, can you verify that the PWCG you are running corresponds to the game you are running? For instance, from the screenshots above, you are running the PWCG shown and the corresponding game shown? If there are multiple versions of things lying around, that could be an issue.

Edited by AeroCrab
Vishnu
Posted (edited)
4 hours ago, AeroCrab said:

Since the issue is one of missions not showing up, we'd need to look at the error log from immediately after the mission was generated. So basically go into PWCG, generate a new mission, leave PWCG and look at the error log - it gets wiped out each time you run PWCG, so it has to happen in that order. What you have shown above looks fine (provided that the PWCG you are running is the one shown). Have you checked the properties of the Missions directory? Maybe there is some strangeness there related to Steam?

 

<edit> Also, at the risk of sounding silly, can you verify that the PWCG you are running corresponds to the game you are running? For instance, from the screenshots above, you are running the PWCG shown and the corresponding game shown? If there are multiple versions of things lying around, that could be an issue.

I'll try more experiments....

Currently, I can't run PWCG at all.   You know when you go to the game and look under MISSIONS, it gives you the PWCG option to pick to find your mission.    That option within the game is not there.

I generated a mission and the screen looks like this....

Screenshot 2025-05-22 153804.png

Edited by Vishnu
AeroCrab
Posted

When I say "... run PWCG" I mean the thing that you use to generate the missions. Since you are doing that (and again, it is worth looking at the error log after you do so) it seems as though the possibilities are:

 

1) Somehow a mission isn't actually being generated (usually PWCG will make a lot of noise about that if it happens, so it seems unlikely).

2) There is some permission issue associated with the Missions folder (again, I would expect PWCG to complain about that due to being unable to write things).

3) The PWCG app you are using to generate missions is not in the sub-directory of the version of IL-2 you are running.

 

3 could happen if you had multiple IL-2 installs and run PWCG from one and the game itself from another. Or, I suppose, just one IL-2 install but multiple PWCG installs, one of which is not in an IL-2 subdirectory and that being the one used to generate missions. Or maybe something else I haven't thought of; it just seems likely to me that if you are generating a mission and not seeing any app complaints, that mission is probably somewhere, if not in the right game directory.

Vishnu
Posted
17 hours ago, AeroCrab said:

When I say "... run PWCG" I mean the thing that you use to generate the missions. Since you are doing that (and again, it is worth looking at the error log after you do so) it seems as though the possibilities are:

 

1) Somehow a mission isn't actually being generated (usually PWCG will make a lot of noise about that if it happens, so it seems unlikely).

2) There is some permission issue associated with the Missions folder (again, I would expect PWCG to complain about that due to being unable to write things).

3) The PWCG app you are using to generate missions is not in the sub-directory of the version of IL-2 you are running.

 

3 could happen if you had multiple IL-2 installs and run PWCG from one and the game itself from another. Or, I suppose, just one IL-2 install but multiple PWCG installs, one of which is not in an IL-2 subdirectory and that being the one used to generate missions. Or maybe something else I haven't thought of; it just seems likely to me that if you are generating a mission and not seeing any app complaints, that mission is probably somewhere, if not in the right game directory.

I wiped PWCG from my computer and re downloaded it.   I put it in my correct drive under the Root Directory.   Mission =1  I generated a mission in PWCG.  I found this error log. Is this the error log your're looking for?   Sorry, I'm nut that much of a computer tech guy.

PWCGErrorLog.txt

AeroCrab
Posted

Yes, great. That log is somewhat interesting in that it claims there are no flights, which may be an indicator (although the pile of missing skin complaints seems to suggest otherwise?). According to the log, there is a mission being generated and it is in E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\data\Missions\PWCG - which corresponds to your screenshots above and so that all seems good. Providing you are running the same install of IL-2, and I assume you are, that may indicate (along with the log info) that there may be something the game doesn't like about the generated mission. Certainly if there really are no flights (including no player flight) I can see it being unhappy about that. Or if the mission was for a map (or aircraft?) you didn't own, for example - that might be a problem as well.

 

So I suggest looking in the above directory and seeing whether there is in fact a mission there. If so, I think we have to look at there being some aspect of that mission that the game doesn't like. Have you set up your "Planes owned" from the main menu? Also, perhaps try creating a campaign elsewhere/when and see if that one shows up.

 

In an unrelated matter, I'm going to suggest that you run the AA "simple" setting down to low or ultra-low: 304 is a lot of AA and will make performance very not-good. :biggrin:

CosmicComet56
Posted

Thanks for the advice AeroCab. I tried both suggestions, first adjusting the size of the mission box and the mission center. No luck. I then renamed the Skirmishes folder and tried again. No dice. Still, every mission being generated is a CAP mission and it rotates between three areas. I have temporarily solved the problem by starting the campaign in October of 1941, instead of June, it seems that the missions then are more inline with the Circus missions the RAF were involved in during the period. A nice mix of escort, offensive sweep, raider, and CAP. For some reason, anytime before that, it's just CAP. Cheers!

AeroCrab
Posted

Oh, good, I'm glad you were able to get around it. I started a campaign in June of 41 and looked at the intel map immediately - there were enemy units near enough that it shouldn't have been a problem (I think). I can see that there is a skirmish for 6/1 - 6/10 that has the allies doing CAP stuff, but if you renamed the directory and still got them that wouldn't seem to be the issue. I have skirmishes disabled locally and my first generated missions on (06/01) were a patrol, a CAP and an intercept. So who knows? As long as things are working for you, its all good.

Vishnu
Posted (edited)
On 5/23/2025 at 1:45 PM, AeroCrab said:

Yes, great. That log is somewhat interesting in that it claims there are no flights, which may be an indicator (although the pile of missing skin complaints seems to suggest otherwise?). According to the log, there is a mission being generated and it is in E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\data\Missions\PWCG - which corresponds to your screenshots above and so that all seems good. Providing you are running the same install of IL-2, and I assume you are, that may indicate (along with the log info) that there may be something the game doesn't like about the generated mission. Certainly if there really are no flights (including no player flight) I can see it being unhappy about that. Or if the mission was for a map (or aircraft?) you didn't own, for example - that might be a problem as well.

 

So I suggest looking in the above directory and seeing whether there is in fact a mission there. If so, I think we have to look at there being some aspect of that mission that the game doesn't like. Have you set up your "Planes owned" from the main menu? Also, perhaps try creating a campaign elsewhere/when and see if that one shows up.

 

In an unrelated matter, I'm going to suggest that you run the AA "simple" setting down to low or ultra-low: 304 is a lot of AA and will make performance very not-good. :biggrin:

Ok....I'll try some of these and get back to you...Thank you for helping me...

 

This does look like the mission was made..

Screenshot 2025-05-26 144619.png

Edited by Vishnu
Vishnu
Posted

@AeroCrab Thanks for all the help, but you never guess what fixed the issue for me?  I bought  the "Siege and Liberation" module and after I downloaded it, it must have re-written something that was causing the problem.   So, It works again.   So strange!   

 

Thanks again for trying to help me out!

 

  • Like 1
DD_Ben
Posted

Hiya me and my friend are trying get a ww1 coop campaign going everything works to behin with i host no problems about 5-10mins in missions he's game crashes due to undefined object wasn't sure if any9ne else has come across this we did test a mission already ingame no issues

French_Fungible
Posted

In all of my campaigns, I can only request 1 aircraft and most of the time it is a completely type inappropriate aircraft (Ju-88C6 or Me-410 for german fighter squadrons for example)

I've already tried restarting the campaign, reinstalling PWCG, and changing values in the jsons and nothing has worked.

  • 2 weeks later...
Dubl-A_52
Posted

Hey there, folks.  I just created a new campaign in PWCG FC... Got everything set up and went to generate my first mission and got the following error:

 

"pwcg.core.exception.PWCGException: No definition found for request Country = GERMANY     Date = 19170301     Class = Tank"

 

I attached the error log file here.... Any ideas what might be wrong?  This is/was a new one for me.  I tried searching but couldn't find any threads on it. 

 

Thanks in advance for any help or advice!!

PWCGErrorLog.txt

Dubl-A_52
Posted
3 hours ago, Dubl-A_52 said:

Hey there, folks.  I just created a new campaign in PWCG FC... Got everything set up and went to generate my first mission and got the following error:

 

"pwcg.core.exception.PWCGException: No definition found for request Country = GERMANY     Date = 19170301     Class = Tank"

 

I attached the error log file here.... Any ideas what might be wrong?  This is/was a new one for me.  I tried searching but couldn't find any threads on it. 

 

Thanks in advance for any help or advice!!

PWCGErrorLog.txt 5.24 kB · 0 downloads

OK - so, I reinstalled PWCG, and it was able to generate a mission.  However, when I went to start IL2, i got an error saying it couldn't find "graphics\shaders\trash\bkgr.fx".... did some searching and basically saw the remedy was to reinstall IL2.  So I saved out all of the critical folders/files, and did a complete re-download and re-install of IL2.  I've added everything back in and so far it appears as if it's working.  Haven't tried adding PWCG back in the mix yet, tho.

 

I assume I have to do complete new install of PWCG, and can't just copy/paste in the folder I saved before uninstalling IL2?

AeroCrab
Posted

On the original issue, that is just a bug in the battle builder - the code is trying to build an attacker tank where it should be building a defender tank, and at the time involved Germany doesn't have one. The code checks to make sure that attackers and defenders have tanks before selecting them, but when one does and the other doesn't, this bug can happen. If you hit stuff like this, you can try just regenerating a new mission - the odds of "tank" are relatively low, so you can probably get past it.

 

As for new install vs copy/paste, I'm guessing the official answer is "yes, reinstall" but the copy/paste should work, I think. You could try that first and if there is a problem, well, you know what to do. :biggrin:

Dubl-A_52
Posted
5 hours ago, AeroCrab said:

On the original issue, that is just a bug in the battle builder - the code is trying to build an attacker tank where it should be building a defender tank, and at the time involved Germany doesn't have one. The code checks to make sure that attackers and defenders have tanks before selecting them, but when one does and the other doesn't, this bug can happen. If you hit stuff like this, you can try just regenerating a new mission - the odds of "tank" are relatively low, so you can probably get past it.

 

As for new install vs copy/paste, I'm guessing the official answer is "yes, reinstall" but the copy/paste should work, I think. You could try that first and if there is a problem, well, you know what to do. :biggrin:

For the sake of science, I figured I'd try out the 'copy/paste' method - So far, so good!  I generated a mission... it showed up in the PWCG missions folder, and everything seems to be working.  I'm thinking part of the original problem was that I just needed to upgrade PWCG to the latest version.  Will report back if something goes sideways and I have to re-install PWCG.  Thanks!!!

ChocSmudge
Posted (edited)

Hi Everyone,

 

Ive been searching for hours and have had no luck finding a fix. My issue is PWCG and it's generated missions are not showing up in-game in the Missions section. 

 

I have changed the mission log to 1 and made sure I was loading a plane I own. All owned planes are selected. 

 

The error log shows my missions successfully being created, and PWCG and the missions show up in data -> missions in the game files, but nothing changes once I load the sim and go to missions to start playing my campaign. 

 

I am running the game through Steam, it is fully updated (despite the game saying an update is required when I attempt to run it through the .exe in the game files. Maybe this has something to do with my problem) and have uninstalled and reinstalled PWCG with no change. 

 

What do I try next?

 

EDIT: After looking more closely at the error log, it is showing unit count flights as 0

 

EDIT AGAIN: For those that are having this issue, I found the problem. After uninstalling and reinstalling Il2, I discovered I have a 2nd copy of the game, for some unknown reason, and I had installed PWCG into the wrong directory. After copy/pasting it into the correct game directory, It is working as normal. 

Edited by ChocSmudge
  • 1 month later...
Tynox25410
Posted

Hello,

 

I've installed the PWCG directory, but when I try to lauch mission I have this message : Cannot read the array length because "<local3>" is null

 

If it possible I would like to not have to re-install IL2.

 

Thanks in advance for the answer.

PWCGErrorLog.txt

  • 3 weeks later...
czech693
Posted

Don't believe that is related to the IL-2 sim.  Re-install PWCG and see if the error message goes away.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...