Posts: 9,721
Threads: 201
Joined: Jan 2010
Reputation:
14
03-09-2013, 06:16 PM
(This post was last modified: 03-09-2013, 06:17 PM by Szekemri.)
Deci iti da eroare.. deci nu il gaseste pe respectivul king.
Posibile probleme:
* Nu ai modkit-ul instalat. ( http://www.worldofgothic.com/dl/?go=dlfile&fileid=87)
* Nu ai pus fisierul npc-ului unde trebuie: ...\Gothic II\_work\Data\Scripts\CONTENT\Story\NPC
* Nu ai schimbat in startup.d-ul care trebuia: D:\GaMes\Gothic II\_work\Data\Scripts\CONTENT\Story\startup.d
* Nu ai bifat reparse.
(03-09-2013, 06:02 PM)Cyrus35 Wrote: am dat update si intra doar dialogurile acolo... nu si npc-urile :-??
E posibil ca acel update sa nu fie neaparat necesar. Eu am dat din amintirile pentru primul meu mod.
Posts: 737
Threads: 15
Joined: Apr 2008
Reputation:
3
(03-09-2013, 06:16 PM)Terente Wrote: * Nu ai modkit-ul instalat. (http://www.worldofgothic.com/dl/?go=dlfile&fileid=87)
* Nu ai pus fisierul npc-ului unde trebuie: ...\Gothic II\_work\Data\Scripts\CONTENT\Story\NPC
* Nu ai schimbat in startup.d-ul care trebuia: D:\GaMes\Gothic II\_work\Data\Scripts\CONTENT\Story\startup.d
* Nu ai bifat reparse. 1. daca nu aveam modkitul nu aveam scripturile
2. Fisierul npc-ului e in ...\Gothic II\_work\Data\Scripts\CONTENT\Story\NPC
3. Alt startup nu am gasit.
4. Daca nu bifam reparse nu imi mai dadea eroarea.
:p
altceva nush, o fi de la waypoint, oricum sunt la tara acum si nu mai pot face nimic momentan.
Posts: 9,721
Threads: 201
Joined: Jan 2010
Reputation:
14
(03-09-2013, 07:56 PM)Cyrus35 Wrote: altceva nush, o fi de la waypoint, oricum sunt la tara acum si nu mai pot face nimic momentan.
Deci am mai aflat cate ceva. Renuntam la chestia cu spacerul care e inutila in stadiul in care ne aflam.
2. Fisierul tau e perfect. Am testat cu rutina pe care i-ai dat-o si merge.
De ce iti da eroare..? greu de spus.
Numele fisierului = SLD_3001_Badking.d
Linia din startup.d = Wld_InsertNpc (SLD_3001_Badking, "START");
Posts: 737
Threads: 15
Joined: Apr 2008
Reputation:
3
03-12-2013, 05:01 PM
(This post was last modified: 03-12-2013, 05:15 PM by Cyrus35.)
deci nu mai pot.. nu imi merge nici un npc pe care il bag!!!
nu stiu ce sa mai fac (
imi da eroarea aia in startup
am facut asa:
copy paste un script al unui npc:
Quote:instance Sld_804_Rod(Npc_Default)
{
name[0] = "Rod";
guild = GIL_SLD;
id = 804;
voice = 6;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_2h_Rod);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_FatBald",Face_N_ToughBart01,BodyTex_N,itar_sld_M);
Mdl_SetModelFatness(self,2);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,50);
daily_routine = Rtn_Start_804;
};
func void Rtn_Start_804()
{
TA_Smalltalk(7,55,22,55,"NW_BIGFARM_PATH_02");
TA_Sleep(22,55,7,55,"NW_BIGFARM_HOUSE_SLD_SLEEP");
};
func void Rtn_Tot_804()
{
TA_Sleep(8,0,23,0,"TOT");
TA_Sleep(23,0,8,0,"TOT");
};
apoi am modificat numele npc-ului, id-ul(numarul) si rutina:
Quote:instance Sld_842_Badking(Npc_Default)
{
name[0] = "Badking";
guild = GIL_SLD;
id = 842;
voice = 6;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_2h_Rod);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_FatBald",Face_N_ToughBart01,BodyTex_N,itar_sld_M);
Mdl_SetModelFatness(self,2);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,50);
daily_routine = Rtn_Start_842;
};
func void Rtn_Start_842()
{
TA_Stand_ArmsCrossed(7,55,22,55,"NW_XARDAS_START");
TA_Stand_ArmsCrossed(22,55,7,55,"NW_XARDAS_START");
};
am intrat in startup.d si l-am pus:
Quote:func void STARTUP_NewWorld_Part_Xardas_01()
{
Wld_InsertItem(ItBe_Addon_STR_5,"FP_SPAWN_X_GUERTEL");
Wld_InsertNpc(NONE_100_Xardas,"NW_XARDAS_START");
Wld_InsertNpc(Sld_842_Badking,"NW_XARDAS_START");
Wld_InsertNpc(PC_Psionic,"NW_XARDAS_TOWER_PATH_01");
Wld_InsertItem(ItWr_StonePlateCommon_Addon,"FP_ITEM_XARDAS_STPLATE_01");
apoi am deschis GothicStarter.exe, am bifat "skripte parsen" si am dat "spiel starten"
ce altceva trebuie sa mai fac?
deci nu mai pot!!!!!!!
imi apare eroarea asta:
Show Content
Spoiler
Posts: 9,721
Threads: 201
Joined: Jan 2010
Reputation:
14
03-16-2013, 10:57 AM
(This post was last modified: 03-16-2013, 11:00 AM by Szekemri.)
But, why name[0]? Nu are sens. Name-ul trebuie sa fie doar name. Ca doar nu are mai multe nume badking.
name = "Badking";
Show Content
Spoiler
instance SLD_3001_Badking (Npc_Default)
{
// ------ NSC ------
name = "Badking";
guild = GIL_SLD;
id = 3001;
voice = 6;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 2); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6)
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG; // MASTER / STRONG / COWARD
// ------ Equippte Waffen ------ //Munition wird automatisch generiert, darf aber angegeben werden
EquipItem (self, ItMw_2h_Rod);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird
B_SetNpcVisual (self, MALE, "Hum_Head_FatBald", Face_N_ToughBart01, BodyTex_N, ITAR_SLD_M);
Mdl_SetModelFatness (self, 2);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds"); // Tired / Militia / Mage / Arrogance / Relaxed
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt
B_SetFightSkills (self, 50); //Grenzen für Talent-Level liegen bei 30 und 60
// ------ TA anmelden ------
daily_routine = Rtn_Start_3001;
};
FUNC VOID Rtn_Start_3001 ()
{
TA_Stand_ArmsCrossed (07,55,22,55,"NW_XARDAS_TOWER_PATH_01");
TA_Stand_ArmsCrossed (22,55,07,55,"NW_XARDAS_TOWER_PATH_01_b");
};
2. In startup.d, dai un search cu SLD_999.
Sterge linia cand o gaseste.
3. Cum se numeste fisierul npcului pe care l-ai creat?
Posts: 737
Threads: 15
Joined: Apr 2008
Reputation:
3
03-16-2013, 05:49 PM
(This post was last modified: 03-16-2013, 05:51 PM by Cyrus35.)
(03-16-2013, 10:57 AM)Terente Wrote: But, why name[0]? Nu are sens. Name-ul trebuie sa fie doar name. Ca doar nu are mai multe nume badking.
name = "Badking";
Show Content
Spoiler
instance SLD_3001_Badking (Npc_Default)
{
// ------ NSC ------
name = "Badking";
guild = GIL_SLD;
id = 3001;
voice = 6;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 2); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6)
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG; // MASTER / STRONG / COWARD
// ------ Equippte Waffen ------ //Munition wird automatisch generiert, darf aber angegeben werden
EquipItem (self, ItMw_2h_Rod);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird
B_SetNpcVisual (self, MALE, "Hum_Head_FatBald", Face_N_ToughBart01, BodyTex_N, ITAR_SLD_M);
Mdl_SetModelFatness (self, 2);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds"); // Tired / Militia / Mage / Arrogance / Relaxed
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt
B_SetFightSkills (self, 50); //Grenzen für Talent-Level liegen bei 30 und 60
// ------ TA anmelden ------
daily_routine = Rtn_Start_3001;
};
FUNC VOID Rtn_Start_3001 ()
{
TA_Stand_ArmsCrossed (07,55,22,55,"NW_XARDAS_TOWER_PATH_01");
TA_Stand_ArmsCrossed (22,55,07,55,"NW_XARDAS_TOWER_PATH_01_b");
};
2. In startup.d, dai un search cu SLD_999.
Sterge linia cand o gaseste.
3. Cum se numeste fisierul npcului pe care l-ai creat?
1. nu are nici o treba "[0]" ala.
2. startup.d =
Show Content
Spoiler// *******************************************************************
// Startup und Init Funktionen der Level-zen-files
// -----------------------------------------------
// Die STARTUP-Funktionen werden NUR beim ersten Betreten eines Levels
// (nach NewGame) aufgerufen, die INIT-Funktionen jedesmal
// Die Funktionen müssen so heissen wie die zen-files
// *******************************************************************
// *********
// GLOBAL
// *********
func void STARTUP_GLOBAL()
{
// wird fuer jede Welt aufgerufen (vor STARTUP_<LevelName>)
Game_InitGerman();
};
func void INIT_GLOBAL()
{
// wird fuer jede Welt aufgerufen (vor INIT_<LevelName>)
Game_InitGerman();
};
func void STARTUP_NewWorld_Part_Xardas_01()
{
Wld_InsertNpc(ERD_3011_Elena,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3012_Maria,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3013_Sylvia,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3014_Rega,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3015_Babera,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3016_Lory,"NW_XARDAS_START");
Wld_InsertNpc(ERD_3001_Badking,"NW_XARDAS_START");
};
3. "ERD_3001_Badking.d"
Show Content
Spoiler
instance ERD_3001_Badking(Npc_Default)
{
name = "Badking";
guild = GIL_SLD;
id = 3001;
voice = 6;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_2h_Rod);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_FatBald",Face_N_ToughBart01,BodyTex_N,itar_sld_M);
Mdl_SetModelFatness(self,2);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,50);
daily_routine = Rtn_Start_3001;
};
func void Rtn_Start_3001()
{
TA_Stand_ArmsCrossed (07,55,22,55,"NW_XARDAS_TOWER_PATH_01");
TA_Stand_ArmsCrossed (22,55,07,55,"NW_XARDAS_TOWER_PATH_01_b");
};
acum nu mai imi da erori, probabil ca nu instalasem bine pasii pe modkit, dar nici nu imi apar npc-urile
in schimb le pot insera din consola.
Posts: 9,721
Threads: 201
Joined: Jan 2010
Reputation:
14
Am depistat problema ta. Tu lucrezi pe clean scripts? De aia nu merge.
Eu nu le-am bagat alea si umblu pe cele originale din modkit.
Acum sincer nu stiu cum se face din clean scripts, pt. ca ar trebui sa le am in fata.
Posts: 737
Threads: 15
Joined: Apr 2008
Reputation:
3
nush terente ce sa zic... dar nu cred ca asta e cauza.
Posts: 9,721
Threads: 201
Joined: Jan 2010
Reputation:
14
03-16-2013, 08:30 PM
(This post was last modified: 03-16-2013, 08:31 PM by Szekemri.)
(03-16-2013, 08:19 PM)Cyrus35 Wrote: nush terente ce sa zic... dar nu cred ca asta e cauza.
Crede-ma. Cand am facut cu oldnick primu mod, eu nu puteam sa vad npc-uri din startup. Si aveam clean scripts. Puteam doar sa le inserez din consola.
Posts: 5,365
Threads: 21
Joined: Aug 2011
Reputation:
9
Normal itemele nu se baga din startup..
|