Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] So to get like the first 8?

[DiscordArchive] So to get like the first 8?

[DiscordArchive] So to get like the first 8?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
06-03-2018, 09:01 PM
#1
Archived author: Kavligula • Posted: 2018-06-03T21:01:15.337000+00:00
Original source

So to get like the first 8?
rektbyfaith
06-03-2018, 09:01 PM #1

Archived author: Kavligula • Posted: 2018-06-03T21:01:15.337000+00:00
Original source

So to get like the first 8?

rektbyfaith
Administrator
0
06-03-2018, 09:01 PM
#2
Archived author: Skarn • Posted: 2018-06-03T21:01:15.740000+00:00
Original source

for doing that reading with that example
rektbyfaith
06-03-2018, 09:01 PM #2

Archived author: Skarn • Posted: 2018-06-03T21:01:15.740000+00:00
Original source

for doing that reading with that example

rektbyfaith
Administrator
0
06-03-2018, 09:01 PM
#3
Archived author: Skarn • Posted: 2018-06-03T21:01:27.174000+00:00
Original source

to get first 8, then 7 and then one
rektbyfaith
06-03-2018, 09:01 PM #3

Archived author: Skarn • Posted: 2018-06-03T21:01:27.174000+00:00
Original source

to get first 8, then 7 and then one

rektbyfaith
Administrator
0
06-03-2018, 09:01 PM
#4
Archived author: Kavligula • Posted: 2018-06-03T21:01:32.301000+00:00
Original source

Okay
rektbyfaith
06-03-2018, 09:01 PM #4

Archived author: Kavligula • Posted: 2018-06-03T21:01:32.301000+00:00
Original source

Okay

rektbyfaith
Administrator
0
06-03-2018, 09:01 PM
#5
Archived author: Kavligula • Posted: 2018-06-03T21:01:37.261000+00:00
Original source

I *think* this is how it would go
rektbyfaith
06-03-2018, 09:01 PM #5

Archived author: Kavligula • Posted: 2018-06-03T21:01:37.261000+00:00
Original source

I *think* this is how it would go

rektbyfaith
Administrator
0
06-03-2018, 09:04 PM
#6
Archived author: Kavligula • Posted: 2018-06-03T21:04:45.442000+00:00
Original source

```
16_bit_value // this is the value you're actually going to get the info from
111111110000000 // this is the mask
new_value = 16_bit_value & 1111111100000000 // This will just return the first 8 bits (I think)
other_value = 16_bit_value & (1111111100000000 >> 7) // This *should* get you the 7 bits
final_value = 16_bit_value & 0000000000000001 // This'll hopefully get you the last bit
```
rektbyfaith
06-03-2018, 09:04 PM #6

Archived author: Kavligula • Posted: 2018-06-03T21:04:45.442000+00:00
Original source

```
16_bit_value // this is the value you're actually going to get the info from
111111110000000 // this is the mask
new_value = 16_bit_value & 1111111100000000 // This will just return the first 8 bits (I think)
other_value = 16_bit_value & (1111111100000000 >> 7) // This *should* get you the 7 bits
final_value = 16_bit_value & 0000000000000001 // This'll hopefully get you the last bit
```

rektbyfaith
Administrator
0
06-03-2018, 09:04 PM
#7
Archived author: Kavligula • Posted: 2018-06-03T21:04:48.906000+00:00
Original source

I think there's a better way to do it
rektbyfaith
06-03-2018, 09:04 PM #7

Archived author: Kavligula • Posted: 2018-06-03T21:04:48.906000+00:00
Original source

I think there's a better way to do it

rektbyfaith
Administrator
0
06-03-2018, 09:05 PM
#8
Archived author: Kavligula • Posted: 2018-06-03T21:05:00.791000+00:00
Original source

But I'd need time and be on an actual computer I use for development to get you the proper answer
rektbyfaith
06-03-2018, 09:05 PM #8

Archived author: Kavligula • Posted: 2018-06-03T21:05:00.791000+00:00
Original source

But I'd need time and be on an actual computer I use for development to get you the proper answer

rektbyfaith
Administrator
0
06-03-2018, 09:05 PM
#9
Archived author: Kavligula • Posted: 2018-06-03T21:05:16.970000+00:00
Original source

Wait even then that'd require casting
rektbyfaith
06-03-2018, 09:05 PM #9

Archived author: Kavligula • Posted: 2018-06-03T21:05:16.970000+00:00
Original source

Wait even then that'd require casting

rektbyfaith
Administrator
0
06-03-2018, 09:05 PM
#10
Archived author: Kavligula • Posted: 2018-06-03T21:05:22.167000+00:00
Original source

God damn it Skarn why do you have to use python
rektbyfaith
06-03-2018, 09:05 PM #10

Archived author: Kavligula • Posted: 2018-06-03T21:05:22.167000+00:00
Original source

God damn it Skarn why do you have to use python

Pages (4): 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)