Iris2.de

Iris2-Forum
It is currently Fri Nov 08, 2024 10:32 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: small bug fixed
PostPosted: Sat Jul 10, 2010 2:56 pm 
Offline

Joined: Sat Jul 10, 2010 2:41 pm
Posts: 1
Got crashes in a debug line while trying to sell:
Code:
LuaError
error running function `Main': ../lua/net/net.trade.lua:140: attempt to index field 'item' (a nil value)
LuaStackTrace:

   ../lua/net/net.trade.lua:140: in function `handler'
   ../lua/lib.protocol.lua:84: in function `HandlePacket'
   ../lua/lib.protocol.lua:52: in function `HandlePackets'
   ..//lua/main.lua:654: in function `MainStep'
   ..//lua/main.lua:589: in function <..//lua/main.lua:467>
..\lugre\src\lugre_main.cpp:221:Lugre::Lugre_Run
..\lugre\src\lugre_game.cpp:19:Lugre::cGame::Run
  ..\lugre\src\lugre_scripting.cpp:271:Lugre::cScripting::LuaCall
   ..\lugre\src\lugre_scripting.cpp:217:Lugre::LuaErrorHandler
PrintLuaStackTrace:
LuaStackTrace:


I replaced the line 140 with this code and the crashes are gone:
Code:
         if (good.item) then
             print("kPacket_Shop_Sell",hex(good.itemserial,8),hex(good.itemartid),hex(good.item.artid),good.price,good.name)
         else
             print("kPacket_Shop_Sell",hex(good.itemserial,8),hex(good.itemartid),"(nil)",good.price,good.name)
         end


Keep up the good work, i am enjoying my first contact with UO and Iris2!

lk14


Top
 Profile  
 
 Post subject: Re: small bug fixed
PostPosted: Wed Jul 14, 2010 9:49 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
thx for the fix. this was only a debug out. it curios why the item is nil? maybe a server issue?

i patched the svn. fix is now active.


Top
 Profile  
 
 Post subject: Re: small bug fixed
PostPosted: Fri Jul 16, 2010 11:57 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
maybe the server sends the dialog first and then sends the items later ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group