Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mal to whoever gets this working
#1
[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 Smile

a picture of the error is here

[Image: screenshot0253vv.jpg]
Reply
#2
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.
Reply
#3
================================================== ====================

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.
Reply
#4
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.
Reply
#5
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  D2NT, Any d2nt bot working after the newest reset? I only get errors. PLS help! Sayonaraa 1 357 05-09-2012, 11:13 AM
Last Post: comper
  Do any of the working maphacks function in fullscreen? BewarethePhoenix 3 358 05-02-2012, 06:55 AM
Last Post: Stinky
  D2NT Not working since ladder reset ( please read ) Kreyodd 1 2,060 10-28-2011, 07:35 AM
Last Post: bugme143
  Got my bot working but // in front of bosses not working? streamlined123 0 181 04-03-2011, 06:50 PM
Last Post: streamlined123
  D2me Maphack (WORKING) ALL Versions Saintwicked 4 854 11-23-2010, 12:55 PM
Last Post: Saintwicked
  Looking for a working maphack noob_pwner 0 479 10-18-2010, 12:36 PM
Last Post: noob_pwner
  Working bots? Cracknak 7 846 08-23-2010, 10:47 PM
Last Post: jedimaster86
  Need Working Maphack need a working mh 1 437 04-09-2010, 10:06 AM
Last Post: Ragnarhox
  D2NT 1.7.3 [Perfect Working Bot] mraid 5 3,383 04-04-2010, 11:27 AM
Last Post: The Mob
  D2NT 1.13 isnt working for me rawrbuscuit 4 952 04-04-2010, 11:13 AM
Last Post: The Mob

Forum Jump:


Users browsing this thread: 1 Guest(s)