« first day (1096 days earlier)      last day (3866 days later) » 

12:00 AM
@CatPlusPlus No. Again. :/
 
@Jefffrey Yes, again
You say that you want to iterate over shit that has "Position", but you can easily do that without a system like that, unless you're writing the code and have no idea what it's supposed to do
 
@CatPlusPlus Do the same things he is doing, with that ugly design, with composition.
 
sigh
 
> Typically, systems operate one after the other. They process all the entities that match their requirements, then the next system does the same and so on.
 
@CatPlusPlus You have to be able to detect if an "entity" class have a property or not. Because that's the whole idea of "Let's work on properties and not on entity types".
 
12:02 AM
Keep. shit. to. process. separate.
 
@ScottW Like NetHack?
 
@Jefffrey Ugh
People already explained that, I don't care
 
@CatPlusPlus Then why are you talking about it, if you don't care?
 
It's as old as me.
 
12:03 AM
lol
 
@Jefffrey because he's a cat
 
> Entities are just bags of components. They have a unique ID and a list of components. Systems are only tied to components in the way described above. You can have components without systems that operate on them, but that's pretty pointless. Similarly you can have systems that are looking for components that no entities have.
"Bag of components" = a type. "Unique ID" = a type identity. "A component" = type member.
So congrats on inventing the worst type system ever
 
Are we in a loop or something?
 
Hmm, that's the first Tourist quest level.
 
Yes, because you're not fucking listening
But w/e be a gamedev
 
12:05 AM
I've just said this and you are still claiming: "Bag of components" = a type. ?
 
3 mins ago, by Cat Plus Plus
Keep. shit. to. process. separate.
 
@Jefffrey dynamic_cast does that.
 
17 mins ago, by Scott W
Jeffrey your flawed assumption here is that every entity needs to be processed the same way. They can be split up
 
@CatPlusPlus Nop, Nope, sortof. Components can be added and removed at runtime. More than one object can have the same configuration of components. Now plz shut up.
 
@Borgleader You can have a type system at runtime. That's how fucking dynamic type systems WORK DAMMIT
 
12:06 AM
Sounds like a dynamic language.
 
Fucking gamedevs
 
@CatPlusPlus Why? A Tree and a Cat both have a Position, why should I separate them because they have a different type?
 
UGh
@Jefffrey ........
The notion here
 
I'm scared ;_;
 
is that you don't separate them on a type
 
12:07 AM
Positionable concept gogo.
 
Because it CAN BE PROCESSED the same way
and you separate
THE THINGS THAT CANNOT
simple enough?
 
CAPITALS MAKE MY WORDS IMPORTANT?
3
 
lol
 
No, imagine me yelling at you
 
@Pawnguy7 Yes, they work as emphasis?
 
12:08 AM
I LOVE SCOTT
 
@R.MartinhoFernandes I am not new to the internet :\
 
@CatPlusPlus Can you make an example?
 
SFML has two classes, by the way, one is called sf::Transformable and another is called sf::Drawable. You can inherit from one to mean that your Entity is Transformable, i.e. it can move around, rotate, etc. You can inherit from another to mean that the Entity can be drawn on the window. So typically you inherit from both sf::Drawable and sf::Transformable for your entity to have both traits.
 
Existentials
 
I just felt it was relevant.
 
12:09 AM
Yes
 
Who was it here that hated interfaces?
 
@CatPlusPlus So you are suggesting multiple inheritance?
 
In subtyping existential is basically a superclass with the interface you want
 
@Rapptz What if during the game I want to make the object Flammable?
Do I inherit from everything and turn it on or what?
 
12:10 AM
Make it flammable from the start, just don't process the flammability until you want to
KISS, DRY
 
My parents told me not to kiss strange cats. Even when they are dry.
 
That works :V
 
How often do you try to kiss cats for that to happen?
 
They did however inform him of dogs like you ;)
 
12:12 AM
@Jefffrey Or, slightly less insane (?) and just as applicable:
0
A: C++ generating an interface without virtual functions?

seheYou can use free functions to model the drawable aspect of your objects: #include <iostream> class Image { }; class Sprite { }; class Model3D { }; namespace draw_aspect { void draw(Image const& image) { std::cout << "drawing image\n"; } void draw(Sprite const& sprite) { std::c...

 
@sehe You are using a SceneManager class and @CatPlusPlus didn't kill you?
 
@Jefffrey I was following the OP! I'm not answering my own questions
 
lol, all execuses.
@sehe How much did you spent on that?
 
Wokay.. I'm off to bed then.
 
@Jefffrey It's just the applied code to what I said :v
until I got sidetracked with a rant about boost::variant, I still don't think it's bad design :|
 
12:16 AM
@Jefffrey About 15€ (seriously, too long. I was trying for overkill, and when I do, I always wonder whether I can golf the traits somewhat more. I'm not that good with TMP, so that took the most time)
@Pawnguy7 IMPAHTANT!
 
@Rapptz Does it look clean to you?
 
Usually for traits I return std::true_type or std::false_type and then inherit from it
@Jefffrey Looks okay.
 
@Rapptz That... Reads funny.
 
@sehe My bad.
 
@Rapptz I'd personally try not to SFINAE in a visitor :/ That was being facetious
 
12:19 AM
@sehe It will probably take few more hours to get to understand it, but thanks. :)
 
@sehe I was thinking of something else really.
Much more simpler and stuff :s
 
@Jefffrey Oh, don't worry. Weeks will be fine. Start here (again?) I think
@Rapptz I think the linked SO answer (why is it still at zero votes :)) is about that. It even splains you should/could just keep separate collections.
 
Renaming SceneManager to Scene would make it better~
Because a Scene is its own manager
 
I see I missed some recent votes.
 
I thought you were going to be my personal sex slave :(
 
12:21 AM
Let me find Jeffrey's original code and try myself
 
I had the paperwork and everything
;_;
 
57 mins ago, by Jefffrey
 
@CatPlusPlus What if a function need to work with 2 different interfaces? And another with 3, and another with other 2. Do I create new classes from them too?
 
@sehe Neato.
 
I'm off to bed!
Night all
 
12:22 AM
@Jefffrey Generics can be constrained on multiple concepts
 
@sehe night
 
In C# syntax public void Whatever<T>(T thing) where T : IOne, ITwo, IThree
In C++ it'll be EnableIf mess so have fun
 
I'll try this one with boost::any
 
Wait. That was the code this discussion was all about?
 
No.
 
12:24 AM
No it was just his prompt
 
Just the branch with sehe.
 
I am thinking about learning c++ at the moment. Uhm. Do you have to write completely different apps for Linux and Windows ? Or does the right compiler do the job for you ?
 
lol
 
use admin
FileAdmin
ConnectionAdmin
 
@OliverSchöning If the code is cross-platform, then just different compilers should do it.
 
12:27 AM
@Telkitty猫咪咪 FileAdminManager to manage the FileAdmins and then FileAdminManagerBoss for the class who controls all the managers might be better.
 
@Pawnguy7 Cool. Any simple example what woulndt be cross platform? Or any keyword to google ?
 
@Oliver Depends on how you code really. Some programs can be made to cross-compile really easy, others not so much. You will most likely have to change some things, but if you think ahead it won't be that bad.
 
Any Linux specific code..
 
@OliverSchöning I am guessing you will know. Anything in the standard library is fine, so the main issue is either OS-specific code (system, for example), and/or libraries that are only for specific platforms.
 
Like if you use any of the prebuild windows stuff (which a lot of code does), you'll have to find similar ways to do it in linux. For instance window management, like resize, repaint, etc are both handled differently
 
12:29 AM
Ah
 
pretty much pure c++ is all the same, but a LOT of coding involves handling the OS
actually most coding involves the OS. That's kind of what the OS is there for :). You can calculate all the stuff you want, but if you want to display it and get input for the user, then the OS has to do that....finding cross browser ways to do that can be tricky
 
@Shawn browser?
 
heh sorry
I change up coding a lot :)
 
C++ for the web again? :D
I remember, I used to think like that.
"How do I get this .exe on the interwebs"
Thems were the days.
 
12:32 AM
If you need cross platform GUIs there's Qt.
 
Is anyone good at network programming ?
 
Which is fairly decent.
 
Except in Belgium
 
yea sometimes takes me up to an hour or two to get used to what language I'm working in again. All are about the same, but it's the little differences (brackets, declaration, wording loops) that I'm always typing in one when I should be in another
 
i needed help in that thats why
 
i cant connect the socket to a server
 
Somehow that must involve belgium waffles. at least in my head
 
@Nabmeister.......wow that is a broad problem :)
 
You know... gamedev is special. It has very short maintenance cycles.
 
@Nabmeister Here ya go
 
12:34 AM
maybe you need a better socket wrench?
 
@ScottW I once saw a windows parody game. Can you picture that?
 
People in gamedev are special too
I had to get sick in the middle of the week fuuuuck
 
@ScottW Yes. For example, popup windows.
 
Also there's a party on Friday
 
every day is a windows parody game for me
switching to windows 7 has been the biggest hell ever :)
 
12:36 AM
@Shawn you don't like windows 7?
 
Windows 8 seems to be updating... coz this week I am seeing a ACTIVATE WINDOWS on my browser window...
 
I'm just glad I recently found the search program "everything". Haven't been able to search my files for months before.
 
I cannot recall any problems searching files.
 
@Pawnguy7 It's not the flow I'm used to...and search is waaay broken, which I kind of use all the time
 
12:37 AM
That is funny. I was told just a few days ago, Windows XP search was broken.
 
I use a FileManager
 
well you either turn on indexing and then if you are moving files it takes a long time to catch up, or you turn it off and you get nothing from results. But wildcards, filetypes, and other filters do not work at all anymore
 
I don't search with wildcards.
 
I dunno, I have tons of instances where the entire directory shows up for something specific
 
My only problem with search is in the non-indexed locations s.
 
12:38 AM
never had that in XP
 
std::ifstream stream(filename);
source_strings.emplace_back((std::istreambuf_iterator<char>(stream)), std::istreambuf_iterator<char>());
 
A lot of stuff:). Let's see recently someone asked me to make a program and I remembered the name of something I had done similar, but didn't remember where it was in my (huge) work directory
 
everyone thought it
 
This thing has been quiet about a failing stream causing me to hunt for bugs for hours now :V
 
12:39 AM
I look up stuff all the time. Have a catalog of project spanning many years I look back on
well I can't really name stuff by type of code it contains...I name by project
but say 2 years ago someone hired me to make a search program say...then someone today asks me to make one....I can't remember which project I worked on before that had one
 
@ScottW crap/ verycrap/ veryverycrap/
 
I mainly do web work btw...sometimes I knock out entire sites in a couple days so my work folder grows quickly
 
I have sort of had that problem, but it was either because I had four projects called "Snake", or I had one called something, and it was something else altogether.
 
You need better codenames
 
Yes.
 
12:42 AM
other than that I'd say my biggest annoyance with 7 right now is shaking windows stuff. I have a habit of shaking windows while I'm reading something...
 
That, and I named the current one with spaces.
@Shawn shaking?
 
also I throw windows off to the side of the desktop often, but now they end up getting locked and expanded
yea you "shake" a window with the mouse and all rest of them fall down
 
it's like if selecting text in a web page caused the browser to close...something else I do all the time
 
I don't know what reminded me of this.
I saw this somewhere once.
 
12:43 AM
nice
 
And for once, my google fu works.
That was my thought, yes.
I don't even have a desktop backround :\
 
foo bar = fu bah
 
About a year ago.
 
I never see my background...but I know it's there
 
I made a program that randomly generated terrain.
You know, like everything I make :D
Anyway, it ran on startup, and changed the background to it.
 
12:45 AM
ahh nice
 
So every day, I got a new generated image.
One day, it apparently broke, because the background is black...
I should remake it.
 
heh yea
I'm working on randomly generating weapon images myself actually
not like picking pieces borderlands style, but drawing and filling with texture (2d)
 
Any progress?
 
yea, half in my head, half functioning
I wish my brain worked with math better
bezier curves....
the idea is to like draw a sword with parameters so it has smooth, jagged, curved, etc edges to it...sometimes symetrical, sometimes not
then for a game get weapon stats based on the finished drawing
 
@ScottW you any good at hash functions?
 
12:53 AM
good is the point you reach when you don't think in terms of "good" anymore. You believe everyone can do what you do; like walking
 
@Pawnguy7 What kind of help do you need?
 
Whlep.
I have this island here.
You notice, there are different tree tiles.
As well as different water tiles.
They are chosen when drawn, not when generated.
 
And you want to hash it? :D
 
The idea is, I pass in the position of it.
Any constant unchanging value based on this will do.
The current one, as you can see, has a pattern.
Notice the rows of similar trees?
 
I see a pattern
 
12:56 AM
@MohammadAliBaydoun is it a design pattern?
 
@Borgleader Thankfully no! :D
Unless he used the TreeVariationFactory Pattern
@Pawnguy7 So, what's your goal?
 
do you want to hash it or use the position as a rng seed?
 
@Rapptz How is that doing? :)
 
Oh I stopped caring and went back to playing Pokemon
 
I finally got user scripts to work well in my engine. I felt like making a text editor in there or using something like Scintilla, but eh, I wouldn't use it :|
 
1:01 AM
Fair enough.
 
@MohammadAliBaydoun well
By hash, I was just thinking, deriving an int from, in this case, a pair of ints.
I just want to avoid the pattern you see in the picture.
 
@ScottW lol, why don't you mention people?
 
do math on the ints (like multiply or something) and use that for the rng seed? Or am I missing something.
 
@Pawnguy7 Do you want it to do this on compile time or run-time?
If it's compile-time, forget it, use random big numbers :P
 
1:18 AM
why don't you generate stuff via layers?
generate all the water first
create a random shape sand, then put it on top of the water layer, etc etc
 
@Rapptz how do you derive how I made it from a picture?
 
I don't know, I'm just throwing ideas.
 
Currently it is like this:
Wait, I made a post about this for the old one.
I assume it is mostly the same.
@MohammadAliBaydoun runtime, I think
@Rapptz any questions?
 
1:33 AM
Sorry, not paying attention
 
Pokemon X.
 
itsa me
 
1:55 AM
@Pawnguy7> So, I thought, "Nibble, nibble, byte, yum." Get it? Two nibbles makes a byte, and both words are related to food. Apparently hungry people worked on hardware those days.
 
Fail edits? :D
> So, I thought, "Nibble, nibble, byte, yum." Get it? Two nibbles makes a byte, and both words are related to food. Apparently hungry people worked on hardware those days.
Hrm.
Does yours have a space before the > ?
 
Of course.
Fuck you SO chat! FUCK YOU.
 
Oh.
I didn't expect that to work :D
Strange.
There you go.
 
And now it works. Why?
Who knows.
 
My trees are still messed up :\
 
1:59 AM
But anyway, that piece was funny.
 
I read it before. Where did you find it?
 
You have written it AFAIK
 

« first day (1096 days earlier)      last day (3866 days later) »