Jump to content
×
×
  • Create New...
  • 0

Start position lycan


Avallon

Question

  • Answers 17
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

17 answers to this question

Recommended Posts

  • 0
#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

  • 0
  • Former Staff

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 by Shisui
Link to comment
Share on other sites

  • 0

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

  • 0

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 by Avallon
Link to comment
Share on other sites

  • 0
  • Former Staff

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

  • 0

not working...

 

syserr:

SYSERR: Jul 24 02:02:01.936087 :: GetServerLocation: location error name LycanTest mapindex 0 0 x 0 empire 1
SYSERR: 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.