Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Aeon M4 bug with incorrect platoon reference #436

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maudlin27
Copy link
Contributor

Fixes a bug caused by a reference to a string instead of a platoon

Error message given prior to this change:
WARNING: Error running lua script: ...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua(891): Expected a game object. (Did you call with '.' instead of ':'?)
stack traceback:
[C]: in function `PlatoonExists'
...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua(891): in function <...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua:880>

Fixes a bug caused by a reference to a string instead of a platoon
@maudlin27
Copy link
Contributor Author

Although this fixed the issue for the replay where it occured, running a fresh replay results in the error:
WARNING: Error running lua script: ...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua(893): Game object has been destroyed
stack traceback:
[C]: in function `AssignUnitsToPlatoon'
...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua(893): in function <...alliance\maps\scca_coop_a04\scca_coop_a04_script.lua:880>

I'll look into some more to see if the new error can be mitigated.

@maudlin27
Copy link
Contributor Author

With thanks to relent0r, the second issue I encountered was where some of the transports in the platoon were dead - have updated the PR to fix this (by only transferring over living transports)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant