« first day (894 days earlier)      last day (4070 days later) » 

10:00 PM
oh wait I deleted the functor
fuck fuck fuck
I need to store the functions
 
@JustinMeiners Finding Airplane! clips on YouTube is super easy.
 
that sucks a bit.
 
But yes, he still did.
 
Or should I ask the user to store the function objects?
 
10:03 PM
also, damn, map<void*, unique_ptr<std::function<void(void)>>> seems creepy
 
Remember the days when things just worked? Me neither. Both x86 and x64, just toying with x64.
 
@R.MartinhoFernandes I was just impressed with the speed your brain went there
 
@JustinMeiners he is a robot
 
@BartekBanachewicz Get used to it. Wrapping C callback stuffs will always involve creepiness at some point.
 
@DogPlusPlus :(
So it managed to build but everything is breaking? D:
Also, uh. I've only ever been building x86, not x64. x_X
 
10:05 PM
I would like to use this post to state how much I hate C APIs. Thank you.
 
I should do an x64 build sometime and make sure everything's okay...
 
Yup. Vanilla download with the packet of lib/bin stuff. Also, Do you have an fread somewhere?
 
@BartekBanachewicz I would like to quote DPP "C is a great language but actually writing code in C is just not enjoyable man"
 
.... Uh.
 
agh.. must not reply to spark previous conversation.. cant stop..
 
10:06 PM
Maybe. >_>
Well, yes.
 
@Magtheridon96 nailed it.
 
I have an fread in RawFileStream.
 
@ThePhD stream... my ass.
Y U NO fstream?
 
FileStream is the default FileStream and uses a fstream to implement itself.
 
I finally got over my personal problems with fstream
 
10:07 PM
RawFileStream wraps C functions and C calls.
 
and I'm converting all my code using <stdio.h> to use <fstream>
 
@ThePhD and what is the point of that exactly?
 
@BartekBanachewicz Wrapper classes aren't exactly new?
 
At one point I was doing a comparison, to see if it changes anything to use C instead of C++ IO.
I never finished the comparison.
 
@Magtheridon96 good for you. You can take a look at my code too see a quite nice istreambuf_range example
 
10:08 PM
@JustinMeiners Yeah, I'm famous for that here.
 
@ThePhD I don't even have to compare
 
.: Ploughland :. reminds me of xXPloughlandXx
 
You tried to load something with it and didn't expect it would try to shit its pants? :P
Plough 'em all, plough 'em all... Witcher 2 song.
 
A friend of mine did a comparison once and found that the speed in debug mode differs in favor of C IO, but in release mode with optimizations enabled, it's about the same
fstream and the like are pretty much wrappers for C shit (I think)
 
doenst the fstream implentation use fread? or am I wrong
 
10:11 PM
Furrovine++d.dll!Furrovine::Sys::IO::RawFileStream::Read(void * bytes, int bytecount) Line 34 C++
 
It should. I don't see why they would use anything other than fread in there
 
This is where it shits its pants.
 
thats what I think too..
 
@DogPlusPlus Here, take my trousers
I feel so gay for saying trousers
 
@JohannesSchaub-litb you're crazy quick with standards quotes, btw
 
10:14 PM
@JustinMeiners I don't think it's forced.
 
Question.
If a file is not present, should I throw ?
 
Back to non-termination. What a thrilling rollercoaster.
 
@Rapptz yeah I wouldnt think so either - but i would assume thats what most *nix windows do
 
ok, after I learned about lua_upvalueindex (sigh yes another stack), it seems really close
I think I really need that map.
hm, or set.
is set<unique_ptr<T>> searchable by T*?
 
@BartekBanachewicz wait, maybe
 
10:17 PM
@MooingDuck how about unordered one?
 
unordered definitely not
 
@DogPlusPlus My best guess is buff (in RawFileStream) is null and it's trying to call FRead on it.
 
set<unique_ptr<T>, custom_comparitor> is searchable by T*
 
custom comparator.
how would that look?
 
no wait, nevermind, set can't do it either
 
10:18 PM
yeah.
 
stupid library
DeadMG made a proposal to fix that
 
kinda. I'll use unordered_map then
@MooingDuck really?
 
Are you /all/ working on the same codebase?
 
@BartekBanachewicz yes.
 
@Magtheridon96 no, of course not
 
10:19 PM
@Magtheridon96 none of us are to my knowledge
 
@MooingDuck that would really solve some things
 
user142019
@ScottW BYE
 
@Magtheridon96 I mean, the Lua C++ api project is a sorta group one

 Lua C++ API project

Room created for discussions about the said project to avoid f...
 
user142019
Facebook what the fuck.
 
So you're making a C++ version of Lua?
 
user142019
10:21 PM
 
user142019
Facebook y u no hire good designer.
 
Good man. Jolly good man.
 
@Magtheridon96 no, just an API wrapper
C++ version would be awesome though
 
@BartekBanachewicz Of course
 
@ThePhD Just inspected the stack, buff is NULL.
 
10:22 PM
I mean, you could really build C++ API from ground up in theory
 
Well, the code base is relatively small for something so awesome
 
@BartekBanachewicz doesnt havok have a commercial C++ lua implementation?
 
@JustinMeiners I don't know about that.
 
@BartekBanachewicz ill find it
 
Latest version is about 550000 chars
 
10:23 PM
it's commercial, so...
 
@DogPlusPlus That explains it... it must not be opening properly. I pushed a changed to throw in RawFileStream if the buffer's not found
 
I'd convert Lua to be C++
 
@JustinMeiners oh my god. Why haven't I heard about that
 
I've done a ton of conversions on huge codebases before
 
10:24 PM
> Microsoft Visual Studio® plugin allows developers to step seamlessly from Lua > C++ > Lua
man
man
 
Maaaaaaaaaaaaaaaaaan
 
haha
I thought it was commercial so you didnt want to hear about it..
 
Woman
 
It fails at loading the shaders. Probably can't get through your separation of shaders in another project. :P
Also, I haven't seen so many headers in one project in my entire life. xd
 
10:28 PM
Sorry. :c
 
I have OCD, so languages like Lua with no type enforcing are hard for me to use
But I have to get used to it.
 
How many headers do you have PhD?
 
There, I fixed it.
 
... Oh, y'know.
 
Copied the Data folder into the Debug directory.
 
10:29 PM
Onlyacouple.
 
So 210?
300?!
 
@HavokBuzz Today I learned about HavokScript. My dreams realized. Any chances of adding it to Free package, @IntelSoftware? Pretty please :)
 
@DogPlusPlus Oh. Which project was starting up?
 
This scene was improvised on the spot. It's fucking awesome.
 
I thought I had told it to automatically set the working directory to Ploughland Art.
 
10:29 PM
@BartekBanachewicz your welcome haha
 
DonutScript will some day rise
 
@JustinMeiners I have to check if Intel maybe gives me Havok.
 
@ThePhD Ploughland, damn you. :D
 
And if not, I am totally filling a request for that.
 
@BartekBanachewicz that would be read
rad*
 
10:31 PM
man, it's something totally and completely awesome
it should be in Free
definitely
 
What does HavokScript look like?
 
Lua would go Boom.
@Magtheridon96 it's Lua!
 
its just a VM replacement
 
+ visual studio plugin
 
10:32 PM
and C++ API
so it's not "just"
it's "OMG"
 
Ahahah. And those are just PhD's. :D
 
Jesus.
Why are your icons so huge
 
<_<
>_>
 
Easier to browse porn.
 
10:34 PM
IT WASN'T ME
 
@DogPlusPlus Medium icons is enough for that
 
The fairy in the closet put all those files in my project ;~;
 
Btw. why are all of your source files for Furrovine except Furrovine.cpp - .inl?
:D
Dammit, son.
 
He's a noob
 
user142019
user image
4
 
10:36 PM
aahahahahah
 
It was originally a header-only library.
 
AHAHAHAHAHAHAHAH
That is so intense.
 
@Zoidberg o_O That's one funky hairdo.
 
@ThePhD It still is.
Honestly, .inl files are basically saying "copy paste this shit in" IIRC o_O
 
They're .inl for the time being, while I convert everything to be CPP compatible.
the .inl in this case are all CPP files.
I just need to move some of the template definitions and then do a blanket rename.
Then it will compile like every other DLL project in the world.
 
10:38 PM
@DogPlusPlus because he couldn't link, and put everything in one huge .cpp
 
@ThePhD You really need to fix it up. :D
 
I'm trying. ;~;
 
in c++ what is the difference between "int *a" and "int[] a" ?
 
It depends.
 
> using tuple_type = meta::list<T...>;
What was I thinking.
 
10:40 PM
Haha, I suppose meta::list is just an empty carrier.
 
@tigrou Is int[] even valid?
 
It's also not tuple-like, so TupleElement<0, TupleType<variant_type>> wasn't working. I don't even.
 
@tigrou If you mean in function arguments, there is none. Don't use the latter.
 
sorry made a mistake. i mean "int a[]" <= this one is valid right ?
 
10:43 PM
Arrrgggh
The reason Domagoj couldn't find any of hte files and the reason why it didn't default to the Ploughland Art directory was because I had excluded the .vcxproj.user files
Instead of writing debug settings into the .vcxproj itself, it writes them into the fucking .user settings
I can't believe they'd write it into the user file. What kind fo shitty choice was that @________@
 
@tigrou It depends!
 
damn fuck
 
Write a full "line" of code with it.
 
I used a map of unique_ptrs<std::function>, and pushed ptr.get() as userdata
 
user142019
// inb4
int a[]
;
 
10:45 PM
this should allow me to use this raw pointer, right? :/
as long as the unique_ptr exists
 
So where was I
 
struct foo { int len; int points[]; } vs struct foo { int len; int* points; }
 
Former is not valid.
Arrays cannot be defined without a size.
 
@tigrou use a goddamn vector
 
Hm. Interesting.
 
10:47 PM
@BartekBanachewicz : vectors cant be initialized like a array
 
@tigrou bullshit.
 
hold on..
 
@tigrou std::vector<int> v = { 1, 2, 3 };
2
 
in what context?
 
@ThePhD: I believe that the reason for this separation is because the debugging settings are only interesting for the VS IDE and not for the build of the project itself. Since the build can be done without the IDE using just MSBuild, the dissociation sort of makes some sense.
 
10:48 PM
@ThePhD I swear, you're one of the clumsiest creatures I've ever met. :D
 
@tigrou Your first example is not valid, and your second example does not have an array.
 
@Bartek : i didnt know that @R.MartinhoFernandes : ok
 
@wilx So I'll just commit the user file anyways...
@DogPlusPlus ;~; It's not my fault...
 
8 mins ago, by Bartek Banachewicz
 
10:49 PM
@ThePhD Or maybe... fix the build?
 
The near-empty box after the code means it has compiled and run without errors.
 
Hello, World!
 
rainbows, ponies
 
user1182183
Tip: If you have a keyboard shortcut to a program in Windows, and want only for example "Shift+F2" (which is not allowed...) , you can prevent changing it to CTRL+SHIRT+F2 by holding down the Windows key+SHIFT+F2, your program will launch when SHIFT+F2 is pressed.
 
Ell
10:50 PM
Hi guys
 
@BartekBanachewicz :DD
 
@R.MartinhoFernandes I'd have to tell the build to copy the files over to the Debug or Release or x64 directory, etc...
 
you can also write cppfoo() in Lua and it woooorks :3
 
It's better to just tell the thing to look in the directory where the files actually are, and upon actually releasing the executable to place it with the appropriate folders.
 
@Ell you couldn't've picked better moment to appear
that's the glorious moment
 
10:51 PM
@ThePhD s/better/lazier/?
 
Ell
I just got back from the pub xD
 
Yes, lazier, because I don't have to maintain copy-paste scripts for all of the assets.
 
@Ell man, just look, look
 
Ell
Function binding works it appears :P
 
And I don't have to have inclusion and exclusion lists for things that do and don't have to copy.
 
10:52 PM
@ThePhD Why not let VS handle that?
 
And I can edit things in-place and expect them to be reloaded properly.
 
@R.MartinhoFernandes VS will only do it on (successful) build.
 
(I'm so evil)
 
@EtiennedeMartel my code is now 20% cooler
 
10:53 PM
@ThePhD ?
 
Hahahahahaa
 
@Ell both ways :cheese:
 
@ThePhD (Why would you need it on failed builds?) I distinctly remember having VS handling this for me when I did .NET.
WHAT DO YOU MEAN VS CAN'T HANDLE THAT I THOUGHT WAS GREAT FOR NOT HAVING TO USE MAKEFILES OR WHATEVER THE FUCK THAT WAS
 
@R.MartinhoFernandes VS will not perform auto-sync of a file the moment you edit it. If you edit it, you will have to stop the debugged application, rebuild the code (and make sure you change something in the code so it properly triggers a build), and then it'll copy the files to the output directory.
 
Ell
@bartek Haha well done mate!
 
10:55 PM
I suspect calling C++ functions that take parameters will be a bit harder, but I will need to talk with @kbok about that first
 
It'd be exactly like if I was using a Makefile, and that's silly when I can just point it to a directory and say "make this the default working directory instead of the current directory".
That way I can edit the art assets and reload them without having to invoke a copy-paste script, or rebuild.
 
I guess you could just ln it.
But that's weird in Windows anyway.
 
Okay, all edited and pushed with user files...
 

« first day (894 days earlier)      last day (4070 days later) »