|
You last visited: Today at 06:05
Advertisement
[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts
Discussion on [SAMMELTHREAD] Metin2 Source Compile Tips/Tuts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
01/25/2014, 17:39
|
#256
|
elite*gold: 0
Join Date: Sep 2010
Posts: 31
Received Thanks: 6
|
What client should i use for the UserInterface compiled from novaline?
|
|
|
01/25/2014, 18:35
|
#257
|
elite*gold: 0
Join Date: Oct 2010
Posts: 115
Received Thanks: 14
|
Quote:
Originally Posted by GunnerMBT
Show us the relevant part of code...
|
it's part of visual c++
|
|
|
01/25/2014, 19:13
|
#258
|
elite*gold: 317
Join Date: Jul 2008
Posts: 511
Received Thanks: 102
|
Quote:
Originally Posted by 5203307a
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
|
#259
|
elite*gold: 0
Join Date: Jan 2010
Posts: 104
Received Thanks: 158
|
Quote:
Originally Posted by mamAmok
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);
}
|
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
|
#260
|
elite*gold: 0
Join Date: Sep 2010
Posts: 28
Received Thanks: 23
|
I`ve got those errors during compiling novaline binary source:

And those during compiling dev source:

I use v90 platform toolset, visual studio professional 2010.
Any solution?
|
|
|
01/25/2014, 23:20
|
#261
|
elite*gold: 0
Join Date: Dec 2013
Posts: 22
Received Thanks: 1
|
Sb already fixed the minimap in worldeditor?
|
|
|
01/26/2014, 02:22
|
#262
|
elite*gold: 0
Join Date: Jul 2011
Posts: 40
Received Thanks: 12
|
Quote:
Originally Posted by Evor™
Sb already fixed the minimap in worldeditor?
|
Yes.
|
|
|
01/26/2014, 02:53
|
#263
|
elite*gold: 317
Join Date: Jul 2008
Posts: 511
Received Thanks: 102
|
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
|
#264
|
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
|
Quote:
Originally Posted by mamAmok
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
|
#265
|
elite*gold: 0
Join Date: Aug 2012
Posts: 974
Received Thanks: 89
|
freebsd 8.2 ...
/libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.3 required
|
|
|
01/26/2014, 03:25
|
#266
|
elite*gold: 317
Join Date: Jul 2008
Posts: 511
Received Thanks: 102
|
Quote:
Originally Posted by .Shōgun
Use the new dump_proto tool
|
i did but every time same error ....
|
|
|
01/26/2014, 06:44
|
#267
|
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
|
Quote:
Originally Posted by RageAtMeBros
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:
- Install

- Rebuild solution
Hope it helps.
|
|
|
01/26/2014, 10:52
|
#268
|
elite*gold: 0
Join Date: Dec 2013
Posts: 22
Received Thanks: 1
|
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
|
#269
|
elite*gold: 0
Join Date: Oct 2010
Posts: 7
Received Thanks: 0
|
Quote:
Originally Posted by redrpci2008
I've tried the same. And tumbled across the same error. And fixed it:
- Install

- Rebuild solution
Hope it helps.
|
I have vs2008sp1 and i have the same problem..
|
|
|
01/26/2014, 13:55
|
#270
|
elite*gold: 0
Join Date: Jul 2013
Posts: 27
Received Thanks: 47
|
available to anyone world of acting editor minimap? --- Google translator xd
|
|
|
Similar Threads
|
Reverse Crypt Systems [Tips/Hints/Tuts needed]]
03/01/2012 - CO2 Private Server - 8 Replies
Hello PVPers,
So the Title says it all, Since i came here and i am trying to learn how to be a good Coder and Co2 P.Server Specially , i guess i dd well so far but i'v noticed that all my prev experience ddnt came near Encrypting/Decrypting systems , i also aware of that most of good coders around here are very busy coding stuff and so ,i was away for sometime and about 2 months ago i came back from AD (work trip) and a friend asked for an up to date P.Server , actually i miss that fun so...
|
All times are GMT +1. The time now is 06:06.
|
|