« first day (494 days earlier)      last day (4463 days later) » 

8:00 AM
@RafalGrasman It's Dwarf Fortress.
 
@RMartinhoFernandes Seems more useful than what I found.
 
user1182183
Hmm what's the goal of the game? ; o
 
To have fun, mostly.
 
8:02 AM
Fun.
 
It's a sandbox.
 
user1182183
Like Minecraft?
 
It has similarities, but it's a completely different gameplay.
 
user1182183
Well yesterday I was looking for some old games, but I just can't get them.
 
user1182183
Anyone played Duke Nukem 3D?
 
user1182183
8:03 AM
and got the CD for it?
 
@RafalGrasman I did.
 
user1182183
Because there was a demo on thhe CD..
 
@RafalGrasman Nope.
 
user1182183
ah, well there was a cool game where u need to fly arond with a robot in a jetpack or sumthing
 
user1182183
or so, well I was 6-7 yrs old
 
user1182183
8:04 AM
but it was cool
 
user1182183
and don't remember how it was named
 
@LucDanton Today Toady fixed "vampires won't try to pin crimes on animals".
 
Yay.
@CheersandhthAlf You may want to put some files on ignore. Namely the 38MB .sdf that IntelliSense uses.
That kind of explains why it took a while during "searching for changes"...
 
oh
hm the wiki says i'm not allowed to create a new page
 
8:08 AM
I think you have to ask the @Cat for powers.
@CheersandhthAlf I created one. I think you can edit it. loungecpp.wikidot.com/…
 
Xeo
@RMartinhoFernandes It's nearly complete now.Some IRgen stuff, I think is still missing.
@SethCarnegie ping. Just post a link, I'll try it out when I can.
 
@RMartinhoFernandes Thanks but it doesn't let me edit
 
I sense that I am making a very rookie mistake with this line: ifstream file (path); as it compiles, but gives a runtime error (error reading characters of string). What could be the issue?
 
@soandos What's path defined as?
 
@CheersandhthAlf Well, I can't help then. Only the @Cat has administrative powers.
I think it's silly to ask people to list projects there, but require authorization.
 
8:14 AM
okay, next day
 
@LucDanton a string in the form :"c:\\users\\...\\new.txt"
 
user1182183
Is string::find case sensetive?
Edit: ah nvm.. it is ~.~
 
@soandos I could suggest switching to a literal instead, but that's just completely blind guesswork. I recommend writing (and showcasing) a SSCCE. Can't really help without actual code and actual errors.
 
Xeo
@RafalGrasman Yes, but you can easily create a case-insensitive string. :)
 
8:18 AM
@LucDanton, int main(int argc, char* argv[])
{
const string path = "C:\\Users\\bob\\Documents\\Visual Studio 11\\Projects\\ConsoleApplication2\\ConsoleApplication2\\new1.txt";
ifstream file;
file.open(path);
}
file contains an error
(should you try to use it)
 
Try using path.c_str().
 
Does the file exist?
 
@RMartinhoFernandes, yes, @LucDanton, correct, checking now
 
Eh, there's a simpler alternative. Sorry.
 
user1182183
@Xeo what's the best way according to you to do a case insensetive search ? ;)
 
8:20 AM
@LucDanton VS uses (the little) C++11 it has by default. And it has that overload.
 
@LucDanton, no difference
 
@RMartinhoFernandes The runtime error seems exotic. Isn't it?
 
Xeo
@RafalGrasman Well, depends. Do you want an entire case-insensitive string, or only insensitive find?
 
@LucDanton: the error message exactly: file2 {_Filebuffer={_Set_eback=0xcccccccc <Error reading characters of string.> _Set_egptr=0xcccccccc <Error reading characters of string.> ...} } std::basic_ofstream<char,std::char_traits<char> >
 
Xeo
@soandos That "error message" is from Intellisense while debugging, right?
 
8:21 AM
That's from the debugger watch window, right?
 
@Xeo, @RMartinhoFernandes yup
 
Xeo
Are you compiling in debug mode?
 
user1182183
@Xeo I only need to check if "needle" is in "haystack" a true or false
 
Yes
 
Xeo
Did you also actually step after the creation of the fstream? :P
 
8:22 AM
@Xeo. ?
 
Xeo
@RafalGrasman Then just write a case-insensitive find. It's a simple loop.
 
I set a breakpoint, and it told me the file contained the error I posted
 
Xeo
@soandos Where is the breakpoint?
 
Right after the file is assigned (there are more lines of code, but they don't matter)
 
user1182183
@Xeo the most "simple" solution what I can find is stackoverflow.com/questions/3152241/… , and it's not only a 'simple loop' :P
 
8:24 AM
Well, did you check if it actually works? If you assert(file); does it blow up?
 
@RMartinhoFernandes, what do I need to get assert to be included?
 
#include <cassert>. A simple if may work as well.
 
<cassert>
 
Yup, assert fails
 
Either the file doesn't exist, or you do not have permission to open it.
 
8:28 AM
Interesting. If I change the file I am trying to open to something in c:\ directly, the assert works, but the file still is not open (same error message in debugger)
 
Perhaps checking for errno/perror can help?
 
> I’m trying to make a peanut butter sandwich. Please post a diagram of where the bread goes. Thanks – Roddy Jun 30 '10 at 19:02
 
@soandos The file is open. Do not draw conclusions based on the internal guts of the stream. Maybe they're not supposed to be valid at that time.
 
I'm still confused as to why installing libsdl1.2debian:i386 would entail uninstalling things like vlc.
 
8:30 AM
Hmm, conflicts?
 
I'll probably end up fetching the libs from my other machine and putting them in /usr/local :|
 
I didn't have any issues, I simply $ sudo pacman -S dwarffortress (yes, Arch has a DF package on the official repositories :P) and voilá.
 
user1182183
@Xeo sorry, but I don't use Boost and won't.
 
Xeo
@RafalGrasman Bad attitude in C++, imho.
 
8:32 AM
@RMartinhoFernandes, you are right, so thanks. Now to figure out why regex is throwing an exception from some random internal function
 
@sehe nice!
 
user1182183
@Xeo It's incompatible with the SDK I'm working with.
 
Xeo
Err, how so?
 
user1182183
Typedef problems are one of the tiny bit shit that happens when combining those 2
 
Xeo
No, they don't.
Everything in Boost lives under the boost:: namespace
 
8:33 AM
@StackedCrooked stlport.org/resources/StepanovUSA.html @LucDanton
 
Xeo
So unless you're doing using namespace boost; using namespace some_sdk;, you won't have problems.
 
@sehe wat
 
Xeo
And if you're doing that, well, you've killed the purpose of namespaces.
 
@RMartinhoFernandes, any ideas?
 
@LucDanton The source of the Stepanov quotes
 
user1182183
8:34 AM
Mwah last time I tried to compile with boost was like in 2009
 
user1182183
Never used it since
 
There were still namespaces in 2009.
 
"I find OOP technically unsound."
"I find OOP philosophically unsound."
"I find OOP methodologically wrong."
"I have yet to see an interesting piece of code that comes from these OO people."
"I think that object orientedness is almost as much of a hoax as artificial intelligence."
 
@sehe Okay?
 
user1182183
Well I don't know how, but there was a plugin which compiled clean, after adding the boost library a bunch of error came up xD
 
8:35 AM
@sehe Woo, string literals. I wonder if they're part of a quiz.
 
user1182183
that's what I remember :P
 
Xeo
@RafalGrasman Maybe you added the wrong search path for the boost headers, and some SDK and Boost headers were named the same.
 
This sounds like a good idea to mention FUD.
 
Like Elmer.
 
Xeo
You need to add Path/to/boost_N_XX/ to your search path, nothing more, and include Boost stuff with #include <boost/blargh.hpp>
 
8:36 AM
@RMartinhoFernandes No they're symptoms lazy copy/pasting
 
user1182183
@Xeo don't really expect a SA-MP SDK which has 7 files to interfere with filenames
 
Xeo
Okay, then no idea. :)
 
user1182183
today it's 4 files xD
 
user1182183
and for more demanding projects we have GDK, also usefull.
 
Anyone have an idea why when calling a regex function, dgbmalloc.c throws an exception?
 
Xeo
8:38 AM
Well, anyways, just try Boost again. It's super convenient.
 
user1182183
mhm why download tons of files If the code snipped which has 30 lines can help me out :P
 
@soandos Sounds like you trashed your heap. Are you doing the nasties with pointers?
 
Xeo
And the next time, another 30 lines help out. And the next time, another.. and another... and another....
 
user1182183
and for linux it's even easier because Case DoEs MatTer ;D
 
@RMartinhoFernandes, no pointers explictily at all. code is just: `regex rx3("{|(");
line = regex_replace(line, rx3, "__OPENING_BRACE__");`
 
8:41 AM
@sehe Actually I don't think artificial intelligence is a hoax.
 
Xeo
The point is, stop reinventing the wheel. The Boost code is well tested and fully generic.
2
 
@soandos No pointers anywhere else?
 
@RMartinhoFernandes and the previous regexes work fine
@RMartinhoFernandes, nope, not at all
 
@Xeo No one invented the whell yet. Is that a cross of a well with a wheel?
@soandos Could be a bug in the implementation (AFAIK VS11 is in beta, right?)
 
@sehe What the hell is that about ?
 
Xeo
8:42 AM
And once you got boost, you'll find many opportunities to use it.
@RMartinhoFernandes wheel hell.
 
@sehe Indeed, that's were I got the quotes :)
 
Xeo
@RMartinhoFernandes dev preview.
 
user1182183
@Xeo I get your point. But some people just don't like it to download a 30 MB archive :P
 
@RMartinhoFernandes, possible, but unlikely. here is the whole code if you want to see it
About as simple as it gets
 
@angryInsomniac I linked to the article
 
Xeo
8:44 AM
@RafalGrasman Err...
 
user1182183
@Xeo well see it like this: I have at least 5 Open source C++ projects and none of them needed anything from boost ;)
 
Xeo
@RafalGrasman I don't even want to imagine how many times you reinvented the wheel in those...
 
wait a second, are { or ( control chars in regex?
 
@soandos Code seems fine to me (but consider that I've been awake for ~24 hours now).
 
Xeo
@soandos Yes, I think so?
 
user1182183
8:45 AM
@Xeo I have nothing against if you want to count... gpb.googlecode.com
 
@soandos ( is .
 
So how do I escape it?
 
Xeo
Double backslash?
 
not single?
 
@sehe :P Interesting !!! :D
 
8:46 AM
@RafalGrasman I have five open source C++ project and all of them needed something from boost.
 
Xeo
@soandos Single would be a literal escape character in C++, aka \n
The double is to escape the escape itself
 
@Xeo, \\ does not work
 
@soandos A regex escape is a backslash. But to you insert a backslash into a C++ string literal you have to escape it.
 
user1182183
@R. probably (very) big projects. Mine are just extensions for a server engine.
 
@RMartinhoFernandes, @Xeo, my bad it works, but the { also needed to be escaped
 
Xeo
8:47 AM
@soandos That's why I said yes to both. :)
 
Xeo
@soandos So, the file opens now?
 
@Xeo, yes, and regex works too :)
 
Xeo
Gratz. :)
 
@RafalGrasman Actually, quite the contrary. Very small projects.
 
8:50 AM
@sehe Both articles seem old :P the second one was in 2007 ! but still , I've rarely read anyone argue so passionately against OOP , mostly old cobol programmers who sound like crazy maniacs !!
 
@Xeo What????
 
@Xeo Ahhh the dong conversations :D every room has to devolve to them sometime :)
 
user1182183
@R. ok ; o
 
user1182183
Well anyone uses what he/she wants and is comfortable with lol.
 
Xeo
@RafalGrasman FWIW, I'm currently writing a dependency checker that actually parses #includes and acts upon them, and I for sure don't want to miss Boost.Filesystem in there.
 
8:52 AM
@RafalGrasman That's exactly the point I was trying to make.
 
Xeo
Which is another plus for Boost: It's cross-platform
 
@angryInsomniac how old are you? The previous C++ standard was from 2003...
@angryInsomniac We, here, argue against OOP all the time. Most often, we call it 'Java', though
 
@sehe Would you beleive I'm 8 ? :D
 
There's no dong.
 
user1182183
@Xeo yes boost is a nice library, I just want to do it my own way. As I'm no pro at all but a hobby programmer it's also more fun to work problems out instead of downloading a (unpacked) 120 mb archive and letting it do all the work for you. :P
 
8:54 AM
@sehe Just ignorant really :)
 
You need a very twisted mind to see one.
 
@angryInsomniac Sometimes I would
 
user1182183
Ofcourse people that work for companies and need things to be done fast, okay in such case I would use boost.
 
@RafalGrasman Why do you use the Standard library at all instead of writing your own stuff then?
 
user1182183
Well somebody has to begin with something :d
 
8:55 AM
@sehe Java prophesies itself to be fully OOP though ! ( I wouldn't know why that is wrong .. again ignorance of the issue)
 
user1182183
I was using pawn scripting language (still am)
 
he is lazy, or too busy to recreate
 
@RafalGrasman Right, and what are you going to do now that some part of the Standard library are lifted straight from Boost?
 
Xeo
@RafalGrasman On a side note, are you seriously complaining about the filesize of Boost? Unpacked and built (with .obj intermediate files), it takes roughly 1.3gig on my external hard drive
 
@sehe Sometimes I wish !
 
8:56 AM
The point is the 'something' you should begin with should in all likelihood be C++ + Boost.
With just Standard C++ you can't even navigate the filesystem (this has just been mentioned). What are you going to do?
 
user1182183
@Xeo Yes I am :p
 
user1182183
@Luc well then Ill need to find it out ;d
 
Xeo
@angryInsomniac And that's not a good thing. Nobody ever instantiated a Math object in Java, for example. :P It's a bunch of static methods to undermine it's pure OOPism
 
@RafalGrasman You've also not likely used every feature of the Standard library, but that won't prevent you from not using any of it. Same goes with Boost.
Need to navigate the filesystem? Boost. Need to do some networking? Boost. Need to do some low-level multithreading? Boost that has been lifted into C++11. Need an optional type? Boost. Need a variant type? Boost. Need to do some advanced parsing? Boost. And so on.
For the record we don't have a stake in Boost.
 
@Xeo Hmm .. I'd try to sound knowledgeable about that , but I wont ! I guess I can see your point though , just a library filled with static methods would be counter-intuitive to OOP !
 
8:59 AM
I read "For the record we don't have a skate in Boost."
 
@RMartinhoFernandes Well, that too.
 
user1182183
@Luc ah well I'm just a hobby programmer, not a serious one xD I'm still very basic, that's maybe the reason I'm <don't know what> for boost?
 
@RafalGrasman I'm also a hobbyist. Remember, the comparison is that some of what Boost provides is as fundamental as what the Standard library does.
 
@RMartinhoFernandes You'll be happy to know I finally took your advice and used boost's smart pointers ! So .. awesome :)
 
Sorry, I don't remember that, but I'm happy you found the advice useful.
 
Xeo
9:01 AM
@angryInsomniac Great, and now switch over to std smart pointers. :] std::unique_ptr is so much more awesome than boost::scoped_ptr
 
user1182183
@Luc ah well when I will be upgrading to Visual Studio C++ 2011 Express I'll make sure to get a copy of boost ; P
 
user1182183
just give it another try.. ;x
 
@Xeo :P The reading never ends :]
@RMartinhoFernandes Its cool :) I remember you yelling "USE SMART POINTERS" over and over again to help me solve my leak problems
 
@Xeo That's just generally that move semantics kick ass
and faux-move-semantics don't
 
Xeo
@DeadMG With Boost.Move, I have the slight hope that Boost will finally get move semantics. It kinda hurts for stuff like filesystem::path that are moved / created over and over, and where the underlying std::string even already has move-semantics. :/
 
9:07 AM
@Xeo What annoys me most are containers like optional and variant.
 
@RMartinhoFernandes Ah, I think I notice what the conflict is. Apparently some things are loaded at runtime, not load time, and that can't disambiguate between the 32-bit or 64-bit versions. I think.
 
Oh, and I had to implement an intrusive linked list because Boost.Intrusive hooks are not movable either.
 
@Xeo > Filesystem: We've added the <filesystem> header from the TR2 proposal, featuring super-cool machinery like recursive_directory_iterator. Note that the 2006 proposal (before work on TR2 was frozen due to C++0x running extremely late and turning into C++11) was derived from Boost.Filesystem V2. It later evolved into Boost.Filesystem V3, but that will not be implemented in VC11. (blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx)
 
is @Seth still here?
 
Does that port have move semantics. (^^)
@rubenvb You mean the other one. It is confusing as hell that @Seth uses my first name as a handle :)
 
Xeo
9:10 AM
@sehe I can check, I installed VS11 dev preview just yesterday
 
@Xeo From what I remember from Bartosz M.'s blog, it should have move semantics
 
Xeo
THE FUCK MICROSOFT!
 
@sehe you're @sehe, I'm talking about @SethCarn?gie that wanted a Clang for Windows
 
Xeo
When installing the dev preview, they let me choose where to install.. "External... tools.. VS11". What's there? 25mb of something VS11 needs, the rest is on "C:\Program Files\Microsoft Visual Studio 11.0" -.-
 
@rubenvb He already has one. He is looking for people to check if his building steps are reproducible.
 
9:12 AM
@RMartinhoFernandes ok, you know what he did by any chance?
 
@rubenvb He didn't post that, but if you want to try it ping him.
 
@rubenvb He spent 6 hours grumbling
 
Xeo
Damn it, there's a friggin reason I wanted VS11 on my external..
 
@RMartinhoFernandes Bahaha I hacked some symlinks into /usr/local/lib32 and it works.
 
@LucDanton lol. Nice.
 
9:14 AM
@Xeo Thank you Microsoft arrogance
 
@RMartinhoFernandes Like this? rubenvb pinging @SethCarnegie?
@sehe That's not very productive...
 
@rubenvb You can't tell from where you're sitting. I can grumble very effectively. "The seven grumblings of highly effective people"
 
Hmm, just got a "themed" wave of migrants. Ten dorfs almost every single one knows how to fish.
 
I say let them deal with the carps.
 
@LucDanton Carps are gone now. (Well, at least the insanely deadly variety of old.)
 
9:17 AM
I have DF on a screen, this chat in the other, and htop in the last one to have something to look at when DF is busy computing stuff and nobody is saying anything.
 
@LucDanton You must have an interesting life ;-)
 
@LucDanton Carp? If they croak too, just let them die
 
@rubenvb Well I'm cheating I actually have another computer nearby.
 
@sehe He's obviously talking about the cool (Magi[C|K]arp)[bulbapedia.bulbagarden.net/wiki/Magikarp_%28Pok%C3%A9mon%29]
MARKDOWN FAIL
 
@rubenvb Also I'm venting after fighting annoying bugs.
 
9:22 AM
@rubenvb thanks for the warning
@LucDanton they got bugs now, not carps. good to know
 
Mmmh, I made a test run earlier with a small world, and now it's a medium world and is taking so much more time, except it's on my desktop not my laptop :|
 
I remember that I used to like fiddling with the starting dorfs/expedition, but the stock settings are fine right?
 
9:31 AM
@LucDanton Dunno. Never played with stock settings.
I'd at least look over the items. I usually pack at least one breeding pair of animals.
 
By the way, why didn't I get recognition when I compiled Clang (and made it find the MinGW/libstdc++ headers)?
I feel discrimitated.
 
user1182183
Can you describe in short what "Clang" is and what it's for?
 
C and C++ compiler.
 
user1182183
ah
 
user1182183
Kinda special one?
 
9:35 AM
Well, I don't think so. But I don't know what would make a compiler special to you.
 
user1182183
Hmm well I see it's being a 'high rated' subject.
 
@RafalGrasman it's the compiler which will replace g++.
 
user1182183
oh oke :)
 
@RMartinhoFernandes Interface is already driving me insane. I don't understand how I am supposed to flip through the different results of a search in the fortress location screen.
 
@LucDanton + and -? * and /? Those are the usual ones.
 
9:39 AM
@RafalGrasman it shines out in nice error messages, and the fact it is really just the frontend to libClang, which can be used by IDEs for parsing etc... not to mention it still outperforms GCC on average by quite a bit.
 
@RMartinhoFernandes * did do something but that wasn't related to the search results.
 
And it has some cool C++11 features implemented other don't yet.
 
Jesus h. Christ, so many incorrect answers
 
@Abyx hehe. no populism there
 
0
Q: idiomatic C++ for creating a std::vector from the last n elements of a std::map

uvts_cvsWhat is the C++ idiomatic way of creating a std::vector from the last n elements of a std::map? I am not interested in preserving the order in the vector. I can copy the elements, like this: std::map< double, MyType > m; size_t n = 3; std::vector< MyType > v; std::m...

 
9:43 AM
@jalf Ha! I had to fix yours too :P
advance needs an lvalue.
 
@RMartinhoFernandes Sweet. I didn't know std::next() yet. std::advance() not being 'functional' was one of my gripes
 
@RMartinhoFernandes ah right. Did you edit it?
 
@jalf can't you find it out? stackoverflow.com/posts/9392248/revisions
 
@sehe I could, but I closed the tab, and was just trying to work for a second. ;)
 
In that case chat.stackoverflow.com/transcript/message/2712064#2712064 (^^^^^^) said it all. And I responded to the edit :)
 
9:52 AM
@RMartinhoFernandes Do you mind if I badger you some more with DF? Have still not embarked, I'm carefully planning. Still should go with multiple females, 1-2 males when it comes to breeding no?
 
Xeo
@jalf auto vec(boost::copy_range<std::vector<MyType>>(map | boost::adaptors::map_value)); :)
 
@Xeo No implicit conversion here. Should that be std::vector<MyType> vec?
 
Xeo
@LucDanton boost::copy_range takes the type to copy into
 
Or perhaps auto range or something?
@Xeo You're calling a range vec, is the point.
 
@LucDanton Yes, one male can easily impregnate several females.
 
Xeo
9:54 AM
@LucDanton No, it's a vector. The return type of boost::copy_range
 
Don't bring female cats though!
 
I wasn't planning on cats.
 
Woot! Captured a human necromancer!
 
@Xeo Oh, somehow if the function/template isn't called make_foo I don't trust it to return foo.
 
Xeo
heh
Oh, wait, the last n elements..
Meh, adaptors::sliced needs random-access ...
 
9:59 AM
What's a drake? They appear between duckling (female) and duckling (male).
 
It's a duck.
 
Duck is the female or unspecified, and drake is the male then?
 
> A male duck.
So it goes.
Man I'm getting poultry just for the heck of it. Also, ranching is new to me.
Oh wait, I need a budget for those dorf skills too!
Bah! They'll learn on the job.
Embark!
Who needs talent when you have 21 hens.
 
@LucDanton Oh, right, now you have to feed cattle. Hmm, that might explain why that yak calf starved.
 
10:03 AM
@RMartinhoFernandes Fuck.
 
@LucDanton There's plenty of grass around. The yak calf I mentioned got trapped in the refuse pile, that's why it died.
 
@RMartinhoFernandes I figured as much yes.
I noticed that I can designate pastures.
 
That's for confining the animals to a certain zone.
 
Mmmh, I can't flood fill a pond apparently :(
 
Hmm, second human necromancer I catch. This is starting to get scary.
 
Xeo
10:07 AM
Okay, got a nice solution now :D
typedef std::vector<X> vec_type;
typedef std::vector<map_type::const_iterator> ivec_type;
auto vec(copy_range<vec_type>(
  copy_range<ivec_type>(counting_range(m.begin(), m.end()))
  | sliced(m.size() - n, m.size()) | indirected | map_values
));
 
Oh, that's because water doesn't count as a floor or something like that isn't it?
 
@LucDanton What do you mean "flood fill a pond"?
 
To designate zones I can draw rectangles or use a flood tool.
 
Xeo
Though it's a shame that I need that counting_range(...) | ... | indirected dance because sliced doesn't accept anything less than random access. :(
 
Oh, I didn't know that. I always used rectangles.
 
10:20 AM
@RMartinhoFernandes Do you manage the jobs manually?
 
@LucDanton Do you know about The Rapist?
 
Do I have to build it? I notice the downloads are strictly zip files.
 
Geez, people, wiki is not that complicated. Click "Join the site", enter the password, and you can create new pages.
 
@LucDanton Hmm, possibly. Again, my distro has a package.
 
Since when zip means "you have to build it"?
Also, labels. OpSys-Windows
 
10:25 AM
@CatPlusPlus The long version is "I notice there is only one choice of download per version, a zip archive", but it's too long.
 
@LucDanton Seems there are Ubuntu and Debian packages.
 
> Dwarf therapist needs to run as root because user ptrace is disabled
No amounts of lookofdisapproval will suffice.
 
Xeo
Btw @sehe, I just looked into the <filesystem> header from VS11 and it indeed has move semantics. Would be strange if not
 
@LucDanton Well, they don't have many alternatives, do they? It's not like DF offers a nice clean API to hook into ;)
 
@jalf Oh no doubt, it's more an artefact of the security model we've been stuck with than anything else.
 
10:38 AM
Great, destroyed wagons are reported as deceased. Guess Toady made them creatures.
 
@RMartinhoFernandes does that mean they can become undead too?
 
Oh crap.
I hope not.
 
I don't think Therapist is working :|
Is it first connect, then read?
 
@LucDanton has it been updated for the new version yet?
 
Xeo
10:50 AM
0
A: idiomatic C++ for creating a std::vector from the last n elements of a std::map

XeoHere's a simple Boost.Range version: #include <boost/range/iterator_range_core.hpp> #include <boost/range/adaptor/map.hpp> #include <map> #include <vector> struct X{}; int main(){ std::map<int, X> m; unsigned n = 0; auto vec(boost::copy_range<std::vector&...

♥ Boost.Range
Now if std::vector had a range constructor, I wouldn't need that stupid copy_range
 
@jalf Yes, but not the one version I have.
 
11:11 AM
Mmh, I built it, and now it claims it can't talk to the version of DF I have. According to the site though I did build the version of Therapist that should be able to talk to my DF.
The changelog in the source directory agrees with that, too.
 
Do you have memory layout description for that version?
 
I just noticed they're not on the repo for Linux. I'm trying something I found in the comments of the wiki. No dice though.
That being said, the error being reported right now is that it's unable to talk to DF.
 
It doesn't depend on Therapist version, you need an .ini with memory layout for that particular DF version.
 
Right.
 
Hi.
Has anybody here have done a GIT -> BZR conversion using the fastimport files?
I am having problems that one branch from the GIT repo is not being converted into the BZR repo.
(grabbing straws)
 
11:26 AM
> QProcess: Destroyed while process is still running.
That normal?
@RMartinhoFernandes What version of DF are you running?
 
@LucDanton 34.02.
 
@RMartinhoFernandes If you're using Therapist then I'd be interested in your memory layout.
 
And now it works. Thanks a bunch!
 
11:47 AM
What is Therapist?
 
@StackedCrooked tool for making Dwarf Fortress manageable
basically a spreadsheet showing you your dwarves skills, and current activity and things, and letting you change their roles. All the stuff you can do through the game, but which is normally impossible to keep track of once you have more than 10 dwarves
 
@LucDanton And mine doesn't work anymore! You stole it from me!
 
I admit to nothing.
 

« first day (494 days earlier)      last day (4463 days later) »