Lua Coroutines and Fibers

Mr_RiddMr_Ridd Join Date: 2008-12-10 Member: 65729Members
Hey

My implementation of Lua uses Fibers to be able to jump back and forth between segments of code etc. This allows me to wait on animations from the scripts and then continue any script processing.

The problem I'm having is that when I run it though Decoda it breaks at,

int newline = getline(p, npc);

... in,

static void traceexec (lua_State *L, const Instruction *pc)

... with an Access violation. But outside of Decoda it's fine.

Any ideas?

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    <!--quoteo(post=1695757:date=Dec 10 2008, 01:01 AM:name=Mr_Ridd)--><div class='quotetop'>QUOTE(Mr_Ridd @ Dec 10 2008, 01:01 AM) <a href="index.php?act=findpost&pid=1695757"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Hey

    My implementation of Lua uses Fibers to be able to jump back and forth between segments of code etc. This allows me to wait on animations from the scripts and then continue any script processing.

    The problem I'm having is that when I run it though Decoda it breaks at,

    int newline = getline(p, npc);

    ... in,

    static void traceexec (lua_State *L, const Instruction *pc)

    ... with an Access violation. But outside of Decoda it's fine.

    Any ideas?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Thanks for the report. I'll look into it. Which version of Lua are you using?
  • Mr_RiddMr_Ridd Join Date: 2008-12-10 Member: 65729Members
Sign In or Register to comment.