Have you synchronised bot position with server?
@EDIT: ITS WORKING !!! THANK YOU !!! <3
@EDIT: ITS WORKING !!! THANK YOU !!! <3
[DEV] G2O Bot module
|
Have you synchronised bot position with server?
@EDIT: ITS WORKING !!! THANK YOU !!! <3
20.11.2016, 23:47
25.11.2016, 16:15
I've finally got everything to work again. Thanks for updating, Nubzior
![]()
okssssssss but i personally recommend bot module from KimiorV you only need to write synch
25.11.2016, 20:13
(This post was last modified: 25.11.2016, 20:39 by HammelGammel.)
I'll have to look into that then - would have to update about 3k lines of my AI for it though
![]() 1) There is a problem with the position-synchronization. When a player with a high ping synchronizes the position of the bot, the bot will lag behind, but everything is fine when a player with a low ping synchronizes the position, including for the players with a higher ping, which means that it isn't just lagg. When the updateplayer has a ping that is > 200, the bots pretty much don't move at all anymore. This is what I think is happening: The player with the high ping sends the bot-position to the server (secret_gimmebotpos). The server then uses those numbers to update the position of the bot on all clients, including the client that did the update. When the updateclient has a ping of 0 this is not noticeable at all. If he has a higher ping though, the position will be sent back to the updateclient with some delay who then sends the outdated data back to the server and so on, which causes the bot to lagg behind. If I'm correct, the obvious solution would be to exclude the "updateplayer" from the synchronization. 2) There's a (hopefully) small problem with animations. For example, if I play the death-animation for a bot, the expected result would be the following: - Play animation "T_DEAD" - After the animationstage "T_DEAD" has finished, the animation changes to "S_DEAD" (The animation where he is already dead and doesn't fall over) - m_Animation changes from "T_DEAD" to "S_DEAD" The current result is the following: - Play animation "T_DEAD" - After the animationstage "T_DEAD" has finished, the animation changes to "S_DEAD" (The animation where he is already dead and doesn't fall over) - m_Animation stays "T_DEAD" While the actual animation of the bot changes, m_Animation doesn't reflect changes in the animationstage. m_Animation is just the animation that was played last. I presume this is what causes the problem that, when leaving dead bots and approaching them again, if they were killed via "T_DEAD", they die again every time. The module probably uses m_Animation to reset the animation when the bot comes into view again. Of course I could manually set m_Animation now, but sometimes it would be very useful to get not only the last played animation, but the actual, precise animation the bot is currently in. 3) Orcs and skeletons (And possibly more) have parts of their singleplayer-AI left: Usually the problems aren't too bad: They play the weapondraw-animation when a player comes near, sometimes they play the taunt-animation too. When using setWeaponMode though, it gets a lot worse. With drawn weapon they often strafe or run forwards when a player is near, which makes exact positioning pretty hard. Especially for orcs with drawn weapons, in most cases, they don't properly play the die-animation - they just keep playing the weapondraw-anim. 4) When a player dies and respawns near bots he could see before he respawned, those bots are invisible. For example: If a player fights a wolf near the respawnpoint and then dies and respawns, the wolf will be invisible. A similar problem used to exist with setTime, which was fixed a while ago, so hopefully this is a really easy one. 5) There is no way to control whether the attacks of bots can be parried or not. Currently, the players can automatically parry any bot's attacks. 6) It would be nice, if the little "G2O Bot Alpha 3"-text in the lower right corner could be removed. |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[New G2O][Client-Side] GUI | 1 | 3,343 |
02.01.2021, 05:22 Last Post: |
||
[G2O] SpeedBlock | 16 | 11,049 |
13.10.2020, 15:32 Last Post: |
||
[New G2O][Client-Side] LocalStorage | 0 | 2,422 |
08.05.2020, 16:38 Last Post: |
||
[New G2O] Module example | 4 | 7,683 |
17.05.2019, 01:30 Last Post: |
||
[New G2O][Client-Side] Music Module | 3 | 5,909 |
24.05.2018, 08:07 Last Post: |
||
G2O - Client Side Bots(0.0.4) | 16 | 16,993 |
16.01.2017, 10:47 Last Post: |
||
G2O Client side bots | 4 | 5,898 |
09.06.2016, 20:11 Last Post: |