Problem saving in b12

If you have a module that you'd like comments on or would like to know how to create your very own module, post here

Moderator: Moderator

Post Reply
Message
Author
Lap
Cornac
Posts: 40
Joined: Sun Aug 29, 2010 1:31 am

Problem saving in b12

#1 Post by Lap »

Lua Error: attempt to yield across metamethod/C-call boundary
At [C]:-1
At [C]:-1 yield
At /engine/Savefile.lua:106 saveObject
At /engine/Savefile.lua:198 saveGame
At /mod/dialogs/Quit.lua:33 ?
At /engine/

Is now what I get on save exiting a game.

I updated from a b9 module to a b12.

I've changed the following in the game.lua file.

Code: Select all

function _M:saveGame()
	savefile_pipe:push(self.save_name, "game", self)
	self.log("Saving game...")
end

function _M:tick()
	if self.level then
		self:targetOnTick()

		engine.GameTurnBased.tick(self)
	end
	if self.paused and not savefile_pipe.saving then return true end
end

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Problem saving in b12

#2 Post by darkgod »

Hum I'll need to test some more, are your changes in svn already ? I'll check them out.

The error message means you are trying to yield a coroutine that is called by a C method, well not you I suppose :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Problem saving in b12

#3 Post by darkgod »

I dont find this change in the current svn but if I apply it it seems to work, can you commit your changes please?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Problem saving in b12

#4 Post by darkgod »

Oh and BTW if you want you can give me write access to the svn :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Lap
Cornac
Posts: 40
Joined: Sun Aug 29, 2010 1:31 am

Re: Problem saving in b12

#5 Post by Lap »

Well I try not to commit broken code to the SVN since it tends to result in me getting a lot of confused users, but in this case I'll do it anyways.

I added darkgod on sourceforge to the SVN. I hope that's your sourceforge username, otherwise I just added some random guy.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Problem saving in b12

#6 Post by darkgod »

Ah I see, saving via ctrl+s works but not by exiting. That's because you did not update dialogs.Quit

As for the account I did not use it for an eternity I dont even remember the email I used :/
I have made a new account: darkgod7
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Lap
Cornac
Posts: 40
Joined: Sun Aug 29, 2010 1:31 am

Re: Problem saving in b12

#7 Post by Lap »

Ahh, gotcha. I just went by the blog post and only remember seeing updating dialogs.death.

Thanks for taking a look at it.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Problem saving in b12

#8 Post by darkgod »

My pleasure :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply