[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

01/25/2014 17:39 adi97ida#256
What client should i use for the UserInterface compiled from novaline?
01/25/2014 18:35 5203307a#257
Quote:
Originally Posted by GunnerMBT View Post
Show us the relevant part of code...
it's part of visual c++
01/25/2014 19:13 mamAmok#258
Quote:
Originally Posted by 5203307a View Post
it's part of visual c++
Code:
void CMapObjectPropertyPageAmbience::OnUpdateUI(CProperty * pProperty)
{
	prt::PropertyAmbienceStringToData(pProperty, &m_propertyAmbience);

	[COLOR="Red"]std::vector<CFilename> & rSoundFileNameVector = m_propertyAmbience.AmbienceSoundVector;[/COLOR]
	for (DWORD dwIndex = 0; dwIndex < rSoundFileNameVector.size(); ++dwIndex)
	{
		m_ctrlSoundFileList.InsertString(dwIndex, rSoundFileNameVector[dwIndex].c_str());
	}

	m_ctrlPlayType.SelectString(-1, m_propertyAmbience.strPlayType.c_str());

	SetDialogFloatText(GetSafeHwnd(), IDC_MAP_OBJECT_PROPERTY_AMBIENCE_INTERVAL, m_propertyAmbience.fPlayInterval);
	SetDialogFloatText(GetSafeHwnd(), IDC_MAP_OBJECT_PROPERTY_AMBIENCE_INTERVAL_VARIATION, m_propertyAmbience.fPlayIntervalVariation);
	SetDialogFloatText(GetSafeHwnd(), IDC_MAP_OBJECT_PROPERTY_AMBIENCE_MAX_VOLUME_AREA_PERCENTAGE, m_propertyAmbience.fMaxVolumeAreaPercentage * 100.0f);

	OnUpdatePropertyData(m_propertyAmbience.strName.c_str());
	OnChangePlayType();
}
Code:
void CMapObjectPropertyPageAmbience::OnDeleteSoundFile() 
{
	DWORD dwCurSel = DWORD(m_ctrlSoundFileList.GetCurSel());
	if (dwCurSel >= m_propertyAmbience.AmbienceSoundVector.size())
		return;

	[COLOR="Red"]DeleteVectorItem<CFilename>(&m_propertyAmbience.AmbienceSoundVector, dwCurSel);[/COLOR]
	m_ctrlSoundFileList.DeleteString(dwCurSel);
}
01/25/2014 19:58 GunnerMBT#259
Change:
Code:
std::vector<CFilename> & rSoundFileNameVector = m_propertyAmbience.AmbienceSoundVector;
To:

Code:
std::vector<std::string> & rSoundFileNameVector = m_propertyAmbience.AmbienceSoundVector;
Why? AmbienceSoundVector is a member of TPropertyAmbience struct, which is of type std::vector<std::string>, so you were assigning a value of different type to rSoundFileNameVector.

Change:

Code:
DeleteVectorItem<CFilename>(&m_propertyAmbience.AmbienceSoundVector, dwCurSel);
To:

Code:
DeleteVectorItem<std::string>(&m_propertyAmbience.AmbienceSoundVector, dwCurSel);
Pretty much the same reason... Also, refrain from using CFilename, it's deprecated I think, use std::string instead.
01/25/2014 20:12 sherer223#260
I`ve got those errors during compiling novaline binary source:
[Only registered and activated users can see links. Click Here To Register...]
And those during compiling dev source:
[Only registered and activated users can see links. Click Here To Register...]
I use v90 platform toolset, visual studio professional 2010.
Any solution?
01/25/2014 23:20 Evor™#261
Sb already fixed the minimap in worldeditor?
01/26/2014 02:22 JaPitole#262
Quote:
Originally Posted by Evor™ View Post
Sb already fixed the minimap in worldeditor?
Yes.
01/26/2014 02:53 mamAmok#263
Hey how can i fixx this ?!

Code:
0126 02:48:08808 :: SYSERR: CPythonItem::LoadItemTable: invalid item_proto[locale/de/item_proto] STRIDE[152] != sizeof(SItemTable) [156]
0126 02:48:08809 :: SYSERR: LoadLocaleData - LoadItemProto(locale/de/item_proto) Error
01/26/2014 02:57 .Shōgun#264
Quote:
Originally Posted by mamAmok View Post
Hey how can i fixx this ?!

Code:
0126 02:48:08808 :: SYSERR: CPythonItem::LoadItemTable: invalid item_proto[locale/de/item_proto] STRIDE[152] != sizeof(SItemTable) [156]
0126 02:48:08809 :: SYSERR: LoadLocaleData - LoadItemProto(locale/de/item_proto) Error
Use the new dump_proto tool
01/26/2014 03:24 thespeedyy#265
freebsd 8.2 ...
/libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.3 required
01/26/2014 03:25 mamAmok#266
Quote:
Originally Posted by .Shōgun View Post
Use the new dump_proto tool
i did but every time same error ....
01/26/2014 06:44 redrpci2008#267
Quote:
Originally Posted by RageAtMeBros View Post
After struggling I managed to compile db on VS 2008 Pro under release but with game I only can compile it on debug:

fatal error C1047: The object or library file '.\OBJDIR\Release\affect.obj' was created with an older compiler than other objects; rebuild old objects and libraries
I've tried the same. And tumbled across the same error. And fixed it:
  1. Install [Only registered and activated users can see links. Click Here To Register...]
  2. Rebuild solution

Hope it helps.
01/26/2014 10:52 Evor™#268
As far As i'm concerned it seems to be a problem with creating minimap.dds in segments, but in fact in code we can see part of it, by the way has somebody nxdt_option header?
01/26/2014 13:46 Traktorzysta#269
Quote:
Originally Posted by redrpci2008 View Post
I've tried the same. And tumbled across the same error. And fixed it:
  1. Install [Only registered and activated users can see links. Click Here To Register...]
  2. Rebuild solution

Hope it helps.
I have vs2008sp1 and i have the same problem..
01/26/2014 13:55 VatekS#270
available to anyone world of acting editor minimap? --- Google translator xd