« first day (1855 days earlier)      last day (3169 days later) » 

4:43 PM
@Almo Did u sort that GUI problem?
 
it looks like it, for vertical layouts anyway
it fucks up horizontal layouts
because I have to pick canvas scale to width or height
it's possible that I can get away with using just vertical layouts. There aren't many horizontal layouts, and they're for sprites
so I may be able to size those myself
 
Does it look somewhat like this?
 
yeah
my problem is that the horizontal rows in this demo are getting squished on iPhone 5.
since they're just square sprites, the math to set them up manually in a script isn't hard
so I'm going to try querying the aspectfitter to get the current size, then lay out my boxes using that
 
Did you set any spacing in the vertical layout group?
 
the youtube vid tehre is from a different engine
 
4:54 PM
Ah cool
 
in unity I just stuck one row in, and it failed to scale properly horizontally
the vid was done with SpriteBuilder
But that's iOS only, and my business model requires a web build
so I'm using unity :(
 
Is the scale of the childs set to 1? Any spacing between tiles in Unity?
Oh well
 
no spacing set
 
Do you know how to set up Unity Remote for android? Because I connected the stuff and it doesn't work :/
 
it looks fine on iphone 4, which has target res
iphone 5 landscape looks fine, because it's wide enough
 
4:55 PM
Strange
 
iphone 5 tall however, is too narrow, and the squares get pushed together
I have not used unity remote
 
How do u test for android / Iphone then?
 
I don't test android, because I don't have one
I build the full iOS build, and drop it on the phone
 
Ah
Oh looks like I need the android SDK
@Chris Any inputs?
 
Pip
I have so many projects that I want to work on, all of the time
A ton of the current list are electronics... and electronics are expensive
I also have to write some emails about internships for next summer.... :/
 
5:15 PM
P4Connect plugin for unity is really crappy :(
Texture2D tex = Resources.Load<Texture2D>("ButtonCircle");
this is returning null for my image
ButtonCircle.png is in Resources/Images/GameObjects
Resources.Load is supposed to be pretty automatic
 
Needs absolute path from Resources
 
I must be doing something silly :(
not what the docs say
 
From my experience
 
are they wrong again?
 
Probably
 
5:23 PM
What... the... hell, with this code: console.log( colorI, (colorI+8)/8, ( (colorI+8)/8 )|0 );
I am getting the following:
0 1 1
1 2.25 2
2 3.5 3
3 4.75 4
4 6 6
5 7.25 7
 
oh wait
My asset isn't in Resources
it's deeper
now unity's crashing :(
 
GODDAMNIT JAVASCRIPT
THAT IS A ARRAY INDEX NOT A STRING
I added "colorI+8" to the logging
08, 18, 28, 38, 48, 58...
 
colorI is a string?
 
It's from for ( var colorI in colors )
Apparently it's a string
 
More video game stuff from Quinns!
 
5:27 PM
Texture2D tex = Resources.Load<Texture2D>("Images/GameObjects/ButtonCircle");
still null
@Hjorthenify ok I was being a dork. fixed.
 
@Almo Wait no path is required? :o
 
path, but not from Assets
Texture2D tex = Resources.Load<Texture2D>("Images/GameObjects/GridButtons/ButtonCircle");
forgot there was another layer in there
 
Ahh
I hate how a button needs a child text objects instead of just a text component -.-
 
heheh yeah
 
Seems like such a silly design decision
@Almo How would I handle different menues? Different scenes or?
 
5:38 PM
dpeends
I want my scrolling background behind all menus
So I'm parenting each menu to a game object, and will make only the one currently active visible
but scene per menu can work well, too
I think that's less work, ultimately, since you don't really have to manage what's visible or not; just load the next scene
 
Yeah
And then just have one gameobject which stores the settings
Or.. I could just write to a file
All I need is a list of names
 
really good. chilled, but sharp.
:(
can't get the sprite sizes locations right
 
5:56 PM
:(
 
Aaaaaaaaaaaah. I had a brilliant idea! Use smileys to convey the moods of guards and what not
It's not working that well =[
 
Auto generated?
 
The smileys are just unicode smileys
But yeah, everything on that sheet is generated on load
(Because the sheet itself is already 10 times the maximum size)
 
Is that allowed? :P
 
Are you allowed to use text? I hope so =p
Are you allowed to procedurally generate images: You're encouraged to
Hmm I could just use "◕︵◕"
 
6:09 PM
Do the table flip thing too!
 
That won't be visible probably, too small
But I've got X_X for stunned and zzzZZ for sleeping
 
Nice :P
 
The 2 squares were emoticons for really happy, but I don't need those
 
unity crashing whenever i try to debug
I'm guessing it's the P4 plugin
 
i've been working on my custom power supply a lot... it should be able to do small welds without the computer rebooting
i have a crazy idea to sell it to overclockers as a way over engineered supply that can handle serious abuse
i was thinking of maybe jump starting a car while gaming, or dropping a crowbar across the +12v to show that it survives and doesn't kill the pc
but I need to get it smaller, it doesn't fit into an ATX psu box, it's more like 3x that size
 
Pip
6:45 PM
smaller is usually better
only in terms of electronics
 
I have a main menu! And it is functional :D
 
Pip
nice!
I should be doing homework... but I'm not
I have until.. Tuesday
to do a ton
meh
 
Let's see, the new thought bubbles and the new menu system is a total of 300 new kb
Uuh correction, 700kb apparently =[
(Forgot to add in the new html files)
Hmm or it hadn't updated properly
Oooor I messed up again, yeah that those extra bytes are the new html files
 
unity: I create an empty gameobject in the editor, it has a RectTransform. I create one in code, it doesn't.
what's goin on with that
 
The editor has a bunch of "You're probably going to need this" while the code doesn't make such assumptions?
 
6:57 PM
probably
all I'm trying to do is put an object anchored to the corner, then attach 5 square sprites to it so they are right next to each other, and take up the full width of the screen
changing resolutions from iP4 to iP5 fucks it up
been about 3 hours on doing this part now
 
Joe
7:32 PM
@Eray you got that sorted out?
sorry it was just getting a bit off topic / conversational for a typical Q&A
more than happy to chat here, but id rather not on the post
i guess he does
 
Hey :)
Sorry for delay
I fixed it with your last edit
Not it's repeating until filling the quad
Now I have to calculate tiling values because I just type 10 to test it :)
 
Joe
exactly, also if you start moving the camera around you could modify the offset
and give it the appearance of motion right?
i dont know if your game is going to do that, but its a possibility
 
No it will be static
 
Joe
and much more performant than having 700 thousand game objects :D
 
Think like sims
 
Joe
7:39 PM
got it
 
there will be 50x50 tiles and quad scale is 100x50
opps no no nevermind the last message :D
calculation mistake
Joe i'm confused :D can you help?
quad will be 100x50
(in unity units)
 
I've uploaded a new version of the WIP game: 83.87.185.61
 
tile size is 32x32
 
Still todo: Actual gameplay
 
pixels
 
Joe
7:44 PM
@Eray somewhere i need to find where the image import lets you set pixels per unit
and i dont have unity on this machine right now
 
@Joe , texture type not allowing to changing pixels per unit. But if I set it as sprite, i can change that setting
 
Joe
that might be it, set that to 32
 
Pip
@KevinvanderVelden what byte count you at?
 
Joe
and now you can scale your quad, and scale your tiling appropriately
 
@Pip 9614 with full tutorial, about 8k without
 
Pip
7:46 PM
nice
 
@Joe I'll just play with tiling values until it looks nice :)
 
(Seriously, 4176 bytes uncompressed for the tutorial text, there's also a bunch for updating the images)
 
Pip
that's pretty crazy
 
One last question @Joe , as we said, we can change pixels per unit value for sprites. But not possible to change in texture type. So it's equals to 32 as default?
 
Joe
im not sure on that one actually man let me look into it
my bad so that shouldnt have an effect here if i get this
 
7:53 PM
@Pip btw, what do you think of the background of the menu?
 
Joe
if you get the math right on the tiling and the quad size... its going to automatically scale to 1:1
 
Not bad for a 64x64 sprite right? :D
 
Pip
:D
yeah it looks pretty good
subtle though
 
Joe
@KevinvanderVelden I was going to say... all that text... could be FEATURES!
 
@Joe thank you for you all assist :)
 
7:54 PM
It's actually the same as the walls, except for the blue stripe
 
Joe
@Eray no problem good luck man!
 
@Joe they just might be. I can always replace it with a link to the full documentation
 
Joe
identify every word used more than once... set a js variable for the long ones var z = "sassifrass";
then assemble a string in memory :D var text = Z + Z + Z;
 
A quick list of the words, sorted by occurrence
I doubt your proposal will save any bytes, especially considering I'm already zipping the thing =p
 
I could be the drummer for the White Stripes.
His ex-wife just isn't a very good drummer.
first thing I notice when I hear Jack White's solo stuff: "Woa... good drummer"
 
8:01 PM
@Joe what might potentially work is, since there are only 73 unique characters used, I could stuff 2 characters in a byte
 
if you like optimizing so much you should play TIS-100
 
Joe
maybe "word" should be replaced with "sequence"
lol nah im just talking BS haha
 
I'm really stumped on how to make some of them faster or with fewer instructions
 
Joe
i want to buy that though
 
@Almo Someone has set me a challenge, to make a game in under 13k bytes. I will exploit every byte I can
 
Joe
8:02 PM
but since HOTS i have 1 too many games already
 
@KevinvanderVelden yeah do it man :)
but TIS is a good filler. work on it 10 15 min at a time
 
Joe
GIT on WINDOWS WTF!? windows has a maximum file name length
which stops me from pulling a repository with git
that has directories nested too deep
 
Aah fun times
 
Joe
this is insane
 
So I have my CppCon topic, the dangers of C-style casts
3
 
8:07 PM
Not a bad topic I'd say
 
Pip
@OMGtechy you presenting?
 
the peeps running cppcon seem to like it so that's good enough for me aha
@Pip yeah
 
Pip
@Joe yes. this is a true pain in the ass
@OMGtechy nice!
 
ikr :D
 
@OMGtechy Go Techy!
 
8:09 PM
Presenting at the largest C++ conference in the world alongside some of the best programmers in the world, no pressure right?
 
yeah you'll be fine. They can't be worse than us :P
 
It'll all be dwarfed by one of the other talks we (my team at work) have, watch this space ;D
 
Joe
thats what i call learning experience, i guarantee if you care the appropriate amount about this... you are going to know the crap out of what you are speaking about
best way to learn something... is to be forced to teach it haha
 
which is exactly why I have my blog aha
 
Pip
heh
 
8:12 PM
@OMGtechy Got a blog?
 
Pip
I still need to make one of those.... I was promised a domain name by someone (my father) but that never happened... I want to set up a DO droplet to host a web server among other things
 
@Hjorthenify joshuagerrard.info
 
Pip
Basically a blog, my reprap thing so I can start printing from anywhere
 
I'm working on a blog as well :o
 
Bookmarked :)
 
Pip
8:12 PM
a ruby on rails api server thing
some other stuff
 
@Hjorthenify :D
you can sub too, although I admit it's non-obvious how ot
 
RSS?
 
Pip
What happened to your streak, Techy?
 
ooo the subscriber plugin is broken, oops
 
Pip
Every month until.... july
then nothing
Come on, I expect more
 
8:14 PM
@Pip working on some top secret stuff at work :P
which is going to be presented at CppCon and will blow your mind
 
Pip
Doesn't mean you shouldn't come up with posts!
 
aha well I have a backlog of topics to write about, maybe I should do one today :P
 
Pip
:D
 
in fact, I could do what I'm going to talk about at CppCon as a warm up
 
Pip
Sounds good
Meanwhile, I need to either do homework (that's what I SHOULD be doing.....) or work on this RasPi project (which..... is not important until I get my 3d printer....) or..... yeah
SO MANY PROJECTS
 
8:16 PM
you'll get used to it :P
it only gets worse
 
Joe
homework it up bruh
 
Pip
Alright, music and homework it is
 
Joe
id trade work work for home work any day of the week :D
 
Pip
:D
I've had so many project ideas this week..... nothing that I could do without some hardware though :/
 
@Omgtechy will your presentation be available anywhere?
 
8:20 PM
@Hjorthenify youtube on the CppCon channel
 
Cool
 
now I've got to tell them how long it'll be, the choices are 5 minutes or 15 minutes
(they have these things called lightning talks)
I've gotta work out how long I need, because short might make it "short and sweet" packed full of content, whilst 15 minutes would give me room to breathe
 
Pip
God damnit I'm buying so much stuff from Adafruit
they have such good documentation it's hard not to pay a few extra bucks for it
 
Joe
@OMGtechy if i learned anything from speaking... build 5 minutes more than you think your going to need... option extra cool stuff
and "test" your talk with a live audience if you can
 
Yeah I've done longer talks before, I actually find shorter ones harder
 
Joe
8:23 PM
realtime full scale if you have any gaps they may become obvious
 
I have a c developer meeting that I can test it at which is nice
 
Joe
perfect
 
Pip
Now why the fuck did I need to build a RasPi access point?
Can you think of any uses for that? :/
 
just cus
and ... as an access point? :P
 
Pip
Well duh... I have one 5 feet from me though :/
Why did I think this was an idea worth spending time on?
 
8:25 PM
because!
 
Pip
haha nice
oh god that one uses iptables
not touching
 
every such thing uses iptables because that's the bloody firewall =p
 
Pip
hostapd is a nice daemon that will do a similar thing for me instead
probably does iptables things behind-the-scenes
but I'm not touching it personally
I've fucked it up bad before
 
It uses iptables to redirect traffic on port 80 to the squid server
That's what allows you to redirect images to cats
 
Pip
8:31 PM
yep
 
Also, iptables doesn't persist on boot
 
Pip
oh really.
I spent like an hour and a half reimaging my pi after that
 
So what you do before changing the rules is say open a second shell with sudo screen and go "sleep 5m; restart"
@Pip oh, oops =p
 
Pip
yeah :/
 
screen <3
 
8:34 PM
What you usually do is make an init script that sets the commands when you're done testing them
 
Yeah that's cool
Anyway I am off to bed
\o
 
Pip
Night
 
NameTagLabelEditor.transform.FindChild("Text").GetComponent<UnityEngine.UI.Text>‌​().text = transform.FindChild("Text").GetComponent<UnityEngine.UI.Text>().text;
 
I really want to get this talk into 5 minutes, I jsut need to reassure myself that I can do that
 
8:47 PM
Its so silly that you cant access the text of the button from its gameobject..
 
@Hjorthenify well, you don't that it's a button if it's a gameobject
 
Pip
Agreed
However
that's horrible code
this.FindChildOfType<UnityEngine.UI.Text>().text = .....
IIRC
 
@Pip I'm prototyping, leave me alone! :P
@OMGtechy True. But then again they could just inherit from button or w/e when adding a script to a button
@Pip Also that would break some of the code because input fields has two childs with a text component
 
@Chris thx Chris! :D lol i was doing that before with Unity but got side tracked with js13k :P
@AidanMueller Lol it was pigart that inspired me to do low poly, I loved how he made all those worlds with low poly yet complex models :D
 
Just wrote an example that causes stack corruption using c style casts that you can't get with C++ casts unless you're a moron
I shall use this in my talk!
 
8:58 PM
Code or it didn't happen!
 
Pip
@Hjorthenify GetChildrenOfType<typename>()?
@Hjorthenify also... nooo.... it would return the first one it finds
 
Yeah since two children have the text component that wont work
First one is the placeholder, which isn't the one I want
Code doesn't work though -.- the inputfield is blank when added to the scene. I can modify the placeholder without problems though.
 
YOLO, gunna tell them I only need 5 minutes for my talk
I've managed to fit in 3 examples of where c style casts RuinEverything™ so I think that's enough to hammer the point home
 
Ooooh... Its not a text component, but an input field and yet it gives me a text component! Ugghh...
 
Pip
lol
 
9:04 PM
@Hjorthenify almost as bad as a c style cast!
 
Finally something which I can actually access the text from by doing .text D:
@OMGtechy void * str = (void*)arr;
 
die.
 
>:D
 
@MickLH I'm pretty sure you still don't get what I was talking about... but it seriously doesn't matter.
 
 
1 hour later…
10:29 PM
echo "The last message was posted 1 hour ago." echo... echo.... echo......
 
Pip
10:41 PM
lol
 
@Hjorthenify What's up? what's happening?
 
late in TIS-100: read values from In.A and In.B. divide A by B. write quotient to Out.Q and remainder to out.R
There's a sort, too
never wrote a sort in ASM before...
 
11:17 PM
@Ali.S I'll cut straight to the ad hominem, you live where you live and have the skill level you do
 
Don't we all!?!?
 
11:37 PM
I love this dogecoin faucet
All i have to do is leave it as a tab open and I get dogecoins :D
 
11:57 PM
@Ali.S I'm sorry I can't just let you be wrong and happy, but this is barely even the first step to solving the problem.
However confident you are about this topic, use that value to adjust yourself...
 

« first day (1855 days earlier)      last day (3169 days later) »