|
|
|
|
| JASS Resources Find JASS code snippets and functions here or write your own and post it on the Submissions sub-forum. |
 |
|
07-24-2012, 09:13 AM
|
#46 (permalink)
|
|
JESUS MAN
Resource Moderator
Join Date: Dec 2008
Posts: 5,702
|
Tested.
Working when you select 12 units.
Approved.
|
|
|
11-09-2012, 12:00 AM
|
#47 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
Added thread.wait() and SynchronizeThread()
|
|
|
11-09-2012, 01:32 PM
|
#48 (permalink)
|
|
JESUS MAN
Resource Moderator
Join Date: Dec 2008
Posts: 5,702
|
Jass:
* */uses/*
*
* * Alloc * hiveworkshop.com/forums/jass-resources-412/snippet-alloc-192348/
* */ WorldBounds /* hiveworkshop.com/forums/jass-resources-412/snippet-worldbounds-180494/
I think we both know what's wrong here.
|
|
|
11-09-2012, 03:11 PM
|
#49 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
???
Absolutely nothing, for vex's vjass, modules that don't have keywords do not have to be in a library to be used. Only cohadar's does not allow this, so as a result, you can comment out the library usage : ).
This works in vex's
Jass:
struct Test extends array
implement I
endstruct
module I
endmodule
|
|
|
11-09-2012, 03:49 PM
|
#50 (permalink)
|
|
JESUS MAN
Resource Moderator
Join Date: Dec 2008
Posts: 5,702
|
But there's no harm in keeping it, I mean, currently, it could cause some confusion (Some people might think you that you commented out the Alloc part because you don't require it in there)
|
|
|
11-11-2012, 02:11 PM
|
#51 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
But if he removes this fugly comment usage, it would make sense and he wouldn't bitching Cohadar's jasshelper.
It's just too much for him.
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
11-22-2012, 02:00 AM
|
#52 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
Fixed a problem with unsync'd code that creates threads ;o. The unit was getting created/selected for one machine before another machine, which was causing syncing problems.
|
|
|
12-15-2012, 08:34 PM
|
#53 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
Updated
now synchronizes all 12 players rather than just waiting for the first player to send sync request ; O.
|
|
|
12-16-2012, 12:35 AM
|
#54 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
However as said i don't what happens if a player don't load completely the game before leaving.
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
12-16-2012, 01:03 AM
|
#55 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
It'll still work just fine
edit
no wait, it won't ;o
hm...
i'm going to have to update the sync count in both the synced operator and the selection event
also... for the selection event, I really don't want it to fire whenever any unit is selected, but I've no choice >.<.
|
|
|
12-16-2012, 04:21 PM
|
#56 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
I thought about something else, if a such leaving player trigger the player leave event then it's easy.
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
12-16-2012, 05:49 PM
|
#57 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
no, because there are multiple thread instances. Would have to iterate over every thread ; \.
|
|
|
12-16-2012, 05:56 PM
|
#58 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
No, at init you check how many players there are.
And when a player leaves you just decrease this number.
And btw have you not already done something similar to handle players "PlayerUtils" something like that ?
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
12-16-2012, 06:07 PM
|
#59 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 4,924
|
That won't work because a leaving player may/may not have run a selection event (possible early fire)
Also, the leaving player may be the last one to run the selection event, in which case the synced var is never updated.
|
|
|
12-16-2012, 06:27 PM
|
#60 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
Quote:
Originally Posted by Nestharus
That won't work because a leaving player may/may not have run a selection event (possible early fire)
Also, the leaving player may be the last one to run the selection event, in which case the synced var is never updated.
|
My assumption is that the leaving player won't trigger the select event but trigger the player leave event.
If it trigger the player event then the code in the current version is fine.
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|
All times are GMT. The time now is 12:00 AM.
|