[Logged] Path changes suddenly

Post bug reports and ask for game support here.

Moderator: MOD_Command

morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

Take a very big scenario and save it often (also save as with different names). It will crash some point in time (when the strinbuilder will growth to large). That indicates that some variable are not flushed).

It even happens when you walk away and after a few houres the game stuck and crashes with out of memory. So that indicate that also some background process has variables that are not flushed (or growth larger than the Stringbuilder max size (about 2 Billions Character).....
thewood1
Posts: 10432
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Path changes suddenly

Post by thewood1 »

So this is CMNAO, and not CMO?
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

Sorry.CMO.

(CMANO hat also out of memory exception). But since 2020 i only use CMO
thewood1
Posts: 10432
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Path changes suddenly

Post by thewood1 »

Thats weird. Its been a few years since I got a memory exception error. But I don't run scenarios with much more than 1500 units.
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

This time it seems that it has nothing to do with the stringbuilde out of memory

It could be that INT32 max value of 2,147,483,647 was exceeded and hence the out of memory (Maybe use float for such big numbers.....).
I suggest systematically look at data types and adjust it....


1/1/2021 10:44:17 AM -- B1147.14 -- Exception of type 'System.OutOfMemoryException' was thrown.
Exception: Exception of type 'System.OutOfMemoryException' was thrown.
Stack Trace: at System.Number.FormatInt32(Int32 value, String format, NumberFormatInfo info)
at System.Int32.ToString()
at Command_Core.WeaponRec.(HashSet`1 , Scenario )
at Command_Core.Magazine.(HashSet`1 , Scenario )
at Command_Core.Facility.(XmlWriter& , HashSet`1& )
Call Stack & Error details:
Error at 1013249583745892137,
Error at 100671,
Error at 100540,
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »


For Integer it would help to migrate to 64 BIT System (not for string limitations).
But better solutions would be to use the right data type for the "right" situations

Much earlier it was a must to use the datatype as small as possible, but these days it is less limiting and some lazy programmer (at our company at least) use always the
biggest possible datatype(not best practices!)

It will cost a little effort but i think it is worth to play also bigger scenarios (and now since 2020 the performance of CMO is so much improved that bigger scenarios is playable and give much fun )
BDukes
Posts: 2779
Joined: Wed Dec 27, 2017 12:59 pm

RE: Path changes suddenly

Post by BDukes »

ORIGINAL: morphin


For Integer it would help to migrate to 64 BIT System (not for string limitations).
But better solutions would be to use the right data type for the "right" situations

Much earlier it was a must to use the datatype as small as possible, but these days it is less limiting and some lazy programmer (at our company at least) use always the
biggest possible datatype(not best practices!)

It will cost a little effort but i think it is worth to play also bigger scenarios (and now since 2020 the performance of CMO is so much improved that bigger scenarios is playable and give much fun )

Yes. It lot of work but I think you'd be happy with 64 bit OS in general never minds possibly fixing this issue. Best of luck!

Bill
" You have to be realistic about these things." ~Logan Ninefingers
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

Another Game
Same behaviour. It is a pitty the path change always
I can hardly play any game now




Image
Attachments
PathIssue.jpg
PathIssue.jpg (199.84 KiB) Viewed 488 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

And here is the game
Attachments
Operation..an2019.zip
(1.95 MiB) Downloaded 20 times
thewood1
Posts: 10432
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Path changes suddenly

Post by thewood1 »

Those are ground units. As far as I remember, they will self-plot around hard to pass terrain or impassable terrain for their mode of transport. There might be a setting somewhere to force a more direct path, but take a look at what lies in the way of the units.
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

I think it is the same bug as with ships. I have also the same with ships (also in this game)
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Path changes suddenly

Post by Rory Noonan »

0014312
Image
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

ORIGINAL: thewood1

Those are ground units. As far as I remember, they will self-plot around hard to pass terrain or impassable terrain for their mode of transport. There might be a setting somewhere to force a more direct path, but take a look at what lies in the way of the units.


I don't think so. I have followed the path very few hundert meter and i can not see any special terrain...




Image
Attachments
LandPathAfterTerrain.jpg
LandPathAfterTerrain.jpg (151.75 KiB) Viewed 489 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

Here start of the savegame (see later post)



Image
Attachments
LandPathBefore.jpg
LandPathBefore.jpg (122.74 KiB) Viewed 489 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

And here after 2 seconds of playtime

Image
Attachments
LandPathAfter.jpg
LandPathAfter.jpg (281.38 KiB) Viewed 489 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

And here is the savegame and my current command.ini file

Build 147.34, no autosave. Every time a few seconds after start the path changes. I can reply this and every time same path changes same

Thank's for further investigation
Attachments
Scenarios.zip
(2.37 MiB) Downloaded 28 times
morphin
Posts: 756
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

RE: Path changes suddenly

Post by morphin »

It is possible to turn this off? It is tedious and i can not understand why and units change path....

Thank's
Attachments
navigation.jpg
navigation.jpg (284.91 KiB) Viewed 491 times
Post Reply

Return to “Tech Support”