Lord_HiccupSS 0 Report post Posted May 4 Hi guys! im trying to add a new npc to my game and i have put the codes in npcscript01.lua, added npc in garner.txt in argent city. But whenever i try to run my game it shows this error - Quote msg parse resource file [./resource/garner\garnerNPC.txt] failed ,No [190 Starter - Npc], please chech format and version! I do not really understand, what seems to be the problem here? anyone can assist a newbie? Quote Share this post Link to post Share on other sites
champ 133 Report post Posted May 4 Your error message states to check the format and version of your new npc entry - this suggests you might have not used tabs correctly or perhaps missed out on certain required fields (basically the format of your new npc line does not match the required format, check the ones that are working for reference) 1 Quote Share this post Link to post Share on other sites
Lord_HiccupSS 0 Report post Posted May 4 2 hours ago, champ said: Your error message states to check the format and version of your new npc entry - this suggests you might have not used tabs correctly or perhaps missed out on certain required fields (basically the format of your new npc line does not match the required format, check the ones that are working for reference) Hi thanks for the reply. Yes I did re-use the ones that are already there. I just changed functions since you cannot have 2 in the same file. for example : Quote function r_trade01 () Talk( 1, "Goldie: Hi, I sell all sorts of weapons! Take a look!" ) Text( 1, "Trade", BuyPage) initTrade() Weapon ( 0791 ) Weapon ( 0791 ) Weapon ( 0791 ) end -- this is blacksmith goldie script function r_trade02 () -- i simply changed the function here Talk( 1, "Starter - NPC : Hi, I have the things you need!" ) Text( 1, "Trade", BuyPage) initTrade() Weapon ( 0791 ) Weapon ( 0791 ) Weapon ( 0791 ) end let me know what i went wrong here. Quote Share this post Link to post Share on other sites
champ 133 Report post Posted May 4 You’re not paying attention to the error message: msg parse resource file [./resource/garner\garnerNPC.txt] failed ,No [190 Starter - Npc], please chech format and version! it clearly states that the error is in garnerNPC.txt on line 190. Npc ID: 190, npc name: Starter - Npc You need to check that line out 1 Quote Share this post Link to post Share on other sites
Lord_HiccupSS 0 Report post Posted May 4 7 hours ago, champ said: You’re not paying attention to the error message: msg parse resource file [./resource/garner\garnerNPC.txt] failed ,No [190 Starter - Npc], please chech format and version! it clearly states that the error is in garnerNPC.txt on line 190. Npc ID: 190, npc name: Starter - Npc You need to check that line out I did check it out infact checked everything out before asking the question. I found the "real" error its not in the garner.txt, the function is not found in any of the lua files. I guess i just have to find it. Quote Share this post Link to post Share on other sites
V3ct0r 2,033 Report post Posted May 8 Hello @Lord_HiccupSS, So, what's the result? Have you solved the problem? Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Lord_HiccupSS 0 Report post Posted May 14 The files were just messy. I need new files and client. Quote Share this post Link to post Share on other sites