• Blitz Shadow Player
  • Caius
  • redboot
  • Rules
  • Chain of Command
  • Members
  • Supported Ladders & Games
  • Downloads


Query: adding leaders to OOB
10-27-2021, 11:57 PM,
#2
RE: Query: adding leaders to OOB
Not familiar with the M&P engine but from my experience creating scenarios in the ACW game I have found the scenario file is saved using the oob file unit's positions as pointers. If you look at the scn file with a text editor you will see something like this
 
1 1.5.4.1 2 2 550 0 0 0 262656 64 42
 
1 - indicates player 1
1.5.4.1 - these ID numbers indicate the unit position in the oob and vary in length
2 2 - not sure what these are
550  - 550 is unit strength in men or guns, will be 0 for officers
0 0 0 262656 - again not sure but these numbers vary and I believe they indicate unit status such things as FA, formation etc
64 42 - this is the unit's position on the map
 
You will see similar lines in the saved game file if it isn't password protected, this is how the engine saves data for each turn using the unit oob position as an ID.
Changing the position of units in the oob changes the ID numbers and when the engine tries to read the oob if the data doesn't match what it is expecting the engine crashes.
You can modify such things as picture id's, even change class, names and weapon types but any addition or subtraction of lines to the oob causes a problem.
 
To the best of my knowledge once you change the number of lines in an oob or a units position in any way you have to rebuild the scenario from scratch as if you created a brand new oob.
Quote this message in a reply


Messages In This Thread
Query: adding leaders to OOB - by neonlicht - 10-27-2021, 09:33 PM
RE: Query: adding leaders to OOB - by krmiller - 10-27-2021, 11:57 PM
RE: Query: adding leaders to OOB - by neonlicht - 10-28-2021, 12:37 AM
RE: Query: adding leaders to OOB - by neonlicht - 10-28-2021, 02:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)