Help identifying a bizarre bug

Started by Lewis, Thu 26/01/2017 08:44:55

Previous topic - Next topic

Lewis

I have no idea if this is the correct forum, because I have no idea whether this is a beginner issue, advanced issue, or nothing relevant at all. But I've sent my current game out to a few testers and one has reported an utterly baffling bug that I can't figure out.

Essentially, at seemingly random points while playing the game, this tester gets kicked back to the main menu. This is bizarre because:

1) The main menu is just Room 200, with a background image, some incidental animated objects set to animate based on timer expiry, and a GUI that pops up over the top.

2) The only player.ChangeRoom script in the entire project that sends you to Room 200 is the one tied to the 'Quit' button in the pause menu.

3) The character in Room 200 is called cMenu - and the only time the player is switched to cMenu is at the very end of the game, to dump the player back to the main menu.

4) There are no RestartGame() scripts anywhere in the entire project.

The bug seems to fire seemingly at random intervals, and has happened while the player is in multiple different rooms. There seems to be no obvious time interval, and it doesn't seem to occur when the player has performed a particular action - the tester only started really trying to ascertain the reproduction conditions after a few instances, but the last two have been when the character is the in process of walking from one location to another.

No plugins used.

Modules used:

- KeyPressAlways (though not actually implemented yet)

- TwoClickHandler

- DoOnceOnly (custom module written for me by Snarky, allowing DoOnceOnlies to be reset)

Does anyone have any ideas whatsoever about where to look? I simply cannot reproduce the bug at all. For clarity, the tester has a build, and is not running directly from the project - but I have tried both and no joy reproducing.
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

Crimson Wizard

#1
Quote from: Lewis on Thu 26/01/2017 08:44:55
4) There are no Game.Reset() scripts anywhere in the entire project.

The function is called RestartGame, not Game.Reset. Were you searching specifically for Game.Reset?

Also I would check whether it is possible to save game in the main menu and occasionally load it.

Lewis

#2
Oops - well spotted - but no, I was searching for RestartGame and had a brief moment of idiocy when posting this.

Edit: And no, there's no saving or loading implemented at all at this stage.
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

Khris

Change the room to 201 and see if it still happens.
Do you have any hotkeys for buttons / menus?
What happens if that particular tester runs the game on another computer?

Lewis

Cheers. I've created a dummy 201 menu and rebuilt, passed back to the tester, will be interested to know what happens.

Strangest bug I've ever encountered, and no one else can reproduce. Graphical/performance issues differing rig-to-rig would make sense, but scripting errors? Bizarre.
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

RickJ

At one time AGS had the capability to setup room-change regions at the screen edge so that when the player entered the region a room change was executed.  I wonder if what you are seeing is related.

Cassiebsg

Also, might be relevant, or not, but what is the testers setup (computer and OS)?

When working on my game on my little HiBook with Win10, I found out that the touchpad was activating some of my shortcut keys, found a bunch of bugs with that. Maybe that's what is happening? His system is telling AGS "I just pressed the menu key" (or something...)
There are those who believe that life here began out there...

Lewis

Confirmed that the game is being restarted, as the same now happens to this tester with the new "201 menu", kicking him back there instead of the main menu.

I'll comb the code again. F9 is the restart debug - perhaps it's being fired somehow?

Desktop system. Specs:

Asus PCI-e GeForce GTX770 DCII OC 2GB
Corsair 2x8GB, DDR3, PC12800, CL10, Vengeance, LP
Corsair PSX RM Series 650W
Gigabyte ATX Motherboard GA-Z97X-UD3H-BK
Intel Haswell Core i5 4460 3.20GHz 6MB Box
Seagate Harddisk 3.5" Desktop 1TB
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

SMF spam blocked by CleanTalk