ItzLoganDuh 1 Report post Posted July 9, 2023 (edited) Hi I tried to follow But for some reason when I try to make the item it says invalid item id. Quote 3243 Buff Potion n1480 10130001 0 0 0 0 0 0 31 0 0 0 0 0 1 1 1 1 99 1 4000 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_BuffTicket 0 0 0 0,0 0 0 Double click on it to get full buffs for 3 minutes. 0 //3243 Standard warrior study book n2040 10130005 01010046 02010053 0 0 0 0 1 0 0 0 0 0 1 1 1 1 1 0 2000 1,2,-2,-2 10 1,8,9,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 9,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 1,1 1,1 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 20000,20000 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 A spellbook about Swordsman's beginning tips 0 Does the double // not comment out the old item or do I need to delete it entirely? Is there a compiler for the server side bins? I seem to only have client side compiler. I copied the item info from the server to the client and then I compiled the client are these not the correct steps? Functions . lua Quote function AddBuffs(role, min) AddState (role, role, STATE_XLZH, 10, min*60) AddState (role, role, STATE_SHPF, 10, min*60) AddState (role, role, STATE_MLCH, 10, min*60) AddState (role, role, STATE_FZLZ, 10, min*60) AddState (role, role, STATE_JSFB, 10, min*60) AddState (role, role, STATE_TSHD, 10, min*60) BickerNotice(role,'You are buffed for '..min..' min(s)!') RefreshCha(role) end Itemeffect.lua Quote function ItemUse_BuffTicket(role, Item) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "Can not be used at sea" ) UseItemFailed ( role ) return end -- use function: AddBuffs(role, 10) end I did &make 3243, 1 and the server said AddItem: Incorrect item data type!ID = 3243 Any ideas? Edited July 9, 2023 by ItzLoganDuh Miscopied the quote Quote Share this post Link to post Share on other sites
kyleflow 35 Report post Posted July 10, 2023 Tried different compiler for the client side. I also used the files under Ancient Online, the compiler is not working. Used my other compiler, it worked well. Quote Share this post Link to post Share on other sites
Ximboliex 86 Report post Posted July 11, 2023 On 7/9/2023 at 6:45 PM, ItzLoganDuh said: Hi I tried to follow But for some reason when I try to make the item it says invalid item id. Does the double // not comment out the old item or do I need to delete it entirely? Is there a compiler for the server side bins? I seem to only have client side compiler. I copied the item info from the server to the client and then I compiled the client are these not the correct steps? Functions . lua Itemeffect.lua I did &make 3243, 1 and the server said AddItem: Incorrect item data type!ID = 3243 Any ideas? Hi, Your need add item in iteminfo.txt in server side, if it were only in the iteminfo.bin the game would disconnect you when getting it Quote Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 11, 2023 6 hours ago, Ximboliex said: Hi, Your need add item in iteminfo.txt in server side, if it were only in the iteminfo.bin the game would disconnect you when getting it I apologize I did not specify but I put it in both iteminfo.txt files. Is there supposed to be a complier for the server side? Or does it just compile every time you start the server? On 7/10/2023 at 1:54 AM, kyleflow said: Tried different compiler for the client side. I also used the files under Ancient Online, the compiler is not working. Used my other compiler, it worked well. I will try downloading a different compiler and get back to you. Quote Share this post Link to post Share on other sites
Mdrst 38 Report post Posted July 11, 2023 9 minutes ago, ItzLoganDuh said: I apologize I did not specify but I put it in both iteminfo.txt files. Is there supposed to be a complier for the server side? Or does it just compile every time you start the server? I will try downloading a different compiler and get back to you. If you're receiving a system message, it is probably a server-side bug. Delete the iteminfo.bin file and try running it again. Also check the gameserver log folder to see if any errors occurred during .bin compilation. Quote "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 11, 2023 I also deleted the server iteminfo.bin and it rebuilt it on server launch. Also deleted the client iteminfo.bin and compiled and the bin was there. I am at a loss sorry. Still trying to figure this stuff out Quote Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 11, 2023 (edited) 28 minutes ago, Mdrst said: If you're receiving a system message, it is probably a server-side bug. Delete the iteminfo.bin file and try running it again. Also check the gameserver log folder to see if any errors occurred during .bin compilation. Quote [07-11 17:23:58]GameServer Begin... [07-11 17:23:58]Loop Begin... [07-11 17:23:58]MgrUnitRun End! [07-11 17:23:58]GameItemRun End! [07-11 17:23:58]MapMgrRun End! [07-11 17:23:58]TimeSkillMgrRun End! [07-11 17:23:58]SaveMap End! [07-11 17:23:58]GameAppRun End! [07-11 17:23:58]CGameApp::ProcessPacket (cmd = 1005) Begin... [07-11 17:23:58]CGameApp::ProcessPacket (cmd = 1005) End! [07-11 17:23:58]PEEKPACKET End! [07-11 17:23:58]Loop End, RunTime[63]ms! [07-11 17:23:58]Loop Begin... [07-11 17:23:58]MgrUnitRun End! [07-11 17:23:58]GameItemRun End! [07-11 17:23:58]MapMgrRun End! [07-11 17:23:58]TimeSkillMgrRun End! [07-11 17:23:58]SaveMap End! [07-11 17:23:58]GameAppRun End! [07-11 17:23:58]PEEKPACKET End! [07-11 17:23:58]Loop End, RunTime[62]ms! [07-11 17:23:58]Loop Begin... [07-11 17:23:58]MgrUnitRun End! [07-11 17:23:58]GameItemRun End! [07-11 17:23:58]MapMgrRun End! [07-11 17:23:58]TimeSkillMgrRun End! [07-11 17:23:58]SaveMap End! [07-11 17:23:58]GameAppRun End! [07-11 17:23:58]PEEKPACKET End! [07-11 17:23:58]Loop End, RunTime[63]ms! That's all that log says idk. GMMake log Quote [07-11 17:24:14]begin make [07-11 17:24:14]cha_name = ItzLogan,sID = 3234,sNum = 1,sTo = 1,chSpawnType = [07-11 17:24:14]add to kitbag successful! [07-11 17:24:29]begin make [07-11 17:24:29]cha_name = ItzLogan,sID = 3243,sNum = 1,sTo = 1,chSpawnType = [07-11 17:24:29]make failed! [07-11 17:26:33]begin make [07-11 17:26:33]cha_name = ItzLogan,sID = 3243,sNum = 1,sTo = 1,chSpawnType = [07-11 17:26:33]make failed! Got a little dyslexic when I tried the first time. I also checked the iteminfoerror log and it's not even listed in there Edited July 11, 2023 by ItzLoganDuh GMMake log Quote Share this post Link to post Share on other sites
Mdrst 38 Report post Posted July 11, 2023 43 minutes ago, ItzLoganDuh said: snip That system error message tells you GameServer could not locate the record for that item. Double check your line, make sure you are using tabs to separate fields and not spaces. Also, is there an "error.txt" log file? Quote "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 11, 2023 (edited) They where spaces after the number after changing that to a tab I get these errors now so I guess I need to check the whole line. Thank you! 21 minutes ago, Mdrst said: That system error message tells you GameServer could not locate the record for that item. Double check your line, make sure you are using tabs to separate fields and not spaces. THAT FIXED IT THANK YOU SO MUCH the whole buff ticket works perfectly now good to know that spaces vs tabs matters Edited July 11, 2023 by ItzLoganDuh That fixed it! Quote Share this post Link to post Share on other sites
Mdrst 38 Report post Posted July 12, 2023 1 hour ago, ItzLoganDuh said: They where spaces after the number after changing that to a tab I get these errors now so I guess I need to check the whole line. Thank you! THAT FIXED IT THANK YOU SO MUCH the whole buff ticket works perfectly now good to know that spaces vs tabs matters Nice, glad to know it worked Quote "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 12, 2023 So I tried using To make an item and for some reason the item is created but it doesnt have a class or level requirement. I only just got it to compile any ideas or pointers? Was just trying to make a goofy gm weapon to see if I could just kinda limit testing This is what the item maker generated for me Quote 3246 Noob Slayer w0267 10100003 01030015 0 03030015 0 0 00 3 0 0 0 6 1 1 1 1 1 1 1 69696969 1,3 99 12 0 0 6 9,6 0 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 0,0 0,0 0,0 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 100,100 100,100 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 0,0 0,0 20000,20000 20000,20000 2000,2000 20000,20000 20000,20000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 2000,2000 200,200 0,0 2000,2000 0 0,1000 10000,10000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I didnt want to make a new post but this is a new issue lol any ideas would be greatly appreciated Quote Share this post Link to post Share on other sites
Mdrst 38 Report post Posted July 15, 2023 On 7/12/2023 at 8:24 PM, ItzLoganDuh said: snip That item maker probably uses another item definition structure... What game version are you using? If I'm not mistaken, the "99" value should be the level requirement, and "12" is the required class ID. Edit: you can check inside your server iteminfo.txt, sometimes the header structure is defined in the first line. Quote "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 15, 2023 (edited) 21 minutes ago, Mdrst said: Edit: you can check inside your server iteminfo.txt, sometimes the header structure is defined in the first line. I didnt even think of that my bad is there any way to get the columns to all line up easily? Also I am doing the patch 1.36 for the mega upload Edited July 15, 2023 by ItzLoganDuh Quote Share this post Link to post Share on other sites
ItzLoganDuh 1 Report post Posted July 15, 2023 https://community.notepad-plus-plus.org/topic/17078/aligning-tabs-on-the-screen/7 Should have done some research before asking the question. Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted July 16, 2023 Try to find CSVed and use it, it aligns things for you, and also some files need an extra 0 at the next line for it to be able to compile without error. Quote Share this post Link to post Share on other sites