Session Start: Tue Oct 28 20:41:46 2003 Session Ident: #apolyton [20:41] * Now talking in #apolyton [20:41] * Topic is 'Apolyton Chat: Join us in our idling heaven' [20:41] * Set by ACS_MarkG on Thu Aug 14 20:37:42 [20:50] * settler2 has joined #apolyton [20:50] * settler2 has quit IRC (Quit: settler2) [21:00] * settler2 has joined #apolyton [21:00] * settler2 has quit IRC (Quit: settler2) [21:10] * settler2 has joined #apolyton [21:10] * settler2 has quit IRC (Quit: settler2) [21:12] * Solver has joined #apolyton [21:13] * Aidun has quit IRC (Quit: ) [21:20] * settler2 has joined #apolyton [21:20] * settler2 has quit IRC (Quit: settler2) [21:22] * ACS_MarkG has joined #apolyton [21:22] * ChanServ sets mode: +o ACS_MarkG [21:22] hello markos [21:22] and thank you for everything you've done to achieve this [21:23] did you see my mail, Markos? (sent it just a minute secs ago) [21:23] and yes, good stuff :b: [21:24] * ari doesn't know what the hell is going on but follows the herd and thanks Markos anyway [21:24] Asked for something ugly, Loc ;)? [21:24] ari - shame on you [21:24] no yet loc [21:25] * maq has joined #apolyton [21:25] just a minor nitpick or two, solv [21:25] ari: check the ctp forums/news [21:25] evening [21:25] hey maq [21:25] Loc - already stuff with compilation [21:25] custom debug steps :( [21:25] hi maq [21:25] Ooh, this sounds like something I might like [21:25] CivCTP_dbg.exe - 1 error(s), 0 warning(s) [21:25] The following environment variables were not found [21:25] $(CDKDIR) [21:25] thought you did... [21:25] oh well, there we go... [21:25] wow, sounds promosing, solv. [21:26] true! [21:26] still moving threads myself, no time for fun and games yet :( [21:26] Performing Custom Build Step on .\ctpdb.y [21:26] wtf are .y files and why are they built? [21:26] it has code, but aint recognized as a code file [21:26] oh well, fun has started [21:26] loc one thing you might like [21:27] it builds to civctp.exe not ctp2.exe :) [21:27] the ctp source is out? [21:27] SprudL yes [21:27] nice [21:27] well, it wsa built on the ctp1 framework, and renaming only takes 2 secs... [21:28] so they finally came through [21:29] loc not on framework, they took the ctp1 source and were modifying it [21:29] am i missing someone from the thanks? http://apolyton.net/ctp2/ [21:29] (not talking about apolytoners :)) [21:29] st_swithin who contacted Mr Ogre for us [21:30] * settler2 has joined #apolyton [21:30] * settler2 has quit IRC (Quit: settler2) [21:30] Wow, a dream come "ture" :p [21:30] And Pyaray maybe, he was encouraging us on the forums, etc [21:30] I think they deserve a mention too [21:30] * visu has joined #apolyton [21:30] * visu has left #apolyton [21:31] no, I think Joe and Doug were the most important people. [21:32] They were, but does this mean that the rest don't deserve a mention? [21:33] ok, managed to succesfully build some libraries [21:33] i dont think ill be doing my actual work tomorrow ;) [21:34] lol [21:34] well, we could credit The Big Mc then as well, for emailing Activision all the time and I could think of a lot of other people, but Joe and Doug were the most important ones. [21:35] markos said not including apolytoners [21:37] though if Markos wants to fix stuff, there's a typo in the thanks: whome should be whom ;) [21:37] aha :) [21:40] * settler2 has joined #apolyton [21:40] * settler2 has quit IRC (Quit: settler2) [21:40] Loc - my congratulations go beforehand to whomever will be the first to compile ;) [21:41] well, not me, that's for sure. I'm already almost 2 hours behind on you guys... [21:42] behind? not really. we haven't done anything [21:42] i have only built some library, some helper utility apparently, and investigated the source tree file structure [21:42] http://apolyton.net/ctp2/ [21:43] source code eh? [21:43] markos - imho, great looking [21:43] im curious whether major gaming sites like gamespot will have a story [21:43] redstar, yeah, source ;) [21:44] i'm having a guess they haven't included the visual studio.net project file?;) [21:44] they have [21:44] not .net though [21:44] oooo [21:44] studio 6 [21:44] vc 6? [21:44] ah yeah [21:44] .net wasn't around when the game was built, iirc [21:45] but thats little difference. although i guess .net is a bit more convenient [21:45] yeah i know, was kidding slightly [21:45] might have a play about with it [21:45] dont play, better join the official effort of ctp community :) [21:45] solver, i'm currently submiting a story to slashdot :) [21:45] be interested in the iso engine [21:46] you know, we need all the help we can get... [21:46] to build on it? [21:46] great stuff, markos [21:46] redstar, drop by the forum and see our plans [21:46] will do, after the football;) [21:46] Markos: looks good, but I see you still didn't read my email yet ;) [21:46] too bad I don't have visual studio [21:47] Markos: mind if I submit it to some other sites, like in Russia? [21:47] well you can always use some free compiler... [21:48] heck, I think I might submit this to some Dutch sites as well, once I'm done with all my other chores... [21:48] I wonder if it would work with gcc ;) [21:48] i'd submit to Latvian as well, but there are none... [21:48] Sprudl, that's what I'm hoping too :) [21:49] as seen, i am even today abandoning quite some other work [21:49] gcc... well it would compile i guess, but after quite some rearranging of it all [21:49] hehe... it would be nice [21:49] ok markos, i assume i may submit the story [21:50] * settler2 has joined #apolyton [21:50] * settler2 has quit IRC (Quit: settler2) [21:50] give me a hand, should i submit the whole story, or just the link to poly page? [21:52] * CyborgPlumber has joined #Apolyton [21:52] Ahoy [21:53] matey [21:55] funny license that comes with the source [21:55] funny? [21:56] will you look at that: the forum is just 2 hours old and already surpassed at least 20 other forums in # of posts :D [21:56] yeah, i love that [21:56] I call that a good day's work :) [21:56] extremely active :) [21:56] or a good day's spam ;) [21:56] well, I am, at moving threads ;) [21:57] * visu has joined #apolyton [21:57] * visu has left #apolyton [21:57] * centrifuge has joined #Apolyton [21:57] now I should finally have time to actually look at the code... [21:58] yes solver feel free to contact any russian sites... [21:58] * centrifuge has quit IRC (Quit: Leaving) [21:58] well you wouldnt understand what they're writing about poly anyway :p [21:58] ah, good, Markos, I see you read my email :) [21:58] can we expect an entry on imarton? [21:59] must have been important wouter :) [21:59] * Zephyr has joined #Apolyton [21:59] yup, the name of the just changed. something that will no doubt please IW as well ;) [21:59] name of the forum, that is [21:59] yeah, and myself too [21:59] yay, muchos happiness [21:59] i wanted to post about that, but i decided that would be lame [22:00] so i left the lamer role to IW :) [22:00] * settler2 has joined #apolyton [22:00] * settler2 has quit IRC (Quit: settler2) [22:00] thanks [22:00] yeah it's lame. but not to worry, I had gotten about half a dozen complaints already, so you're in good company :) [22:00] company that includes yours truly, btw :) [22:01] Yes it worx! [22:01] oh thats good :) [22:01] Yes it kept saying CPU not suported so i hada look up the help thingy, very Informative [22:01] Well hello im new here :) [22:02] hello then CyborgPlumber [22:02] I havent played AC in a long time [22:02] i just picked up the CD bc i got bored... [22:03] I Live in San DIego and theres a HUge fire storm going on so im Confined to my house and there wasnt anything to do... [22:03] playing civ during a firestorm [22:03] must be a new record of addiction ;) [22:03] heh well its past my house it WAS 40-50 feet away [22:04] hmm, it seems it was DanQ all along who fixed the typos. that bastard always sneaks up to you when you least expect it ;) [22:05] Now i have to clean pool filter... Must be effiecent ya knwo being a borgn and all.. Ill be back later afk [22:05] borg* [22:05] so, anyone got the code running yet? [22:06] running as in? [22:06] as in compiled to an exe without errors and then executing it... [22:06] no no... [22:06] there are some env variables referenced that don't exist [22:07] and there are those weird .y files in ui/ldl folder [22:07] no? but you've had the source for hours now [22:07] that use some custom build steps compiler won't recognize [22:07] just 2 hours [22:07] * Fred has joined #Apolyton [22:07] besides, i didn't try really hard yet ;) [22:07] i'll work on that tomorrow more. today was just making myself a bit familiar with how it's organized [22:08] hmm, that's annoying. let's hope we can get past that fairly quickly. Be sure to post about that on the forums, maybe the Actigrammars can help out... [22:08] Old ctp2 fan- [22:08] loc there's a good chance we'll get over it soon [22:08] i hope ;) [22:09] well, in that case, welcome back, Fred [22:09] true, welcome back [22:10] * settler2 has joined #apolyton [22:10] * settler2 has quit IRC (Quit: settler2) [22:10] Thanks been playing the mods great work Diplomod 3.6 is the best so far [22:10] For diploancy that is [22:11] yeah, that's pretty good. but hopefully now that we have the source code, it could become even better :) [22:12] of course! [22:15] Solver: is it possible those .y files contain yacc stuff? [22:15] what's that :)? [22:15] They contain c-like code, but surrounded with % signs, for instance [22:16] don't know if it exists on windows but I've heard about it on linux ... yacc generates code [22:16] let me see if I can find a manual [22:16] hardly... they contain normal code [22:17] yacc = yet another compiler compiler. used for creating your own compiler. might have been used for SLIC.... [22:17] http://dinosaur.compilertools.net/#yacc [22:17] nah, it's in the UI section [22:18] sounds unlikely then, though I'd have to see it myself. shame on you for not knowing yacc, Solv ;) [22:18] shut up, loc :p [22:18] The ai seems good now but things like ai civs with same goverments becoming allies would be great [22:18] i must say, that i have so far totally failed to understand many small code files [22:18] the bigger ones make sense though [22:18] I'm guessing it's yacc :) [22:19] loc, was what LDL in ctp ui? [22:20] * settler2 has joined #apolyton [22:20] * settler2 has quit IRC (Quit: settler2) [22:20] LDL, just the extention of the UI files. not sure what it stands for. [22:21] i'm reading through the licence agreement now. seems it was custom-designed for us, not just your standard disclaimer. Looks like Activision went through a lot of effort for us :b: [22:21] of course it was designed for us [22:21] after all, the case is very special [22:23] well, this is not the first time a code is made public. and there are plenty of standard licenses out there to copy-paste -- they don't seem to have done that [22:23] true also [22:26] * Peter_T has joined #Apolyton [22:27] hi Peter [22:28] Hi. Is everybody in the same room? [22:28] hey peter... [22:28] yeah, it would seem so [22:28] whoah [22:28] Hi Peter [22:28] martin has already done amazing work [22:28] apparently made the first bugfix [22:28] though Maq and I are in #lemuria as well, but it's rather quiet there ;) [22:28] or at least thinks he does [22:28] * ACS_MarkG changes topic to 'Apolyton Chat: CTP2 Source Code Release Party!' [22:29] cant stand this though [22:29] im crashing [22:29] I noticed. Some of the AI stuff actually almost makes sense. [22:29] oh, and I created a new channel: #ctp2source -- we could use that if this one is unavailable in the future [22:29] good night Wouter, Markos, Fred, Maq, Sprud, everyone else [22:29] goodnight Solver [22:30] * settler2 has joined #apolyton [22:30] * settler2 has quit IRC (Quit: settler2) [22:30] bye, Solver. CU tomorrow [22:30] * Solver has left #apolyton [22:30] Bye, Solver [22:30] hi peter [22:30] hi, maq [22:32] I'm planning on sending an e-mail to someone at Activision to say thanks. [22:33] I think thanking them in the forum would be enough -- their network woul overload if we started handing out their address :) [22:33] Not only did they give us the source for free, it must have actually cost them to do it [22:33] * iskallin has joined #Apolyton [22:33] yeah, i remarked that earlier as well. [22:33] hoorey [22:34] hi [22:34] hi iskallin [22:34] be back in a sec. I need some coffee [22:34] hi maq [22:34] and it seems like we suddenly have C++ programmers popping up all over the place :b: Let's hope they wil actually stay and help out though... [22:35] how many so far? [22:35] we need a non-coding thread for spammy comments like "hehe, 'm.int' :lol:" [22:35] didn't count, but must be at least half a dozen new guys... [22:35] well, we have a whole forum :) [22:36] 2Great! [22:36] I noticed the forum [22:36] this seems like a good excuse to brush up my C++ skills ;) [22:36] 2This is a good excuse to learn c++ [22:37] true on both accounts :) [22:37] I did... a long time ago :) [22:37] 2I should have... a long time ago:) [22:37] hehe [22:38] it's never too late [22:38] :) [22:39] Just started learning C++ have long way to go [22:39] indeed, you're never too old to learn :) [22:39] 2Yeah considering that i'm fourteen then i have about 60 years to learn it [22:39] or too young, for that matter ;) [22:39] LOL [22:40] * settler2 has joined #apolyton [22:40] * settler2 has quit IRC (Quit: settler2) [22:40] C++ is great as a first programming language :> [22:41] 2How old were you guy's when you learnd it [22:41] is that a joke sprud? [22:41] yes, well, if once you've mastered that, at least things can't get much tougher ;) [22:41] joke what? [22:41] programming? I think 8 or so. but that was GWBasic, C++ is not quite on the same level :) [22:42] * ari swears in the name of LISP, even though he couldn't even implement hello world in it anymore [22:42] Or was it swear by...? [22:42] hehe.. I remember poking at example source code on my Commodore 64... age 8 or 9 [22:43] i started with QBASIC age 10, then SLIC aged 16. then I gave up [22:43] okay, so it CAN get tougher, but who needs LISP anyway? *famous last words* [22:43] 2I'm sure someone could name quite a few [22:43] LISP... I know that language... from the Python newsgroup... lots Python vs LISP threads [22:45] Dan missed the CTP-SuperLeague forum [22:45] I think I've still got the LISP 1.5 manual around, from back in the 60's [22:46] Never did anything with it though [22:46] zeph, that's because I didn't mention that one in my email... :o not that it matters, it doesn't show on the front page... [22:46] Peter: Great work on CtC i got toasted on medium :D [22:46] Thanks. [22:47] it's in the forum jump dropdown though :( [22:47] Nay thakes go to you [22:47] Bah heathens! [22:47] But the source opens up all sorts of new possibilities [22:48] oh, I never use that one. I know the forumID by heart anyway... well, you're gonna have to mail Dan about that one yourself. I used up all my favours for this week ;) [22:48] Gotta figure out how templates work. They seem to be used quite alot [22:49] did someone look at the bin folder yet? looks like they got Unix's coolest tools ready for use in Windows :b: [22:50] * settler2 has joined #apolyton [22:50] * settler2 has quit IRC (Quit: settler2) [22:50] How long do you recon until someone begins to understand something in the source [22:50] hehe.. hadn't noticed [22:50] ppl could install cygwin and have those tools [22:51] cygwin? not familiar with it... [22:51] it's basically a windows port of a lot of unix/linux stuff [22:51] like bash, sed, grep, ... [22:51] Hard to say. I see a lot of familiar SLIC like stuff in the file I've looked at. [22:52] yeah, just googled it. sounds interesting... [22:53] I have it on my laptop at work... [22:53] I use grep a lot :) [22:53] grep rocks :b: [22:54] and diff [22:54] and ... [22:54] etc... ;) [22:54] I always miss that stuff on windows [22:55] yup, one of the reasons why Unix will probably always remain superior to Windows :) [22:56] hehe [22:56] hey.. it only took MS like 15 years to have tab completion in a shell by default [22:57] * ari wonders when he last had Windows installed on his main box... [22:57] so, what? another 100 until they copy grep? :) [22:58] lol [22:58] * J_Bytheway has joined #Apolyton [22:58] Greetings from The fire storm in San diego =D [22:59] Hi, Cyborg (or is that you Oerdin)? [22:59] No im new here =D [22:59] Hello [22:59] * iskallin has quit IRC (Quit: Leaving) [23:00] * settler2 has joined #apolyton [23:00] * settler2 has quit IRC (Quit: settler2) [23:00] * G_Slacker /who [23:00] Oops. [23:00] btw, when Dan thanked the guys at activision, the reaction he got was: 'I hope the fans really take advantage of it and make some cool mods of CTP2. :)' [23:00] so we can thank them by doing what we do best ;) [23:01] I'm glad the people there realise what it is we (think we) do well :). [23:02] True. i lurk around a very small forum of professional developers/programmers. [23:03] And someone there said that ID Software did wonders for game design when they released their source [23:05] definitely true. [23:07] I think I'm going to back to browsing the source. CYA later if your're still here. [23:07] i'm doing the same as we speak :) [23:08] * Peter_T has quit IRC (Quit: Leaving) [23:10] * settler2 has joined #apolyton [23:10] * settler2 has quit IRC (Quit: settler2) [23:10] Well im off just wanted to let you know the ctp2 mods have been noted on other game fourms and still comparded to new games great work [23:11] * Fred has quit IRC (Quit: Leaving) [23:12] they have? [23:13] maybe he means CFC? [23:15] could be. shame it was us doing most of the comparing [23:17] yeah... [23:18] btw, I noticed a byacc file in the bin folder, so the .y files might refer to yacc files after all, SprudL (if you're still here) [23:19] indeed [23:19] but there's allso an ldlyacc.h or something [23:19] that more or less gave it away [23:20] * settler2 has joined #apolyton [23:20] * settler2 has quit IRC (Quit: settler2) [23:20] I could have sworn I saw bison somewhere, but perhaps I imagined it... [23:20] ah. then the LDL files form their own little language (like SLIC) and are compiled by a yacc-generated compiler... [23:20] * MRex has joined #apolyton [23:20] I think I saw that name as well... hmmm... [23:21] hi :) [23:21] so there could a language to make the UI then? [23:21] maybe they used yacc for LDL and bison for SLIC? :confused: [23:21] could *be* a language... djz.. still can't type [23:21] well, the LDL files sure look like a scripting language. But noone has ever been able to make much sense of them. [23:22] and yes, the LDL files control the UI [23:23] open the LDL files in a text editor and see for yourself... [23:23] there's a slic.y file [23:23] hmm... [23:23] yacc for slic too then? [23:23] the plot thickens. would make sense. but what's bison doing there then? or maybe John and I were just dreaming... [23:24] I remember when I first saw ldl files in CTP1 and I was most dissapointed because I had no idea how they worked, and I was most impressed that anyone had modded them - it was over a year before I thought to open one in a text editor. [23:24] I think perhaps I saw the name "bison" appear fleetingly during the installation... [23:25] aha... bison is mentioned in the readme. according to that, there should be a bison file in the bin folder but there isn't... [23:25] its in the readme IIRC [23:25] can't find bison at first glance [23:25] doh! byacc! [23:25] dammit, crossspeak. [23:26] Yep, it was in the readme [23:26] That explains it. [23:26] byacc == bison? [23:26] I'm not sure of this, but I think bison and yacc are two different things that perform the same function. [23:26] aha. from gnu.org: Bison is upward compatible with Yacc: all properly-written Yacc grammars ought to work with Bison with no change. [23:26] yes [23:27] somehow they are related [23:27] * MRex has left #apolyton [23:27] hmz.. locutus found out already :) [23:27] so they used Bison, not Yacc -- and bison is basically yacc++ :) wasn't aware of that -- thought they were completely seperate things [23:28] * mrmitchell has joined #apolyton [23:28] :party: [23:28] :crash: [23:28] so that's a step forward. we know the .y files are bison files [23:28] So is byacc.exe actually bison? [23:29] yes. at least I think so. [23:29] maybe it can handle both? [23:29] probably. seeing how bison is yacc compatible... [23:30] * settler2 has joined #apolyton [23:30] * settler2 has quit IRC (Quit: settler2) [23:31] okay, did a search: the .y files are ctpdb.y, slic.y, sliccmd.y, fli.y and ldl.y [23:31] so they used bison/yacc for their internal database, slic, AI and UI... [23:31] two slics? [23:32] I've found the source of the famous "Array index 0 out of bounds" error - in SlicArray.cpp :) [23:32] I guess that's the first place to improve SLIC debugging :) [23:32] I think sliccmd.y is a list on slic commands. Based purely on the file name. [23:33] yeah, not sure what that means either. but in antlr (the compiler compiler I'm most experienced with) you can just string text files together and it'll treat it as a single file -- just like SLIC. same might be the case here. the slic.y file *is* rather large, so splitting it up makes sense. [23:35] oh yeah... just looking at slic.y now. I don't know yacc very well, but this DEFINITELY looks like a compiler compiler... [23:35] Indeed, the lexer is in slic.l. [23:36] ooh, a comment [23:36] apparently byacc stands for berkeley yacc [23:36] I thought is was bison/yacc [23:37] hmmm... strange. either way, it's yacc-ish. I'm sure we can deal with that :) [23:37] :) [23:37] I've been playing around with compiler constructors a lot recently, with this partly in mind. [23:37] not that we need to really. most of the stuff we'll want to change is probably in the implementation, not in the definition of the various languages used [23:38] I note also that slic.y has some debugging stuff under #ifdef directives. Might be handy. [23:38] damn, I knew I should have finished that class :D [23:38] yeah, I noticed. [23:39] I have half a mind to try to write an entirely new sscripting language from scratch... Perhaps that's a little overambitious, but it might be easier than twisting SLIC too far. [23:39] And it makes backwards-compatibility easier too. [23:40] * settler2 has joined #apolyton [23:40] * settler2 has quit IRC (Quit: settler2) [23:40] in the long run that might be a good idea, in which case we'll have plenty of time to figure out what version of yacc it is :) in the short run we'll want to focus on fixing the existing language. [23:41] I think getting familiar with the source tree will be hard enough at first :) [23:41] damn, way to ruin an early night. good one, Fate. [23:42] http://joelonsoftware.com/articles/fog0000000348.html :p [23:42] it sure will... [23:44] (note: no, I wasn't serious) [23:45] All that stuff about regions is in there too... I thought that was taken out of SLIC2... [23:46] ari: I sure hope so :nono: [23:46] * Nimitz has joined #apolyton [23:46] * Nimitz has left #apolyton [23:46] i wouldn't be surprised if we find a lot of remnants from ctp1 in there... [23:46] or stuff that never worked at all. [23:47] Hmm.. I've also noticed that some /* ... */ comments remain in slic.y - I guess Mr Orge didn't catch them all. [23:48] yes, they could prove very useful... [23:48] too bad they stripped comments... would have been fun too read :) [23:48] mmm, trigger lists. wonder if they work? [23:50] * settler2 has joined #apolyton [23:50] * settler2 has quit IRC (Quit: settler2) [23:50] in fact, I found 2841 lines with the text '/*' in the entire source code folder... [23:50] Looks like they were trying to implement structs for SLIC - would have been handy. [23:51] i kind of expected that. the ctp1 SLIC syntax was very struct-like. [23:53] whats the forum for the code junkies?;) [23:53] structs? :cute: [23:53] Zephyr: Move along, nothing to see here [23:53] ahh found it [23:53] iw, you have a lot to learn, you one... [23:53] uh huh... [23:54] i'm surprised you didn't squeak during the yacc discussion :) [23:54] Oh, IW: just curious - what happened with your university application in the end. You should have started this year, right? [23:55] yeah. deferred 'til next year. just for the hell of it [23:56] So you're not sitting in a room just down the corridor, then :). [23:56] not yet ;) [23:56] Loc: I can at least understand the concept behind yacc, even if the details are er... beyond me [23:57] I've got to restart after installing the DXMedia SDK. Back soon. [23:57] * J_Bytheway has quit IRC (Quit: Leaving) [23:57] I'm going to call it a night... I have to be at a place called work tomorrow... *sigh* [23:58] so does this stuff build? [23:59] CU sprudl. bah, who needs work? I'm taking a week off, mehthinks :) [23:59] lol.. I wish I could :) [23:59] lol [23:59] * G_Slacker takes off a week. [23:59] deadlines intervene with that plan.. *sigh* [23:59] Brrr, it's cold without that week on. [23:59] * G_Slacker puts the week back on. [23:59] redstar, not many people have tried yet (you need I think about 300 meg of extra sdk stuff from the MS website next to the code itself). those who've tried ran into some trouble, but probably nothing that can't be fixed [00:00] * settler2 has joined #apolyton [00:00] * settler2 has quit IRC (Quit: settler2) [00:00] What does SDK stand for? [00:00] Stupid Development Kit? [00:00] software developmet kit... in this case, basically DirectX for programmers. [00:02] * Lemmy has joined #apolyton [00:02] anyway, I can't figure out what files exactly to d/l... rahter confusing... [00:02] Oh. [00:03] hmm i got a lot of the dx sdk stuff... [00:03] What does it do? [00:04] simply put, it makes it possible to program games in directX [00:04] might have to try on me laptop tomorrow [00:05] got VS .net and all the direct x stuff [00:05] so only the source code is released? no multimedia files? [00:05] hmm, I'm afraid I'm rather ill equipped, I normally use gcc. gonna take a while to get that working with this code... [00:05] we going a bug fixin?;) been years since i played CTP [00:05] I thought you had the game Lemmy? [00:05] i did [00:05] * J_Bytheway has joined #Apolyton [00:05] lemmy, no. you still need a copy of the game, which only makes sense... [00:06] ok, that explains the 8 mb download :) [00:06] If you want to compile you also seem to need about 270MB of DirectX stuff from Microsoft, so the 8MB is deceptively small :). [00:06] hmm...i don't know why i'm installing it really...i doubt i'll program anything for it [00:07] although if you had the ldl files and enough cunning you could probably get away with just Cradle [00:08] good point. the biggest mods contain most of the files you need anyway :) [00:08] I have located the missing reftime.h which was the cause of the first error message... [00:08] cool. where is it? [00:09] It's in the DirectX Media SDK. Does anyone know how I tell VC++ where to look for it. [00:09] ? [00:09] it's explained in the readme, I think [00:09] Yep :) [00:10] * settler2 has joined #apolyton [00:10] * settler2 has quit IRC (Quit: settler2) [00:10] * Lemmy is afraid to compile it... [00:11] Hooray - I have successfully compiled crater.dll :) [00:11] pre-emptive pun avoidance [00:11] w00t! [00:11] so which of the directx files did you d/l John? the one marked october 03 or the december 02 one? [00:12] oddly enough, the older file is much bigger... [00:12] The one you need for that file is the second one Mr. Ogre linked to - the DirectX Media one. [00:13] yes, but I need the other one too, I reckon. I haven't downloaded either yet. [00:13] You'll probably also need the first one for other stuff - that's more general DirectX, I think. [00:13] Start now - it will take a while. [00:14] yeah, but I can't figure out which of all the files on that page to grab. wouldn't want to d/l the wrong one and have to start all over again... [00:15] * Panzer32 has joined #apolyton [00:15] From the first pade the one you want is the Software Developer's Kit. [00:15] * Lemmy is too tired to figure these things out now.. [00:15] g'nite all [00:15] The first on the list is just an update, I think [00:16] * Lemmy has quit IRC (Quit: :tiuQ) (-) [00:16] an update of 200 mb? [00:16] And the second is just the redistributable stuff, not the whole SDK [00:16] Perhaps not... [00:17] ah, no. the first is the update yes. the second redist. the 3rd is a full package. but under archive there's another full package. i don't know which of those two to pick. the older one is bigger, which seems odd... [00:17] Odd, but not impossible... [00:18] ah wait, I was further confused by the dates on the actual files. one older one said 7/21/2003, the newer one 10/3/2003. this confused me as I though 10/3 meant 10 march. Bloody Americans... [00:19] I think the only difference is the "Expiration of managed code patch", which won't affect C++ code, anyway (presuming I understand it correctly) [00:19] so I need the newer one after all, though it's still odd that it's 30 megs smaller... [00:19] Patching by Microsoft often means cutting out the feature that doesn't work properly... [00:20] * settler2 has joined #apolyton [00:20] * settler2 has quit IRC (Quit: settler2) [00:20] indeed :) [00:20] the smaller one doesn't include the video of stadium -full of people laughing at you and chanting "You downloaded the wrong one!" [00:20] if the only difference is a patch, they made one heck of an improvement in the compression software in those 3 monts ;) [00:20] months [00:20] lol [00:21] * Octavian_X has joined #apolyton [00:21] Well, the new one has triply nested compression, I think... The installation was very confusing. [00:21] yay! [00:22] but I'll post this on the forums as well, so others don't get confused (I don't get why they didn't give a direct link anyway, they did so for the media files...) [00:23] and I'm assuming all of this is only gonna work if I have Visual Studio as well... which I don't... [00:23] Perhaps because they weren't sure either :) [00:23] makes sense :) [00:23] My Visual studio has an "Export makefile" option, so in theory if I can make it work I can make a makefile so that others can too. [00:24] But I wouldn't count on it. [00:25] would would be very nice... but for the time being I'm d/l-ing VS6 from Kazaa, while I search for a more permanent (and legal :)) solution... [00:25] still gonna take 20 hours though :zzz: [00:26] If you can obtain Visual Studio on student liscence it really doesn't cost that much. You probably can't buy VS6 any more though, and I don't know how .NET will handle this... [00:26] exactly my point. I already checked, I can't get it through the usual channels. [00:27] but my uncle is in software development as well, he may still have his old copy of VS6 and be willing to give/sell it to me... [00:28] but he's on vacation now, and it'll be a while before he gets back [00:29] I can't seem so compile anything other than crater.dll... [00:29] I can't remember how this IDE works any more... [00:29] hmm, bummer. are you getting errors on other files? [00:30] * settler2 has joined #apolyton [00:30] * settler2 has quit IRC (Quit: settler2) [00:33] I wasn't getting errors, I just couldn't figure out how to instruct the IDE to compile them. Whatever I did it compiled crater.dll and nothing else. [00:33] I have now managed plasma2.dll too, though :) [00:34] ah, ok. that's good news then -- at least the source is not buggy :) [00:34] w00t, progress :) [00:34] * G_Slacker wonders what would be necessary to build it on linux. [00:35] for one thing, we'd have to get rid of directx :) [00:36] OK, now I'm having problems because it doesn't know how to use flex and byacc - I need to set that environment variable... [00:36] Yeah, but if they intended it to be easy to port, then the I/O should be seperate from the logic. [00:36] That way, only the I/O parts would need to be replaced. [00:36] solver was running into that as well. then he quit. but then we didn't know about yacc yet, so hopefully you can it things a step further now :) [00:38] g_slacker, true. and that may well be the case, as the code is based on ctp1's code, and that was ported to more OSes than any other game I know off... [00:39] even to BeOS :cool: [00:39] O.O [00:39] Wow. [00:40] * settler2 has joined #apolyton [00:40] * settler2 has quit IRC (Quit: settler2) [00:40] of course, we don't know how much changed in ctp2. but I'm counting on seeing mac/linux ports in the future... [00:40] Hmmm, maybe I'll look into it next time I feel like playing a civ game. [00:40] you mean you never played ctp on linux before? :shame: ;) [00:41] Never. [00:41] I don't look around much. [00:41] * Octavian_X has quit IRC (Read error: Connection reset by peer) [00:43] I can't make it recognize byacc... [00:43] I'm getting "'\byacc' is not recognized as an internal or external command" [00:44] Hmm... [00:44] I feel that the backslash before byacc can't be helping... [00:45] probably not... [00:45] fault.dll works, though. geometric is failing to recognise the environment variable which I've added. Perhaps a restart is in order. [00:47] probably. not sure about XP but it would be under older OSes... [00:47] Anyone know how to edit custom build settings under VS6? [00:47] nope [00:50] * settler2 has joined #apolyton [00:50] * settler2 has quit IRC (Quit: settler2) [00:51] MSDN is little help on the subject either. I'll try rebooting. [00:51] * J_Bytheway has quit IRC (Read error: Connection reset by peer) [00:52] * Zephyr pokes MarkG [00:57] * J_Bytheway has joined #Apolyton [00:59] * Pete_T has joined #Apolyton [00:59] welcome back, peter [00:59] OK, rebooting fixed the environment variable problem, now there's just byacc to contend with. [00:59] That was fast [00:59] good, what problems are you having with byacc? [01:00] any interesting findings, Peter? what was fast? [01:00] * settler2 has joined #apolyton [01:00] * settler2 has quit IRC (Quit: settler2) [01:00] Your 'welcome back' [01:01] ah [01:01] Ah ha! I have found the custom build settings :) [01:01] good... [01:01] And you know how we always wanted to add new proposals but never could? It's an enumerated type! [01:02] ah... [01:02] ah... [01:02] What's John up to? [01:02] one thing that strikes me now is that everyone is off discovering/testing stuff. we need to make sure we document everything we do... [01:02] trying to get the code to compile [01:03] But now I see that the error message has in fact changed, now it just says "Performing Custom Build Step on ..\ui\ldl\ldl.y" [01:03] And then "The system cannot find the path specified." [01:03] Which is most unhelpful. [01:03] very helpful indeed... [01:07] I'll try compiling it by hand... [01:09] That worked :) [01:09] Now another even more cryptic error message... [01:09] it did? :expect: [01:09] :( [01:09] being? [01:10] * settler2 has joined #apolyton [01:10] * settler2 has quit IRC (Quit: settler2) [01:11] Well, if you look in ctp2_code\gs\newdb\ you will find several .cdb files [01:12] well, have fun guys. im off [01:12] I do. [01:12] bye, IW... [01:12] These are supposed to be custom-built by something called ctpdb.exe, hich we don't seem to have. [01:12] bye [01:12] * Zephyr has quit IRC (Quit: erm says: peace and love) [01:12] *which [01:12] bye, wombat [01:12] interesting... maybe we have to build it ourselves? [01:12] too slow [01:13] Alas, it's not immediately obvious what they're supposed to build to... [01:14] Aha! The other project that wasn't compiling seems to be the source of this executable. Don't give up hope yet :) [01:14] told you :) [01:15] * CyborgPlumber has quit IRC (Ping timeout) [01:15] * DBTS has quit IRC (Quit: ) [01:15] first impression is that the cdb files are the scripting language for the internal database of the game, the one defined by ctpdb.y [01:16] * Panzer32 is now known as Panzer320away [01:16] * Panzer320away is now known as Panzer32-away [01:17] Yes, sorry, I didn't understand when you said that :). That compilation was also stuck on a yacc file (ctpdb.y) so I've done that one manually... [01:18] And now the lexer file is stumping it... [01:19] hmm, well whoever said progress was slow sure as hell was talking about us ;) [01:19] but progress is progres nonetheless... [01:19] * settler2 has joined #apolyton [01:20] * settler2 has quit IRC (Quit: settler2) [01:20] Got it! Now only ctp2.exe remains to be dealt with :) [01:20] :dance: :dance: [01:21] incredible, at this pace you may actually get it working before 6 AM ;) *knocks on wood* [01:21] Now I get "discombobulating sliccmd.y" - does that sound like st_swithin to you? ;) [01:21] :lol: [01:23] Well, I might at least reach a Miles sound system error by 6AM... [01:23] That is likely to stop me in my tracks :) [01:23] well, we should only have to outcomment it, if we're lucky... [01:24] Now "burgling slic.y" - Someone was having fun with these. [01:24] hmm, that's my lemur! :) [01:25] Well well, SLIC syntax has a shift/reduce conflict. tut tut. [01:25] uhuh... [01:26] aha, I just found the 'makefile' for the project. you were right: according to the comments, you should be able to make a regular makefile out of it with Export Makefile... [01:27] The next one is "pummeling DBLexer.l" [01:27] Do you mean that there is a makefile there already? [01:27] :lol: [01:28] no, not really, an Microsoft Developer Studio Project File [01:28] but it's the VB equivilant of a makefile ;) [01:29] It would probably be faster if I figured out why all these lexings and parsings weren't working rather than doing them all by hand. It's quite strange, because if I copy the commands they should be executing onto the command line it works... [01:30] * settler2 has joined #apolyton [01:30] * settler2 has quit IRC (Quit: settler2) [01:30] that is very strange indeed. [01:32] I guess perhaps it is executing them in the wrong directory... [01:33] well, if the problem is still 'path not found', then I would guess so, indeed. [01:33] "snorkeling slic.l" - this is getting a little silly... [01:33] :lol: well, I'm still thoroughly enjoying it... :D [01:35] At this level, I suspect JBR (Joe) [01:35] but judging from the project file, that should be the last of them. [01:35] "combobulating sliccmd.l" [01:35] Very different from the prior discombobulation, I'm sure. [01:35] oh, I thought you already did that one... but this one IS the last one then :) [01:36] well, it WAS him who designed SLIC... [01:38] Right, that's the last of flex and byacc - we're now onto the real compilation for ctp2.exe, and I think that I've hit the miles sound system errors - I have unfound mss.h [01:39] aha, that is indeed a mls error... [01:39] Perhaps surprisingly (for me, at least) most of the files are compiling without problems. [01:40] * settler2 has joined #apolyton [01:40] * settler2 has quit IRC (Quit: settler2) [01:40] And they go on and on and on.... [01:40] there are 4 references to this mss.h file in the code. just uncommenting them will hopefully do the trick... [01:40] and on and on... [01:40] and two of those 4 are in the readme :) [01:41] The main one is in civsound.h, but unfortunately that one is referenced by many others. [01:42] And I've just seen some other errors too... [01:42] the other is in the project file, so hopefully that one shouldn't give any problems [01:42] It's still going. Now I begin to see how much ~2million lines of code really is... [01:43] LOL... [01:43] I've never written anything that took more than a few seconds to compile... [01:43] can't you abort? [01:43] well, that's not much... I can beat that, but I'm not sure what my 'record' is... [01:44] I could abort, but I don't want to. It has to be done sometime, and it won't need to do it again. [01:44] and on and on.... [01:44] well, if there's all sorts of errors, you'll have to compile again anyway, won't you? [01:45] How long has this been taking? I've seena book called 'Game Programming in Linux' where the author had access to the CTP1 code and said that it took two hours to compile [01:45] But there aren't - there are very few errors. That's what surprised me :). [01:45] It's been going for less than 5 min, I guess. Perhaps I should be a little more patient :). [01:46] well, not being able to find mss.h is an error, or is that just a warning? [01:46] It's an error, but it affects only about 1 file in 50. [01:46] The rest compile OK. [01:46] I'm still looking for a compiler that has one of those neat counters that keeps track of how much % of the work was done, but for some reason I can't seem to find any ;) [01:47] If I ever write a compiler, I'll try to keep that in mind :) [01:47] I would owe you bigtime :) [01:47] But I should point out that it's the IDE that should to the counting, not the compiler. [01:48] well, there's only about 2632 files, so that shouldn't take so long ;) [01:48] Done - 101 errors, 5 warnings. [01:49] hey, that's not bad at all... for 1,8 million lines of code that's actually very, very good :D [01:49] and it didn't take too long either. [01:49] * settler2 has joined #apolyton [01:49] * settler2 has quit IRC (Quit: settler2) [01:50] So shall I start commenting stuff out ans see what happens? [01:50] so what kind of errors? aside from the obvious mss.h missing? [01:50] yeah, sounds good. [01:51] For sure. I was hoping the CTP2 code would be a bit cleaner. [01:51] Most of those were mss.h - some were undefined things which I didn't really catch... [01:51] surely you have a log? [01:52] but just outcomment and see what happens. it's always a good feeling to see the number of errors drop from 100 to 20, even if nothing really changed :) [01:52] Well, the log is not easily accessible now that I've started another build... [01:53] ah, ok. same file, without mss.h, I assume? [01:53] With that outcommenting we're now getting approx 4 errors for each one we had before :) [01:53] Due to all the references to things in mss.h... [01:54] That's 517 errors, 57 warnings :) [01:55] That makes sense. Can you save the log? [01:55] I can try cutting out the whole civsound class, which will cascade a whole new set of errors... [01:55] I can indeed save the log. Probably a good plan :) [01:56] fun :) [01:56] * ACS_MarkG has quit IRC (Quit: Leaving) [01:56] chopping civsound sounds good, at least as a start. we'll have to rewrite it anyway. [01:57] My usual programming style fits well with this. I usually do something along the lines of "fix one error, recompile"^N [01:58] don't we all? :) [02:00] * settler2 has joined #apolyton [02:00] * settler2 has quit IRC (Quit: settler2) [02:01] Well, I mean I do it in a slightly more extreme fashion than normal. Some people prefer to stop with versions that actually work now and again. I once wrote about 15000 lines and I think my compilation was successful no more than 5 times during that development. Then I got bored and gave up :). [02:01] OK, now we have 923 errors, 16 warnings :) [02:02] lol, well it helps to cut things in pieces... [02:02] this is not getting any better... [02:02] * Panzer32-away is now known as Panzer32 [02:02] lots of the same (kind of) errors or different ones? [02:03] Now they're mostly errors on the lines which say "CivSound", which is now unrecognized. [02:04] Perhaps we would be better off leaving CivSound in, but nullifying its routines in some fashion... [02:05] yes, overwrite them with stubs, sounds like a good plan. [02:06] But I think I'm going to have to go to bed. Unfortunately I have a lecture in 8 hours. I should be back at work tomorrow afternoon, unless Solver beats me to it :) [02:06] hmm, just found an actual makefile for this project, but it turns out it's a special microsoft makefile, so it probably doesn't work with gcc :-/ [02:06] I'd better post something about how to get past the lexer/parser problems on the forums [02:07] yeah, sounds good. sleep well. if you can, try to document as well as possible what you did, so others can reproduce and continue where you quit... [02:07] crossspeak :) [02:07] And you might want to keep a transcript of this chat, in case my instructions are incoherent. [02:08] yes, I was already planning on posting this, but it's a crapload to wade through if you're looking for anything specific... [02:09] * NuclearMaster has joined #Apolyton [02:09] * NuclearMaster has left #Apolyton [02:10] * settler2 has joined #apolyton [02:10] * settler2 has quit IRC (Quit: settler2) [02:15] Well I guess that's it for tonight. What a great day. It gives you something to look forward to. [02:16] yeah, it does. [02:16] well, did you make any interesting findings, Peter? [02:18] Nothing great, but the player.h file is really interesting. The player class has an incredible number of members [02:19] * settler2 has joined #apolyton [02:20] * settler2 has quit IRC (Quit: settler2) [02:21] hmm, I'll be sure to check that out :) [02:22] and they say header files are boring ;) [02:22] Lots of stuff to expose to SLIC, eh? [02:24] let's hope so :) [02:25] Well, for example, it has an sint32 govtype member, much more useful than the string that was exposed in SLIC [02:26] yes, that certainly would be useful, and entirely possible to expose, i assume. [02:28] Hope so. It's going to take awhile to figure out how to do this stuff though. [02:28] that is one thing we can be sure about :) [02:29] but I'm guessing once you've figured out the basics of how SLIC works, changing stuff should be really easy. I have plenty of experience with that with similar 'home-made' programming languages [02:30] * settler2 has joined #apolyton [02:30] * settler2 has quit IRC (Quit: settler2) [02:32] Anyway, I remember posting a few years back (just before CTP2 was released) that 'This could be the game that I've always dreampt of.' [02:32] I think it is now. :) [02:33] lol, well, we can now MAKE it into the game we always dreamt off :) [02:34] and I noticed a lot of references to 'fuzzy' code were still there. haven't checked it out yet, but that could be interesting... [02:35] Exactly! It's not going to be easy, but you can't help but giving it a go. [02:36] * J_Bytheway has quit IRC (Ping timeout) [02:36] bye john... I hope he left a message in the forums... [02:37] yes, it would be interesting to see if there is any interaction between the old and the new system, or if the fuzzy stuff isn't used at all anymore [02:38] I'm pretty sure that all that 'fuzzy' stuff is dead code left over from CTP1. There's also some stuff about robotcom.dll that was in CTP1 but not in CTP2 [02:39] * settler2 has joined #apolyton [02:39] * settler2 has quit IRC (Quit: settler2) [02:40] I dunno, if it was dead, why leave so many references to it? keeping a lot of old code in place is really just asking for trouble, any programmer knows that... [02:42] That puzzles me. I'm pretty sure that Joe said that the fuzzy logic and the space layer had been completely removed. So why is that old code sitting there? [02:44] I dunno [02:44] I don't remember joe said fuzzy was cut altogether. he said so about space, but not about fuzzy [02:45] it was just changed to be easier to understand for modmakers. the current system isn't that spectacularly different from the fuzzy system, so I always assumed they just changed the interface (text file part) but left at least a portion of the underlying code intact [02:46] we'll find out soon enough now :) [02:47] If you want to have a fuzzy logic inferencing system, it should show. There's a lot of code involved in that. If it's there, we'll find it. [02:48] indeed [02:49] I think it's time to call it a night. CYA, tomorrow [02:49] * settler2 has joined #apolyton [02:49] * settler2 has quit IRC (Quit: settler2) [02:51] CU [02:51] * Pete_T has quit IRC (Quit: Leaving) [02:55] * MrWIA has joined #apolyton [02:55] Party, eh? When exactly is it being released? [02:57] http://apolyton.net/ctp2/files/CTP2_Source.exe [02:59] party has finished, everyone is off their face [02:59] * CyborgPlumber has joined #Apolyton [02:59] Ahoy hoy [03:00] * settler2 has joined #apolyton [03:00] * settler2 has quit IRC (Quit: settler2) [03:01] * maq has quit IRC (Quit: death) [03:01] * CyborgPlumber has quit IRC (Quit: Leaving) [03:05] MrWIA, it has already been released [03:05] ah, you knew that. missed maq's line [03:06] Yep - only just bought CtP2 so I have yet to even see the game! [03:07] well, you'll probably want to start with that then :) [03:09] * settler2 has joined #apolyton [03:09] * settler2 has quit IRC (Quit: settler2)