« first day (879 days earlier)      last day (4067 days later) » 

10:00 PM
@Ell Not exactly.
into/out of/over controls the flow of the debugger.
 
@Ell Yes, usually (though the CPU would beg to differ).
 
if you step into, then you follow the code of the compiler exactly, through every library internal function, etc.
 
@Ell yea. But you now have to go into the function
 
step over can step over a line to the next.
 
you don't have to step into the end
 
10:00 PM
step out of, I can't quite recall, steps over the rest of the body of the current function, I believe.
 
just one level under for now
@DeadMG it's pretty intuitive
in the function
 
ITT: debugging crash course 101: except this time 1 pupil, 16 tutors
 
out of the function
@sehe Ell ran minicraft on Linux!
 
I know. Long time ago, IIRC. I remember he did so before me.
 
user1182183
10:02 PM
lol just 600 euro
 
user1182183
probably scam
 
I doubt it
probably couldn't shift them
 
Ell
Hmm. Right. So I know it errors on this image = engine::Image::Load(istreambuf_range<unsigned char>(file)); - so I need to step into this?
 
@sehe I dunno, I mean the current version
 
Ell
@sehe trudat ;)
 
10:04 PM
@Ell into engine::Image::Load, I guess
I am reading its code atm
 
@Pontifex JE CAPS LOCK STAAT AAN
 
Ell
@BartekBanachewicz Right. I've tried stepping in, I go through all the iostreams source atm, so I'm just learning how to skip that
 
^ awesomeness ("@Pontifex YOUR CAPS LOCK IS ON!"). This might be the definition of internet freedom, right
 
hemhm.
it throws runtime errors
 
@R.MartinhoFernandes: is you around? some advice, I could use.
 
user1182183
10:06 PM
FML just kill me and take my organs. then I will be a bit usefull to society ;>
 
@DeadMG that grammar
 
Ell
@BartekBanachewicz Also, call me a noob, but I don't understand why try {...} catch() { BREAKPOINT();} is helpful - surely you leave the try...catch out so when it errors, you can inspect the variables inside the try{...} block?
 
ironically, grammar is the thing on which I could use some advice.
I figured out that my Wide grammar is ambiguous in some circumstances.
 
@Ell you can just catch throw in gdb (or catch catch and catch assert, or break errohandlerfunction etc)`
 
Ell
Yeah that's what I've done now
 
10:08 PM
@Ell well it should stop debugger there
 
it just dawned on me that a integer bignum can't hold DBL_MAX :/
 
Ell
@BartekBanachewicz it does, but at that point you are outside of the catch block
 
@MooingDuck buttt you were running the right binary!
 
@Ell uhw. So can your gdb catch that?
 
@MooingDuck what's integer bignum anyway?
 
10:09 PM
@Ell also did you change something in makefiles apart from the Engine library file name?
 
Ell
@BartekBanachewicz well I just commented out the try...catch bits and let it error straight to the debugger :P But I think it's just my gdb newbiness showing
@BartekBanachewicz I added -lXrandr
 
oh I thought it was there damn
 
what is it you are building?
 
my game.
 
Ell
also libSFML
 
10:10 PM
wait
 
SFML? I like SFML :D
 
did you link to your system's SFML?
 
Ell
No
 
or to local engine one?
 
Ell
The local engine one
 
10:10 PM
okey.
 
Ell
LDFLAGS += ../Engine/libSFML.a
 
libSO-FUCK-MY-LIFE :)
 
I suspected this might be the reason my driver wants to kill me
 
@sehe You know what a bignum is? I was thinking of a bignum with no exponent bits, in the same way that int is like float with no exponent bits.
 
but if it works for you, that part is ok
 
Ell
10:11 PM
(I also removed one of the /Engine/s to suit my directory layout, maybe mine is non-standard :3 )
 
thanks for trying that out, that information is invaluable
@Ell it's from Visual Studio. Reorg. as you wish
 
@MooingDuck I was wondering which library
 
but to hold DBL_MAX in such a format would require more bits than I've ever heard of, possibly in the range of total RAM of of the planet.
 
@MooingDuck :) quite an essential observation.
 
no it wouldn't.
 
10:12 PM
wait, SFML as in the game library?
 
yup
 
@sehe I don't actually know the internal formats of any bignum libraries, but I would presume every bignum has one of this form, since it's easy to make the more complex bignums using this "integer" one.
 
@Pawnguy7 it's a general purpose multimedia library
 
it would only require about 1.5KB.
 
Yes. Simple Fast MultiMedia library
 
10:12 PM
at most.
 
2 ^ 1.5k * 8 makes sense
:P
 
DBL_MAX is only 10^300.
you can get 1 decimal digit for just over three binary ones
 
still
10^300 is... 300 bytes.
 
@BartekBanachewicz Oh nice, it still showed @user190929 here :) @Pawnguy7
 
@DeadMG 1.797693e308
 
10:14 PM
@BartekBanachewicz Oh yeah, forgot bits vs bytes.
 
Refreshed: hi @Pawnguy7 :)
 
@DeadMG you're right, my math must be waaay off
 
@MooingDuck your left
 
Ehm.. hi :D
I think that refreshed... three hours ago.
 
@Pawnguy7 I know. I was there. But I never refreshed the brwoser
 
10:15 PM
what is your game about?
Ah. I see.
 
it's called Minicraft. Go figure
 
oh wait, I totally calculated part for holding DBL_MAX bits. DBL_MAX bits != bits used to hold DBL_MAX.
 
6 hours ago, by sehe
And refresh the browser. That delays it even more
^ Q.E.D.
 
@DeadMG 94 bytes then >.>
 
4 mins ago, by sehe
@MooingDuck :) quite an essential observation.
that too
 
10:16 PM
@DeadMG 93, I rounded halfway on the first try.
 
Sp, what is minicraft about.
 
Minicraft is a 2D top-down action game developed by Markus Persson, the creator of Minecraft. Minicraft was programmed by Markus Persson in just 48 hours. The game was released on December 19, 2011. Gameplay The Objectives screen given at the beginning of the game directs the player to "kill the Air Wizard". To do so, the player roams a "generated world" and must "chop down trees, mine rocks and stab zombies...harvest resources [and] build items" until encountering the boss. It is also stated in the official description, in line with the theme, that "the goal of the game is to kill the ...
 
Apple's OS X was written by two brain-deficient hyenas, hope it chokes on a dick. And the windowing system? That shit was written by a half-bred chicken which got turned into pate the moment it "finished".
Yes, I'm mad.
 
I thought you said you were working on your own game?
 
@DomagojPandža WHY
 
10:19 PM
@DomagojPandža Play a game
 
@MooingDuck NNNNOOOOOOOOOOO.....
 
Not hexacon
 
@Pawnguy7 he is just fucking with you
@sehe hexagon!
 
@BartekBanachewicz Nah. He's linking to a relevant page
@BartekBanachewicz You Don't Say?
 
@sehe There can be only one Minicraft!
 
10:20 PM
@BartekBanachewicz Exhibit [A] en.wikipedia.org/wiki/Minicraft
 
Ell
@BartekBanachewicz also I changed src/*.o -> ./*.o for clean
 
@Ell what.
 
Did someone here actually name their game Minicraft?
 
39 secs ago, by Bartek Banachewicz
...
 
10:21 PM
um...
 
Ell
In the makefile, the object files are written to current directory
eh oops
 
@BartekBanachewicz I read the history and just now understood that message :D
 
@Ell whatevs. what's going on in Load()?
 
Ell
@BartekBanachewicz well, std::move(_internalLoad)
I'm investigating _internalLoad now
 
Still confused. You are making your own game called minicraft, or?
 
10:23 PM
@Pawnguy7 yes
 
Ell
Agh I have been sentenced to bed
 
@Ell i think I now what's wrong
Ok, so drop it for now.
I will test it more
 
Ell
I don't know if this is helpful, but we could set you up with an ssh to my computer :3
okay :)
well I have to come away from the computer for now
 
nah, I'll fix it here (on windows)
just follow me on github
 
Ell
Okay I will do :)
brb
 
10:24 PM
:)
 
What is your minicraft about?
 
@Pawnguy7 I honestly doubt you are not a 9yo troll from Virgin Islands
 
I don't follow.
 
Hmm, google calculates 170! (7.257416e+306) but not 171! (1.241018e+309).
 
hahaha ^ nice
 
10:25 PM
I expect google to handle bignums :(
srsly google git on it
 
wolfram can.
 
You are making a clone of minicraft or minecraft? If the latter, are you using openGL on top of SFML's windowing system?
 
@Pawnguy7 the latter, yes.
 
@BartekBanachewicz heh, nice. Full value to the 1s digit and everything
geez even wolframs "approximation" is like 50 digits.
 
Mathematica got a lot better over the past few years
 
10:27 PM
Hm. Good luck with that.
 
wolfram alpha can analyze my facebook profile? O.o I'll bite.
 
Arf.
 
Is it me or does it look like about half the blocks are missing?
 
Ell
Back :)
 
10:31 PM
@Pawnguy7 that's lack of proper noise function
 
Guys... Have you seen latest XKCD? "FastBogoSort" - killing me!
 
Ell
have you thought about nets working with mini craft?
 
So it is the generation, not the render?
 
@sehe yea. I like interview sort better
 
hmm, wolfram is showing the words I use most frequently. Not what I expected:
one (34) million (26) <wife> (23) know (20) people (18) new (17) now (17) time (17) cat (15) even (15) <me> (15) internet (14) two (14) until (14) nokia (13)...
 
10:32 PM
@Pawnguy7 no, the renderer works perfectly
 
I can't figure out why I typed my own name into facebook 15 times
 
@Ell you mean like multiplayer?
 
Ell
Yeah
 
well certainly sometime in the future, yeah.
 
I see. In that case, looks great. Then again, any working program looks good from mr perspective. Also, do you plan to render the top of the grass block? (has dirt top texture)
 
10:33 PM
@BartekBanachewicz It's a total win
@MooingDuck what is the corpus
 
@sehe corpus?
 
@Pawnguy7 yea, it's the simplified instance generator atm, but it's perfectly capable of doing it properly. I just focused on other things for a while, but I am back to general functionality now (hopefully, after we solve Ell problems)
 
....2 of my facebook friends report being over 100 years old...
 
@MooingDuck if you do a concordance/histogram whatever it's on a "body of text" -> corpus
 
@sehe facebook status updates via wolframalpha
 
10:34 PM
@MooingDuck there's your problem...
@MooingDuck Wut. W-alpha does status updates now :(
 
I see. I don't really know how that part is engineered, but good that it can do it. What are the red lines?
 
@sehe they analyze everything on my facebook profile O.o
@sehe distribution of friends by timezone? Why would they even bother?
 
@MooingDuck Your guess is as good as anybody's
 
@Pawnguy7 raycasts
 
10:38 PM
Hulk smash.
 
Ell
Are you going to implement the noise generation yourself? I don't know how difficult it is, but for some reason I imagine it is very difficult and mathematical
 
@EtiennedeMartel Nothing new, he actually was quite against same-sex marriage in 2010.
Destructive of god's plan.
If god has a plan:
a) Nothing can affect it.
b) God is responsible for every genocide, murder, rape or abuse of all time.
Because it's all part of his goddamn plan.
 
"God's plan" is generally short hand for "My plan".
(Well, not really short)
 
Obfuscated short hand :$
 
Also, @DeadMG, I think you underestimated unique_ptr
	auto FreeImageMemoryDeleter = [](FIMEMORY* mem) {
		FreeImage_CloseMemory(mem);
	};

	//auto fm = FreeImage_OpenMemory(vd.data(), vd.size());
	auto fm = std::unique_ptr<FIMEMORY, decltype(FreeImageMemoryDeleter)>(
		FreeImage_OpenMemory(vd.data(), vd.size()), FreeImageMemoryDeleter);
^ works just fine.
 
10:42 PM
YOU UNDERESTIMATE MY POWER
 
that's highly unlikely
I would expect that to work just fine
 
well I don't get what was the struct about then
can you explain it again, pretty please? :(
 
what struct?
 
you said that my deleter should be a struct with overloaded operator()
 
It should be.
 
10:43 PM
with something like pointer_type too
 
@BartekBanachewicz pointer
 
Because now you're going to have to declare that FreeImageMemoryDeleter in every scope you do that kind of operation.
 
It's unecessary because your deleter is already playing with pointers.
 
that's for non-pointer types.
like Linux file descriptors.
 
10:44 PM
So, one of you is talking bollocks.
 
@DeadMG so if I operate on pointer objects, I can just use lambda/static function?
 
Ell
Why does it need pointer_type?
 
@Ell pointer
 
yes
 
Ell
As in, what use does unique_ptr have with it
 
10:45 PM
@Ell there are java sources of Perlin and Simplex noises available online
 
That's because whatever the pointer wraps is defined to be deleter::pointer, if such type exists
 
@DeadMG thanks.
 
(Otherwise it's just T *)
 
@Ell it now shows its full usefullness
 
So, if T * is fine, no need to redefine that.
 
10:47 PM
if I put a lambda in a std::function<void()>, is it safe to copy that or do I have to && that?
silly question, no reason not to &&. Nevermind me
 
is there boost::make_unique?
 
@BartekBanachewicz Why would Boost have something for a movable type?
They don't even know what movable means.
(I'm so mean)
 
ah crap fuck forgot
I keep forgetting that.
 
Boost is old, now.
 
They should fucking get it going
instead of some shitty new libraries
 
10:50 PM
@EtiennedeMartel Boost.Move
 
Ell
Boost is old? :3
 
@CatPlusPlus Tsk tsk.
 
@BartekBanachewicz If you're using HLSL, the noise built-in function produces Perlin noise with a lot less work on your part.
 
@JerryCoffin a) I am using *GL*SL b) It's done on CPU
anyway, make_unique is not working :/
oh, I see why.
fuck
damn I don't like being that explicit
 
@BartekBanachewicz GLSL doesn't have it built in, but you can still do it (on the GPU).
 
10:57 PM
@JerryCoffin that would require rendering that to, say, 3d texture, and then fetching the results, right?
hmmm
 
@BartekBanachewicz If you want to use it on the CPU, yes. If you just want to display it, you probably don't need to.
 
@JerryCoffin I need that noise for terrain, which is basically cube layout, so no, I need to use it on the CPU
 
@BartekBanachewicz In that case, yeah, render to texture and read it back. Probably better to use OpenCL or CUDA instead (for that part) if you can (getting results back to CPU tends to be a lot cleaner).
 
Also
	//if still unkown, return failure
	if(fif == FIF_UNKNOWN)
		throw runtime_error("Failed to deduce filetype");

	//check that the plugin has reading capabilities and load the file
	if(FreeImage_FIFSupportsReading(fif))
		dib = FreeImage_LoadFromMemory(fif, fm.get());
 

« first day (879 days earlier)      last day (4067 days later) »