Avallon 0 Posted July 23, 2015 Share Posted July 23, 2015 Hi all. I have one problem with my source. How can I change start position to Lycan? I want the kingdom normal, NOT in their map ty Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 start_position.cpp Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 Can you explain please? where exactly ? what needs changing? Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Before that, does your CONFIG file (in Channel1 folder for example) have something similar to this? enable_new_kingdom_for_wolfman: Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 no. Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Post here your start_position.cpp. Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 #include "stdafx.h" #include "start_position.h" char g_nation_name[4][32] = { "", "신수국", "천조국", "진노국", }; // LC_TEXT("신수국") // LC_TEXT("천조국") // LC_TEXT("진노국") long g_start_map[7] = { 0, 1, 21, 41, 7, 27, 47 }; DWORD g_start_position[7][2] = { {0, 0}, {469300, 964200}, {55700, 157900}, {969600, 278400}, {469300, 964200}, {55700, 157900}, {969600, 278400} }; DWORD arena_return_position[4][2] = { { 0, 0 }, { 347600, 882700 }, // 자양현 { 138600, 236600 }, // 복정현 { 857200, 251800 } // 박라현 }; DWORD g_create_position[7][2] = { {0, 0}, {469300, 964200}, {55700, 157900}, {969600, 278400}, {469300, 964200}, {55700, 157900}, {969600, 278400} }; DWORD g_create_position_canada[7][2] = { {0, 0}, {469300, 964200}, {55700, 157900}, {969600, 278400}, {469300, 964200}, {55700, 157900}, {969600, 278400} }; Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 (edited) This is the default one. #include "stdafx.h" #include "start_position.h" char g_nation_name[4][32] = { "", "½Å¼ö±¹", "õÁ¶±¹", "Áø³ë±¹", }; // LC_TEXT("½Å¼ö±¹") // LC_TEXT("õÁ¶±¹") // LC_TEXT("Áø³ë±¹") long g_start_map[4] = { 0, // reserved 1, // ½Å¼ö±¹ 21, // õÁ¶±¹ 41 // Áø³ë±¹ }; DWORD g_start_position[4][2] = { { 0, 0 }, // reserved { 469300, 964200 }, // ½Å¼ö±¹ { 55700, 157900 }, // õÁ¶±¹ { 969600, 278400 } // Áø³ë±¹ }; DWORD arena_return_position[4][2] = { { 0, 0 }, { 347600, 882700 }, // ÀÚ¾çÇö { 138600, 236600 }, // º¹Á¤Çö { 857200, 251800 } // ¹Ú¶óÇö }; DWORD g_create_position[4][2] = { { 0, 0 }, { 459800, 953900 }, { 52070, 166600 }, { 957300, 255200 }, }; DWORD g_create_position_canada[4][2] = { { 0, 0 }, { 457100, 946900 }, { 45700, 166500 }, { 966300, 288300 }, }; Edited July 23, 2015 by Shisui Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 This is the default one. Hidden Content start_position.cpp:17: error: conflicting declaration 'long int g_start_map [4]' start_position.h:8: error: 'g_start_map' has a previous declaration as 'long int g_start_map [7]' start_position.cpp:25: error: conflicting declaration 'DWORD g_start_position [4][2]' start_position.h:7: error: 'g_start_position' has a previous declaration as 'DWORD g_start_position [7][2]' start_position.cpp:43: error: conflicting declaration 'DWORD g_create_position [4][2]' start_position.h:9: error: 'g_create_position' has a previous declaration as 'DWORD g_create_position [7][2]' start_position.cpp:51: error: conflicting declaration 'DWORD g_create_position_canada [4][2]' start_position.h:10: error: 'g_create_position_canada' has a previous declaration as 'DWORD g_create_position_canada [7][2]' Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Post here your start_position.h Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 (edited) Post here your start_position.h #ifndef __START_POSITION_H #define __START_POSITION_H #include "locale_service.h" extern char g_nation_name[4][32]; extern DWORD g_start_position[7][2]; extern long g_start_map[7]; extern DWORD g_create_position[7][2]; extern DWORD g_create_position_canada[7][2]; extern DWORD arena_return_position[4][2]; inline const char* EMPIRE_NAME( BYTE e) { return LC_TEXT(g_nation_name[e]); } inline DWORD EMPIRE_START_MAP(BYTE e) { return g_start_map[e]; } inline DWORD EMPIRE_START_X(BYTE e) { if (1 <= e && e <= 6) return g_start_position[e][0]; return 0; } inline DWORD EMPIRE_START_Y(BYTE e) { if (1 <= e && e <= 6) return g_start_position[e][1]; return 0; } inline DWORD ARENA_RETURN_POINT_X(BYTE e) { if (1 <= e && e <= 3) return arena_return_position[e][0]; return 0; } inline DWORD ARENA_RETURN_POINT_Y(BYTE e) { if (1 <= e && e <= 3) return arena_return_position[e][1]; return 0; } inline DWORD CREATE_START_X(BYTE e) { if (1 <= e && e <= 6) { if (LC_IsCanada() == true) return g_create_position_canada[e][0]; return g_create_position[e][0]; } return 0; } inline DWORD CREATE_START_Y(BYTE e) { if (1 <= e && e <= 6) { if (LC_IsCanada() == true) return g_create_position_canada[e][1]; return g_create_position[e][1]; } return 0; } #endif Edited July 23, 2015 by Avallon Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Default file #ifndef __START_POSITION_H #define __START_POSITION_H #include "locale_service.h" extern char g_nation_name[4][32]; extern DWORD g_start_position[4][2]; extern long g_start_map[4]; extern DWORD g_create_position[4][2]; extern DWORD g_create_position_canada[4][2]; extern DWORD arena_return_position[4][2]; inline const char* EMPIRE_NAME( BYTE e) { return LC_TEXT(g_nation_name[e]); } inline DWORD EMPIRE_START_MAP(BYTE e) { return g_start_map[e]; } inline DWORD EMPIRE_START_X(BYTE e) { if (1 <= e && e <= 3) return g_start_position[e][0]; return 0; } inline DWORD EMPIRE_START_Y(BYTE e) { if (1 <= e && e <= 3) return g_start_position[e][1]; return 0; } inline DWORD ARENA_RETURN_POINT_X(BYTE e) { if (1 <= e && e <= 3) return arena_return_position[e][0]; return 0; } inline DWORD ARENA_RETURN_POINT_Y(BYTE e) { if (1 <= e && e <= 3) return arena_return_position[e][1]; return 0; } inline DWORD CREATE_START_X(BYTE e) { if (1 <= e && e <= 3) { if (LC_IsCanada() == true) return g_create_position_canada[e][0]; return g_create_position[e][0]; } return 0; } inline DWORD CREATE_START_Y(BYTE e) { if (1 <= e && e <= 3) { if (LC_IsCanada() == true) return g_create_position_canada[e][1]; return g_create_position[e][1]; } return 0; } #endif Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 not working... syserr: SYSERR: Jul 24 02:02:01.936087 :: GetServerLocation: location error name LycanTest mapindex 0 0 x 0 empire 1SYSERR: Jul 24 02:02:02.735887 :: GetValidLocation: cannot find tree by 0 0 (map index 1)SYSERR: Jul 24 02:02:02.735908 :: PlayerLoad: InputDB::PlayerLoad : cannot find valid location 0 x 0 (name: LycanTest) Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Are you using this source code? Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 no. Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 Try these files, replace 'em. https://mega.co.nz/#!XZEDlZgL!QLPZyrhsSvMqFlPYFgPEAfLUseVXtbkqELyezXLDYnM Link to comment Share on other sites More sharing options...
Avallon 0 Posted July 23, 2015 Author Share Posted July 23, 2015 ...that files are already with map_e1, i need normal kingdom .... Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted July 23, 2015 Former Staff Share Posted July 23, 2015 (edited) Edit: try these ones instead. This is the hidden content, please Sign In or Sign Up Edited July 23, 2015 by Shisui 2 2 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now