wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 08-05-2009, 04:06 AM   #31
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

I can't really explain that. It must be something weird inside of AutoIndex. I'll look into it and see what I can dig up, though.
__________________
Rising_Dusk is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 08-07-2009, 11:10 AM   #32
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

hmm...no No Store updated version? I just replaced the requires UnitIndexingUtils to AutoIndex, does work fine?
__________________
Current Project:
Rise of Sinnergy v1.00
Sinnergy is offline   Reply With Quote
Old 08-10-2009, 12:06 PM   #33
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

BUMP
Why not update the No Store version of Last Order? because it really cause bugs with AutoIndex, the No Store Version works better than LastOrder system with AutoIndex combined
__________________
Current Project:
Rise of Sinnergy v1.00

Last edited by Sinnergy : 08-10-2009 at 12:07 PM.
Sinnergy is offline   Reply With Quote
Old 08-10-2009, 01:12 PM   #34
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

I really need to figure out why it doesn't work with AutoIndex, because AutoIndex should function nigh-on identically to UIU.

EDIT:
I have decided that if this library has some problem with AutoIndex, then it is AutoIndex's fault. Can you possibly elaborate upon the type of bugs you see? I am almost certain that it means that AutoIndex is not giving correct indexes where it should.
__________________

Last edited by Rising_Dusk : 08-10-2009 at 08:13 PM.
Rising_Dusk is offline   Reply With Quote
Old 08-13-2009, 12:55 AM   #35
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

any method to do such thing like this?:
Collapse JASS:
call IssueOrderIdEx(GetLastOrderId(GetTriggerUnit()), thisUnit)
I'm trying to figure out that if I want to order a unit using the returned order from a unit, it really need a lots of function calls, since I need to check what kind of order did the unit is issued (instant, target, point), then order the unit to use the order instant, or target, or point.

Lets say a hero (GetTriggerUnit()) issues an order to attack a certain target, then if I want to make a unit (thisUnit) follow the issued order of that hero (so that they would be identical), then I would use the function above, now, there's no need to check what type of order did the hero used, no matter what type of order did the hero is issued, the unit will always try to issue the hero's order
__________________
Current Project:
Rise of Sinnergy v1.00

Last edited by Sinnergy : 08-13-2009 at 04:33 AM.
Sinnergy is offline   Reply With Quote
Old 08-13-2009, 01:08 AM   #36
Archmage Owenalacaster
Laughs Derisively
 
Archmage Owenalacaster's Avatar


Project Member: PoC
 
Join Date: Jun 2006
Posts: 649

Submissions (1)

Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)

Race-Building Contest #1 Winner

Default

Quote:
Originally Posted by Rising_Dusk
Can you possibly elaborate upon the type of bugs you see?
I'll do you one better. I've attached a version of your testmap fitted to use AutoIndex.
Try using Demo Spell Error.
Attached Files
File Type: w3x LastOrderTestMap.w3x (47.0 KB, 19 views)
__________________
I enjoy small text.
Resources: Custom Race System
JademusSreg.950, North American region on StarCraft 2

Last edited by Archmage Owenalacaster : 08-13-2009 at 01:08 AM.
Archmage Owenalacaster is offline   Reply With Quote
Old 08-13-2009, 03:36 AM   #37
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

It seems that defend ability messes up with AbortOrder and LastOrder combination.
ToukoAozaki is offline   Reply With Quote
Old 08-13-2009, 04:56 AM   #38
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Quote:
Originally Posted by Sinnergy
Lets say a hero (GetTriggerUnit()) issues an order to attack a certain target, then if I want to make a unit (thisUnit) follow the issued order of that hero (so that they would be identical), then I would use the function above, now, there's no need to check what type of order did the hero used, no matter what type of order did the hero is issued, the unit will always try to issue the hero's order
It's a quick wrapper function call I could add to the system. Heck, you could write it yourself as you described in ten seconds. I like the suggestion, though, so I suppose I will add that in the next version.
Quote:
Originally Posted by ToukoAozaki
It seems that defend ability messes up with AbortOrder and LastOrder combination.
I was suspecting this as well. I'm not sure why it would cause issues, but I suppose I will have to investigate.
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-18-2009, 12:35 AM   #39
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

I really can't take the bug anymore, it makes me want to use UIU for last order instead of AutoIndex, I just don't know if two indexing system works in 1 map?
__________________
Current Project:
Rise of Sinnergy v1.00
Sinnergy is offline   Reply With Quote
Old 08-18-2009, 12:50 AM   #40
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

They won't. It's one or the other; if you have both your map won't even compile. I really don't know what to tell you about the whole bug, since it is because of the defend orders your units get when using AutoIndex. You could add an exception to LastOrder to ignore 'defend' orders, but that shouldn't be in the submitted library, rather in your copy of it.
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-18-2009, 12:37 PM   #41
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

ok2x, let me just think a way to exclude 'defend' in last order, I even don't know what part of last order should I implement that.

edit:
wait, you already excluded an order id used by autoindex which is the 'undefend' order id (852056) in here:
(id >= 852055 and id <= 852762)
__________________
Current Project:
Rise of Sinnergy v1.00

Last edited by Sinnergy : 08-18-2009 at 12:44 PM.
Sinnergy is offline   Reply With Quote
Old 08-18-2009, 01:28 PM   #42
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

The function is called OrderExclusions, but if it returns true then an order is not excluded. 'defend' is 852055 and 'undefend' is 852056. You would need to change that last segment to: (id >= 852057 and id <= 852762)
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-18-2009, 02:15 PM   #43
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

ok. I thought the returned order id's are the ones that are not included, so that means I must not create abilities based on defend right?
__________________
Current Project:
Rise of Sinnergy v1.00
Sinnergy is offline   Reply With Quote
Old 08-18-2009, 02:32 PM   #44
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Well, it means that LastOrder will ignore any defend or undefend orders as if they do not exist. So if for some reason you do want IssueLastOrder() to issue your last defend order (Doubt you ever would), then it would pretend as though the original defend order were never issued in the first place.
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-19-2009, 01:54 PM   #45
Sinnergy
User
 
Sinnergy's Avatar
 
Join Date: Apr 2009
Posts: 173

Sinnergy has little to show at this moment (8)

Default

I can't think of any usage for defend ability, I even don't base my spells with the defend ability, so I'm 100% sure that I won't use defend ability (except for a requirement like AutoIndex)
__________________
Current Project:
Rise of Sinnergy v1.00
Sinnergy is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:15 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services