The Official Status Thread
-
@pie_flavor said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Status: Trying to determine the easiest way to represent an up-to-3 dimension set in an integer...
Why's it got to be a single integer?
Because the level instance ID is a single integer.
-
@tsaukpaetra said in The Official Status Thread:
@pie_flavor said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Status: Trying to determine the easiest way to represent an up-to-3 dimension set in an integer...
Why's it got to be a single integer?
Because the level instance ID is a single integer.
Why does it need to be stored in the level instance ID and not in some lookup table?
-
@ben_lubar said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
@pie_flavor said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Status: Trying to determine the easiest way to represent an up-to-3 dimension set in an integer...
Why's it got to be a single integer?
Because the level instance ID is a single integer.
Why does it need to be stored in the level instance ID and not in some lookup table?
What would it be looking up? How would it be doing so? This data (currently) needs to be available basically immediately during spawn of the level (as it constructs everything), and adjusting it to be delayed for such information is more effort than this pet project can allow.
The original premise was "Hey, wouldn't it be great to rent out instances to users that they can customize?" and I was like, "Sure, we can assign instance IDs to users as a player attribute (or something), but how are they going to get there?" Conversation ensued and the vision of a hotel was created that would basically have assigned hallways with doors to the rooms and elevators etc.
Still very much in the sketch phase and I'm working on making a PoC.
-
@tsaukpaetra ... and you're storing coordinates in that?
-
@tsaukpaetra will only one person be allowed to use each size of room at a time? That seems like a weird decision.
-
@ben_lubar said in The Official Status Thread:
@tsaukpaetra will only one person be allowed to use each size of room at a time? That seems like a weird decision.
No no, I'm repurposing that field for this demo.
For example of this, take the following scenario:
- There will be a "hotel_lobby" level where everyone starts. This level knows that it supports a box 10 floors high and two wide (1 deep), representing Left Wing and Right wing.
- The elevator will select your "hotel_floor" level based on whether you entered the left or right elevator, and which button you pressed.
- Once the instance of the floor is prepared, whoever is in the elevator will summarily get transferred to that instance according to the calculated instance ID.
- Once on the hotel_floor, that floor's elevator knows it's part of a 2x1x10 layout and which one it is based on the instance ID (for display etc), and can use the instance ID to determine which the doors in the hallways belong to who (if it's a private instance, for example) and how to spawn stuff in the associated room.
- If the player knocks on their door, they're immediately taken to their private instance (if it is such) or merely teleported to the associated room if it's not. Other players can knock and a message will be sent to their instance if they want to let them in or not.
The current system of instance IDs is highly fluid in the public areas, it's mostly to keep track and make sure we know where people are for mod places, but when we roll out private instances (eventually) it will be more static depending on the level type they would have rented or whatever, and the in-between areas will need to be consistent and small to keep from people getting in a situation where five people enter the elevator for floor 3 (for example) but only 3 people make it because there were two "floor 3"s available and the level balancer split people up.
-
Status: Just bought $2.6k worth of stuff from NewEgg, Amazon, and... OutletPC?
Surprisingly looks like everything went through, except the $40 PSU from NewEgg because apparently that was the "OMG possible fraud!" detection.I'm likely going to alter next month's auto-pay from the normal "Pay the credit card in full" setting....
-
@tsaukpaetra said in The Official Status Thread:
As it is, plugging one of the affected drives via USB 2.0 seems to have sufficiently slowed down the process enough that it's gotten about halfway through (after restarting several times due to said drives randomly locking up)
Finished. That means that I should be able to shove off the last WD Gold drive from the array tommorrow, reboot the whole things (because due to shenanigans half of the system is off kilter) and actually do something productive!
Erm, that's not to say I don't usually do productive things, just that constantly visiting the closet to replug drives isn't all that productive...
-
@pie_flavor said in The Official Status Thread:
take a picture with license plate from a couple angles and send to police.
Fully Illegal
-
@luhmann said in The Official Status Thread:
@pie_flavor said in The Official Status Thread:
take a picture with license plate from a couple angles and send to police.
Fully Illegal
Depends on jurisdiction - same as dashcams. In some jurisdictions having the camera is illegal, in some making the photo/video is, in some only publishing is. Photo or video may be different in some jurisdictions.
Sending to the police probably isn't publishing in most jurisdictions.
-
@pleegwat and license plates are not (by definition) private information, especially when parked on a public roadway.
-
@tsaukpaetra to explain the differently sized dimensions better, since it sounds like your height dimension will typically be smaller, you could for example give that dimension 7 bits and the two horizontal dimensions 12 bits each. The result would be that the maximum size would be 4095x4095x127. Packing and unpacking would go as follows (c is the smaller dimension):
packed = a * (4096*128) + b * (128) + c
a = floor(packed / (4096*128))
b = floor(packed / 128) % 4096
c = packed % 128Basically the pattern to the formula is that you extract a field by first dividing by the product of the sizes of all smaller fields, to shift them past the documents point (there's the 4096*128), and take the integer portion of that (to truncate off the smaller fields). You then take that integer modulo the field's size (to truncate off the higher fields). For the largest field you can skip the modulo since there are no larger fields to remove, and for the lowest field there is nothing to divide by so you skip that. And if your field sizes are exact powers of two you can use bitwise operations throughout the formulas instead of arithmetic operations. (If the field sizes are exact powers of 10, a certain number of base-10 digits are dedicated to storing each field and it's similarly easy to extract them, and the same would go for any other base.)
Again, you probably don't need to tweak the dimensions to give even more space to certain ones, but now you know how anyway.
-
@benjamin-hall said in The Official Status Thread:
private information
neither is my house number or street name but it's all identifiable information
-
@benjamin-hall said in The Official Status Thread:
@pleegwat and license plates are not (by definition) private information, especially when parked on a public roadway.
In NL, dashcams are legal but releasing footage of identifyable persons (EG by face, or by license plate) is not allowed.
In other countries, like Luxembourg or Austria, recording with a dash cam at all is a privacy violation.
My usual Dutch-language reference for this is https://www.anwb.nl/juridisch-advies/op-vakantie/met-de-auto-op-reis/andere-verkeersregels/dashcam-verboden
-
@luhmann the way it should work is that filming something that's plainly visible from ordinary pedestrian angles, in a public place where there's no expectation of privacy, should be legal by default, pretty much always. Using the recordings may be illegal in some cases, depending on what you're doing with the recordings and what they show... however, simply providing them to the police would never be illegal. Illegal uses would be such as using images of them commercially without first obtaining their consent for their image to be used in that way, or harassing them (there, it's not using the image that's illegal, as much as it's the harassing that's done with it that is illegal; also, the line for harassment is typically more than just "they took a picture of me and showed it to someone").
-
@luhmann @PleegWat That makes me . At least in the US, a license plate only identifies a vehicle and exists for the express purpose of being a publicly-visible identifier. Multiple court cases have said that you have no expectation of privacy in your license plate. The connection through the DMV database to an individual is private, but the license plate itself is totally public information. As long as they're taking it from a place they have the right to be (their own driveway, a public street), criminalizing taking pictures of that is totally
-
@benjamin-hall said in The Official Status Thread:
a license plate only identifies a vehicle
Unless you have access to that state's vehicle registration database, where you can look up who that license plate is registered to.
-
@e4tmyl33t said in The Official Status Thread:
@benjamin-hall said in The Official Status Thread:
a license plate only identifies a vehicle
Unless you have access to that state's vehicle registration database, where you can look up who that license plate is registered to.
Hence the further part where I said exactly that. But misuse of that database is a separate offense.
-
@anotherusername This may be a bit glass bottle, because while it suffices for this pet project, in the general case he'll also have to avoid colliding with "public" instance IDs as well as IDs originating from other superstructures. I was writing an effortpost on how to try to mitigate that (use a traversal rather than absolute coordinates/dimensions to free up bits for a "superstructure ID"), but I think no matter how it's sliced it's going to have to add new fields.
-
@benjamin-hall I missed that bit. Apologies.
-
@twelvebaud said in The Official Status Thread:
no matter how it's sliced it's going to have to add new fields.
Yes, likely, but until we have a good idea how to structure this, I just need something to connect a dream to something slightly less ephemeral.
-
Status:
-
@gąska said in The Official Status Thread:
Status:
I'm sorry that I appear to be the only one liking you. I'll refrain for a while...
-
@gąska stop posting so much then
-
Status: Stop squiggling the language keywords, it's really annoying
-
@cursorkeys Stop writing your code in Word then. Or at least add var and endregion to your dictionary
-
@jaloopa said in The Official Status Thread:
@cursorkeys Stop writing your code in Word then. Or at least add var and endregion to your dictionary
It is VS but I think the issue is ReSharper. Was working fine this morning but seems to have forgotten its own dictionary or something.
-
@cursorkeys Stop using regions.
-
Status: We picked up this new project. I've mentioned it a couple times. I've mentioned that it's messy, but works.
Went and checked, and they actually have unit tests set up on their CI build!
But apparently devs don't write their own tests.
Well, I don't care. I'm working on a task with someone on my team, and I will test that the changes we make work. In fact I did so, and it was easy. But I essentially wrote automated tests that hit our live app's API endpoints to make sure the new values are returned by specific GETs, which is not something that should be run at any time except after a deploy.
I don't know where to put them, because if I put them with the code, I'd have to make sure the build ignores them. But it's where they belong...
tl:dr: Annoyed.
-
Status: have you ever felt that you have your whole life figured out for the next three years, then suddenly get hit with some event where you suddenly have to choose between two options, either of which will change your entire future but you don't know in what way, and you have to act fast? That's exactly what I'm feeling right now. I wish I haven't quit smoking, because I'd really use a cig.
-
Do American gas stations sell single cigars/cigarillos? If not, how hard is it to find a shop that does?
-
Depends on where you are really, but most gas stations do and it should be trivial to find a cigar shop in most locales.
-
@gąska If you can't find them at a gas station, smoke shops are still pretty common all over the US.
-
@tsaukpaetra said in The Official Status Thread:
@scholrlea said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Status: Fucking Unreal.
Maybe you should switch to
UnityCry Engine?Hahahaha yeah, after this much effort?
Fuck me running, I didn't notice that you are actually working in Unreal Engine, I was making a joke about what I thought was a mis-capitalization.
-
@scholrlea said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
@scholrlea said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Status: Fucking Unreal.
Maybe you should switch to
UnityCry Engine?Hahahaha yeah, after this much effort?
Fuck me running, I didn't notice that you are actually working in Unreal Engine, I was making a joke about what I thought was a mis-capitalization.
It's OK, sometimes I like to pretend I'm not working in UE4 too.
-
Status: Turns out that the controllers for the Nintendo Switch pair with a PC just fine. Bonus: The left and the right set each pair as an individual controller so it's easy as pie to have several people controlling the Ghosts for my PacMan game, even if they're scattered all over the 400 m² room.
-
@rhywden said in The Official Status Thread:
the controllers for the Nintendo Switch pair with a PC just fine
Yeah, that's one thing Nintendo got right this time right out the gate. MS eventually came around with their XBone controllers with an update, but golly, how nice is it to just plug and play?
-
@tsaukpaetra said in The Official Status Thread:
MS eventually came around with their XBone controllers with an update
If you mean wireless maybe. But the wired controllers (hardwired only on 360, microUSB on xbone) have worked on PC since day 1.
-
@gąska said in The Official Status Thread:
Status:
You think that's bad?
(And I didn't even notice them until I clicked "see all notifications". My userscript is working.)
-
@anotherusername likes topic doesn't count.
-
@rhywden Reason #2 to get bluetooth support on my desktop.
-
@rhywden said in The Official Status Thread:
Turns out that the controllers for the Nintendo Switch pair with a PC just fine.
Nintendo crowed about that for months, so it'd be more surprising if they didn't work.
Then again, it is Nintendo.
-
@tsaukpaetra said in The Official Status Thread:
MS eventually came around with their XBone controllers with an update, but golly, how nice is it to just plug and play?
Wired Xbox controllers worked the instant the Xbox 360 came out. (The original Xbox didn't use a traditional USB plug.) Ditto that for Xbox One controllers.
What you're talking about is Bluetooth support for the controllers, I imagine. Xbox 360 wireless controllers didn't use Bluetooth, and I think it took some time for Windows to properly support Bluetooth Xbox One controllers. (But since Xbox One wireless controllers become wired controllers by just plugging in a micro-USB cable, it wasn't that big a deal.)
-
Status: dry for 3 weeks so far. Sucks when bad stuff happens
-
@gąska said in The Official Status Thread:
@anotherusername likes topic doesn't count.
Neither do @Tsaukpaetra's likes.
-
Pros of being home alone: when you're about to sit on the toilet and realize you forgot the phone, you can go get it from your room and back to business without pulling pants up.
-
@bb36e said in The Official Status Thread:
Status: dry for 3 weeks so far. Sucks when bad stuff happens
Grats! :D
-
@anotherusername said in The Official Status Thread:
@gąska said in The Official Status Thread:
@anotherusername likes topic doesn't count.
Neither do @Tsaukpaetra's likes.
My likes will conquer all!
-
@tsaukpaetra said in The Official Status Thread:
Just bought $2.6k worth of stuff from NewEgg, Amazon, and... OutletPC?
Status: pleasantly surprised. Nearly everything got me shipping responses that seem to indicate I should have much of this stuff on my birthday!
I'm not used to that kind of speed...
-
Status: My tests work, and have proved that the thing we're tasked with works. However, they can't really be in the same solution as the rest of the code, because the rest of the code has environment settings that are important, and these tests should only be run after a deploy.
I just want them to not only be on my machine.
But we'd have to mess with the CI build to get it to ignore the test solution. And we don't have access :/