View Full Version : Buy All Components (UI Fix)
Notausgang
03-04-2010, 05:04 PM
Buy All Components (UI Fix)
__________________________________________________
Status
Discontinued [and no longer functional since patch 2.0.15]
__________________________________________________
About this mod
You've all seen the "Buy All Components" button in the shop, and probably wondered why it was greyed out. Well, this mod changes that by adding the missing functionality.
Update (04.06.10): S2 implemented the button themselves in patch 1.0.2! This mod now makes the "Buy All Components" button in the shop use the implementation previously provided by this mod:
- As many items as possible are bought, even if one cannot afford all components.
- Makes use of ingredients already present in inventory or stash.
Update (01.02.11): S2 changed their implementation in patch 2.0.9 to now buy individual components "left to right, depth-first, so it can still buy some components even if you can't afford all" (the same functionality as this mod used to provide), and it even takes items you own not on the selected unit into consideration. Hence this mod is now mostly redundant and was discontinued.
__________________________________________________
Download
.honmod version (http://newerth.com/notausgang/bac/bac.honmod) (requires the Mod Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883))
[Mediafire mirror (http://www.mediafire.com/?90ix9avag1o825m)]
__________________________________________________
Setting a Hotkey
Download and install the Mod Options Framework (http://forums.heroesofnewerth.com/showthread.php?t=66975) if you want to be able to set a hotkey for the button (.honmod version only).
__________________________________________________
Changelog
v1.3 [04.06.10]: Updated after S2 introduced their implementation to now replace theirs.
v1.2 [06.03.10]: Now supports setting a hotkey via the mod options framework.
v1.1 [05.03.10]: Now also uses ingredients from the stash.
v1.0 [04.03.10]: Initial release.
AtroCty
03-04-2010, 05:08 PM
Easy. Simple. Great.
_Archangel_
03-04-2010, 05:12 PM
Nicely done!
MaxGhost
03-04-2010, 05:13 PM
Idejder will love this.
Keshoon
03-04-2010, 05:14 PM
Insta-alchemist's bones. Amirite? Nice job!
Harmonium
03-04-2010, 05:25 PM
About time
Tisser
03-04-2010, 05:32 PM
Easy. Simple. Great.
Doubt it was easy.
Notausgang
03-04-2010, 05:33 PM
Insta-alchemist's bones. Amirite?Nah, it neither was my idea nor will they want to take over my code, since it's just a hack on top of that silly barely moddable shop system.
LuckyStar
03-04-2010, 05:50 PM
Thanks a lot for this one. Was so needed.
Myzery1
03-04-2010, 05:56 PM
thank JEBUS!
A`nub`is
03-04-2010, 06:11 PM
When you already got some parts, will it still buy all of the components or only the missing ones?
Notausgang
03-04-2010, 07:31 PM
It will only buy the missing ones; however, it won't look into your stash nor fetch any items out of it.
slime
03-04-2010, 07:42 PM
Will this purchase sub-components? For example Sac Stone requires a Sustainer which requires a Lifetube and Manatube. Will the button purchase those?
C4NCEL
03-04-2010, 07:59 PM
Can you make it/Is it possible to have a shortcut button? So that it would be much easier. Like for example you can set it to "X" (better if the button is customizable).
Then if I were to buy Soulscream Ring,
B(Buy) > A(Initiation) > E(Soulscream Ring) > X(Buy all components) (on my button settings)
Nevertheless, SUPER DUPER GREAT MOD!
Delfofthebla
03-04-2010, 08:06 PM
Nice! Is there a way to make it detect stash items? There's a mod that outlines items that are already in your stash so I would think that it would be possible...
kevs926
03-04-2010, 08:23 PM
Ignorance made something before. He said he practically finished it but cant make it error free. Maybe it is about detecting stash items
BlackICE
03-04-2010, 10:00 PM
if this works mi love you long time!
MaxGhost
03-04-2010, 10:34 PM
Will this purchase sub-components? For example Sac Stone requires a Sustainer which requires a Lifetube and Manatube. Will the button purchase those?
Yes it does. A good example is Hellflower if you want to try it yourself.
Evil_Andrex
03-05-2010, 01:24 AM
I-Love-You.
Dacko
03-05-2010, 05:30 AM
I wrote Bullshit
thanks for the mod!
Sephinator
03-05-2010, 05:37 AM
Nice Notausgang. :)
Notausgang
03-05-2010, 07:00 AM
The only piece I'm missing to make it work with stashed items is a way to move a stash item to inventory, which I can't figure out. It seems the Ctrl+Rightclick functionality is hidden away in the engine through SecondaryActionStash which checks for the modifier key by itself; more mod unfriendly design :(
Adding shortcuts might come some day, but sadly not the way I'd like it most, which would be shift-clicking the item in the item list (holding down modifier keys messes with the way the purchase commands work :mad:). An additional bindable action could be possible though.
kevs926
03-05-2010, 08:10 AM
^
SecondaryActionStash(0);
ItemPlace(28)
try this
Notausgang
03-05-2010, 08:44 AM
Aaah, okay, inventory starts at 28; seems to work. Will release another version later / tonight then :)
Epic work, A really usefull mod.
Magnets1
03-05-2010, 02:40 PM
Just gotta remember to use this button now, I've learned to ignore it.
Notausgang
03-05-2010, 07:35 PM
Version 1.1 out. Mod Manager users may directly download it through the updater.
Changelog:
- Now also uses ingredients from the stash.
Delfofthebla
03-06-2010, 02:23 AM
Version 1.1 out. Mod Manager users may directly download it through the updater.
Changelog:
- Now also uses ingredients from the stash.
Nicee.
Can you make it/Is it possible to have a shortcut button?
That.
Many of us are used to buying items with keys, thus it would be great if it had a shortcut.
Nice fix
OfekA
03-06-2010, 05:00 AM
Thanks!
Notausgang
03-06-2010, 10:08 AM
Version 1.2 out. Mod Manager users may directly download it through the updater. .s2z version was not changed.
Changelog:
- Now supports setting a hotkey via the mod options framework (http://forums.heroesofnewerth.com/showthread.php?t=66975).
SebZor
03-06-2010, 10:10 AM
Finally! Tx!
AngryWeasel
03-06-2010, 10:34 AM
Great work. Much appreciated.
Zaraki
03-06-2010, 11:57 AM
used the autoupdate function and get an error now when I try to apply mods:
"Could not find string starting with "<!--INSERT AFTER THIS -->" as sought by line 274..."
Notausgang
03-06-2010, 01:16 PM
Hm.. if I'm guessing right you've got the Mod Options Framework installed, but it's not the newest version (0.6). That's indeed a loophole, I'll put a fix up in a second. (that fix will basically make it ignore Mod Options Frameworks older than 0.6; so you should update that anyway!)
Edit: up.
Zeratos
03-06-2010, 02:36 PM
But wait, what happens if you purchase via courier and some of the components are on your hero? Curious.
Also, thumbs up on this. b(^-^)
Notausgang
03-06-2010, 04:29 PM
There is no special support for couriers, it'll just treat them like normal heroes and only see and consider the couriers' items (and the stash).
Zaraki
03-06-2010, 06:28 PM
Hm.. if I'm guessing right you've got the Mod Options Framework installed, but it's not the newest version (0.6). That's indeed a loophole, I'll put a fix up in a second. (that fix will basically make it ignore Mod Options Frameworks older than 0.6; so you should update that anyway!)
Edit: up.
Didn't realize there was a newer mod options framework. will get it and ty for the fix/update.
NiGHTsC
03-09-2010, 05:27 PM
Amazing addon, saves tons of time.
Thank you Notausgang!! :D
Notausgang
03-09-2010, 05:36 PM
Glad you people like it!
I've found myself to actually use it a lot myself now; the placement of that button in the UI is great (if you buy items with the mouse like me).
Creep666
03-10-2010, 05:29 AM
I've found myself to actually use it a lot myself now; the placement of that button in the UI is great (if you buy items with the mouse like me).
so true... so awesome :Hellflower:
ca1ifax
03-10-2010, 11:51 AM
it worked before...now it's broken. only buys the first item...anybody else having the same prob?
Notausgang
03-10-2010, 12:58 PM
Still working fine for me. Are you sure you had enough money for the other parts? (and that they were not only available at the secret shop?)
Did you have an usually high ping or low framerate?
ca1ifax
03-11-2010, 02:36 AM
i tried it in practice mode...i had 15000 gold...it didnt seem to work. i tried even just steam boots. i tried to disable it, run the game, enable it...still doesn't work. i really want this to work again. also tried deleting it and downloading it again and reinstalling it. same thing. help pls
Notausgang
03-11-2010, 09:31 AM
Can you a) post the names of all files ending on .s2z in your <hon install>\game folder and b) give a shortest possible list of steps which lead to the bug (e.g. "start practice mode, open shop, navigate to bracers, click the button")?
ca1ifax
03-11-2010, 11:29 AM
hehehe :) i have like so many mods installed. i just thought about it. i'll try enabling it alone...and maybe there's a mod that's incompatible with it. if i'm not successful, i'll post everything i installed so i can get it back up and running.
ca1ifax
03-11-2010, 11:36 AM
yup i was right...it works...just need to identify what it doesnt work with.
destr0y
03-11-2010, 09:59 PM
So it won't dupe the items in your invo? Is there a hotkey? I'm too lazy to read/attempt. Will be my first mod.
Mordiggian
03-12-2010, 03:59 AM
So it won't dupe the items in your invo? Is there a hotkey? I'm too lazy to read/attempt. Will be my first mod.
Then you're unlikely to get an answer. Especially when the relevant info is all on the first page of the thread.
_SouLSLayeR_
03-12-2010, 04:06 PM
HELL YEAH!
thanks Notausgang (http://forums.heroesofnewerth.com/member.php?u=305) <3 :legi:
edit:It works fine, but in a practice game I started to test it I noticed some glitches(but not a significant FPS drop), like the CPU was struggling, though it wasn't.
Notausgang
03-25-2010, 04:39 PM
Version 1.2.2 out: Fixed for FE2. Also downloadable via mod manager.
Note that your hotkey will still work if you bound one prior to the patch. To be able to rebind it you need to wait for the mod options framework to update.
Lim_Dul
03-25-2010, 06:35 PM
http://j.imagehost.org/0390/error.png
Notausgang
03-25-2010, 06:37 PM
Tisser screwed up the current Mod Options Framework build. For now leave the mod options disabled and just use this mod without.
Lim_Dul
03-25-2010, 06:45 PM
Yeah, problem is other mods (not this one =) REQUIRE MOD Options Framework to be enabled. :-(
Duomaxwe
03-26-2010, 10:43 AM
Thanks.
yamumsaslut
04-16-2010, 07:18 AM
I
Love
U
MrSmith
04-16-2010, 11:37 AM
omg wo is der notausgang???
nice mod^^
twizzR
04-19-2010, 12:43 PM
Love it! :) Keep it up :D
Systemdir
04-19-2010, 05:30 PM
nice work!
SHiRKiT
04-19-2010, 05:41 PM
This mod bugs sometimes, I don't know why =/
Kinatas
04-20-2010, 05:19 AM
Awesome !
Jaycoob
04-20-2010, 06:55 AM
So does this mean that it can auto buy any items with components only found in secret shops? cool then! ;)
Notausgang
04-20-2010, 07:36 AM
No, you can't cheat with it, you still have to visit the secret shop to pick up the components you need from there.
LordBaal
04-20-2010, 04:21 PM
a new unfair advantage mod?
if you are in a teamfight kill a hero have exactly the money you need for an item and than you die.
A non mod user could hardly buy while a teamfight.
I dont think if this mod gives a little to big advantage
Rapid
04-20-2010, 05:07 PM
Brilliant!
Thank you, I thought only people who bought the game can use it, didn't know it's UI problem, thanks!
Meredori
04-20-2010, 07:30 PM
a new unfair advantage mod?
if you are in a teamfight kill a hero have exactly the money you need for an item and than you die.
A non mod user could hardly buy while a teamfight.
I dont think if this mod gives a little to big advantage
Although his is a mod, it is more realistically a fix. The Buy all components button is already there, just S2 has not implemented it's functionality.
Sinedd
04-21-2010, 05:46 PM
Looks like the link's broken.
Notausgang
04-21-2010, 06:31 PM
Newerth.com is down atm, I now added a Mediafire mirror to the first post.
SoyAwesome
05-09-2010, 01:04 AM
BEST MOD EVER!!!... u just make my day... ty! double thumbs up!
Tankie
05-12-2010, 11:27 PM
bump
falone
05-14-2010, 06:09 PM
Update for a new patch plz
Notausgang
05-14-2010, 06:27 PM
This mod was updated a few hours after the retail patch was released. Just use modman's auto-update feature or re-download the mod from the first post.
falone
05-14-2010, 06:47 PM
lol, dunno why mod was disabled in my Honmod. tnx for the job
Tankie
05-26-2010, 04:47 AM
needs an update?
http://imgur.com/arH4v.png
EDIT: haha yeh just noticed it was implemented :D sweeeet
A`nub`is
05-26-2010, 04:48 AM
You delete the mod now, because it has been implemented.
/thread
no
i still want this mod
when u click BUY frostburn when using mod you will buy firebrand and half icebrand
S2 implementation will just say "NOT ENOUGH GOLD"
>.>
TazZy
05-26-2010, 04:54 AM
Cuz they dont want you using frostburn och FA :<
Its all lies! LIEEEEEEEEES
;(
Lim_Dul
05-26-2010, 07:55 AM
Yeah, to be honest I would still like to see this mod being fixed - like, replace the S2 implementation of it.
i.e. this mod only buys components you are MISSING from an item, the S2 version buys everything no matter what, which is pretty much pointless since you rarely buy everything at once.
A`nub`is
05-26-2010, 08:35 AM
- Implemented functionality for "Buy All Components"
* Clicking this button will attempt to purchase all components and sub-components needed to complete the recipe.
all components needed to complete the recipe
damn you s2! how come you don't use the perfectly working code from this mod? and why do you even lie about how your self-written code works in the patch notes -.-
-----------
so yeah, people were right ... this mod did not get implemented, although it's a 100 times better than their buy all components button.
revan_xp
05-26-2010, 09:23 AM
Hope NotasGaung fix the implemented buy all component by S2
spadereS`
05-26-2010, 09:39 AM
Hope NotasGaung fix the implemented buy all component by S2
they want to do it themselves! they want higher self-esteem! they can they can they can do things too!
Xclipse
05-26-2010, 10:07 AM
I would like the implementation of this mod or a fix for the mod.
Because the Buy All of S2 sucks :/
Notausgang
05-26-2010, 10:11 AM
As I stated previously in this thread, this mod uses rather hacky code (giving it that much more flexibility though); it was clear from the beginning that their implementation would be different.
I'll update this mod in --- (screw it, I'll do it next time I find time for HoN) days to provide the old buying mechanics as an alternative to their version.
Lim_Dul
05-26-2010, 10:54 AM
Woohoo! :-*
Biggy93
05-26-2010, 02:33 PM
since patch 1.0.2.0 the message :
"
UI Fix All Components caused problem :
Could not find string starting with "Onclick=""" as sought by line 15 of "e:`Heroes Of Newerth\game\mods\bac.honmod\mod.xml"
Hope u will fix soon :)
durr__okay
05-26-2010, 02:41 PM
As I stated previously in this thread, this mod uses rather hacky code (giving it that much more flexibility though); it was clear from the beginning that their implementation would be different.
I'll update this mod tomorrow to provide the old buying mechanics as an alternative to their version.
Yeah, awesome, I kinda got used not to worry about finishing my items, didn't really expect the S2 solution to work differently :/
Biggy93
05-27-2010, 12:22 PM
in fact it was patched in 1.0.2.0 :
Version 1.0.2
-------------
General
- Implemented functionality for "Buy All Components"
qazqazqaz
05-27-2010, 12:26 PM
Read some post above. S2 version iis kinda bad.
zunaguli
05-27-2010, 12:47 PM
in fact it was patched in 1.0.2.0 :
ye the implemented something stupid thus an intelligent solution was already working....
Rapid
05-27-2010, 07:32 PM
yay great news notas :)))
keep it up, waiting for your perfect mod! :D
Trilles
06-01-2010, 11:08 AM
-.- ****
maybe someone else could update it plz? =/ this mod is awesome!
zunaguli
06-01-2010, 01:29 PM
notausgang where are u? need this mod!! :(((
Notausgang
06-04-2010, 10:14 AM
Finally got around to doing the update :) (which really only was a few minutes of work though).
Also, support for Bangerz' Auto Buy might be coming soon!
("might" means it might actually not be coming soon; it might even mean it might even not come at all!)
Gorkoth
06-04-2010, 10:33 AM
The new version is incompatible with PB:Shop.
Notausgang
06-04-2010, 11:03 AM
Yeah, the way pizzabussen added "compatibility" was rather hacky and broke with the new patch.
However, I just put up a new version (1.3.1) of BAC which hooks the button a little bit differently such that it should work with PB:Shop as well.
Lim_Dul
06-06-2010, 07:54 AM
Works like a charm. ^^
CaNiBuS
06-07-2010, 02:15 PM
hm the button is grey just like i wouldnt have that mode or the new game patch -.- im using pb_shop
before ur update everything works fine -.-
zunaguli
06-07-2010, 02:40 PM
hm the button is grey just like i wouldnt have that mode or the new game patch -.- im using pb_shop
before ur update everything works fine -.-
u also got the newest version of shop? works fine for me..
CaNiBuS
06-07-2010, 03:33 PM
yes normaly i should have the newest version cause its autoupdate
but still have that "bug" that the buy all button is greyed out and u cant use it with pb shop
but as i said before that last update it worked perfectly
SquiZ
06-07-2010, 03:36 PM
I wasted like 2k gold trying to auto-complete an item when I had like 4k gold and parts of it already with their horrible implementation.
Your mod spoiled me even though there was rarely a time when you would press such a button...
Their implementation does exactly what the button says; it buys all components -- whether you already have some or not. I agree this is not what would be ideal, and therefore this mod is definitely better. Anyway, I'm quoting one of the moderators / devs here and if I'm correct they would look into it. If they just copy this mod's functionality it would be perfect.
Btw if you misbuy using the current button, you can just sell the items you dont need for the full price within 15s so it's not a big deal either.
SquiZ
06-08-2010, 07:59 PM
Btw if you misbuy using the current button, you can just sell the items you dont need for the full price within 15s so it's not a big deal either.
That only works for single items purchased, not newly created items. Thus, no you cannot resell any auto-completed item for a full value.
I bought a shaman's headdress (in bottom right slot), came back like 5 mins later with 4k gold and tried to auto-completed it to barrier idol, but it made a completely new headdress and combined the recipe with the new one in the empty slot. I immediately sold it back thinking I would get my money for it... but alas I only received half of the total cost of barrier idol. I had to buy another recipe to complete the one I currently had. Sad story.
fatings
06-09-2010, 10:10 AM
yes normaly i should have the newest version cause its autoupdate
but still have that "bug" that the buy all button is greyed out and u cant use it with pb shop
but as i said before that last update it worked perfectly
same here.
MahdSkillz
06-09-2010, 12:28 PM
same here.
I third this.
Notausgang
06-09-2010, 01:11 PM
You need to go bug the creator of pb shop to fix the button code stub in his mod, which is a disabled button by default.
BlackICE
06-14-2010, 03:18 AM
wont allow you to buy recopies at the moment.
BlackICE
06-14-2010, 01:30 PM
is this working for anyone else?
Kinatas
07-04-2010, 05:55 AM
works fine.. but what is the last version ?
1.3.1 ?
Notausgang
07-04-2010, 08:49 AM
Yes, 1.3.1 is the last version.
qazqazqaz
12-14-2010, 05:03 AM
This needs fix.
hsram
12-14-2010, 08:34 AM
this was implemented into the game a long ass time ago, this thread needs a lock.
This mod provides a 'smarter' version of Buy All Components! :)
Update: S2 implemented the button themselves in patch 1.0.2! This mod now makes the "Buy All Components" button in the shop use the implementation previously provided by this mod:
- As many items as possible are bought, even if one cannot afford all components.
- Makes use of ingredients already present in inventory or stash.
qazqazqaz
12-14-2010, 09:53 AM
this was implemented into the game a long ass time ago, this thread needs a lock.
No it wasn't. The one in game is terrible.
Notausgang
12-14-2010, 09:53 AM
Updated for HoN 2.0, you may use the auto-updater.
NiGHTsC
12-14-2010, 02:21 PM
Updated for HoN 2.0, you may use the auto-updater.
Thank you!!
Mertsch
12-14-2010, 04:04 PM
Thank you!
revan_xp
01-29-2011, 07:59 AM
Has this been implemented with last patch?
Notausgang
01-29-2011, 08:40 AM
I haven't checked it yet, but reading the patch notes it now seems to be pretty much dead-on the same behaviour.
Quzzap
01-29-2011, 10:36 AM
Yea, the only thing S2's code doesn't do is move parts that are in the stash to the inventory to combine all the components. But I can live with that :>
Congrats on implementation :p
ElementUser
01-29-2011, 10:46 AM
Yes, it's "Buy Remaining Components" now
revan_xp
01-29-2011, 12:23 PM
Ty Notausgang for all the hard work you put on this
NiGHTsC
01-30-2011, 10:45 PM
For the HONOR~~
;)
qazqazqaz
02-23-2011, 02:57 AM
Um, this stopped working, and the one that in game is kinda ewwww. It buys same components if you have half of the item in stash and and half in inventory, etc. Is it possible to update this?
Equivalent
02-23-2011, 03:34 AM
disable this mod, it's already been implemented into the game.
the button in the game now says "Buy Remaining Components" no matter if you have 0 or 2 of them already.
it works splendid.
qazqazqaz
02-23-2011, 04:25 AM
Oh, great, I'll try it, thanks.
Notausgang
02-23-2011, 04:33 AM
Yeah, since the inventory and stash slots were moved in 2.0.15 this mod broke, and there's no point in fixing it.