Per the reference manual the IsCargo property should be “true” when the cargo piece is loaded on a mat and “” when it is not. However, In my module the IsCargo property seems to stay “true” even after being unloaded from the mat to a different spot on the same map as the mat. IsCargo stays “true” when moving the piece from one non-mat location on the map to another non-mat location on the same map. IsCargo stays “true” even when moving the piece from one non-mat location on the map to another non-mat location on a different map that doesn’t have any mats.
Here’s a link to my module in development:
https://drive.google.com/file/d/1UzCE3sbX__iL7bCXBvqO0oY4b0lBpf3B/view?usp=sharing
To replicate the problem:
- Start a new game.
- Click the PlayerA button on the toolbar to show the PlayerA map window.
- Click the Rounhouse button on the toolbar to show the Roundhouse map window.
- Click on the CompanyStock tab to show the company stock certificates (only St Louis Southwestern Railway certificates available so far).
- The president’s certificate should be on top, it has three logos on the left; drag it to the PlayerA map window.
- You should be prompted for an initial stock price; enter any number (typical values are between 60 and 150).
- On the Roundhouse map, click the Turntable tab; there should be the St Louis Southwestern Railway charter (this is a mat) with 7 St Louis Southwestern Railway single share, stock certificates (these have only one logo on the left) on the mat.
- Drag the mat to the PlayerA map window.
- Select one single St Louis Southwestern Railway stock certificate and drag it off the mat on to a non-mat area of the PlayerA map window; I’m thinking the IsCargo property of this certificate should be “” because it is no longer on the mat. I have a debug report in the Chat log reporting properties relating to the certificate being moved which indicates that the IsCargo property is staying “true” when it should have changed to “”.
- You drag this certificate to another location on this map window.
- You can show the Bank map window by clicking on the Bank button on the main map toolbar. You can drag the single certificate to the Bank map window. When I did my debug report was still showing the certificate had an IsCargo property of “true”.
Note: I may have some logic errors causing miscalculation of shares for PlayerA and the St Louis Southwestern Railway, or these miscalculations may be resulting from erroneous values for IsCargo.