« first day (1639 days earlier)      last day (3371 days later) » 

Pip
3:00 PM
huh
idk, sorry
 
:/
Ohh fixed it!
 
@Jon HE COMES
 
Jon
he came
 
xD
 
NOOOOO
4428
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

2
 
Jon
3:08 PM
hehe
 
Rendered meshes 50x50
 
Jon
Ahhhh its the purple monster !
 
with a chunk radius of 3
so 9 chunks
 
Jon
its gonna chunk us!!!
back up by 4
 
user92578
lol
 
3:09 PM
and fps is still 60
 
Jon
why don't you uncap the fps and see whats up
 
or just find out how many ms that function takes
 
but.
if I move the camera frame rate drops to 19-22
so I've improved by.
 
how does moving camera drop framerate if all you draw is already on the camera
 
about 15 frames
because new chunks are made
 
3:11 PM
ah
 
if the camera moves out of a chunk
now I need to fix this texturing thing
it's fucked
then sizing of chunks I think
and positioning them...
then I have to again look why the frame rate is so shit
Anyways I'm out night!
 
Jon
3:30 PM
anyone write a pinch/zoom camera for unity ?
 
Pip
nope
hm
idk where the next step is now
I have maps rendering, but there's no real functionality
 
Jon
pics
 
Pip
@Lasse lol
@Jon sure
the green tiles are placeholders
I actually quite like the way the tiles don't perfectly match into one contiguous texture, but stand out as individual tiles. That's probably going to change at some point though.... because art is hard.
Any suggestions @Jon?
 
Jon
3:48 PM
what is your goal?
you can easily improve it by applying a bitmask and then texturing it based on its assigned mask value
 
Pip
truetrue
trying to find the design doc I wrote up
Is there a simple way to apply the bitmask? Do you do it during mapgen or after?
 
Jon
during
once your tiles are generated, run another pass to set neighbors
 
Pip
huh, alright
 
Jon
Top/Left/Bottom/Right for a 16 bit mask
256 bit if you also do the corners
16 textures vs 256
 
Pip
yep, I've messed with it before. I remember a pic in here that had a tutorial a while ago
 
Jon
3:53 PM
You can refine the number of textures if you analyze it .. i have some documentation on thise
 
Pip
I have to go look at your site and implement a side-scrolling thing too... I want to add a feature or something tho
basically it's a trading game
you start as the owner of a mine
buy a caravan
trade gems and stuff
then spread out
My design doc didn't get uploaded to google drive, I apologize
I got three achievements in @Chris's Tallowmere already :D
 
 
1 hour later…
Jon
5:33 PM
man who would of thought pinch to zoom would be so hard to pull off well
i got an implementation done but im still not compeltely happy with it
 
Jon
5:46 PM
anyone here do a pinch to zoom implemention in unity beforeÉ
 
Pip
backs (and fronts)
@Jon nope
 
Not in unity (unity wasn't released then I think)
But I think I basically calculated scale/translate/rotate from the points
 
 
1 hour later…
Pip
7:06 PM
Afternoon Hobo
 
Jon
yah, well im trying to do a zoom and pan
with two fingers
 
MLM
@Jon Playing around on google maps on Android. Two fingers pinch to zoom but pan does nothing. You can rotate your fingers around to rotate the map though
 
sup @Pip
 
MLM
1-finger for panning
 
@Jon for zooming. get original distance and then get current distance between touches
For panning. get average distance between original positions and new positions
 
Pip
7:13 PM
@AttackingHobo At robotics chilling. Wrote about 3k LOC today (although a lot was comments....) so taking a break for a bit
 
I just played a game of HotS where the matchmaker had paired us as: 2 supports, 2 assasins and an Abathur vs a regular 2 assasin, 2 warrior, 1 support team. We thought we were fucked, but we somehow won with 30~ kills agains 15~. :D
 
Pip
drinking Mountain Dew to get by blood caffeine back up
@Lokkij nice
 
@Pip woah thats a lot of code
 
Jon
ehhhh
 
Pip
not really, a lot was template and comment
 
7:15 PM
ah ok.
 
Pip
I wrote maybe 1k lines in actuality
 
I tend to write dense code. so for me that would be a lot
 
Pip
yeah, 3k is unfathomable for me in less than a week usually
I spent like 3 hours documenting code. >1.5k lines of freaking comments
sooooo boring
 
@Lokkij hhah aweome
 
@Pip write more self documenting code
 
7:24 PM
i was recently dinged at an interview for my sparse comments
 
Pip
@AttackingHobo it is, but I was told to :/
@SethBattin that sucks
 
@pip player_Health = 0; // This exquisite line of code sets the player's hit-points to zero
 
ah, no big deal. We talked about it at length
 
Pip
Noice
 
the thing is, the code was from a very convention-heavy framework they had no knowledge of whatsoever
they also use svn rather than git, which leads them to lacking line-by-line version control comments
 
Pip
7:34 PM
that sucks :(
 
and also i had a whole other giant documentation document
 
Pip
Git is great
 
documentation document. huh.
must be for the department of redundancy department
 
I heard once, "if you think you need to comment something, first try to refactor so you don't," and that made sense to me, so I hardly ever comment things
if I expected someone else to use my code, I'd probably make some intellisense comments before each class and function
but that's about it
 
Pip
cool
 
7:37 PM
yes, docblocks are a whole other story
 
Pip
I try to do that in personal projects, but for robotics it's C++ so I cannot
 
they help the IDE help me, so i fill those out excessively
 
Pip
I mean, we're using Eclipse with the CDT and a custom plugin, so the docs don't work super well
 
eclipse for C++? D:
 
Pip
(the custom plugin is why we're using Eclipse in the first place)
 
7:38 PM
yeah seriously
ah
 
okay that makes sense. eclipse is supposed to be easy to extend.
probably also why android went with that until just recently
 
Pip
Yeah. The plugin has a few custom compiler tools so that we can easily deploy code to the robot and such.
It's super convenient
 
intelliJ is way better, no doubt
 
Fuck Eclipse.
 
just like all of jetbrains's stuff
 
7:39 PM
I would rather not code than use Eclipse again
 
hahaha
come now
it gets the job done
 
No, it stops me from getting the job done.
 
...i can't say you're wrong about that
 
ehh I'm close to being in Hobo's boat. not sure if it would make me quit coding, but it would make me procrastinate a lot more anyway.
 
and IDE that gets in the way is certainly worse than a text editor
agreed
 
7:41 PM
I had to use it before. every day another issue. Can't tell you how many times it messed up my correct input and ended up with entirely wrong code
 
hi guys! c# question
[System.AttributeUsage(System.AttributeTargets.Class |
                       System.AttributeTargets.Struct |
                       System.AttributeTargets.Field)
]
public class PGFSerializeable : System.Attribute
{
}
i have a custom attribute
and an object with a field that has this attribute
 
idk haven't worked with custom attributes before sorry @Almo
 
public class TestMBObject : MonoBehaviour
{
    [PGFSerializeable]
    public int m_testInt;

}
        FieldInfo[] fieldInfo = typeof(TestMBObject).GetFields();
        for (int i = 0; i < fieldInfo.Length; i++)
        {
            Debug.Log("-----\nPGFSerializable fields for " + fieldInfo[i].Name + ":");
            object[] customAttributes = fieldInfo[i].GetCustomAttributes(false);
            for (int j = 0; j < customAttributes.Length; j++)
            {
                if(customAttributes[j] == PGFSerializeable) // THIS NOT WORK
                     Debug.Log(customAttributes[j]);
I just need to know how to find out if an attribute is a particular one
I could compare with the attribute's .ToString()
 
57
Q: Check if property has attribute

Otávio DécioGiven a property in a class, with attributes - what is the fastest way to determine if it contains a given attribute? For example: [IsNotNullable] [IsPK] [IsIdentity] [SequenceNameAttribute("Id")] public Int32 Id { get { return _Id; } ...

 
but that's going to be slow and this is in a high-performace serializer
 
user4704
7:44 PM
"customAttributes[j] == PGFSerializeable" looks wrong.
 
it's definitely wrong
 
user4704
What's PGFSerializeable?
 
user4704
You want to check the type of the attribute object
 
user4704
customAttributes[i].GetType() == typeof(YourAttribute)
 
@Pip I'm just posting the changes to www.tallowmere.com/changelog right now - once the game's properly live I'll use the Steam news updates thingy
 
7:44 PM
^
 
user4704
(assuming you don't care about inheritance in the attribute hierarchy)
 
PGFSerializable is in the code up there. It's just an attribute with no properties or code
 
user4704
Yeah, doesn't work that way.
 
Pip
@Chris cool, good to know
thank you very much
 
user4704
I'm surprised that even compiles.
 
7:46 PM
it did not compile
that's why it said "does not work" :)
 
user4704
oh
 
your thing works, thanks :)
 
@Pip and I think the You Have Died stats are click/keypress triggered?
 
user4704
I thought "does not work" meant "never is true," I figured you had an instance also called PGFSerializeable where I couldn't see it.
 
heheh right :)
 
user4704
7:48 PM
In your case I'd just use Attribute.IsDefined.
 
next time I will say "does not compile" :)
is defined: ok
 
Pip
@Chris yeah, I realized. It's spacebar (or maybe any key)
I didn't know that though
maybe a flashing "press any key to continue"?
 
@Chris "Added an attack-rate limiter of 80 milliseconds between attacks, allowing for a maximum of 12.5 attacks per second." :D thank you so much
 
@JoshPetrie yup, attribute.isdefined. thanks a lot
 
@AttackingHobo :)
@Pip I think with the game, pressing buttons is a given lol
 
Pip
7:59 PM
I mean, it isn't super obvious though
Even a small message would help immensely
just a pet peeve :D
 
user4704
ah, the good old VS 2012 profiler bug
 
user4704
Do you write 32-bit applications?
 
user4704
No?
 
user4704
THEN YOU CANNOT PROFILE.
 
user4704
Idiots.
 
8:17 PM
@JoshPetrie :/ weird
 
Pip
@Chris I think I just got you a sale once Tallowmere is actually released :D
anyhow, heading out
 
@Pip haha thank you
 
user4704
@AttackingHobo There is what appears to be a hard-coded string lookup for Release|Win32 in the "Start Profiling Now" code path.
 
user4704
Micrsoft says "please use recommended solution configurations" as the workaround
 
@JoshPetrie uhhhh. Is MS retarded? Oh wait yes they are
@Pip you talking about me? I already bought it.
 
user4704
8:31 PM
Highly. You can of course just edit your project to rename the x64 platform to Win32. That works.
 
user4704
(or you can manually launch the profiler)
 
user4704
This bug is two years old by the way. on Connect they claim it's too hard to fix
 
@JoshPetrie :/ such an easy patch too. Lol what. It can't be that hard!
I want real AI to design an OS and toolchains that are meant to be logical for a human to use.
 
Wooo Only 600Mib left to finish transfering, before I can start to transfer it to make my staging server :|
 
Get SSDs and it will alleviate or even solve half those waiting issues
#1 I wish gb fiber was ubiquitous.
 
8:36 PM
or just code in C#
no compile time breaks ever :'(
 
@Noctrine I wish it was free time though lol
it's like waiting at a red light
 
Yeah I'm working on various tweaks now.
 
user4704
Giving up.
 
user4704
Buying the ANTS profiler again.
 
user4704
I must bring them so much business.
 
Jon
9:30 PM
sup people
 
sup @Jon
 
Jon
so for this pan and zoom system -- I thought why not have it pan with a single finger.. I mean how hard can it be to determine if you are tapping, or if you are holding and dragging your finger
i have a rudimentary pan with finger/zoom with pinch system working in unity
was hoping to talk to someone who's done this before
 
So many retards are angry at Samsung using high res screens. A bunch of people on reddit are really hoping that the note 5 doesn't have a 4k screen. What are they smoking
 
Jon
ehehehehe
what? source?
 
9:34 PM
heh
 
Jon
oh.. yeah
driving the screen would equal to pushing out 4X the pixel density
 
The first comment sums up everyones opinion "GIVE ME a shit screen cause the battery lifes"
 
Jon
how bad is the battery life?
 
is it really that bad?
 
IDK. But samsung has lowered the power draw each generation of oled screen
from 1080p to 1440p got more efficient
I don't see why they can't keep that up
And 4k VR is still not good enough
 
Jon
9:36 PM
ok but also, honestly... can you REALLY see a major difference in resolution in such a small screen?
the pixel density would be just ridiculous
 
Yes. when taking photographs and videos. easily
when looking at smaller fonts the edges are crisp
 
Jon
i'm all for innovation
 
And for VR most definitely. The pixels are huge
I mean not hUUUGe
but small text is entirely unreadable in vr
VR is going to hit mainstream with the Galaxy S6
 
Jon
shit like this is going to blow people's minds.. its the kind of thing that you can "show" as a preview
you just have to put on a rift and watch it
 
Yup! Non interactive things are amazing in VR
I watched this 360 pano of Abu Dubai. holy shit
I never realized how big some of the structures and mega builds actually are
 
Jon
9:40 PM
its the future man
unless this MS hololens stuff takes off
i am skeptical
 
@Jon nope. both are awesome
I really really really want to get the hololense
 
Jon
notmuch is known about the hololens
 
@Jon all I know is I want to dev for it
You can move your mouse off the computer and into the real world
 
Jon
how does it even work? it says it projects light in your eye
 
And the tracking is said to be really good
 
Jon
9:41 PM
wtf does that even mean
 
like a digital projector, but aimed into your eye
Probably some kind of reflecting surface
I gotta learn more about optics and shit man
I wonder if the headset itself is running windows....
That would be rad
Just connect a bluetooth mouse and kb to it, and put floating screens wherever you want them.
 
10:40 PM
 
11:15 PM
Hey Everyone!!!
 

« first day (1639 days earlier)      last day (3371 days later) »