| 11-15-2004, 10:17 PM | #1 |
Some of you I am sure are familiar with this bag that weaaddar made: http://www.wc3campaigns.com/showthre...+drop+backpack As you know this is a great bag. And I learned alot from him and his code. However I decided to make a better one because I was in need for my new upcoming project. I also decided to take the time and release a pack containing the code necessary for others to make their own expanded bag. As this is the first release it probably has some bugs. Let me know here and I will fix them and REPOST the new file HERE. My routines offer the following advantages over Weaaddar's routines: NO extra items created every time a unit changes his inventory status. This means that the bag you pick up is the SAME bag you dropped. However, ONE time an action and a full bag for each bag is created, that is picked up as well as 5 BLANK bags that while you never SEE are critical for this to work right. NO issues with charged items. I never "touch" the item with regards to charges and therefore I have no issues in this regard. FIVE slots available instead of FOUR. Yes that's 20% more space. Remember that while both of our bags offer more than 6 slots essentially only the ITEMS THAT ARE VISIBLE ON THE HERO ARE ACTUALLY HELPING THE HERO., So having one more slot available is one more thing the Hero can take advantage of at the same time. One button slot, does it all showing the number of free slots outside of the bag, while inside showing how many inventory slots left open, and when full showing this with a big red "x". POSSIBLE ENHANCEMENT: In fact if you used the arrow keys you could actually have all 6 slots but then you would need to not have arrow keys for other things. TRUE drag and drop. There is no limitation of drag and drop outside OR inside the bag itself. This includes dropping the bag you are in via clicking on the ACTION/FULL button and dropping the item. You can even swap a bag and an item as long as you are dragging the bag on top of the item. The reverse of course will put the item IN the bag :> BAG within a BAG. That's right you can have as many bags as you want and have them buried inside of each other. While most people will not have a huge need for this my current project does need this. BAGS can be either permanent or droppable. A bag that is permanent once picked up CANNOT be dropped and is always INSIDE the bag. You can drop the bag from both inside and outside the bag. VERY COOL icon interface. At least I think so :> NEW BAG DOODADS courtesy of SOuNDSNC. More to come! When you click on a bag to enter it your ACTION icon stays in the same location. It does NOT move to the bottom right. This I found to be very helpful in not getting confused. Virtually ALL FEATURES can be defined without touching the actual code via external function links. IE BLANKBAG, FAKEBAG, and ADDBAG Easy to cut and paste in 4 steps. 1. Copy this text into your maps header. 2. Copy the blank and fake bag icons into your map and in sets of 3 the backpack/napsack/sack/fannypacks items for the bag, action and full items. NOTE: You only need one bag, I have enclosed 4 as samples. 3. Use as samples the trigger in Lets Do It and your done. 4. Go to Game Interface and pull the plug on the text for the Text Message - "Inventory Is full." message (3/4 way down list) by replacing with a " "(NOTE NOT A "" but have a space there) and then change SOUND - "Inventory Full" (1/2 way down list) to nothing. To do this you MUST have the shift key down when you open this field so you can replace with " ". The reason we are using " " instead of "" is because if you use "" it just uses the default and that wont help will it? All code is in one easy to access place so if you are a jass pro its easy to see/change and add to. Hope you like it please give feedback here. Rod |
| 11-15-2004, 10:21 PM | #2 |
I cant make sense of all that its mumbled together, does it support multiplayer? (greatbag) ![]() |
| 11-15-2004, 10:29 PM | #3 | |
Quote:
LOL well its untested but it is meant to.. I guess you guys will let me know. The only draw back is the same draw back all bags of this nature have. You can only have the items that are actually SHOWING at currently be active on the player. So you are still limited to only 5 or 6 at a time depending upon if your outside or inside the bag. |
| 11-25-2004, 08:58 AM | #4 |
Guest | 1 thing...it doesent work to me this bag system.(its cool) but i copyed the bag types, the icons,the abilitis,the triggers and all.When i paste them to my map all works.then i push test map...and a messege pups-up and say the the scripts dont work..what can i do PLZ help ur bag system owns(or should i post here my map and u make bag system for it?) |
| 11-25-2004, 11:49 AM | #5 | |
Quote:
anyways rod, I finally checked it, I think it was one week since you gave me the beta map, I think I'd preffer a Next page button, currently this bag doesn't use that many custom items but is not intuitive either. |
| 11-25-2004, 08:25 PM | #6 |
Guest | PLZ HELP ME with costum scripts i tried to import triggers with costum scripts from many maps but thay wont work...rawcodes or how thayr named example: Script errors: call TriggerAddAction(t, function cp_ClickHandler) |
| 11-26-2004, 05:00 AM | #7 |
seems needlessly complicated. I agree with Vex next page is a lot more intuitive. As far as why I didn't do half this crap myself...well, for what I wanted I never needed more then a single bag at a time. I wrote the code about a year ago (January-feb slight update in april but not really a code change). Things I like: Pick up everywhere Item systems (note, I still suggest a doubly linked node system for this over your implementation I like my error messages unhampered). Using the handle. (There was a reason I dropped using the handle, In the long run I don't think it made much of a difference) Cool Icons and doodads Things I dislike: No nextpage (makes weaaddar a sad panda) Dropping the return to inventory drops your bag? Ineffecient code! You linked Drag and Drop++, not Drag and Drop+=2! Other than that, its pretty damn cool. This weekend we may see a new version of the drag and drop project by me. I can't guarentee anything. But it could be grande. Also: Issues with charged Items? D+D+=2 has no issues with charged items. I often sound bitter in these posts, but I am actually impressed that somebody took the time to look at D+D and make it better to there needs. I hate people pming to fix something for thier needs. Also, as my code becomes more and more needleslly complex to suite customizability i realize my code starts feeling like common.j for war3. Commentary is nice :) |
| 11-26-2004, 07:20 AM | #8 | |
Quote:
Finally Weaaddar is alive! Hope your having a good turkey day. Please give me the correct link so I can give the correct link! The reason I have only 1 button is because of the limit involving the hero can only have the EFFECT of only the ACTIVE items. With only 4 buttons that means there is only 4 things that the hero can have active at one time. I originally had a next and close button but found them myself needless. I agree it is a bit hard at first to utilize as a player but once your used to it the additional spot i believe is worth it. Anyways ADDING another button would be easy. The reason I used the handle is because this allows me to not have to recreate the item over and over. This means I can have multiple bags because I am attaching to the actual item and not just an item type. I intentionally wanted it so that if you dropped the BAG icon no matter what mode you were in it dropped the bag but turning that off would be like one line of code. "Ineffecient code!" - please be specific as I have tried to make this code both efficient AND easy for the newb to plug and play. Regarding the charged items- In the code that I have, you appear to be altering the charge manually at times but its been a week so I could be forgetting something. Anyways because I dont recreate the item at any point the CHARGE is never touched. ANYONE that is trying to get this to work and cannot can either SUBMIT THE MAP right in this link OR email to me at [email protected]. If you email PLEASE put a message like HELP WITH THE BAG! so i dont just trash it with the rest of the junk email i get. Thanks for the interest- Rod |
| 11-28-2004, 03:19 PM | #9 |
Guest | When i tryed it cause i liked it but when i try to save the triggers to my map and then try to save my map it gives an error on the costum scripts... |
| 12-03-2004, 05:12 PM | #10 | |
Quote:
Any problems just send me the map and ill see what I can. Good Luck Rod |
| 12-04-2004, 03:33 AM | #11 |
I played with the test map. In about 2 mins of use i had lost 3 backpacks (and items) into the void. Sometimes the items would randomly appear when other backpacks (or my perosnal favourite- when i moved an item on a hero without a backpack) are used. Unless its obtuse interface was simply defeating me (which i dont believe to be true) the system is bugged at some level (and thus pretty much unusable, a rare but critical bug is just that, a critical bug.) |
| 12-05-2004, 06:45 AM | #12 | |
Quote:
I have no issues with criticism and with bugs. I do however have an issue when someone takes the time to say there are bugs but not do several things that could help FIX the bugs. IE save the game replay and send it to me. Give a detailed BUG report that explains with consistancy what happens. I have had 4 people already test this and have found only one bug related to dropping a bag itself. PLEASE BE SPECIFIC if you are going to criticize. Thanks Rod |
| 12-05-2004, 07:15 AM | #13 |
You'll get ya replay in a few minutes, i tried to make one just now, unfourtunatly ya bag (after bugging up) then crashed WC. EDIT: My entire comp this time, need to find a nice place to quit without reahcing the total destruction stage. i can tell you tho that the system consistantly falls appart under the circumstances i present it with. The Rep (if i get it) should explain more easily than i can. EDIT2: Well i got the replay. Its impossible to tell exactly just how easy to break the system is, but it breaks badly. I found the easiest way to dmg the system was to put a bad in itself. There are probably others. Have fun watching the replay. Oh and next time: Get people to actually TEST the system :P |
