R2Northstar / NorthstarMods

Squirrel scripts used to recreate server-side gamelogic and add custom content to the game.
MIT License
153 stars 118 forks source link

Titans can teleport to bad positions due to navmeshes #337

Closed L1ghtman2k closed 3 months ago

L1ghtman2k commented 2 years ago

Titans teleport on disembarking, in spots where they typically don't do that

Examples:

We have tested the above on 1.6.4, and these issues DID NOT exist prior to 1.7.0

L1ghtman2k commented 2 years ago

Forward base: https://streamable.com/8zqcrw

GeckoEidechse commented 2 years ago

Given that the only changes between v1.6.4 and v1.7.0 are the following https://github.com/R2Northstar/NorthstarMods/compare/b715a69c711d56490657a3057f3faba8fb26aa48...311affdb844905f5277a9f9a757ac20cdf3995ff and Navmeshes, I feel confident in claiming that issue likely lies with the latter.

@taskinoz any ideas?

GeckoEidechse commented 2 years ago

@L1ghtman2k maybe try deleting navmeshes and graphs by deleting the following folders on server host:

Then restart game of host and try the same spots again. If you now no longer get teleported, the issue is with navs.

F1F7Y commented 2 years ago

This looks like the game is trying to correct ai positions by teleporting the titan. The titan only navs were cut down to only include geometry reachable by titans, but it seems like it has some problems and oversights. :)

The solution I see as of now is:

A more future-proof solution would be:

BobTheBob9 commented 2 years ago

if navmeshes are the issue, we could probably just change the disembark scripts to be able to disable the navmesh usage there

BobTheBob9 commented 2 years ago

this is assuming that it's specifically a disembark issue and not just an ai one

taskinoz commented 2 years ago

These are definitely navmesh issues. I forgot about the hallway in wargames, and removed that bridge from drydock, because I though titans shouldn't drop up there. And boomtown navs havent been updated to fix titan stuff.

L1ghtman2k commented 2 years ago

https://cdn.discordapp.com/attachments/787948844532891648/972213347007205496/vlc-record-2022-05-06-22h07m50s-Replay_2022-05-06_22-07-09.mp4-.mp4 too

L1ghtman2k commented 2 years ago

Hey @taskinoz, I was wondering if you could confirm @GeckoEidechse comment

I was wondering if deleting those files would suffice to fix the teleport issues(assuming of course titans lose the capability to move and use navmesh)

L1ghtman2k commented 2 years ago

Nvm, Seems like it works, I just had it tested, and wargames/drydock don't have the same issues anymore, Thanks @GeckoEidechse

taskinoz commented 2 years ago

Removing Navs like Gecko said will get rid of the teleporting issues till I can remake them

Zanieon commented 3 months ago

Closing this as the navmeshes have been rebuilt by me and this issue is pretty much fixed in all maps.