[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Spells


Reply
 
Thread Tools
The Hive Workshop Spells:
[GUI] Dynamic Indexing Template
by Hanky
Images
Highslide JS
Details
Uploaded:04:26, 20th Sep 2009
Last Updated:20:43, 22nd Aug 2012
Keywords:index, demo, dynamic, indexing, recycle, recycling, unit indexing, zZz
Type:System
Category:GUI / Triggers

This template contains five different index possibilities:
- Dynamic Indexing
- Dynamic Indexing 2
- Handle Indexing (Can be used as Unit Indexer for example.)
- Handle Indexing 2 (Can be used as Unit Indexer for example.)
- Fusion of both System for channeling spell

This is a demo map for a dynamic indexing system and some other indexing systems. The systems are pretty simple and I don't need to take credits if you use it. I just made this example map since Im sick to see all those spell demo maps using ineffective indexing systems.

In the demo map should be enough documentation to understand this really simple system. But If you have still questions about the system then you are free to ask me.

Changelog:
Version 1 = Release
Version 2 = Fix / ++ Documentation
Version 3 = Added Hashtable Indexing / ++ Documentation
Version 4 = Added channeling spell example / ++ Documentation
Version 5 = Added new indexing method / ++ Documentation / ++ Optimation
Version 6 = Added handle/unit indexer method / ++ Documentation / ++ Optimation / ++ Ingame Screenshot
Version 7 (Final) = Handle Indexer Fix / changed Documentation


Hint: The examples can be used as template.
Rating - 5.00 (7 votes)
(Hover and click)
Moderator Comments
Director's Cut - Highly Recommended
7 Dec 2011
Bribe: Promoted to Director's Cut. We are recommending this template to users all the time and have many approved resources using it.

18:32, 6th Oct 2009
The_Reborn_Devil:

This is really nice for GUI'ers, but can also be good for JASS'ers as well.
It is a nice method which I often use myself.
Approved and Highly Recommended.

This spell is approved and works properly.


Download dynIndex6.w3x
(54.65 KB, 1967 Downloads)

Old 09-20-2009, 06:52 AM   #2 (permalink)
Registered User Lambdadelta
Guest
 
Lambdadelta's Avatar
 
Join Date: Jul 2009
Posts: 821
Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)Lambdadelta is just really nice (333)
I guess this could be useful for GUI coders.
__________________
Lambdadelta is offline   Reply With Quote
Old 09-20-2009, 07:45 AM   #3 (permalink)
Registered User Demongrip
User
 
Demongrip's Avatar
 
Join Date: Sep 2009
Posts: 110
Demongrip has little to show at this moment (16)Demongrip has little to show at this moment (16)
Yeah just what i needed thanks,now i`ll make the blood bolt like that.
__________________
Currently Retired
Status:C++ developer
Demongrip is offline   Reply With Quote
Old 09-20-2009, 07:46 AM   #4 (permalink)
Registered User Aspard
The Witcher
 
Aspard's Avatar
 
Join Date: Jul 2008
Posts: 874
Aspard is a jewel in the rough (217)Aspard is a jewel in the rough (217)Aspard is a jewel in the rough (217)
But I guess for just beggining GUI coders :)
And those "begginers" will never try look for this system before creating and uploading unefficient spells. ;(
__________________
Aspard is offline   Reply With Quote
Old 09-20-2009, 08:01 AM   #5 (permalink)
Registered User D4RK_G4ND4LF
@freenode ##OpenGL
 
D4RK_G4ND4LF's Avatar
 
Join Date: Feb 2009
Posts: 1,337
D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)
SC2 Spell Contest - Winner: Colossal Worm 
you might should add some note that when using Integer A/B you have to do this:
Custom script: set bj_forLoopAIndexEnd = bj_forLoopAIndexEnd - 1
or that:
Custom script: set bj_forLoopBIndexEnd = bj_forLoopBIndexEnd - 1
cause the internal counter won't be reduced the other way

and if the last slot is empty and the current slot runs out the last slot will only be recycled after the whole thing started again
Example:
(0 means the slot is empty)
1 0
2 0
3 0
slot 1 is replaced with slot 3 and index reduced to
3 0
2 0
slot 2 will be deleted
3 0
trigger runs again
-
and just by now the third slot got removed

this might sound like a minor bug while everything is executed every 0.03 sec but imagine a trigger running every minute or a trigger running every 0.03 sec with 1000 slots

I'd recommend setting the counter variable to counter - 1 too

however I probably did not understand it fully
I'd do it like that:
Attached Files
File Type: w3x Indexing.w3x (28.4 KB, 117 views)
D4RK_G4ND4LF is offline   Reply With Quote
Old 09-20-2009, 09:11 AM   #6 (permalink)
Registered User Hanky
Are you a bot!?
 
Hanky's Avatar
 
Join Date: Jan 2007
Posts: 574
Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)
Former Staff Member: This user used to be on the Hive Workshop staff. Super Donor: This user has donated at least $100 to The Hive. 
Quote:
Originally Posted by D4RK_G4ND4LF
you might should add some note that when using Integer A/B you have to do this[...]
Ok sure...

Quote:
Originally Posted by D4RK_G4ND4LF
I'd recommend setting the counter variable to counter - 1 too
oO I have forgot to do this... will be added ... seems like I was yesterday just to tired...

Edit: Ok new version is up with those fixes...

Edit2:

Quote:
Originally Posted by Aspard
But I guess for just beggining GUI coders :)
And those "begginers" will never try look for this system before creating and uploading unefficient spells. ;(
Sure they won't but next time if a guy is using an ineffective indexing system I'll just link to this system... ;)
Hanky is offline   Reply With Quote
Old 09-20-2009, 09:30 AM   #7 (permalink)
Registered User D4RK_G4ND4LF
@freenode ##OpenGL
 
D4RK_G4ND4LF's Avatar
 
Join Date: Feb 2009
Posts: 1,337
D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)D4RK_G4ND4LF is a glorious beacon of light (582)
SC2 Spell Contest - Winner: Colossal Worm 
Quote:
Originally Posted by Hanky View Post
if a guy is using an ineffective indexing system I'll just link to this system... ;)
that's genius!

we should make some text containing all the usual noob mistakes and just copy and paste them
D4RK_G4ND4LF is offline   Reply With Quote
Old 09-20-2009, 09:40 AM   #8 (permalink)
Registered User Hanky
Are you a bot!?
 
Hanky's Avatar
 
Join Date: Jan 2007
Posts: 574
Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)
Former Staff Member: This user used to be on the Hive Workshop staff. Super Donor: This user has donated at least $100 to The Hive. 
Quote:
Originally Posted by D4RK_G4ND4LF View Post
that's genius!

we should make some text containing all the usual noob mistakes and just copy and paste them
Well at least it would save time... since normally nearly every newbie is making the same mistakes...
Hanky is offline   Reply With Quote
Old 09-20-2009, 11:50 AM   #9 (permalink)
Registered User Deuterium
-
 
Deuterium's Avatar
 
Join Date: Mar 2009
Posts: 1,981
Deuterium is a name known to all (667)Deuterium is a name known to all (667)Deuterium is a name known to all (667)
Quote:
Originally Posted by D4RK_G4ND4LF
that's genius!

we should make some text containing all the usual noob mistakes and just copy and paste them
Duh... why do you think I've worked my ass on the Essentials Tutorial? :P

----

And well the best thing with this is that unlike tutorials, it's there for you to use... :) and it's very simple dynamic indexing.

I've seen other methods, and even though some are similar to this, they were explained in such a complicated manner that it's impossible to know what's going on...

So I definitely advice using this =)
__________________
Deuterium is offline   Reply With Quote
Old 09-20-2009, 11:54 AM   #10 (permalink)
Registered User Reaper2008
Greek JASSer...
 
Reaper2008's Avatar
 
Join Date: Jul 2008
Posts: 1,168
Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)
Deuterium, get a link to here in your tut.
__________________
Reaper2008 is offline   Reply With Quote
Old 09-20-2009, 12:39 PM   #11 (permalink)
Registered User Deuterium
-
 
Deuterium's Avatar
 
Join Date: Mar 2009
Posts: 1,981
Deuterium is a name known to all (667)Deuterium is a name known to all (667)Deuterium is a name known to all (667)
off-topic:
I sure will once I update the tutorial ;)
__________________
Deuterium is offline   Reply With Quote
Old 09-20-2009, 06:51 PM   #12 (permalink)
Registered User Hanky
Are you a bot!?
 
Hanky's Avatar
 
Join Date: Jan 2007
Posts: 574
Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)
Former Staff Member: This user used to be on the Hive Workshop staff. Super Donor: This user has donated at least $100 to The Hive. 
Added another index system. I think it'll be harder to understand but it'll be still useful. Since If you don't use loops in your spell something like this is pretty much needed. Of course I also added some documentation to the new system...

Last edited by Hanky; 11-30-2009 at 04:26 AM.
Hanky is offline   Reply With Quote
Old 09-20-2009, 06:54 PM   #13 (permalink)
Registered User Foopad
SC2 User
 
Foopad's Avatar
 
Join Date: Jun 2008
Posts: 190
Foopad has little to show at this moment (19)Foopad has little to show at this moment (19)
This is really useful to GUI'ers like me, I've always had a hard time understanding indexing properly - now I've actually created a spell and released on the hive already :). I've gotten a better understanding of it! + rep!
Foopad is offline   Reply With Quote
Old 09-20-2009, 09:59 PM   #14 (permalink)
Registered User Dark_Dragon
Behind the shadow...
 
Dark_Dragon's Avatar
 
Join Date: Jul 2007
Posts: 761
Dark_Dragon is just really nice (413)Dark_Dragon is just really nice (413)Dark_Dragon is just really nice (413)Dark_Dragon is just really nice (413)Dark_Dragon is just really nice (413)
wow great job! Deut's tutor and this are really awesome for GUI beginners. i will suggest this as well to GUI guys :)

Best Regards, 5/5!
~Dark Dragon
__________________
My Ultimate Spell Pack
Dark_Dragon is offline   Reply With Quote
Old 10-01-2009, 06:01 AM   #15 (permalink)
Registered User Hanky
Are you a bot!?
 
Hanky's Avatar
 
Join Date: Jan 2007
Posts: 574
Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)Hanky is a glorious beacon of light (462)
Former Staff Member: This user used to be on the Hive Workshop staff. Super Donor: This user has donated at least $100 to The Hive. 
Update:

New example added. The example is about how to make a MUI channeling spell in GUI using those index systems.
Hanky is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing Problem/new way of indexing does not work D4RK_G4ND4LF Triggers & Scripts 3 09-02-2009 07:37 PM
Chapter 2 - Dynamic Effects (GUI) Daelin Trigger (GUI) Editor Tutorials 0 11-26-2006 03:05 PM

All times are GMT. The time now is 04:52 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle