Skip to content

TriggerEventSeen spam caused by player viewing feature object just before offworld load #4256

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

Open
KJeff01 opened this issue Mar 26, 2025 · 0 comments

Comments

@KJeff01
Copy link
Member

KJeff01 commented Mar 26, 2025

Describe the bug
TriggerEventSeen can get spammed a ton in campaign logs. This seemingly stems from the player having vision on feature objects just before offworld mission load occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Have any feature on a home-base map within vision range (may or may not require a sensor-like object).
  2. See assert spam upon going offworld.
  3. Remove said features from the map and no assert spam.

Expected behavior
No spam.

Additional context
gameLoop -> gameStateUpdate() -> processVisibility() -> processVisibilityVision() (spam potential starts here cause scriptsReady will be false for a time until stageThreeInit happens).

Not sure why we care about updating vision as the game is in a loading screen state trying to go offworld.

This problem also isn't entirely confined to this event. In rare cases, I can also see eventDroidIdle also pop up before scripts are ready. The game also automatically builds any structures a truck was working on in saveMissionData(), and thus eventStructureBuilt can fire off during the loading screen as well.

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

No branches or pull requests

2 participants
@KJeff01 and others