Update grany de la 2.4 la 2.9

Ghiduri şi tutoriale despre cum să vă îmbunătăţiţi serverul/clientul dv. de metin2.
Deconectat
Avatar utilizator
Electrico
Nivel 2
Nivel 2
Mesaje: 291
Membru din: 16 Oct 2015
Localitate: New York
Status: Online
Server Metin2: Respawn
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 1

Update grany de la 2.4 la 2.9

Mesajde Electrico » 28 Oct 2015, 17:00

Aici aveti tutorialul in engleza

Cod: Selectaţi tot

1. Step:

Navigate to novalineSrcsToolsRAD Game Toolsgrannycommon and unzip the file granny_common_2_9_12_0_release.zip. You will receive some folders. Now you navigate into the folder include and copy the granny.h file to the include folder of your client (for me it's mainline_releasedSrcsExterninclude). Then you go into the libwin32 folder and copy all the *.lib and *.pdb files into your lib folder of your client.

 

2. Step:

Open your client source and navigate to the project EterGrnLib.

Open Mesh.cpp.

Search for this:

int * boneIndices = GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Replace with this:

int * boneIndices = (int*)GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Search for this:

return GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Replace with this:

return (int*)GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Search for this:

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal);
Replace with this:

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal, GrannyAllowUncopiedTail);
-----

Open ModelInstanceUpdate.cpp.

Search for this:

GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix);
Replace with this:

GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix, false);
-----

Open Material.cpp.

Search for this:

granny_variant twoSideResult = GrannyFindMatchingMember(pgrnMaterial->ExtendedData.Type, pgrnMaterial->ExtendedData.Object, "Two-sided");

if (NULL != twoSideResult.Type)
   GrannyConvertSingleObject(twoSideResult.Type, twoSideResult.Object, TwoSidedFieldType, &twoSided);
Replace with this:

granny_variant twoSideResult;

if (GrannyFindMatchingMember(pgrnMaterial->ExtendedData.Type, pgrnMaterial->ExtendedData.Object, "Two-sided", &twoSideResult) 
   && NULL != twoSideResult.Type)
   GrannyConvertSingleObject(twoSideResult.Type, twoSideResult.Object, TwoSidedFieldType, &twoSided, NULL);
-----

Open ModelInstanceModel.cpp

Search for this:

return GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
Replace with this:

return (int*)GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
-----

Navigate to the UserInterface project.

Open UserInterface.cpp.

Search for this (it's at the end of the file):

static void GrannyError(granny_log_message_type Type,
                  granny_log_message_origin Origin,
                  char const *Error,
                  void *UserData)
{
    TraceError("GRANNY: %s", Error);
}
Replace with this:

static void GrannyError(granny_log_message_type Type,
                  granny_log_message_origin Origin,
                  char const* File,
                  granny_int32x Line,
                  char const *Error,
                  void *UserData)
{
    TraceError("GRANNY: %s", Error);
}
Now rebuild the whole project!

 

 

3. Step:

Go to the folder where we unziped the things of the first step and go to the lib folder. Copy the granny2.dll into your main client directory.

 
Imagine

Daca te-am ajutat, apasa pe butonul "Multumesc" !

Deconectat
Avatar utilizator
oneX
Fondator WildFantasy
Fondator WildFantasy
Mesaje: 453
Membru din: 06 Sep 2013
Localitate: Bucuresti
Status: http://one-x.ro
Server Metin2: Wild Fantasy
Regat: Shinsoo
Mulțumiri acordate: 21
Mulțumiri primite: 43
Contact:

Re: Update grany de la 2.4 la 2.9

Mesajde oneX » 28 Oct 2015, 17:01

Open Material.cpp nui buna linia asta
Imagine
Imagine
Imagine
Imagine

Deconectat
Avatar utilizator
georgegeo40
Utilizator interzis !
Utilizator interzis !
Mesaje: 365
Membru din: 15 Aug 2014
Status: xgeo.mt2.ro
Server Metin2: ...
Regat: Chunjo
Mulțumiri acordate: 3
Mulțumiri primite: 4

Re: Update grany de la 2.4 la 2.9

Mesajde georgegeo40 » 30 Oct 2015, 10:16

Pui imediat SURSA nu ma intereseaza.
[Sursa=]http://doar1click.ro/ghiduri-tutoriale-f38/update-grany-t5555.html[/Sursa]

Deconectat
Avatar utilizator
oneX
Fondator WildFantasy
Fondator WildFantasy
Mesaje: 453
Membru din: 06 Sep 2013
Localitate: Bucuresti
Status: http://one-x.ro
Server Metin2: Wild Fantasy
Regat: Shinsoo
Mulțumiri acordate: 21
Mulțumiri primite: 43
Contact:

Re: Update grany de la 2.4 la 2.9

Mesajde oneX » 30 Oct 2015, 11:46

georgegeo40 scrie:Pui imediat SURSA nu ma intereseaza.
[Sursa=]http://doar1click.ro/ghiduri-tutoriale-f38/update-grany-t5555.html[/Sursa]

si tu dc nu pui sursa Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Imagine
Imagine
Imagine
Imagine

Deconectat
Avatar utilizator
georgegeo40
Utilizator interzis !
Utilizator interzis !
Mesaje: 365
Membru din: 15 Aug 2014
Status: xgeo.mt2.ro
Server Metin2: ...
Regat: Chunjo
Mulțumiri acordate: 3
Mulțumiri primite: 4

Re: Update grany de la 2.4 la 2.9

Mesajde georgegeo40 » 31 Oct 2015, 15:47

Esti sigur ca am luat de acolo :))?

Deconectat
Avatar utilizator
Skaryo
Nivel 1
Nivel 1
Mesaje: 67
Membru din: 20 Mai 2015
Status: :)
Server Metin2: Nu mai joc :P
Regat: Chunjo
Mulțumiri acordate: 7
Mulțumiri primite: 2

Re: Update grany de la 2.4 la 2.9

Mesajde Skaryo » 20 Iul 2016, 21:32

Imagine

Ce te uiti ? /:)


Înapoi la “Ghiduri şi Tutoriale”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Raj 1337, ZeNu-Thor2 și 10 vizitatori