Blizzhackers

Home of the Dupe since 2001

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


It is currently Mon May 01, 2017 7:12 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 345 posts ]  Go to page 1, 2, 3, 4, 5 ... 23  Next
Author Message
 Post subject: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 4:34 am 
 
Moderator
Moderator

Joined: Thu Dec 09, 2004 8:48 am
I upgraded the spidermonkey with d2bs. we currently use the spidermonkey from firefox 3.6 i upgraded to ff 20. for a big speed boost

My tests show that its stable, memory and cpu efficient but would like some feed back.

Edit by RayK213
Kolton: Temp 10 has some changes that help with 1.5 core.
I forgot to mention this earlier but if you're running 1.5, make sure you delete js32.dll and libnspr4.dll
They aren't needed but d2bot# still injects them which might cause some issues.


Replace d2bs.dll and d2bs.pdb with these.
link

I've made a lot of changes to make this possible.
Almost complete event rewrite, threading changes within our script engine and a lot of small function changes that may affect number conversions.

so feed back please,

updated to 1.5.1766
fixed getDialogLines()[1].handler()
fixed sendDDE

updated to 1.5.1767
changed compile options to not statically link 2010 runtimes
fixed some JS_Set/Clear runtime thread usage that might fix these spidermonkey crashes.
Added gc to delay, hopefully fixing out of memory.

updated to 1.5.1768
added pdb file to get correct crash logs
fixed crash with item.description

1770
fixed crashes with removing screenhooks and event listners
changed getDialogLines to not abuse setPrivate - hopefully fixing some crashes
changed gc to run every 10 seconds on script seems like a better system than i had

1771
removed JS_IsRunning hopefully fixes that crash
fixed gc on console thread
fixed a possible crash with reading map lvls that arn't loaded while changing acts
changed delay from sleep to waitForSingleObject - for even faster event execution

1775
fixes the unit_setProperty crash
hopefully fixes the screenhook draw text crash
changed the GC to not use helper threads - helps with memory ussage
added getScripts() for a list of scripts

1776
fix for the rare getBaseStat crash
took out some cross thread JS_ calls - attempting to get the abort wrong thread crash taken care of.

1777
fixing memory problem that my getBaseStat fix created
removed roots from screenhooks - screen hooks now get properly deleted
added more checks to ensure crit sections leave
added check to TriggerOperationCallback for active cx.

1778
added sleep for cpu usage
re-did crit sections again
increased gc frequency

1779 / 1780
added "gamepacket" event , the packet can be blocked by returning true to the attached function
re-arranged crits and added additional checks to actmap.

1781
fixing events - packet based events were not firing
removing gc_maybe
added console to script list - can now fire events in console

1782
tweaked crits
put gc_maybe back in - not the cause of wrong thread crash..

1783
added getControls() for a list of controls.
changed blocking events to use a dedicated event signal instead of spawning one for each event.

1784
fixed copy()
improved "gamepacket" event

1787
Adding D3stroyers getLevel crash fix
fixing colors for unicode people
added ConsoleFont to ini for unicode people
changed gc trigger ( gc every .5 mb of script size growth)

1788
updated to ff22
libnspr4.dll is no longer needed
added room.getCollisionA() returns a Int16Array ( flat optimized array )
included build lib zipped up in dependencies/libs/release/js_static.zip - needs to be unzipped in that folder for building

1791 / 1792
added controls extended text to find # of players in games in game list, thanks kolton
actmap fixes.

1792 -1803
fix memory leak in gamepacket event
fix script delays some people have reported
made file tools thread friendly -cyree
improved script.stop - should fix multiple defaults loading.
me.ladder works correctly -Larryw

1804 - 1810
tweak crit sections to avoid script delays / deadlocks
fixed passing args on load()
loading a script multiple times now forces previous script to stop
fixed leaks with units and controls

1810 - 1811
fixed script.send crash while script was ending
fixed screen hooks removing properly
me.name is availible in bnet

1812
fixed crash with passing args to load()

1821
implented noah's changes for command line cdkey loading
improved telepath finding, from wp to star old system took 230 miliseconds new one takes 15ms also has improved paths that will jump over walls as compaired to pathing thu doors and splicing that path.

1841
Fixed script.stop() to correctly unload the thread.

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 4:42 am 
 
User
User

Joined: Mon Apr 12, 2010 8:56 pm
gonna test it when i am at home :)

_________________
kolton lover

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 4:52 am 
 
User
User

Joined: Mon Feb 13, 2012 1:23 am
gonna test with 4+ bots running at the sametime

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 8:49 am 
 
User
User
User avatar

Joined: Thu Aug 04, 2005 1:12 am
Location: Australia
Great news. Ill defiantly try it in a couple of days

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 12:42 pm 
 
User
User

Joined: Mon Apr 12, 2010 8:56 pm
      if (firstTime && changeIRCName) {
         sendDDE(1, "mIRC", "COMMAND", "", "/nick stib-running"); // line 228
         firstTime = false;
      }


-->

Image

shopping error
[06:06] <lengend> http://lengend.net/d2/misc%20error.jpg
[13:27] <stib-running> i get the same error

[13:26:26] <PCM-Service> Error in CSHCSC (misc.js line 1094): getDialogLines(...)[i].handler is not a function

_________________
kolton lover

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 3:01 pm 
 
Moderator
Moderator

Joined: Thu Dec 09, 2004 8:48 am
i updated the file link hopefully fixing getDialogLines, sendDDE is going to take a bit more and ive got a busy weekend comming up.

thanks guys

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 3:13 pm 
 
User
User

Joined: Mon Feb 13, 2012 1:23 am
i updated the file link hopefully fixing getDialogLines, sendDDE is going to take a bit more and ive got a busy weekend comming up.

thanks guys


same error bud lol

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Fri Apr 12, 2013 8:09 pm 
 
User
User
User avatar

Joined: Thu Feb 22, 2007 7:25 am
Location: PA
Great job bobode works good, seems smoother and more cpu friendly (not laggging as bad with 3 bots + chrome open)

_________________
Kolbot download / install thread
Kolbot Support Thread

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Sat Apr 13, 2013 2:05 am 
 
User
User

Joined: Mon Feb 13, 2012 1:23 am
i updated the file link hopefully fixing getDialogLines, sendDDE is going to take a bit more and ive got a busy weekend comming up.

thanks guys


same error bud lol


error is fixed now

good job

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Sun Apr 14, 2013 4:00 pm 
 
User
User

Joined: Sun Apr 14, 2013 3:56 pm
Thanks for the update mate, now i can more comfortably run a few more (: cheers bud

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Sun Apr 14, 2013 7:50 pm 
 
User
User
User avatar

Joined: Thu Feb 22, 2007 7:25 am
Location: PA
New error, chara goes into game goes to wp then window suddenly crashes and get stuck in a infinite loop, of going back into game starts script goes to wp crashes restart

_________________
Kolbot download / install thread
Kolbot Support Thread

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Sun Apr 14, 2013 9:30 pm 
 
Moderator
Moderator

Joined: Thu Dec 09, 2004 8:48 am
i fixed up sendDDE so talking to mirc should work now

Cariboulou89 got a crash log from d2bs.log?

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Sun Apr 14, 2013 9:58 pm 
 
User
User
User avatar

Joined: Thu Feb 22, 2007 7:25 am
Location: PA
http://pastebin.com/if5DzW6n

here ya go bobode

mIRC won't let me on anymore lol

Edit:
Just downloaded new update on core and seems ok so far, I will let it run a bit and see if it starts to act up or not.

_________________
Kolbot download / install thread
Kolbot Support Thread

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Mon Apr 15, 2013 2:27 am 
 
User
User
User avatar

Joined: Thu Aug 04, 2005 1:12 am
Location: Australia
Been using it the last 3 days, no errors and seems to run a hellova lot better. Big ups'

Top
 Profile  
 Post subject: Re: d2bs core upgrade
PostPosted: Mon Apr 15, 2013 5:45 am 
 
Moderator
Moderator

Joined: Thu Dec 09, 2004 8:48 am
Cariboulou89 can you install the 2010 c++ runtime, here, i thaught i could avoid needing them but it looks like was wrong.

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 345 posts ]  Go to page 1, 2, 3, 4, 5 ... 23  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron