![]() |
Mal to whoever gets this working - Printable Version +- Blizzard Sector (https://www.blizzsector.co) +-- Forum: Diablo II (https://www.blizzsector.co/forum-4.html) +--- Forum: Hacks Bots and Editors (https://www.blizzsector.co/forum-16.html) +--- Thread: Mal to whoever gets this working (/thread-18332.html) |
Mal to whoever gets this working - DefiKojiro - 05-17-2005 [QUOTE=DefiKojiro]bot programming but i cannot find the problem. Here's the coding ** For configuration, proper credits and legal info see libs/YAM_Config_BlizzardSorc.d2j ******************************* Yet Another Multi Bot **********************************/ var YAM_Version = "0.9.6.0 Beta 2"; var file = fileOpen("YAMB/configs/YAM_Config_TLM); if (file) { YAM_CharConfigFile = "YAMB/configs/YAM_Config_TLM; file.close(); } else { try{ print("Character config file not found! Creating default config based on class"); var templateFile; switch (me.classid) { case 0: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Amazon.d2l", 0); break; case 1: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_FireSorc.d2l", 0); break; case 2: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Necro.d2l", 0); break; case 3: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Hammerdin.d2l", 0); break; case 4: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Barb.d2l", 0); break; case 5: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Druid.d2l", 0); break; case 6: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Assassin.d2l", 0); break; } if (!templateFile) throw "TemplateFile Not Available to copy from :: Error in CharacterConfig file creation!"; var newCharFile = fileOpen("libs/YAMB/configs/YAM_Config_TLM, 1); if (!newCharFile) throw "Unable to create New Config File :: Error in CharacterConfig file creation!"; while(!templateFile.eof) { var _line = templateFile.readLine(); newCharFile.writeLine(_line); } templateFile.close(); newCharFile.close(); YAM_CharConfigFile = "YAMB/configs/YAM_Config_TLM; print(" "); print("Your char config file was created: ./scripts/libs/YAMB/configs/YAM_Config_"+me.name+".d2l"); print("Edit this file and setup your belt, inventory, skills to use and the bosses you wish to run"); } catch(fileException){ print(" "); print(fileException); stop(); } } The problem is apparently on line 18 which is var file = fileOpen("YAMB/configs/YAM_Config_TLM); Yes, my char name is TLM ![]() a picture of the error is here ![]() Mal to whoever gets this working - Silent_killers - 05-17-2005 Change the: var YAM_Version = "0.9.6.0 Beta 2"; var file = fileOpen("YAMB/configs/YAM_Config_TLM); if (file) { YAM_CharConfigFile = "YAMB/configs/YAM_Config_TLM; file.close(); } else { try{ print("Character config file not found! Creating default config based on class"); var templateFile; switch (me.classid) { case 0: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Amazon.d2l", 0); break; case 1: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_FireSorc.d2l", 0); break; case 2: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Necro.d2l", 0); break; case 3: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Hammerdin.d2l", 0); break; case 4: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Barb.d2l", 0); break; case 5: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Druid.d2l", 0); break; case 6: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Assassin.d2l", 0); break; } if (!templateFile) throw "TemplateFile Not Available to copy from :: Error in CharacterConfig file creation!"; var newCharFile = fileOpen("libs/YAMB/configs/YAM_Config_TLM, 1); if (!newCharFile) throw "Unable to create New Config File :: Error in CharacterConfig file creation!"; while(!templateFile.eof) { var _line = templateFile.readLine(); newCharFile.writeLine(_line); } templateFile.close(); newCharFile.close(); YAM_CharConfigFile = "YAMB/configs/YAM_Config_TLM; print(" "); print("Your char config file was created: ./scripts/libs/YAMB/configs/YAM_Config_"+me.name+".d2l"); print("Edit this file and setup your belt, inventory, skills to use and the bosses you wish to run"); } catch(fileException){ print(" "); print(fileException); stop(); } } --------------------------------------------------------------------- Back to: var YAM_Version = "0.9.6.0 Beta 2"; var file = fileOpen("libs/YAMB/configs/YAM_Config_" + me.name + ".d2l", 0); if (file) { YAM_CharConfigFile = "YAMB/configs/YAM_Config_" + me.name + ".d2l"; file.close(); } else { try{ print("Character config file not found! Creating default config based on class"); var templateFile; switch (me.classid) { case 0: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Amazon.d2l", 0); break; case 1: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_FireSorc.d2l", 0); break; case 2: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Necro.d2l", 0); break; case 3: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Hammerdin.d2l", 0); break; case 4: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Barb.d2l", 0); break; case 5: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Druid.d2l", 0); break; case 6: templateFile = fileOpen("libs/YAMB/configs/YAM_Config_Assassin.d2l", 0); break; } if (!templateFile) throw "TemplateFile Not Available to copy from :: Error in CharacterConfig file creation!"; var newCharFile = fileOpen("libs/YAMB/configs/YAM_Config_" + me.name + ".d2l", 1); if (!newCharFile) throw "Unable to create New Config File :: Error in CharacterConfig file creation!"; while(!templateFile.eof) { var _line = templateFile.readLine(); newCharFile.writeLine(_line); } templateFile.close(); newCharFile.close(); YAM_CharConfigFile = "YAMB/configs/YAM_Config_" + me.name + ".d2l"; print(" "); print("Your char config file was created: ./scripts/libs/YAMB/configs/YAM_Config_"+me.name+".d2l"); print("Edit this file and setup your belt, inventory, skills to use and the bosses you wish to run"); } catch(fileException){ print(" "); print(fileException); stop(); } } Then go to "D2 JSP\scripts\libs\YAMB\configs" and only change your character config name in that folder. Mal to whoever gets this working - DefiKojiro - 05-17-2005 ================================================== ==================== 5 Game starts and you get a BOTOS pathing error message This seems to be a problem that has cropped up with version 47.42/YAMB 9.5.9. and continues with 48.41 For some, deleting and reinstalling the bot seems to cure the problem. Other than that there does not seem to be a solution. It's been driving me nuts as there is no pattern or consistency to the types of systems it occurs on. Only thing I can think of is some sort of hardware/software conflict If reinstalling the bot doesn't work, you will have to use d2jsp 46.42. A link is included in the second post in the walkthrough EDIT: Still seems to be the case. Version 49.42 is now out and hopefully that may fix the BotOS path get this error from the error faq, i've reinstalled and it hasnt worked. Mal to whoever gets this working - Cauhtemoc - 05-17-2005 Replace BotOS.Pathing.d2l with BotOS.Pathing.d2l file found in version 0.9.5.9 of YAMB. You'll still get an error, but at least it 'll work. Mal to whoever gets this working - DefiKojiro - 05-18-2005 Cauhtemoc Wrote:Replace BotOS.Pathing.d2l with BotOS.Pathing.d2l file found in version 0.9.5.9 of YAMB. You'll still get an error, but at least it 'll work. didnt work, i was already using that version |