IRC logs for #openttd on OFTC at 2009-10-11
            
00:02:25 *** thepalm has quit IRC
00:09:18 *** Brianetta has quit IRC
00:11:56 *** Zahl has quit IRC
00:12:45 *** nicfer2 has quit IRC
00:40:23 *** Chruker has quit IRC
00:50:33 *** Fast2 has quit IRC
01:16:01 *** Chris_Booth has joined #openttd
01:25:17 *** JFBelugas has joined #openttd
01:36:23 *** KenjiE20 has quit IRC
01:48:48 *** eJoJ has quit IRC
01:50:54 <JFBelugas> ho so quiet, isn't it?
01:52:10 *** eJoJ has joined #openttd
01:52:15 *** Cow14 has joined #openttd
01:52:32 <Cow14> hello?
02:00:33 <JFBelugas> hello
02:00:35 <Eddi|zuHause> JFBelugas: it tends to do that at 4AM
02:00:41 <JFBelugas> hehe
02:00:46 <JFBelugas> somewhere
02:00:50 <JFBelugas> sometimes
02:01:15 <JFBelugas> ho shooooo... the timer closed the light
02:01:48 <JFBelugas> mooooooo!
02:05:07 * JFBelugas is working4work@home
02:05:18 <JFBelugas> lovely evening. again
02:14:44 <JFBelugas> and now, all is over, and so am i
02:14:52 <JFBelugas> night Eddi|zuHause
02:14:52 * Sacro yawns
02:14:55 <Sacro> could do some openttd
02:15:01 <JFBelugas> ho... a live Ben!
02:15:08 <Sacro> Indeed
02:15:10 <Sacro> and ho
02:15:10 <JFBelugas> bye Sacro
02:15:13 <Sacro> a live... Belugas
02:15:16 <Sacro> night mate
02:15:18 <JFBelugas> rrrr...zzzzzzzz
02:15:21 *** JFBelugas has quit IRC
02:16:25 <Cow14> moooooooooooooooo
02:20:51 *** Chris_Booth has quit IRC
02:21:23 <welshdragon> Cow14: your spam is not appreciated here
02:22:01 <Sacro> mooooooooooooooooooooo
02:23:08 <Cow14> he did it so why can't i ? ^^^^^
02:23:46 <welshdragon> as Sacro is my friend, and a retard
02:24:00 <Cow14> oh that makes sense
02:24:48 <welshdragon> in all seriousness, were an admin around both you and Sacro might have been given a /kick
02:24:58 <welshdragon> or they might /kick the telltale tit...
02:25:18 <Cow14> your on ottd coop public server?
02:25:29 <welshdragon> i was
02:25:33 <welshdragon> i've been busy
02:25:40 <Cow14> ok
02:27:02 <welshdragon> Sacro also just lost the Game
02:28:45 <Sacro> D:
02:42:16 *** welshdragon has quit IRC
02:43:03 *** welshdragon has joined #openttd
02:44:06 *** glx has quit IRC
02:44:53 *** Pikka has joined #openttd
03:13:56 *** ecke_ has joined #openttd
03:19:02 *** ecke has quit IRC
03:21:58 <Pikka> gentlemen
03:40:57 <Cow14> yes...
03:41:17 *** llugo has joined #openttd
03:44:23 *** Rubix`` has joined #openttd
03:48:37 *** lugo has quit IRC
03:55:19 <Cow14> cya all
03:55:21 *** Cow14 has quit IRC
03:57:36 <Pikka> I thought he'd never leave!
04:12:10 *** Rubix`` has quit IRC
04:12:23 *** Rubix`` has joined #openttd
04:24:41 *** ecke_ has quit IRC
04:43:37 *** Fuco has quit IRC
05:30:18 <Pikka> argh, this makes no sense D:
05:34:18 <Pikka> oh wait, I see D:
05:35:23 <Pikka> the fact that the wagon has a running cost makes property 19 kick in and makes the wagon only appear in electrified depots
06:18:00 *** Alberth has joined #openttd
06:23:19 *** thepalm has joined #openttd
06:43:46 *** Seberoth has quit IRC
06:46:38 *** Seberoth has joined #openttd
06:49:32 *** Nickman_87 has joined #openttd
06:57:30 *** boekabart has joined #openttd
06:57:33 *** Nickman_87 has quit IRC
07:02:34 *** andythenorth has joined #openttd
07:03:30 <Pikka> good morning folks
07:03:32 <Pikka> also, bbl
07:03:37 *** Pikka is now known as Pikka|afk
07:12:26 <andythenorth> morning
07:14:00 <andythenorth> so I have a checkout of openttd source
07:14:14 <andythenorth> I've patched it a couple of times (realistic RV, and something frosch sent me)
07:14:29 <andythenorth> I want to compile 'clean'
07:14:34 <andythenorth> what do I need to do?
07:16:34 *** FR^2 has joined #openttd
07:24:13 <andythenorth> ah screw it, I'll ask again when more people are awake "|
07:24:15 <andythenorth> :|
07:33:09 <Alberth> go to the root of the checkout, and type 'svn revert -R .'
07:33:54 <Alberth> then type 'svn status' and decide whether or not to throw away any unknown files.
07:34:14 <Alberth> andythenorth: ^^
07:37:31 <andythenorth> Alberth: thanks, compiling now :)
07:38:25 <_ln> is there a name for a design pattern where a function is only executed if enough time has passed since last call? like a singleton-style idea, but with timestamps.
07:38:33 <andythenorth> compiling on intel mac with -j4 is *way* faster and maxes out CPU :)
07:46:50 <Alberth> usually only for initial compiles for me, after that, I make changes to 1 C++ file at a time, and multiple parallel compiles are then useless :p
07:52:15 *** Nickman_87 has joined #openttd
07:53:26 <andythenorth> I don't have permissions to rename a self-compiled OpenTTD.app on OS X. I am admin, and it *looks* like I have r/w access. Do I need to learn about the sticky bit?
07:55:19 <andythenorth> ^^ nvm
07:55:54 <Rubidium> there you ran into something that is far from generic; it's actually quite specific to OS X
08:07:22 <CIA-4> OpenTTD: alberth * r17759 /trunk/src/osk_gui.cpp: -Codechange [FS#3257]: Return focus to the parent window using the function designed for it.
08:09:49 <andythenorth> testing Terkhen's acceleration patch...
08:10:10 <andythenorth> ...trains seem to work, I've stalled out a big train on a big hill :)
08:10:34 <Rubidium> as long as it moves at like 1km/h and doesn't totally stop it works
08:10:49 <andythenorth> yup, seems to be same as previous 'realistic' acceleration behaviour
08:13:50 <andythenorth> ..train is still moving at 1mph...
08:14:10 <andythenorth> I think at this point I might have turned it around in a real game...or crashed another train into it to get rid of the thing
08:17:22 <Alberth> build another track next to it :)
08:18:13 <andythenorth> I should just use maglev
08:18:32 *** Pikka|afk is now known as Pikka
08:20:15 <andythenorth> plan for day: 1. test acceleration 2. draw log boat 3. lunch :)
08:23:42 <CIA-4> OpenTTD: alberth * r17760 /trunk/src/depot_gui.cpp: -Revert (r17648): _local_company is less constant than you'd expect.
08:23:48 <Alberth> you have lunch at the end of the day?
08:24:14 <andythenorth> 1 and 2 may not happen before 3
08:42:35 <boekabart> hardly a plan then
08:47:53 <Alberth> a loosely defined set of goals is better than no goals imho.
08:48:37 <boekabart> still not a plan. more like an unsorted todo list
08:48:57 <boekabart> my plan: part
08:49:00 *** boekabart has left #openttd
08:49:51 *** hugacsaka has joined #openttd
08:53:53 *** N35 has joined #openttd
08:57:50 *** LordAzamath has joined #openttd
09:01:33 *** Nickman_87 has quit IRC
09:12:51 *** Muxy has joined #openttd
09:13:23 *** LordAzamath has quit IRC
09:14:26 <Muxy> Yo there, i'm searching difference between DoCommand and DoCommandP
09:17:36 <TrueBrain> Never use DoCommand unless you know what you are doing ;) Always use the P version
09:18:29 *** frosch123 has joined #openttd
09:18:32 <Muxy> well, it's not for using, it's for my watch patch. i insert some code in the DoCommandP, and it seems to work well in local game & in network game
09:19:53 <Muxy> but if there are 2 function, do i need to insert same code in both, or with DoCommandP i will see all what is done...
09:24:23 *** tux_mark_5 has joined #openttd
09:25:04 *** Cybertinus has joined #openttd
09:36:10 <andythenorth> I broke the game :|
09:37:50 <Pikka> huzzah!
09:38:34 *** Nickman_87 has joined #openttd
09:38:58 *** Nickman_87 is now known as Nickman87
09:39:35 *** Brianetta has joined #openttd
09:41:37 *** Progman has joined #openttd
09:44:43 <Pikka> avast ye, chaps
09:44:52 <Pikka> andy, what did you do?
09:50:16 *** |Jeroen| has joined #openttd
09:54:56 *** KritiK has joined #openttd
10:05:56 *** Belugas has quit IRC
10:06:19 *** Belugas has joined #openttd
10:06:20 *** ChanServ sets mode: +o Belugas
10:08:19 <andythenorth> Pikka: I set vehicle weight to \w256 and produced an assert that *seems* to have eaten a bunch of autosaves somehow
10:08:32 <andythenorth> I am using Terkhen's acceleration patch...
10:14:16 *** Zahl has joined #openttd
10:19:53 *** Fast2 has joined #openttd
10:22:52 <Pikka> for which vehicle type is weight a word?
10:24:22 <andythenorth> well not for RVs :D
10:24:54 <andythenorth> this does mean vehicle unladen weight is limited to 63t. I have hit that limit and will again....
10:25:02 <andythenorth> but screw it, it's only a game
10:25:55 <Rubidium> Pikka: not many; usually it'd double words (ten tonnes, eleventy tonnes) or quad words (hundred and twenty tonnes)
10:26:13 <Pikka> you'll have to find a friendly person to give you an RV equivalent of train property 24 :)
10:26:19 <Pikka> look, here comes Rubidium!
10:27:04 <Rubidium> right... 64+ tonnes vehicles
10:28:04 *** Coco-Banana-Man has joined #openttd
10:28:18 *** Pikka is now known as Pikka|afk
10:31:18 <frosch123> didn't terkhen supply a cb36 for weight? (i.e. 15 bit weight)
10:32:40 <frosch123> 8191 tonnes should be enough, right?
10:35:16 <andythenorth> frosch123: yes he has done cb36...marked as untested
10:35:43 <frosch123> hehe, so now you have a case to test it :)
10:36:02 <andythenorth> not yet
10:36:41 <andythenorth> I have a few other acceleration questions / issues, I'll wait until Terkhen shows up ;)
10:37:45 *** Grelouk has joined #openttd
10:38:49 <andythenorth> Terkhen's patch does look promising. Tests well with HEQS. Trains don't seem broken. Haven't found anything weird yet
10:40:16 <Rubidium> frosch123: yeah, 8191 tonnes ought to be enough; Saturn V was 'only' 3038.5 tonnes
10:40:41 <andythenorth> 8191 tonnes is very very much enough
10:40:58 <andythenorth> we'd need some kind of bridge restriction code....or a new disaster (bridge collapse)
10:41:36 <Rubidium> although... for ships it's not enough
10:42:50 <frosch123> luckily for ships you do not need weight restriction for aqueducts
10:42:50 <Alberth> andythenorth: a new 'lift bridge to allow passage of huge truck' event is a much more positive 'disaster' :)
10:43:12 <andythenorth> how about 'demolish bridge to allow huge truck'?
10:43:14 <andythenorth> then rebuild?
10:43:49 <frosch123> the truck could also lower every tile it crossed by one level
10:43:59 <Alberth> much less spectacle :)
10:44:15 <andythenorth> the truck could spawn roadworks behind it?
10:44:16 <Alberth> 'rebuild road after passage'
10:44:47 <frosch123> yeah, single-use-roads
10:45:19 <andythenorth> so...ships that travel faster when not loaded...
10:45:28 <Alberth> and we need to block the road for other traffic of course
10:45:49 <andythenorth> ...speed could be set by using varaction 2 var 47 and cb 36?
10:45:56 <andythenorth> (in respect of ships)
10:47:49 <andythenorth> a few months ago we mocked the idea of improved ship acceleration....now I've though of a use for it :(
10:47:54 <frosch123> andythenorth: yes, that should work alredy
10:55:38 *** Simozzz has joined #openttd
10:55:52 *** andythenorth has quit IRC
10:57:16 *** andythenorth has joined #openttd
11:00:32 *** Nickman87 has quit IRC
11:01:14 *** Terkhen has joined #openttd
11:01:34 <Terkhen> hello
11:01:56 <frosch123> andythenorth: 25 minutes for summoning
11:02:03 <frosch123> hello Terkhen
11:02:11 <andythenorth> hello Terkhen
11:02:47 <andythenorth> I've been testing the acceleration patch
11:02:59 <andythenorth> trains don't *seem* to be broken
11:03:24 <andythenorth> for RVs, I've tested with HEQS and eGRVTS, and it all seems to be good
11:03:55 *** |Jeroen| has quit IRC
11:04:21 <Terkhen> great :)
11:05:07 <Terkhen> in eGRTVS I found that some articulated vehicles (specially the old ones) don't work
11:05:24 <andythenorth> I didn't test *everything* :|
11:05:26 <Terkhen> I don't remember why right now, but I think some value was missing
11:05:41 <andythenorth> I guess eGRVTS is up to Zephyris :)
11:05:48 <andythenorth> I have two comments / queries
11:07:01 <Terkhen> tell me
11:07:19 <andythenorth> 1. articulated vehicle unloaded weights...because the trailer weight isn't added to the tractor, the vehicle effectively gets a performance boost
11:07:26 <andythenorth> I know there's no way around this
11:07:48 <andythenorth> If I set the total vehicle weight on the lead vehicle, there's a different performance boost (TE increases)
11:08:02 <andythenorth> In the game it doesn't really matter much...
11:08:28 <andythenorth> I've lowered TE coefficient for some articulated vehicles to balance this effect.
11:08:43 *** thepalm has quit IRC
11:08:48 <andythenorth> Might be worth documenting for grf authors?
11:10:02 <Terkhen> yes, it should be specified that vehicle weight is only taken into account for the first articulated part at the first post, I will update it
11:10:32 <andythenorth> 2. going up hill, most trucks just seem a bit....fast.
11:10:46 <andythenorth> I've tested on a 12 tile hill, I'd expect them to slow down a bit more.
11:11:09 <Terkhen> yes... I have seen that standard trucks climb hills like they weren't there
11:11:16 <andythenorth> I can reduce TE for this in HEQS, but then the balance with other sets will be wrong
11:11:32 <Terkhen> they are using the same values for acceleration than trains right now
11:11:46 <andythenorth> might be worth tweaking?
11:12:10 <andythenorth> I figure that the point of this is to affect gameplay...so go round hills, or use more powerful (more expensive) trucks
11:13:03 <andythenorth> otherwise looking good :)
11:13:04 <Terkhen> I will check that part of the code again, but I think the problem is that standard vehicles have too much power for their weight
11:13:32 <andythenorth> applies to eGRVTS and HEQS as well....trucks go over a big hill like it's a pebble
11:13:57 <Terkhen> hmmm... I haven't tested them at the last version
11:13:57 <andythenorth> ...when using default TE
11:14:15 <Terkhen> I'll add this to the todo list
11:14:22 <andythenorth> I'll pm you the latest HEQS
11:14:31 <Terkhen> okay, thanks :)
11:15:06 <andythenorth> Not that much changed, just a few articulated vehicles got tweaks
11:15:31 <Terkhen> if there is nothing wrong in the code, a way of tweaking this could be increasing the resistance of slopes only for road vehicles... but then it would be different for trains and road vehicles
11:15:40 <andythenorth> ok...sent
11:15:54 <Terkhen> personally I don't have a problem with that as long as it improves gameplay
11:16:42 <andythenorth> if the implementation doesn't smell wrong, I'd say try it :)
11:17:18 <andythenorth> frosch123: could I pick your brain on cb36 :D
11:17:42 <andythenorth> specifically...how do I make use of it?
11:18:09 <frosch123> well, like every other cb
11:18:28 <andythenorth> http://paste.openttd.org/217243
11:18:44 <Terkhen> a good thing of unifying the code is that any bug would affect trains too, and I can easily test them against vanilla trunk... so probably there aren't any slope-related bugs, I will look into this for the next version
11:18:59 <Terkhen> thanks for the feedback :)
11:19:08 <andythenorth> Terkhen: np
11:19:50 <frosch123> andythenorth: next would be the varact2 with id a2
11:20:14 <frosch123> there check for the property being asked for (var 10 iirc)
11:21:28 <andythenorth> hey if I figure out cb36, I can change ship running costs if not moving :)
11:21:33 <andythenorth> Pikka will like that :)
11:21:34 *** Nickman_87 has joined #openttd
11:22:11 <frosch123> in case you missed due to timeout, you can also already change runningcost and maxspeed depending on load
11:23:35 <andythenorth> saw that, thanks ;)
11:25:51 *** Coco-Banana-Man has quit IRC
11:27:38 <andythenorth> frosch123: think I've run into the same problem I had last time I tried this: no way to check size of vehicle's current load
11:28:26 <andythenorth> as in weight, not cargo type
11:29:42 <andythenorth> ...must....be...a....way...
11:30:01 <frosch123> var47 gives you the weight per unit of cargo
11:30:42 <frosch123> var AD (word sized) gives you the load
11:30:53 <andythenorth> awesome
11:30:54 <frosch123> err, var AC
11:31:15 <andythenorth> I was just looking at the savegame internals page...a dark place...
11:33:03 <andythenorth> frosch123: did you find var AC documented on the ttdpatch wiki? I can't see it there
11:35:35 <frosch123> http://vcs.openttd.org/svn/browser/trunk/src/newgrf_engine.cpp#L738 <- no, there
11:35:38 *** Coco-Banana-Man has joined #openttd
11:36:20 <frosch123> the savegame internals page is partly outdated (even for ttdp), and wrt. ottd you never know what compatibility stuff was added
11:37:10 <andythenorth> code = spec :)
11:37:50 * Belugas mumbles against the energy a 5 years kid can display, when all the other members of the family are only longing for sleep
11:39:05 <andythenorth> let's see if I can cause an assert :{
11:40:04 *** Wolf01 has joined #openttd
11:40:18 <Wolf01> hello
11:40:34 *** [com]buster has joined #openttd
11:41:02 *** Chris_Booth has joined #openttd
11:43:42 <Alberth> Wolf01: hello
11:43:56 <andythenorth> no assert :(
11:44:54 *** DJNekkid has joined #openttd
11:45:20 <DJNekkid> are there any VarAction2 variables that can be checked, that checks either distance to or from an airport for an airplane?
11:45:32 <DJNekkid> the next or previous airport that is
11:47:05 <andythenorth> http://paste.openttd.org/217247
11:47:18 <frosch123> no, you might only figure out time since last loading or service
11:47:31 <andythenorth> ^^ code above doesn't do what I expect
11:47:34 <CIA-4> OpenTTD: alberth * r17761 /trunk/src/autoreplace_gui.cpp: -Codechange: Removed some unused/unneeded variables from ReplaceVehicleWindow.
11:47:58 <DJNekkid> last loading might work ...
11:48:12 <DJNekkid> does that include unloading as well?
11:48:55 <andythenorth> does my code terminate the action 2 chain properly?
11:49:19 <DJNekkid> spritechooseing according to speed should be above the callback, no?
11:49:41 <DJNekkid> first all grapichal stuff, then all callbacks, then the Action3 :)
11:51:02 <DJNekkid> and, line3 _should_ be 85 AC 00 FF FF, and not 85 AC 00 00 FF ... afaik :)
11:51:12 <andythenorth> DJNekkid: ok, so I moved A0 and have correct graphics again
11:51:58 <andythenorth> And I've changed that 00 FF to FF FF
11:52:09 <andythenorth> I now have a log raft travelling at 79mph :)
11:52:23 <andythenorth> The max speed in the vehicle window is very wrong...
11:52:26 <Alberth> downhill? :)
11:52:39 <andythenorth> Alberth: yep, much slower uphill :P
11:52:56 <DJNekkid> well, you set it to "FF" :)
11:53:04 <andythenorth> Max speed is shown as 11mph, vehicle viewport window shows 79mph actual speed
11:53:47 <DJNekkid> you did set it to "FF" when not loaded, and "01" when loaded...
11:54:09 <andythenorth> ...which is the next problem...it's using FF when loaded
11:57:55 <frosch123> DJNekkid: well, var92 (word sized) gives you the date of last service (only valid starting from 1920 and the 65536 days afterwards), and var CF gives you the average age of the cargo (including waiting time at station and transfer time of previous vehicles)
11:58:18 <frosch123> so, likely not what you want :|
11:58:23 <DJNekkid> hmm... damn...
11:58:24 <DJNekkid> no ...
11:59:07 <DJNekkid> frosch123: where can i find this "unofficial" list? :P
12:00:04 <frosch123> http://vcs.openttd.org/svn/browser/trunk/src/newgrf_engine.cpp#L486 :)
12:00:59 <andythenorth> meanwhile back at the log ranch....
12:01:10 <andythenorth> think my check of var AC is either always returning 0, or cb36 is not being called
12:01:25 <frosch123> most 80+ variables are useless of course :) like stationids etc
12:01:47 <frosch123> or weird counters which delay turning multiple times in a row
12:02:28 <andythenorth> http://paste.openttd.org/217248
12:02:52 <frosch123> however, try to not use too much stuff from there, and always prefer 40+ and 60+ variables if they give similiar results
12:03:37 <frosch123> C2 00 // dont matter <- it does matter, you have to make the cb fail, i.e. chain to the graphics
12:03:50 <andythenorth> so the chain *isn't* properly terminated
12:04:11 <andythenorth> Ahem, attribution: DJNekkid :P
12:04:27 <DJNekkid> *whistle*
12:04:48 *** KenjiE20 has joined #openttd
12:05:30 <andythenorth> FF FF to end the callback chain?
12:05:49 <frosch123> no, the id of the action2 with the graphics
12:06:29 <DJNekkid> frosch123: i've always had problems figureing out what to put there, and anything ending with 00 have been successfull ...
12:07:07 <andythenorth> rv cb16 terminates on FF FF...what am I missing?
12:07:32 <frosch123> it is the default case, so if you return a valid callback result (ffff would mean returning 255), you would set every other property to that value
12:07:34 <DJNekkid> andythenorth: thats what i've been trying to figure ot as well :)
12:07:46 <andythenorth> ok
12:08:15 <DJNekkid> i'm usually linking it to _some_ gfx, but it dont relaly matter witch one...
12:08:26 <DJNekkid> atleast thats my experience
12:08:29 <andythenorth> so cb36 would always be checked last when checking callbacks? otherwise the other ones wouldn't be handled?
12:08:53 <andythenorth> e.g. in this code, if I used cb36
12:08:54 <andythenorth> http://paste.openttd.org/217249
12:08:57 <DJNekkid> you can always chain callbacks ...
12:09:02 <andythenorth> then I'd want to use cb36 last?
12:09:15 <DJNekkid> one callback each line, with "the default" beeing the previous one
12:09:56 <DJNekkid> andythenorth: http://dev.openttdcoop.org/projects/2cctrainset/repository/entry/templates/template-dmu.pnfo
12:10:11 <DJNekkid> line 165 for example
12:10:16 <frosch123> andythenorth: i mean, you have to handle the check of var10 like the check for var 0c, i.e. the default case should continue to the graphics
12:10:38 <frosch123> B3 00 //otherwise go to next action 2 ID <- that also has to appear in the var10 check of cb36
12:10:52 <andythenorth> okey dokey
12:10:55 *** Yexo_ is now known as Yexo
12:11:40 <andythenorth> so assume all that works...
12:12:11 <andythenorth> logical flaw: nothing to set speed back to 11mph when loaded. How do I do that?
12:12:39 <frosch123> "what?"
12:12:58 <andythenorth> sorry, bad explanation
12:13:03 <andythenorth> here is current code
12:13:03 <andythenorth> http://paste.openttd.org/217250
12:13:39 <andythenorth> prop 0B of vehicle should default to 27 (11mph) if vehicle cargo amount is not 0
12:13:57 <andythenorth> if I've understood correctly :)
12:14:01 <DJNekkid> well, variable AC should do that, just as vehicle speed (B4 iirc)
12:16:00 <andythenorth> so action 2 ID C2 should return 27 if load amount is not 0?
12:16:11 <andythenorth> but appears not to
12:16:17 <DJNekkid> try the opposite then ...
12:16:43 <DJNekkid> line 4: 27 80 \wx0001 \wxFFFF
12:16:49 <DJNekkid> line 5: FF 80
12:19:10 <andythenorth> tried it, now travels at 11mph whether loaded or not :|
12:19:22 <andythenorth> ok got to go. Thanks for help so far, back later!
12:19:49 <andythenorth> definitely something not right in the default value
12:20:46 *** andythenorth has quit IRC
12:24:32 * Pikka|afk sighs
12:24:36 *** Pikka|afk is now known as Pikka
12:24:49 <Pikka> the diagonals of short wagons are so hard to make look decent
12:25:00 <Pikka> damn chris sawyer and his circular tiles!
12:26:01 *** fonsinchen has joined #openttd
12:26:32 *** [com]buster has quit IRC
12:33:40 *** [com]buster has joined #openttd
12:35:28 <CIA-4> OpenTTD: rubidium * r17762 /trunk/src/aircraft_cmd.cpp: -Fix [FS#3259]: don't let aircraft drive a while over the grass when landing at high altitude airports
12:39:19 *** Coco-Banana-Man has quit IRC
12:39:28 *** Fast2 has quit IRC
12:44:56 *** Coco-Banana-Man has joined #openttd
12:48:38 *** Fast2 has joined #openttd
12:50:44 *** glx has joined #openttd
12:50:45 *** ChanServ sets mode: +v glx
12:51:23 *** Coco-Banana-Man has quit IRC
12:51:27 <CIA-4> OpenTTD: alberth * r17763 /trunk/src/autoreplace_gui.cpp: -Codechange: Rename 'wagon_btnstate' to 'replace_engines', and 'init_lists' to 'reset_sel_engine' in ReplaceVehicleWindow, add doxygen comments.
12:57:57 *** Coco-Banana-Man has joined #openttd
13:05:32 *** Chris_Booth is now known as Guest837
13:05:33 *** Chris_Booth has joined #openttd
13:07:19 *** Guest837 has quit IRC
13:08:55 <Muxy> where i can find the list and picture of all basic sprites used in openTTD ? I need a green light switched off and on like the red one in the status bar when a savegame is in progress.
13:09:55 <CIA-4> OpenTTD: alberth * r17764 /trunk/src/autoreplace_gui.cpp: -Codechange: Replace 'list' class variable in ReplacceVehicleWindow by 'engines'.
13:11:04 <frosch123> try in src/table/sprites.h or download grfcodec and decode the grfs
13:11:14 <frosch123> or take a look at opengfx what they did
13:11:30 <Muxy> seems to be the SPR_BLOT.
13:11:55 <Muxy> have to check if it can be colourized
13:12:13 <frosch123> DrawSprite(SPR_BLOT, income ? PALETTE_TO_GREEN : PALETTE_TO_RED, 145, y); <- is that line from network_gui.cpp example enough?
13:12:23 *** Doorslammer has joined #openttd
13:12:40 <Muxy> yeap thxs frosch
13:13:42 *** Coco-Banana-Man has quit IRC
13:19:13 *** stuffcorpse has quit IRC
13:19:35 *** Coco-Banana-Man has joined #openttd
13:22:58 *** Pikka has quit IRC
13:26:51 *** stuffcorpse has joined #openttd
13:44:40 *** Chruker has joined #openttd
13:45:34 *** Dred_furst has joined #openttd
13:46:00 *** ecke has joined #openttd
13:46:39 *** frosch123 has quit IRC
13:48:40 *** Polygon has joined #openttd
13:54:42 *** ecke_ has joined #openttd
13:54:42 *** ecke has quit IRC
13:58:52 *** eJoJ has quit IRC
13:59:33 *** Biolunar has joined #openttd
14:00:28 *** SK2 has quit IRC
14:00:32 *** eJoJ has joined #openttd
14:00:54 *** SK2 has joined #openttd
14:17:05 *** Progman has quit IRC
14:17:14 *** Progman has joined #openttd
14:29:56 *** Doorslammer has quit IRC
14:30:40 *** Doorslammer has joined #openttd
14:31:02 *** Yexo has quit IRC
14:31:04 *** Seberoth2 has joined #openttd
14:31:19 *** Choco-Banana-Man has joined #openttd
14:31:22 *** Seberoth has quit IRC
14:31:22 *** Coco-Banana-Man has quit IRC
14:31:22 *** Choco-Banana-Man is now known as Coco-Banana-Man
14:31:28 *** Yexo has joined #openttd
14:32:02 *** worldemar has quit IRC
14:32:06 *** tokai has quit IRC
14:34:21 *** tokai has joined #openttd
14:34:21 *** ChanServ sets mode: +v tokai
14:34:23 *** tokai has quit IRC
14:34:42 *** tokai has joined #openttd
14:34:42 *** ChanServ sets mode: +v tokai
14:39:52 *** Coco-Banana-Man has quit IRC
14:40:50 *** Fuco has joined #openttd
14:47:33 *** MyCatVerbs has quit IRC
14:50:02 *** andythenorth has joined #openttd
14:50:55 <andythenorth> (back)
14:51:28 <andythenorth> lets see if reloading the grf makes the speed change depending on load
14:51:47 <andythenorth> nope
14:52:07 <andythenorth> sometimes in web programming we hit refresh and hope it cures a bug. So far it hasn't....but one day it might...
14:53:03 *** Progman has quit IRC
14:56:23 *** Terkhen has quit IRC
14:58:42 <andythenorth> DJNekkid: mind helping me on this varaction 2 some more?
14:59:38 *** Terkhen has joined #openttd
14:59:47 <andythenorth> hi Terkhen
14:59:50 <Terkhen> hi
15:00:02 <andythenorth> fancy doing realistic acceleration for ships? :)
15:00:10 <DJNekkid> andythenorth: sure!
15:00:16 <DJNekkid> i were just playing some flash game :p
15:00:18 <andythenorth> I am trying to simulate it in nfo and failing
15:00:27 <andythenorth> DJNekkid: http://paste.openttd.org/217268
15:00:29 <DJNekkid> let me try it with an engine
15:00:39 <Terkhen> maybe when I finish with road vehicles :P
15:00:56 <andythenorth> I tried explicitly checking for cargo == 0 and 0 < cargo <= 255
15:01:09 <andythenorth> nforenum doesn't like my code
15:03:15 <DJNekkid> andythenorth: i just need to fetch my car, its in the city center! back in 15mins!
15:03:20 <andythenorth> ok
15:05:14 *** Seberoth2 is now known as Seberoth
15:12:10 *** tux_mark_5 has quit IRC
15:20:47 <DJNekkid> back
15:21:18 <andythenorth> okey dokey
15:21:33 <DJNekkid> and it were, runspeed ... AC ... right?
15:21:48 *** Pikka has joined #openttd
15:23:37 <andythenorth> DJNekkid: yes
15:23:47 <andythenorth> I can't help feeling that AC always returns 0
15:24:13 <Pikka> what's this?
15:24:35 <andythenorth> Pikka: trying to make ship speed change depending on amount of cargo
15:24:39 <andythenorth> using cb 36
15:25:51 <andythenorth> and variable AC
15:25:58 <andythenorth> http://vcs.openttd.org/svn/browser/trunk/src/newgrf_engine.cpp#L738
15:26:01 <Pikka> AC...
15:26:51 <Pikka> what's AC?
15:26:54 <Pikka> B4 is speed
15:27:08 *** worldemar has joined #openttd
15:27:10 <DJNekkid> andythenorth: it dont seem to be checked
15:27:20 <andythenorth> B0 is speed for ships
15:27:37 <andythenorth> AC is v->cargo.Count();
15:27:50 <Pikka> what makes you think that?
15:27:57 <andythenorth> frosch said so :0
15:28:18 <Pikka> what makes frosch think that? D:
15:28:49 <Pikka> B4 is speed for all vehicles according to the grf spec and the ttd savegame internals...
15:29:08 <Pikka> and works for at least aircraft and trains, in my experience :)
15:29:31 <DJNekkid> mine to :)
15:29:45 <Pikka> oh
15:29:46 <Pikka> wait
15:29:47 <Pikka> sorry
15:29:52 <Pikka> you want to test cargo amount, not speed
15:29:57 <Pikka> *drinks more tea*
15:29:59 <andythenorth> ;)
15:30:17 <andythenorth> I want to know if a ship is loaded or not (loaded == slower)
15:30:19 <DJNekkid> Pikka: it is cargo ammount that is tested, and a new speed applied
15:30:22 <Pikka> right
15:30:27 <Pikka> try BC, then
15:30:45 <DJNekkid> *testing*
15:30:46 <Pikka> 3C W Current cargo load
15:30:51 <andythenorth> ahem BC seems to work
15:30:51 <Pikka> says the savegame internals :)
15:31:01 <andythenorth> bad hex maths by someone?
15:31:10 <DJNekkid> BC works :)
15:31:13 <Pikka> perhaps ;)
15:31:28 <andythenorth> well that was an hour of fun I won't have again :P
15:31:41 <Pikka> hehehe
15:31:54 <Pikka> I had an hour this morning trying to work out why my newest wagon wasn't showing up
15:31:55 *** Simozzz has quit IRC
15:32:04 <DJNekkid> bad ID ?
15:32:11 <Pikka> always fun, those. you /know/ there's an answer, but
15:32:14 <andythenorth> Terkhen: you can stop with RV acceleration, we can do it all in nfo :P
15:32:19 <Yexo> switch (variable - 0x80) { ... case 0x3C: return v->cargo.Count(); <- so the code agrees it should be BC
15:32:29 <Ammler> question about realism isn't liked here, but are loaded ships slower, wouldn't it just be the acceleration?
15:32:51 <andythenorth> Ammler: specifically this is a log raft
15:33:01 <andythenorth> they travel slowly when loaded, or they break up
15:33:06 <Pikka> DJ: it used an electric loco's ID and had a running cost, but I hadn't zeroed property 19, so it wasn't showing in non-electric depots
15:33:19 <Pikka> not an issue I'd had before because I haven't used wagon running costs before :)
15:33:21 <andythenorth> but the little tugs they use are quite powerful and can travel at good speed when not towing logs
15:33:44 <Ammler> ah, thos ships which looks like trains?
15:34:05 <andythenorth> by my (bad) physics, a loaded ship has more cross section in the water, so should be slower due to resistance, plus also more drag
15:34:14 <andythenorth> but we'll ignore that
15:34:16 <DJNekkid> Pikka: wierd one :)
15:34:33 <Pikka> yep andy. just increase the running costs when loaded, by my reckoning ;)
15:34:49 <andythenorth> Pikka: planning to now I understand cb 36 better
15:35:10 <DJNekkid> <3 CB36
15:35:16 <andythenorth> thinking that loaded dump trucks should have a slower top speed though....for safety on the downhills...
15:35:16 *** Rubix`` has joined #openttd
15:35:25 <andythenorth> :D
15:35:32 <andythenorth> safety first
15:35:53 <Pikka> praise be to stevenh and lakie for cb36 :)
15:36:11 <Terkhen> andythenorth: as long as I don't have to code it in nfo...
15:36:14 <Terkhen> :P
15:36:15 * Pikka goes for a refill
15:36:17 * DJNekkid Praise Stevenh and Lakie
15:36:54 <andythenorth> right, how do I do the dot thing on irc? I've googled...
15:37:09 <DJNekkid> ./me Praise Stevenh and Lakie ?
15:37:22 <Pikka> /me
15:37:30 * andythenorth learns how to do the dot thing
15:37:44 * DJNekkid pet andythenorth on his head :D
15:38:51 * andythenorth commits something
15:40:26 <Pikka> genocide?
15:40:34 <andythenorth> not this Sunday
15:41:06 * andythenorth sighs
15:41:06 <andythenorth> somehow boats just don't look right without smoke
15:41:08 <Pikka> it's monday though
15:41:12 <Pikka> true dat
15:41:15 *** Rubix`` has quit IRC
15:41:27 <andythenorth> seems like smoke is 'but a whisper away'
15:41:32 <andythenorth> seeing as how trains have smoke
15:41:36 <andythenorth> nice smoke those trains have
15:41:40 * Pikka hands andy the animators hat
15:42:03 <Pikka> wouldn't it be fun if we could do random particle effects everywhere! houses, industries, vehicles... :P
15:42:06 <andythenorth> 32 frames to draw and code per cargo type per ship? hmm, maybe not
15:42:24 <andythenorth> I was noticing that there is already some nice smoke in the game
15:42:31 <andythenorth> seems like it just has to follow the ships around
15:42:37 *** Zahl has quit IRC
15:42:38 <andythenorth> I could do it in flash....
15:42:51 <andythenorth> this._x = my_ship._x
15:42:56 <andythenorth> this._y = my_ship._y
15:42:57 * Pikka hands andy the ottd dev hat
15:43:12 *** Zahl has joined #openttd
15:43:14 <andythenorth> perhaps a flash -> C++ compiler ?
15:43:38 <andythenorth> perhaps I should go and draw a log raft tug
15:44:06 <Pikka> but yes, between steam, aircraft breakdown and diesel smoke, ships are covered by the default sprites :P
15:45:23 <andythenorth> indeed
15:48:10 <andythenorth> http://vcs.openttd.org/svn/browser/trunk/src/effectvehicle.cpp
15:48:52 * Pikka wonders if I can get these 4/8 oil tankers to look less crappy
15:48:58 <Pikka> looks like the one, andy :P
15:51:48 <andythenorth> where's that man frosch123 when he's needed :)
15:54:42 *** Muxy has quit IRC
15:57:07 *** Terkhen has quit IRC
15:59:20 *** Terkhen has joined #openttd
16:02:24 <Pikka> hiding, probably andy :)
16:03:51 <andythenorth> must draw more logs...these ones are a bit uniform
16:08:46 *** Brianetta has quit IRC
16:08:47 *** ecke_ has quit IRC
16:09:33 *** StarLionIsaac has joined #openttd
16:11:39 *** asilv has joined #openttd
16:20:38 *** Fast2 has quit IRC
16:21:04 *** Fast2 has joined #openttd
16:23:11 *** StarLionIsaac has quit IRC
16:27:04 *** TrainzStoffe has joined #openttd
16:27:21 *** Pikka has quit IRC
16:28:47 *** Stoffe has quit IRC
16:28:47 *** TrainzStoffe is now known as Stoffe
16:30:15 *** ecke has joined #openttd
16:34:10 *** Chris_Booth has quit IRC
16:36:45 *** fonsinchen has quit IRC
16:38:01 *** Fast2 has quit IRC
16:40:56 *** Muxy has joined #openttd
16:46:05 *** andythenorth has quit IRC
17:08:34 *** Terkhen has quit IRC
17:14:25 <Muxy> Yo, i have a problem with DrawSprite used in a window. When used in the OnPaint() the translation is made, the sprite is drawed at the right place in the widget, but when used in other member function (OnTimeOut, or in new membre func) the translation is not done
17:14:52 *** welshdragon has quit IRC
17:15:10 <Muxy> and the sprite is drawed but, not in the window...
17:20:33 <Alberth> usually, you use this->SetWidgetDirty(wid) to mark the widget as 'needs to be painted again', and the system will call OnPaint() for you.
17:22:53 <Muxy> okay i'll try that, thx Alberth
17:24:56 <Muxy> it means, that i must only use DrawSprite in the OnPaint()
17:24:59 *** Coco-Banana-Man has joined #openttd
17:45:27 <CIA-4> OpenTTD: translators * r17765 /trunk/src/lang/ (greek.txt italian.txt turkish.txt):
17:45:27 <CIA-4> OpenTTD: -Update from WebTranslator v3.0:
17:45:27 <CIA-4> OpenTTD: greek - 14 changes by fumantsu
17:45:27 <CIA-4> OpenTTD: italian - 2 changes by lorenzodv
17:45:27 <CIA-4> OpenTTD: turkish - 2 changes by niw3
17:47:27 *** Lakie has joined #openttd
17:49:22 *** Nickman_87 has quit IRC
17:50:48 *** andythenorth has joined #openttd
17:59:08 <_ln> why did they even create this obvious fake: http://www.youtube.com/watch?v=BwLv3rQ3ZAE
17:59:21 *** Zahl_ has joined #openttd
18:00:19 *** Jhs has joined #openttd
18:01:22 *** Seberoth has quit IRC
18:06:47 *** Zahl has quit IRC
18:06:47 *** Zahl_ is now known as Zahl
18:08:07 *** FR^2 has quit IRC
18:08:32 *** TrainzStoffe has joined #openttd
18:11:14 *** Stoffe has quit IRC
18:11:14 *** TrainzStoffe is now known as Stoffe
18:13:38 *** welshdragon has joined #openttd
18:14:05 *** FR^2 has joined #openttd
18:14:32 *** [com]buster has quit IRC
18:17:38 *** Chris_Booth has joined #openttd
18:26:53 *** Rubix`` has joined #openttd
18:26:54 *** ecke has quit IRC
18:27:59 *** tux_mark_5 has joined #openttd
18:29:32 *** George3 has joined #openttd
18:30:49 *** Seberoth has joined #openttd
18:34:57 *** George has quit IRC
18:40:59 *** Alberth has left #openttd
18:43:26 *** oskari89 has joined #openttd
18:47:23 *** Seberoth01 has joined #openttd
18:49:12 *** StarLionIsaac has joined #openttd
18:54:47 *** Seberoth has quit IRC
19:00:32 *** Nickman_87 has joined #openttd
19:05:24 *** Dred_furst has quit IRC
19:05:24 *** Mark has quit IRC
19:05:48 *** Mark has joined #openttd
19:08:37 *** Nickman_87 has quit IRC
19:10:23 *** StarLionIsaac has quit IRC
19:12:06 *** ecke has joined #openttd
19:12:38 *** HerzogDeXtEr has joined #openttd
19:13:44 *** Nickman_87 has joined #openttd
19:19:52 *** HerzogDeXtEr1 has quit IRC
19:27:20 *** MyCatVerbs has joined #openttd
19:38:32 *** Nickman_87 has quit IRC
19:40:48 *** Progman has joined #openttd
19:41:40 *** Coco-Banana-Man has quit IRC
19:46:00 *** Wolf01 has quit IRC
19:49:53 *** Coco-Banana-Man has joined #openttd
19:52:30 *** MyCatVerbs has quit IRC
19:53:26 *** MyCatVerbs has joined #openttd
19:57:24 <CIA-4> OpenTTD: rubidium * r17766 /trunk/src/lang/unfinished/basque.txt: -Add: stub for a Basque translation
20:04:58 *** thingwath has joined #openttd
20:07:08 *** Fast2 has joined #openttd
20:07:11 *** th1ngwath has quit IRC
20:11:23 *** StarLionIsaac has joined #openttd
20:16:25 *** Grelouk has quit IRC
20:19:07 *** Seberoth01 is now known as Seberoth
20:30:43 *** Seberoth has quit IRC
20:32:11 *** FR^2 has quit IRC
20:32:27 <andythenorth> log log log log
20:32:28 <andythenorth> http://www.redbrick.dcu.ie/~fatwa/ren/songs.html#log
20:32:34 <andythenorth> It's Log, Log, it's big, it's heavy, it's wood.
20:32:43 <andythenorth> (and it floats)
20:33:10 <Prof_Frink> Does it weigh the same as a duck?
20:33:35 <andythenorth> It's Log, Log, it's better than bad, it's good!
20:34:32 <andythenorth> coming soon to a dock near you
20:34:36 *** Seberoth has joined #openttd
20:44:19 *** Muxy has quit IRC
20:47:42 *** Doorslammer has quit IRC
20:48:47 *** StarLionIsaac has quit IRC
20:48:54 *** asilv has quit IRC
20:52:25 *** TheMask96 has quit IRC
20:58:31 *** TheMask96 has joined #openttd
21:00:02 *** tux_mark_5 has quit IRC
21:14:47 *** andythenorth has quit IRC
21:29:40 *** oskari89 has quit IRC
21:32:21 *** zodttd has joined #openttd
21:33:21 *** Progman has quit IRC
21:33:36 *** welshdragon is now known as Guest872
21:33:37 *** welshdragon has joined #openttd
21:33:44 *** Guest872 has quit IRC
21:39:15 *** PeterT has joined #openttd
21:43:44 *** Nite_Owl has joined #openttd
21:44:03 <Nite_Owl> Hello all
21:44:36 <PeterT> hello
21:45:10 <Nite_Owl> Hello PeterT
21:45:45 *** fonsinchen has joined #openttd
21:52:05 *** urdh has joined #openttd
21:52:53 <urdh> is it just me or does trunk not compile right now?
21:53:32 <Rubidium> probably it's you (or your OS)
21:54:15 <Rubidium> i.e. either it's some patch applied to your working copy or you're using OS X 10.6
21:54:58 <urdh> I'm using OS X 10.6 :)
21:55:26 <urdh> don't think that's the problem though
21:55:53 <urdh> I think line 32 in ai/ai_gui.cpp is missing some characters
21:56:17 <Rubidium> looks perfectly fine to me
21:56:31 <urdh> #include "table/strings.h"?
21:56:45 <Rubidium> yup
21:56:56 <urdh> hm
21:57:52 <urdh> I get this:
21:57:54 <Rubidium> I reckon you have a 64 bits CPU/installation which fails to compile strgen
21:57:54 <urdh> /Users/simon/Desktop/openttd/trunk/src/ai/ai_gui.cpp:32:27: error: table/strings.h: No such file or directory
21:58:57 <Rubidium> it's "just" happy FS#3190
22:03:08 *** KritiK has quit IRC
22:09:17 *** Brianetta has joined #openttd
22:12:01 *** urdh has quit IRC
22:14:47 *** Fast2 has quit IRC
22:36:47 *** Cybertinus has quit IRC
22:38:58 *** Jhs has quit IRC
22:41:26 <Seberoth> good night @ll
22:42:07 *** Seberoth is now known as Seberoth|afk
22:47:15 *** Eddi|zuHause has quit IRC
22:50:24 *** Coco-Banana-Man has quit IRC
22:50:40 *** Eddi|zuHause has joined #openttd
22:52:17 <Eddi|zuHause> hm... weird...
22:52:28 <Eddi|zuHause> must have hit the power button with my foot, or something...
23:01:10 *** Polygon has quit IRC
23:06:48 *** George has joined #openttd
23:09:46 *** Nite_Owl has quit IRC
23:09:50 *** StarLionIsaac has joined #openttd
23:13:17 *** George3 has quit IRC
23:13:17 *** George has quit IRC
23:15:13 *** George has joined #openttd
23:28:31 *** Chris_Booth has quit IRC
23:34:54 *** llugo has quit IRC
23:38:43 *** StarLionIsaac has quit IRC
23:41:49 *** Lakie has quit IRC
23:53:37 *** KenjiE20 has quit IRC
23:58:26 *** fonsinchen1 has joined #openttd
23:58:48 *** KenjiE20|LT has joined #openttd
23:59:00 *** Brianetta has quit IRC