asamy / forgottenmapeditor

Map editor written in lua for Open Tibia. Written with OtClient's framework.
Other
46 stars 20 forks source link

Save map node bug #16

Closed comedinha closed 11 years ago

comedinha commented 11 years ago

Save and load map on last get this error:

ERROR: protected lua call failed: LUA ERROR:
C++ call failed: Unknown map data node 15
stack traceback:
    [C]: ?
    [C]: in function 'loadOtbm'
    /mapeditor_filebrowser/filebrowser.lua:150: in function 'openMap'
    /mapeditor_filebrowser/filebrowser.lua:50: in function 'v'
    /mapeditor_filebrowser/filebrowser.lua:73: in function 'openFile'
    /mapeditor_filebrowser/filebrowser.lua:93: in function </mapeditor_filebrowser/filebrowser.lua:93>
Starting down...

On open server:

>> Loading map
> Map size: 2600x2900.
Duplicate uniqueId 60053
FATAL: [OTBM loader] Unknown map node.
> ERROR: Failed to load map
>> No services running. The server is NOT online.

I check on mapio.cpp and not have extra node

asamy commented 11 years ago

15 is the node for waypoints, in the loader we check if the headerVersion is greater than 1 because that appeared there...
what client version are you using?

comedinha commented 11 years ago

I use version 10.10

asamy commented 11 years ago

Try with the latest otclient commit

On Thu, Aug 15, 2013 at 11:41 AM, Bruno Carvalho notifications@github.comwrote:

I use version 10.10

— Reply to this email directly or view it on GitHubhttps://github.com/allanference/forgottenmapeditor/issues/16#issuecomment-22693815 .

comedinha commented 11 years ago

Ok, w8 i go to home...

comedinha commented 11 years ago

Works :3