[C++]Upgrade granny 2.4 la 2.9

Aici poți găsi sisteme complete, verificate și recomandate de echipa 4Metin.
Avatar utilizator
F. Gabriel
Administrator
Administrator
Mesaje: 429
Membru din: Lun Aug 01, 2022 10:23 am
Localitate: Tecuci
Status: Retras
Multumiri acordate: 15
Multumiri primite: 156
Contact:

[C++]Upgrade granny 2.4 la 2.9

Mesaj de F. Gabriel »

1. Descarcati fisierul de mai jos si dezarhivati tot intr-un folder. In sursa binary la "include" vei transfera fisierul granny.h din arhiva. Iar din arhiva, din folderul lib, puneti toate fisierele in folderul lib din client.

2. Intrati in sursa si cautati folderul EterGrnLib. Deschideti Mesh.cpp.
Cauta :

Cod: Selectaţi tot

int * boneIndices = GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Inlocuieste cu :

Cod: Selectaţi tot

int * boneIndices = (int*)GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Cauta :

Cod: Selectaţi tot

return GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Inlocuieste cu :

Cod: Selectaţi tot

return (int*)GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Cauta :

Cod: Selectaţi tot

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal);
Inlocuieste cu :

Cod: Selectaţi tot

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal, GrannyAllowUncopiedTail);
Deschide ModelInstanceUpdate.cpp.

Cauta :

Cod: Selectaţi tot

GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix);
Inlocuieste cu :

Cod: Selectaţi tot

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

Deschide Material.cpp.

Cauta :

Cod: Selectaţi tot

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

if (NULL != twoSideResult.Type)
GrannyConvertSingleObject(twoSideResult.Type, twoSideResult.Object, TwoSidedFieldType, &twoSided);
Inlocuieste cu :

Cod: Selectaţi tot

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);

Deschide ModelInstanceModel.cpp

Cauta :

Cod: Selectaţi tot

return GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
Inlocuieste cu :

Cod: Selectaţi tot

return (int*)GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
---
Deschide folderul UserInterface.
Deschide UserInterface.cpp.

Cauta :

Cod: Selectaţi tot

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

Modifica/Inlocuieste cu :

Cod: Selectaţi tot

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);
}

Descarcare Granny 2.9.12:
Hidden Content
This board requires you to be registered and logged-in to view hidden content.
Imagine

Hosting Metin2 by OVINETWORK.RO
Avatar utilizator
Kurma
4Metin
4Metin
Mesaje: 1
Membru din: Vin Dec 09, 2022 4:44 pm
Status: Activ
Multumiri acordate: 1

Re: [C++]Upgrade granny 2.4 la 2.9

Mesaj de Kurma »

thanks for the release
Avatar utilizator
[WSA]Teddy
4Metin
4Metin
Mesaje: 6
Membru din: Lun Ian 30, 2023 5:52 pm
Status: Activ
Multumiri acordate: 1
Contact:

Re: [C++]Upgrade granny 2.4 la 2.9

Mesaj de [WSA]Teddy »

:D :D merci mult :x
Avatar utilizator
Kayako
4Metin
4Metin
Mesaje: 1
Membru din: Mar Feb 21, 2023 7:35 am
Status: Activ

Re: [C++]Upgrade granny 2.4 la 2.9

Mesaj de Kayako »

E full asta sau partial asa?
Avatar utilizator
F. Gabriel
Administrator
Administrator
Mesaje: 429
Membru din: Lun Aug 01, 2022 10:23 am
Localitate: Tecuci
Status: Retras
Multumiri acordate: 15
Multumiri primite: 156
Contact:

Re: [C++]Upgrade granny 2.4 la 2.9

Mesaj de F. Gabriel »

Este complet tutorialul.
Imagine

Hosting Metin2 by OVINETWORK.RO
Avatar utilizator
LupuIoan99
4Metin
4Metin
Mesaje: 22
Membru din: Lun Apr 24, 2023 9:36 am
Status: Activ
Multumiri acordate: 4

Re: [C++]Upgrade granny 2.4 la 2.9

Mesaj de LupuIoan99 »

multumesc frumos pentru resurse!
Scrie răspuns