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 > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Closed Thread
 
Thread Tools Search this Thread
Old 02-06-2009, 07:43 AM   #1
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default 0x100000 vs 0x100008

In quite a few systems now I've seen the number "0x100000" supposedly represent the smallest handle ID, but isn't it 0x100008?
xombie is offline  
Sponsored Links - Login to hide this ad!
Old 02-06-2009, 08:55 AM   #2
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,375

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

We had a thread on this...go search...no one's going to go and do all that work again (I hope).
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline  
Old 02-06-2009, 09:09 AM   #3
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

BJ creates some handles.
DioD is offline  
Old 02-06-2009, 09:40 AM   #4
fX_
User
 
fX_'s Avatar
 
Join Date: Jan 2007
Posts: 528

Submissions (2)

fX_ will become famous soon enough (38)fX_ will become famous soon enough (38)

Default

Can someone pls elaborate what those 0x120134 notations mean?
fX_ is offline  
Old 02-06-2009, 09:47 AM   #5
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,375

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

0x notation. Google. Your friend. Is.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline  
Old 02-06-2009, 09:49 AM   #6
Deaod
User
 
Join Date: Jan 2007
Posts: 542

Submissions (11)

Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)

Default

'0x' indicates that the following nubmer is notated in hexadecimal (0-9A-F).
__________________
Deaod is offline  
Old 02-07-2009, 12:10 AM   #7
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

Quote:
Originally Posted by xombie
In quite a few systems now I've seen the number "0x100000" supposedly represent the smallest handle ID, but isn't it 0x100008?
When you're subtracting the lowest handle value from arbitrary handles to use them as array indexes (which is the only use I've seen for those magic numbers), a difference of 8 is irrelevant.

So, my question to you is, who gives a shit?
__________________
Useful Links:
My Resources:
Good Resources:
Search
Tutorials
Ability Guide

UnitMaxState
BonusMod

AutoIndex
ARGB
TimerUtils

Earth-Fury is offline  
Old 02-07-2009, 12:14 AM   #8
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

A difference of 8 can make a big difference if you accidentally reference SomeArray[-7]. Woops! Proper coding fixes that issue, though.
__________________
Rising_Dusk is offline  
Old 02-07-2009, 12:24 AM   #9
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

Quote:
Originally Posted by Rising_Dusk
A difference of 8 can make a big difference if you accidentally reference SomeArray[-7]. Woops! Proper coding fixes that issue, though.
If you ever manage to either underflow a unsigned integer which is an array index, or move in to the negatives on a signed integer array index, then you completely and utterly fail at coding, which means you will leak memory like crazy, get more than 8191 handles, and have no room left in an array, making the "trick" of using handle IDs as array indexes worthless to you in the first place.

So, in other words, that was an utterly pointless comment, Dusk.
__________________
Useful Links:
My Resources:
Good Resources:
Search
Tutorials
Ability Guide

UnitMaxState
BonusMod

AutoIndex
ARGB
TimerUtils

Earth-Fury is offline  
Old 02-07-2009, 12:26 AM
Kyrbi0
This message has been deleted by Rising_Dusk. Reason: You're not helping.
Old 02-07-2009, 12:29 AM   #10
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 Earth-Fury
If you ever manage to either underflow a unsigned integer which is an array index, or move in to the negatives on a signed integer array index, then you completely and utterly fail at coding, which means you will leak memory like crazy, get more than 8191 handles, and have no room left in an array, making the "trick" of using handle IDs as array indexes worthless to you in the first place.
You've never made a map, so I don't actually expect you to understand. Overflowing arrays by subtracting 0x100000 to get a usable value is very possible if you're not careful. Or maybe you'd rather I just admit that I "completely and utterly fail at coding."
Quote:
Originally Posted by Earth-Fury
So, in other words, that was an utterly pointless comment, Dusk.
Your response sure stands as a paragon for me to follow in the future!
__________________
Rising_Dusk is offline  
Old 02-07-2009, 12:39 AM   #11
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

Quote:
Originally Posted by Rising_Dusk
You've never made a map,
Never released a map. There's a difference between having never made something, and having never made something that lives up to my unreasonably high expectations.
Quote:
Originally Posted by Rising_Dusk
so I don't actually expect you to understand.
The word "abrasive" has been used to describe your personality before. I prefer the term "cheese grater".

Quote:
Originally Posted by Rising_Dusk
Overflowing arrays by subtracting 0x100000 to get a usable value is very possible if you're not careful.
Doing it the first time on a lightning is far different then doing it with any normally allocated handle type, which I've never seen below 0x100000, barring 0x0, which is a test you should always do. (Java tends to throw NullPointerException 's when you don't, as an example.)

Quote:
Originally Posted by Rising_Dusk
Or maybe you'd rather I just admit that I "completely and utterly fail at coding."
Not really, no.

Quote:
Originally Posted by Rising_Dusk
Your response sure stands as a paragon for me to follow in the future!
I can't think of anything more abrasive than a cheese grater. If I do, be assured that it will come up next time we argue.
__________________
Useful Links:
My Resources:
Good Resources:
Search
Tutorials
Ability Guide

UnitMaxState
BonusMod

AutoIndex
ARGB
TimerUtils

Earth-Fury is offline  
Old 02-07-2009, 12:47 AM   #12
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

null is 0x100000.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline  
Old 02-07-2009, 03:18 AM   #13
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 Earth-Fury
The word "abrasive" has been used to describe your personality before. I prefer the term "cheese grater".
I like cheese. You're just a big silly with a big mouth is all. I don't have a cutesy name for you, but I'll try to think of one for the next time you try to sound smart. Enjoi! :)
__________________
Rising_Dusk is offline  
Old 02-07-2009, 05:15 AM   #14
Litany
Sesquipedalia Mentula
 
Litany's Avatar
 
Join Date: Jul 2003
Posts: 239

Submissions (4)

Litany is a jewel in the rough (219)Litany is a jewel in the rough (219)Litany is a jewel in the rough (219)Litany is a jewel in the rough (219)

Default

Quote:
Originally Posted by Earth-Fury
The word "abrasive" has been used to describe your personality before. I prefer the term "cheese grater".
I prefer the term "Cassielesque."
Litany is offline  
Old 02-07-2009, 02:26 PM   #15
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

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

Hulk Smash this utterly off-topic thread....

Dusk = comes across mean more often then he intends to
Cassiel = down right maniacal
Fury = hopelessly argumentative

end story
__________________
emjlr3 is offline  
Closed Thread


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 06:19 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