HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

some help testing

04-03-2009, 04:56 PM#1
Vexorian
When I was making InvX and implemented it in the arena, there were serious problems with SetItemVisible, to quote the CS documentation:

Quote:

Safe item hiding
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
After making Pocket Stash and InvX I note serious problems when hiding items by using
SetItemVisible :

- Computer controlled heroes can in fact pick them up.
- Units might be ordered to pick them up by using triggers because they are detected
when using pick every item in rect

- After saving a game and loading it, hidden items SUDDENLY BECOME VISIBLE AGAIN!

These problems were too bad and forced me to take action. I added these functions
to the caster system because they make use of dummy casters and because Pocket Stash
and InvX already require it.

Yesterday I made a struct-based alternative for this CS item hiding thing, and it actually works, but I kinda forgot to verify that it is still needed, can someone with time (I am about to leave for college) test whether these things still happen? (I know the second one is still true, but it is approachable by adding IsItemVisible tests, what about the others?)
04-03-2009, 05:35 PM#2
Toadcop
Quote:
- After saving a game and loading it, hidden items SUDDENLY BECOME VISIBLE AGAIN!
true. i "rehide" on game load the items... well not suddenly, allways ;P

Quote:
- Computer controlled heroes can in fact pick them up.
well afaik invis item = drop/unpickable. but it's maybe a bug... and maybe in 1.22/23 it's fixed =)
04-03-2009, 07:39 PM#3
Vexorian
The prospect of blizz fixing a minor bug like that is rare, they don't even have the same programmers as the ones who coded the game, that hash fix was a very hard one.

Ordering units to pick invisible items does work. So I guess I'll have to place a bunch of melee AI heroes and items in some rect and see what happens...
04-04-2009, 11:14 AM#4
Chocobo
> well afaik invis item = drop/unpickable. but it's maybe a bug... and maybe in 1.22/23 it's fixed

invisible items = pickable (unfortunately) by computer order
dead items = pickable (again unfortunately) but NOT by computer order and also permantly undroppable (which sucks)