Generate Battle keeps crashing

Moderator: Jason Petho

Post Reply
zoikkis
Posts: 83
Joined: Wed Nov 11, 2015 7:50 am

Generate Battle keeps crashing

Post by zoikkis »

When generating battles, the program often crashes with a message attached to this post.

If this is caused by some conflicting parameters(OOB not available for that year for a particular country or something), I suppose there should be a warning message shown and not completely crashing the game.

Image
Attachments
crash.jpg
crash.jpg (28.2 KiB) Viewed 172 times
User avatar
Jason Petho
Posts: 16630
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Generate Battle keeps crashing

Post by Jason Petho »

What are you trying to build a battle between?
zoikkis
Posts: 83
Joined: Wed Nov 11, 2015 7:50 am

RE: Generate Battle keeps crashing

Post by zoikkis »

Looks like whenever you choose "Size: Company", it always crashes
Oberst_Klink
Posts: 4839
Joined: Sun Feb 10, 2008 7:37 pm
Location: Germany
Contact:

RE: Generate Battle keeps crashing

Post by Oberst_Klink »

ORIGINAL: zoikkis

Looks like whenever you choose "Size: Company", it always crashes
Roger. It looks for certain data but can't find'em.

Klink, Oberst

Image
Attachments
cats.jpg
cats.jpg (102.6 KiB) Viewed 172 times
My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.
User avatar
Jason Petho
Posts: 16630
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Generate Battle keeps crashing

Post by Jason Petho »

There are no company sized organizations, you need to start with battalion.
Oberst_Klink
Posts: 4839
Joined: Sun Feb 10, 2008 7:37 pm
Location: Germany
Contact:

RE: Generate Battle keeps crashing

Post by Oberst_Klink »

ORIGINAL: Jason Petho

There are no company sized organizations, you need to start with battalion.
Acknowledged. Alas, can the option 'company' being blanked out/not appear at all in order to prevent the crash in the future? Not that this one is a 'biggie'; but if the selection 'company' ain't there, it ain't cause a crash.

OT: Smashing job ya's from CS Legion did with CSME...

Klink, Oberst
My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Generate Battle keeps crashing

Post by berto »

ORIGINAL: Oberst_Klink
ORIGINAL: Jason Petho

There are no company sized organizations, you need to start with battalion.
Acknowledged. Alas, can the option 'company' being blanked out/not appear at all in order to prevent the crash in the future? Not that this one is a 'biggie'; but if the selection 'company' ain't there, it ain't cause a crash.
For random battle generation, generating company level battles will no longer be an option. Included in the next patch. No ETA available.

In the meantime, just ignore the company option.

Sorry for the trouble.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Oberst_Klink
Posts: 4839
Joined: Sun Feb 10, 2008 7:37 pm
Location: Germany
Contact:

RE: Generate Battle keeps crashing

Post by Oberst_Klink »

ORIGINAL: berto

ORIGINAL: Oberst_Klink
ORIGINAL: Jason Petho

There are no company sized organizations, you need to start with battalion.
Acknowledged. Alas, can the option 'company' being blanked out/not appear at all in order to prevent the crash in the future? Not that this one is a 'biggie'; but if the selection 'company' ain't there, it ain't cause a crash.
For random battle generation, generating company level battles will no longer be an option. Included in the next patch. No ETA available.

In the meantime, just ignore the company option.

Sorry for the trouble.
No trouble at all. Just one more thing... I created a random battle, France vs. Algeria, June 1954, Meeting Engagement, Battalion level... but nearly a whole corps was spawned. WAD? I haven't saved it, will check it again later on with a few more 'tests'. Just seemed a bit odd that Paris send me a whole bunch of troops ;)

Klink, Oberst
My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.
User avatar
Crossroads
Posts: 17498
Joined: Sun Jul 05, 2009 8:57 am

RE: Generate Battle keeps crashing

Post by Crossroads »

Thanks Oberst, I'll have a look at that. Can't be your personal charm can it, must be the code... [:'(]
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < Available now
CS: Middle East 1948-1985 2.0 < 3.0 In the works
Oberst_Klink
Posts: 4839
Joined: Sun Feb 10, 2008 7:37 pm
Location: Germany
Contact:

RE: Generate Battle keeps crashing

Post by Oberst_Klink »

See below; 4 x Mot.Inf.Coy, 2 x Mech.Inf.Coy, 2 x Lt.Tank.Coy... The size of at least a a Half-Brigade or a reinforced Mixed Mobile Group. Again, I am not sure how it is coded, e.g. if there have to be a minimum amount of units being created.

Klink, Oberst



Image
Attachments
CSME2.jpg
CSME2.jpg (455.36 KiB) Viewed 172 times
My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Generate Battle keeps crashing

Post by berto »

ORIGINAL: Oberst_Klink

Just one more thing... I created a random battle, France vs. Algeria, June 1954, Meeting Engagement, Battalion level... but nearly a whole corps was spawned. WAD? I haven't saved it, will check it again later on with a few more 'tests'. Just seemed a bit odd that Paris send me a whole bunch of troops ;)
In my tests, generating a random battalion sized battle is indeed doing just that, but with high order HQ units thrown in.

If you observe this again, please check Status > Strength ... Apart from any high order HQs, are the actual fighting forces more or less a battalion?

Also, try selecting the Static Line Battle type. At the Battalion Size, you should see on-map more or less battalion vs. battalion. (Apart from any reinforcements, which again may just be mainly high order HQs.)
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Generate Battle keeps crashing

Post by berto »

ORIGINAL: Oberst_Klink

See below; 4 x Mot.Inf.Coy, 2 x Mech.Inf.Coy, 2 x Lt.Tank.Coy... The size of at least a a Half-Brigade or a reinforced Mixed Mobile Group. Again, I am not sure how it is coded, e.g. if there have to be a minimum amount of units being created.

Image
But you see, mostly those are HQ units only, not full-fledged battalions. Double click on each line to see what forces it represents.

The random battle generator is far from perfect. We will be reviewing it and reworking it later in the year.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Oberst_Klink
Posts: 4839
Joined: Sun Feb 10, 2008 7:37 pm
Location: Germany
Contact:

RE: Generate Battle keeps crashing

Post by Oberst_Klink »

ORIGINAL: berto

ORIGINAL: Oberst_Klink

See below; 4 x Mot.Inf.Coy, 2 x Mech.Inf.Coy, 2 x Lt.Tank.Coy... The size of at least a a Half-Brigade or a reinforced Mixed Mobile Group. Again, I am not sure how it is coded, e.g. if there have to be a minimum amount of units being created.

Image
But you see, mostly those are HQ units only, not full-fledged battalions. Double click on each line to see what forces it represents.

The random battle generator is far from perfect. We will be reviewing it and reworking it later in the year.
Berto, I ain't complaining 'bout it at all. Was just, shall we say... puzzled? I don't know about the 'inner works' of how the AI pulls the units from the .org files. I.e. the random battles at games like WinSPWW2/MBT are based on points one assigns. So again, was just wondering.

Klink, Oberst
My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Generate Battle keeps crashing

Post by berto »


Oh, there's plenty to complain about, hence our plan sooner or later to review the battle generator (also the random map generator). I just think the Battle Size control is close to WAD, first glances notwithstanding.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
Crossroads
Posts: 17498
Joined: Sun Jul 05, 2009 8:57 am

RE: Generate Battle keeps crashing

Post by Crossroads »

I did a quick test in generating two Battalion sized Random Battles, then viewing them on Scenario Selection dialog. The other one had a Complexity rating of 3, meaning 51-90 units on map in total, and the other 4, meaning 91-140 units on map, again in total (see manual page 16).

So seems to be in line. As such.

The HQ spawning is a "known feature", it can result in some rather silly amounts at HQs at times, but hopefully something we can fix when we, as Berto mentioned, proceed to overhaul this particular part of the Front End application.

There's a beautiful application-within-application awaiting us there, whether for Random Battles, or for Dynamic Campaign Games. They do come with their little quirks at the moment. Iron them out, and, well, I for one can't be happier. Writing a Dynamic Campaign Game, with all the parameters available to script a full campaign, that's a goal to wait for [:)]

Image
Attachments
randombnsize.jpg
randombnsize.jpg (101.89 KiB) Viewed 172 times
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < Available now
CS: Middle East 1948-1985 2.0 < 3.0 In the works
Post Reply

Return to “Tech Support”