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

Global NPC definitions not reloaded while using Test Game #1216

Closed
meredosia opened this issue Sep 22, 2021 · 8 comments
Closed

Global NPC definitions not reloaded while using Test Game #1216

meredosia opened this issue Sep 22, 2021 · 8 comments
Labels
bug Yeah... that's broken npcs rel: hrodvitnir Present in hróðvitnir 2021-09-13 rel: New in ... Introduced in the tagged "rel:" release/nightlies Test Game Live-previewing of games from Custom using the Test Game option
Milestone

Comments

@meredosia
Copy link

When resetting game, global npcs are invisible when repopulating the map.

@bob-the-hamster
Copy link
Collaborator

Thank you for the bug report, @meredosia

Can you please provide more information to help us try to reproduce this bug?

What do you mean by "resetting"? Saving and loading while playing a game? Exiting and re-opening the map editor? Step by step instructions to reproduce the bug are needed.

Screenshots might be helpful, if it is difficult to describe

@bob-the-hamster bob-the-hamster added the details needed We need more information from the bug's reporter label Sep 23, 2021
@rversteegen
Copy link
Contributor

I did some simple tests but wasn't able to reproduce that.
Also, this in the hróðvitnir release, right?

@meredosia
Copy link
Author

meredosia commented Sep 23, 2021 via email

@rversteegen
Copy link
Contributor

OK, I've managed to reproduce this, but I think you're mistaken about what's going on. The problem is that while using Test Game any changes to Global NPC definitions made in Custom don't get reloaded by Game, so there are lots of different strange things that happen.

E.g. I created a one-time usable global NPC with a tag condition, then ran Test Game and used the NPC, then changed its tag condition so it should reappear, but it didn't. It wasn't invisible, but it did still show in NPC Debug mode (press F6). By moving my mouse over it in NPC debug mode I saw its tag condition was wrong.

Another variant on this bug is that while using Test Game, creating a new global NPC definition and then placing it on the map doesn't work. (In fact, you get a Fatal Bug error when mouse-overing it in NPC debug mode).

I noticed another bug, which is that global NPCs don't get unique onetime-usable tags, as Custom doesn't check which tags are in use by global NPCs.

Finally, I notice that when I place a new NPC in the map editor while Testing Game and hit Ctrl-S, some NPCs on the map in Game reset to their initial position but not others, which seems buggy.

I had a list of global NPC bugs but never got around to going through that list before the hróðvitnir release; James had fixed a whole lot of bugs so my list was obsolete.

@rversteegen rversteegen added bug Yeah... that's broken npcs rel: hrodvitnir Present in hróðvitnir 2021-09-13 rel: New in ... Introduced in the tagged "rel:" release/nightlies Test Game Live-previewing of games from Custom using the Test Game option and removed details needed We need more information from the bug's reporter labels Sep 25, 2021
@rversteegen rversteegen changed the title Global NPC sprites Global NPC definitions not reloaded while using Test Game Sep 25, 2021
@rversteegen rversteegen added this to the Ichorescent milestone Sep 25, 2021
@meredosia
Copy link
Author

meredosia commented Sep 25, 2021 via email

@bob-the-hamster
Copy link
Collaborator

I spun off the bug about one-time-use tags not being handled correctly for global NPCs into a new issue #1219

@meredosia please file separate issues for separate bugs (And when you post an issue for the one about directional wals, please make sure to include a screenshot of the map editor in passability mode. It will make the bug easier to understand)

@rversteegen
Copy link
Contributor

(I can't reproduce any problem with one-way walls, but I don't know whether the complaint is about the map editor or in-game behaviour)

bob-the-hamster pushed a commit that referenced this issue Sep 30, 2021
@rversteegen
Copy link
Contributor

This bug and all other known global NPC bugs are now fixed (in tonight's nightly builds) - there were quite a few! Thanks for the report. Let us know if you come across any more, or think that your one-way walls problem is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Yeah... that's broken npcs rel: hrodvitnir Present in hróðvitnir 2021-09-13 rel: New in ... Introduced in the tagged "rel:" release/nightlies Test Game Live-previewing of games from Custom using the Test Game option
Projects
None yet
Development

No branches or pull requests

3 participants