Bug in Eastern Invasion

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
Flameslash
Posts: 633
Joined: December 21st, 2008, 12:29 pm

Bug in Eastern Invasion

Post by Flameslash »

I was playing the fifth scenario of Eastern Invasion in 1.13.5 on Mac OsX, and I moved a Horseman onto a village. The Horseman said "they're here", but the bandit unit did not spawn. I've attached a screenshot with the error message.
Attachments
Screen Shot 2016-08-11 at 15.45.14.png
User avatar
Celtic_Minstrel
Developer
Posts: 2222
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Bug in Eastern Invasion

Post by Celtic_Minstrel »

Just as a note for future reference, there's a better way to report Lua errors - enable debug mode (by typing ";debug"), open the Lua console, and copy the error from there using the "copy to clipboard" button. You only need the error line, of course (there's also a bunch of init stuff in the Lua console that's irrelevant).
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Bug in Eastern Invasion

Post by zookeeper »

Thanks. Apparently someone had put in code they had not tested at all. It's fixed now.

EDIT: Correction, the same code works in 1.13.4, so something's changed elsewhere which broke it.
User avatar
Flameslash
Posts: 633
Joined: December 21st, 2008, 12:29 pm

Re: Bug in Eastern Invasion

Post by Flameslash »

Any idea if I'll still be able to beat the scenario?
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Bug in Eastern Invasion

Post by zookeeper »

Flameslash wrote:Any idea if I'll still be able to beat the scenario?
Right, I forgot about that.

If you're able to, you can replace the data/campaigns/Eastern_Invasion/lua/bandits.lua file with this fixed one. After that, I think you should be able to continue from any savefile where you've visited no more than 2 villages so far. If you've visited more than that, it's possible that it's no longer beatable.

If you can't do that but still want the scenario to end gracefully with correct carryover gold and all, you can use the debug mode to for example do this:

Code: Select all

:debug
<mouseover an enemy unit you're going to kill>
:unit id=Shodrano
And then whenever you kill said enemy, the event for killing the bandit leader will get fired and things will proceed normally.
User avatar
Flameslash
Posts: 633
Joined: December 21st, 2008, 12:29 pm

Re: Bug in Eastern Invasion

Post by Flameslash »

Thanks.
Post Reply