Jump to content

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


Recommended Posts

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

  • Developer
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
  • Good 1

503953077003354113.png

Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.