Page 2 of 2

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 3:52 pm
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).....

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 4:02 pm
by thewood1
So this is CMNAO, and not CMO?

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 4:03 pm
by morphin
Sorry.CMO.

(CMANO hat also out of memory exception). But since 2020 i only use CMO

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 4:13 pm
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.

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 4:13 pm
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,

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 4:21 pm
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 )

RE: Path changes suddenly

Posted: Fri Jan 01, 2021 6:23 pm
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

RE: Path changes suddenly

Posted: Tue Jan 12, 2021 9:54 am
by morphin
Another Game
Same behaviour. It is a pitty the path change always
I can hardly play any game now




Image

RE: Path changes suddenly

Posted: Tue Jan 12, 2021 9:56 am
by morphin
And here is the game

RE: Path changes suddenly

Posted: Tue Jan 12, 2021 10:20 am
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.

RE: Path changes suddenly

Posted: Tue Jan 12, 2021 10:30 am
by morphin
I think it is the same bug as with ships. I have also the same with ships (also in this game)

RE: Path changes suddenly

Posted: Wed Jan 13, 2021 4:15 am
by Rory Noonan
0014312

RE: Path changes suddenly

Posted: Sat Nov 06, 2021 12:40 pm
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

RE: Path changes suddenly

Posted: Sat Nov 06, 2021 12:41 pm
by morphin
Here start of the savegame (see later post)



Image

RE: Path changes suddenly

Posted: Sat Nov 06, 2021 12:44 pm
by morphin
And here after 2 seconds of playtime

Image

RE: Path changes suddenly

Posted: Sat Nov 06, 2021 12:46 pm
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

RE: Path changes suddenly

Posted: Sat Jan 15, 2022 10:24 am
by morphin
It is possible to turn this off? It is tedious and i can not understand why and units change path....

Thank's