Jump to content
  • 0
Sign in to follow this  
Newbiedev-chan

about Refine UI

Question

so, i manually apply the refine UI interface but i got this error on clif.cpp when i recompile my server.

 

    

Spoiler

CXX    clif.cpp
clif.cpp: In function \u2018void clif_refineui_info(map_session_data*, uint16)\u2019:
clif.cpp:21132:59: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                                           ^
clif.cpp:21132:125: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM_SUB\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                                                                                                             ^
clif.cpp:21139:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
   ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21139:18: error: \u2018HEADER_ZC_REFINE_ADD_ITEM\u2019 was not declared in this scope
  p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21139:18: note: suggested alternative: \u2018PACKET_ZC_REFINE_ADD_ITEM\u2019
  p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                  PACKET_ZC_REFINE_ADD_ITEM
clif.cpp:21140:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  p->packtLength = length;
   ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21141:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  p->itemIndex = client_index( index );
   ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21141:17: error: \u2018client_index\u2019 was not declared in this scope
  p->itemIndex = client_index( index );
                 ^~~~~~~~~~~~
clif.cpp:21141:17: note: suggested alternative: \u2018client_tick\u2019
  p->itemIndex = client_index( index );
                 ^~~~~~~~~~~~
                 client_tick
clif.cpp:21142:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  p->blacksmithBlessing = 0; //TODO: required amount of "Blacksmith Blessing"(id: 6635)
   ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21145:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
   p->req.itemId = client_nameid( materials.cost.nameid );
    ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21145:22: error: \u2018client_nameid\u2019 was not declared in this scope
   p->req.itemId = client_nameid( materials.cost.nameid );
                      ^~~~~~~~~~~~~
clif.cpp:21145:22: note: suggested alternative: \u2018clif_name\u2019
   p->req.itemId = client_nameid( materials.cost.nameid );
                      ^~~~~~~~~~~~~
                      clif_name
clif.cpp:21146:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
   p->req.chance = materials.chance;
    ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21147:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
   p->req.zeny = materials.cost.zeny;
    ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21150:17: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  WFIFOSET( fd, p->packtLength );
                 ^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
  uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp: In function \u2018void clif_parse_refineui_add(int, map_session_data*)\u2019:
clif.cpp:21159:17: error: \u2018server_index\u2019 was not declared in this scope
  uint16 index = server_index( RFIFOW( fd, 2 ) );
                 ^~~~~~~~~~~~
clif.cpp:21159:17: note: suggested alternative: \u2018equip_index\u2019
  uint16 index = server_index( RFIFOW( fd, 2 ) );
                 ^~~~~~~~~~~~
                 equip_index
clif.cpp: In function \u2018void clif_parse_refineui_refine(int, map_session_data*)\u2019:
clif.cpp:21184:32: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  uint16 index = server_index( p->index );
                                ^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21184:17: error: \u2018server_index\u2019 was not declared in this scope
  uint16 index = server_index( p->index );
                 ^~~~~~~~~~~~
clif.cpp:21184:17: note: suggested alternative: \u2018equip_index\u2019
  uint16 index = server_index( p->index );
                 ^~~~~~~~~~~~
                 equip_index
clif.cpp:21185:21: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  uint16 material = p->itemId;
                     ^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21186:34: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  bool use_blacksmith_blessing = p->blacksmithBlessing != 0; // TODO: add logic
                                  ^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from clif.cpp:21482:0:
clif_packetdb.hpp: In function \u2018void packetdb_readdb()\u2019:
clif_packetdb.hpp:2346:10: error: \u2018HEADER_ZC_REFINE_OPEN_WINDOW\u2019 was not declared in this scope
  packet( HEADER_ZC_REFINE_OPEN_WINDOW, sizeof( struct PACKET_ZC_REFINE_OPEN_WINDOW ) );
          ^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
  #define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
                                                ^~~
clif_packetdb.hpp:2346:84: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_ZC_REFINE_OPEN_WINDOW\u2019
  packet( HEADER_ZC_REFINE_OPEN_WINDOW, sizeof( struct PACKET_ZC_REFINE_OPEN_WINDOW ) );
                                                                                    ^
clif_packetdb.hpp:7:52: note: in definition of macro \u2018packet\u2019
  #define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
                                                    ^~~~~~
clif_packetdb.hpp:2347:20: error: \u2018HEADER_CZ_REFINE_ADD_ITEM\u2019 was not declared in this scope
  parseable_packet( HEADER_CZ_REFINE_ADD_ITEM, sizeof( struct PACKET_CZ_REFINE_ADD_ITEM ), clif_parse_refineui_add, 0 );
                    ^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                   ^~~
clif_packetdb.hpp:2347:88: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_ADD_ITEM\u2019
  parseable_packet( HEADER_CZ_REFINE_ADD_ITEM, sizeof( struct PACKET_CZ_REFINE_ADD_ITEM ), clif_parse_refineui_add, 0 );
                                                                                        ^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                       ^~~~~~
clif_packetdb.hpp:2348:10: error: \u2018HEADER_ZC_REFINE_ADD_ITEM\u2019 was not declared in this scope
  packet( HEADER_ZC_REFINE_ADD_ITEM, -1 );
          ^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
  #define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
                                                ^~~
clif_packetdb.hpp:2348:10: note: suggested alternative: \u2018PACKET_CZ_REFINE_ADD_ITEM\u2019
  packet( HEADER_ZC_REFINE_ADD_ITEM, -1 );
          ^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
  #define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
                                                ^~~
clif_packetdb.hpp:2349:20: error: \u2018HEADER_CZ_REFINE_ITEM_REQUEST\u2019 was not declared in this scope
  parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
                    ^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                   ^~~
clif_packetdb.hpp:2349:20: note: suggested alternative: \u2018PC_PERM_RECEIVE_REQUESTS\u2019
  parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
                    ^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                   ^~~
clif_packetdb.hpp:2349:96: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
  parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
                                                                                                ^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                       ^~~~~~
clif_packetdb.hpp:2350:20: error: \u2018HEADER_CZ_REFINE_WINDOW_CLOSE\u2019 was not declared in this scope
  parseable_packet( HEADER_CZ_REFINE_WINDOW_CLOSE, sizeof( struct PACKET_CZ_REFINE_WINDOW_CLOSE ), clif_parse_refineui_close, 0 );
                    ^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                   ^~~
clif_packetdb.hpp:2350:96: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_WINDOW_CLOSE\u2019
  parseable_packet( HEADER_CZ_REFINE_WINDOW_CLOSE, sizeof( struct PACKET_CZ_REFINE_WINDOW_CLOSE ), clif_parse_refineui_close, 0 );
                                                                                                ^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
  #define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
                                                                       ^~~~~~
make[1]: *** [Makefile:84: obj/clif.o] Error 1
make[1]: Leaving directory '/root/trunk/src/map'
make: *** [Makefile:50: map] Error 2

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.