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

About the network mode #44

Closed
muzhizhao opened this issue Nov 21, 2022 · 8 comments
Closed

About the network mode #44

muzhizhao opened this issue Nov 21, 2022 · 8 comments

Comments

@muzhizhao
Copy link

In network mode, I'm trying to get two planes to start a dogfight and I can attack the enemy plane by doing "df.activate_IA", but how do I do it to get my plane to attack? It seems to only fly in circles

@ErkMkd
Copy link
Contributor

ErkMkd commented Nov 21, 2022

Hi, the IA is very basic. When you have IA vs IA, the same algorithm flies both planes. The two planes try to go towards the enemy, and enter a loop: they turn. I haven't fixed this case yet, I need to add a support for this case.

@muzhizhao
Copy link
Author

muzhizhao commented Nov 21, 2022

Because the enemy aircraft has IA on and the Allies do not have IA on and are using reinforcement learning algorithms, what should I do to get the aircraft to fire in network mode, e.g. fire missiles when locked on enemy aircraft, fire, etc?

@ErkMkd
Copy link
Contributor

ErkMkd commented Nov 21, 2022

@muzhizhao
Copy link
Author

Thanks, I will try it

@muzhizhao
Copy link
Author

What should I do if I want to shoot with a gun?

@ErkMkd
Copy link
Contributor

ErkMkd commented Nov 21, 2022

You have the function activate / deactivate_machinegun:
https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/network_client_example/dogfight_client.py#L158

@muzhizhao
Copy link
Author

Thank you, I will try it again

@muzhizhao
Copy link
Author

Hi,
I am working on a reinforcement learning project using the Harfang platform and I would like to ask how to enable multiple dogfight-sandboxes in network mode to achieve parallel training?

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

No branches or pull requests

2 participants