Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

New NPC's are invisible when i create npc3.eix .epk


I bims 1 WLAN

Question

Hey,

 

i created npc3.eix .epk with my new NPC's

This is 1:

ScriptType            RaceDataScript

BaseModelFileName     "d:\ymir work\npc3\ace_elf5\ace_elf5.gr2"

Group ShapeData
{
    PathName 		 ""
    ShapeDataCount 		 0
}
Group AttachingData
{
    AttachingDataCount       2
    
    Group AttachingData00
    {
        AttachingDataType    1
        
        isAttaching          1
        AttachingModelIndex  0
        AttachingBoneName    "Bip01"
        
        CollisionType        1
        
        SphereDataCount      1
        Group SphereData00
        {
            Radius           23.000000
            Position         0.000000 0.000000 9.000000
        }
    }
    
    Group AttachingData01
    {
        AttachingDataType    1
        
        isAttaching          1
        AttachingModelIndex  0
        AttachingBoneName    "Bip01"
        
        CollisionType        3
        
        SphereDataCount      1
        Group SphereData00
        {
            Radius           50.000000
            Position         0.000000 0.000000 0.000000
        }
    }
}

 

I get only syser

0107 16:05:01169 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 24465
0107 16:05:01169 :: CPythonCharacterManager::CreateInstance VID[23142] Race[24465]
0107 16:05:08197 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 24514
0107 16:05:08197 :: CPythonCharacterManager::CreateInstance VID[23143] Race[24514]

I think problem with path...

What exactly do I have to swap from .msm .msa or index?

ty

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • Premium
Posted (edited)
27 minutes ago, I bims 1 WLAN said:

i created npc3.eix .epk with my new NPC's

What do you mean with "i created npc3.eix", x_patch/ymir work/npc3 ?

Because, if you want make a new internal path, you need to do a small edit in Srcs/Client/GameLib/RaceManager.cpp

void __GetRaceResourcePathes(unsigned race, std::vector <std::string> & vec_stPathes)
{

//..
  
	else if (__IsNPCRace(race))
	{
		if (race >= 30000)
		{
			vec_stPathes.push_back ("d:/ymir work/npc2/");
			vec_stPathes.push_back ("d:/ymir work/npc/");
			vec_stPathes.push_back ("d:/ymir work/monster/");
			vec_stPathes.push_back ("d:/ymir work/monster2/");
			vec_stPathes.push_back ("d:/ymir work/guild/");
		}
		else

Extra: If you using FoxFS, the way are be different.

Edited by Mitachi

My signature (yes, I'm a creative guy)

Link to comment
Share on other sites

  • 0

i have

npc.eix npc.epk

npc2.eix npc2.epk

Now i make

npc3.eix npc3.epk

for new NPC's

I Have now RaceManager.cpp:

void __GetRaceResourcePathes(unsigned race, std::vector <std::string>& vec_stPathes)
{
	if (__IsGuildRace(race))
	{
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");
	}
	else if (__IsNPCRace(race))
	{
		if (race >= 30000)
		{
			vec_stPathes.push_back ("d:/ymir work/npc2/");
			vec_stPathes.push_back ("d:/ymir work/npc/");
			vec_stPathes.push_back ("d:/ymir work/monster/");
			vec_stPathes.push_back ("d:/ymir work/monster2/");
			vec_stPathes.push_back ("d:/ymir work/guild/");
			vec_stPathes.push_back ("d:/ymir work/npc3/");
		}
		else
		{
			vec_stPathes.push_back ("d:/ymir work/npc/");
			vec_stPathes.push_back ("d:/ymir work/npc2/");
			vec_stPathes.push_back ("d:/ymir work/monster/");
			vec_stPathes.push_back ("d:/ymir work/monster2/");
			vec_stPathes.push_back ("d:/ymir work/guild/");
			vec_stPathes.push_back ("d:/ymir work/npc3/");
		}
	}
	// 만우절 이벤트용 예외 몬스터
	else if (8507 == race || 8510 == race)
	{
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");
	}
	else if (race > 8000)
	{
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");
	}
	else if (race > 2000)
	{
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");
	}
	else if (race>=1400 && race<=1700)
	{
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");
	}
	else
	{
		vec_stPathes.push_back ("d:/ymir work/monster/");
		vec_stPathes.push_back ("d:/ymir work/monster2/");
		vec_stPathes.push_back ("d:/ymir work/npc/");
		vec_stPathes.push_back ("d:/ymir work/npc2/");
		vec_stPathes.push_back ("d:/ymir work/guild/");
		vec_stPathes.push_back ("d:/ymir work/npc3/");

Is this ok?

 

Link to comment
Share on other sites

  • 0
  • Web Developer

Did you add the path on the source? (The code on your last post.)

Did you import npc3 on Index or on source?

Did you replace the texture paths on the gr2 models with npc3?

QJ0orbR.png

Metin2 Icon Database

Link to comment
Share on other sites

  • 0
Posted (edited)
3 hours ago, Karbust said:

Did you add the path on the source? (The code on your last post.) I add this:

vec_stPathes.push_back ("d:/ymir work/npc3/");

Did you import npc3 on Index or on source? on index

PACK
*
patch1
*
season3_eu
*
patch2
*
patch_npc
*
npc3
*

Did you replace the texture paths on the gr2 models with npc3?

BaseModelFileName     "d:/ymir work/npc3/ace_elf5/ace_elf5.gr2"

 

I Have this Error:

0107 20:43:53613 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 24465
0107 20:43:53613 :: CPythonCharacterManager::CreateInstance VID[23145] Race[24465]
0107 20:43:01814 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 24514
0107 20:43:01814 :: CPythonCharacterManager::CreateInstance VID[23147] Race[24514]

Edited by I bims 1 WLAN
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


  • Activity

    1. 993

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    2. 1

      Looking for a good designer

    3. 0

      Cross channel friend request

    4. 2

      Where are those maps/dungeons coming from?

    5. 3

      Press F10 to close the client immediately

    6. 2

      Where are those maps/dungeons coming from?

    7. 2

      Where are those maps/dungeons coming from?

    8. 4

      Visual studio 2022 compiling issue

    9. 1

      Count players function

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.