IRC logs for #openttd on OFTC at 2009-10-06
⏴ go to previous day
00:06:51 *** Xaroth_ has joined #openttd
00:37:56 *** Xaroth_ has joined #openttd
00:40:39 *** Rubix`` has joined #openttd
00:44:52 *** zachanima has joined #openttd
01:22:04 *** Rubix`` has joined #openttd
01:35:21 *** KenjiE20|LT has joined #openttd
01:38:29 *** Xaroth_ has joined #openttd
03:10:27 *** Rubidium_ has joined #openttd
03:25:34 *** DorpsGek` has joined #openttd
03:25:35 *** ChanServ sets mode: +o DorpsGek`
03:26:40 *** Hirundo_ has joined #openttd
03:27:06 *** KingJ-OFT has joined #openttd
03:27:45 *** blathijs_ has joined #openttd
03:28:08 *** KingJ-OFT is now known as KingJ
03:28:13 *** eQualizer has joined #openttd
03:28:13 *** sdafsdf is now known as LadyHawk
03:28:28 *** joachim has joined #openttd
03:28:33 *** Prof_Frink has joined #openttd
03:28:49 *** FloSoft has joined #openttd
03:28:49 *** DorpsGek` is now known as DorpsGek
03:30:30 *** MyCatVerbs has joined #openttd
03:31:06 *** thepalm has joined #openttd
03:32:37 *** lobster has joined #openttd
03:32:37 *** michi_cc has joined #openttd
03:32:37 *** galapagos.oftc.net sets mode: +v michi_cc
03:34:02 *** stuffcorpse has joined #openttd
03:49:58 *** De_Ghosty has joined #openttd
04:13:05 *** michi_cc has joined #openttd
04:13:05 *** galapagos.oftc.net sets mode: +v michi_cc
04:13:12 *** lobster has joined #openttd
05:18:04 *** HerzogDeXtEr has joined #openttd
05:21:02 *** zachanima has joined #openttd
05:28:00 *** HerzogDeXtEr has joined #openttd
05:54:09 *** Polygon has joined #openttd
06:08:52 *** Rubidium_ is now known as Rubidium
06:11:24 *** Cybertinus has joined #openttd
06:29:56 *** Terkhen has joined #openttd
06:40:32 *** andythenorth has joined #openttd
07:09:20 <Noldo> are NoAI run only in server or on every client?
07:09:25 *** fonsinchen has joined #openttd
07:45:56 *** TrueBrain_ has joined #openttd
07:47:21 *** TrueBrain_ is now known as TrueBrain
07:47:49 *** Progman has joined #openttd
07:57:49 <dihedral> ai's run where the game is hosted
08:01:27 *** boekabart has joined #openttd
08:07:54 *** Coco-Banana-Man has joined #openttd
08:09:06 *** zachanima has joined #openttd
08:17:11 *** valhallasw has joined #openttd
08:32:51 *** zachanima has joined #openttd
08:33:11 *** blathijs_ is now known as blathijs
08:46:29 *** zachanima has joined #openttd
09:18:20 *** boekabart has joined #openttd
09:31:04 *** oskari89 has joined #openttd
10:07:48 *** Belugas has joined #openttd
10:07:48 *** ChanServ sets mode: +o Belugas
10:21:53 <hickop> hello , is there a way to keep my trains at the same length ? for example if it replaced engine and had to remove a car , then when it change engine again it had a car if it can.
10:22:53 * boekabart is totally confused by that question
10:25:30 <hickop> the autoreplace vehicules , i set it to remove extra cars , is there a way to reverse this so it will ad a car when needed ?
10:25:31 <Eddi|zuHause> hickop: there is only an option to remove wagons, not to add them on replace
10:43:33 *** valhallasw has joined #openttd
11:12:19 *** masacre has joined #openttd
11:13:12 *** KenjiE20 has joined #openttd
11:13:23 <masacre> is there any openttd guru willing to answer a few questions from me?
11:13:38 <masacre> or all too busy playing :)
11:13:59 <SmatZ> everyone is waiting for you to ask instead of asking to ask :-p
11:14:22 <masacre> i wont keep everyone in suspense much longer then.
11:15:44 <masacre> only one of the servers on the public server list has > 30 max clients. Why is a lower limit placed on those servers?
11:16:27 <SmatZ> how many of the servers have > 4 clients connected?
11:16:50 <masacre> ok, so there is just no need...
11:17:36 <masacre> there are more servers than clients :)
11:18:19 <masacre> are there many more active players in the weekends/evening (in some timezone)?
11:19:07 <masacre> or is 100ish just about normal?
11:23:34 <Eddi|zuHause> i don't think anyone ever made a weekly graph
11:23:58 <masacre> Eddi|zuHause: well what kind of numbers do you recall... did you ever see 1000 clients? or 500?
11:24:43 <Eddi|zuHause> i can say pretty safely that i never witnessed such a thing
11:27:33 <masacre> what happens if one of the servers crashes, is all lost, or do they save every now and then so you can resume from there?
11:28:44 <Eddi|zuHause> that depends on the server
11:32:03 *** Dred_furst has joined #openttd
11:35:23 *** Eddi|zuHause has joined #openttd
11:38:10 <Rubidium> 200-250 players is roughly the maximum you'll get in any week
11:39:09 <SpComb> whip up some MRTG on the masterserver :)
11:39:09 *** tux_mark_5 has joined #openttd
11:39:26 <TrueBrain> here I was hoping MRTG project was dead by now ..
11:39:45 <SpComb> SNMP extensions to OpenTTD
11:40:26 <TrueBrain> I would advise rrdtool with snmpclient to everyone, so in my opinion, yes
11:42:24 <masacre> and those hickups when a server autosaves... is that a multisecond thing?
11:42:26 <TrueBrain> but I guess it is a nice suggestion to make MSU keep track of simple stats, and output that on request
11:43:08 <Rubidium> ... but the master server doesn't know about the stats
11:43:35 <TrueBrain> Rubidium: I was more thinking in the lines of: servers-advertised (total number)
11:43:37 <Rubidium> ... and the updater that does know the stats doesn't have a way to get requests
11:43:49 *** masacre_ has joined #openttd
11:44:09 <masacre_> < masacre> and those hickups when a server autosaves... is that a multisecond thing?
11:44:35 *** th1ngwath has joined #openttd
11:44:37 <Rubidium> depends on the slowness of the map and the size of the map
11:44:48 <TrueBrain> Rubidium: other stats like total connected clients can be easily added to the MSU (not the updater), as it is a single SQL
11:44:50 <Rubidium> but yes, it can be multiseconds in worst case
11:45:43 <boekabart> shouldn't a save be multithreadable? shadow copy and save in background?
11:46:21 <boekabart> if only it were as simple as a simple memorycopy of the map arrays...
11:46:32 <TrueBrain> boekabart: psst .. check the code :p
11:47:12 <Rubidium> boekabart: clients joining server?
11:47:17 <masacre_> (ive read somewhere that the only use of a second thread is during a save)
11:47:18 <TrueBrain> it is only off for servers
11:47:56 <Rubidium> servers don't 'fire and forget' save because that makes the code unnecessarily complex
11:48:10 <TrueBrain> the network-send-map code, yes :)
11:48:47 *** th1ngwath is now known as thingwath
11:49:05 <Rubidium> SNMP looks awfully complex for the master server
11:49:20 <TrueBrain> Rubidium: SNMP would be complete overkill. Simple 'finger' like protocol would make more sense
11:49:31 <TrueBrain> or even a new packet which is like GET_STATS
11:49:48 <Rubidium> but... they want XML
11:50:13 <masacre_> just 'they', like the guys who killed Kenny...
11:50:16 <Rubidium> whoever is going to use it; just use the webserver. It can do SQL queries too
11:50:26 *** ChanServ sets mode: +v tokai
11:50:43 <TrueBrain> Rubidium: hmm .. didn't I already make the server part XML ready? Can't remember .. I did some work on it, can't remember if I published it
11:51:12 <TrueBrain> clearly I never published it, ghehe :)
11:51:16 <Rubidium> and it's probably a) easier to implement at server side, b) easier to implement at client side and c) doesn't trash the clear distinction between master server and updater (i.e. website filler)
11:52:18 * Rubidium is going back at getting annoyed by LTO not working and Ex
11:52:21 <TrueBrain> Rubidium: either way, I was more thinking in the lines of business of the MSU (as I said). Like connections per minute, shit like that :)
11:52:52 <Rubidium> yes, Ex as in Ex's duplicate servers
11:53:02 <Rubidium> and LTO as in GCC's link time optimisation
11:53:35 <TrueBrain> Ex is easy :) I would just add an IP ban if it was up to me :p
11:53:50 <TrueBrain> business .. busyness ... lol :)
11:54:15 <Rubidium> heh, resign and re-sign are much more fun to mix up
11:55:30 <SpComb> like SNMP, but with more XML
11:56:16 <TrueBrain> [13:55] <masacre_> would it be possible to cheat with openttd, if i hacked a client (im not going to, dont worry)
11:56:21 <TrueBrain> if you have something to ask, use this channel
11:58:13 *** thingwath has joined #openttd
11:59:51 <Rubidium> depending on what you classify as cheating it's possible, but then it's possible with an unhacked client too
12:14:24 *** Rubix`` has joined #openttd
12:17:36 <masacre_> so changing the client would not help me. Too bad :)
12:18:31 <TrueBrain> always those people from a TUDelft who want to do such nasty things :(
12:18:36 <TrueBrain> they can't fix my bike, but this they can
12:18:46 <masacre_> im not in the bike fixing business :)
12:18:58 <TrueBrain> you are supposed to be! You are from Delft!
12:19:59 <Rubidium> yeah, the last time I was in Delft there were a lot of people cheating OpenTTD
12:20:08 <TrueBrain> that too, for sure :)
12:20:31 <Rubidium> it's probably something with the air
12:20:36 <TrueBrain> I still like that one trick, to buy vehicles at one industry, move it to the delivery stuff, and sell it there
12:21:23 *** boekabart has left #openttd
12:21:34 <TrueBrain> I think boekabart is from Delft :p
12:21:47 <masacre_> actually i wanted to improve on some part of openttd :)
12:22:02 <TrueBrain> masacre_: your improvement is finding a way to cheat? :p
12:22:10 <TrueBrain> Rubidium: I doubt that :)
12:22:46 <masacre_> i guess you didnt believe my 'im not going to' :)
12:26:18 *** valhallasw has joined #openttd
12:26:20 * Rubidium wonders what's the state of the fakkelteit
12:36:13 * TrueBrain wonders why people always list the channels you are on, and starts to join them ...
12:37:56 <Rubidium> TrueBrain: start "#hebikhoningaanmijnreet" :)
12:39:23 <SpComb> decompiling 16-bit real-mode apps?
12:47:05 <Ammler> TrueBrain: maybe you should checkout what "public" means... ;-)
12:47:21 <TrueBrain> Ammler: only if you lookup the word "stalker"
12:49:26 <Rubidium> Ammler: "accessible to or shared by all members of the community". Apparantly someone isn't member of his community
12:49:58 <Ammler> Rubidium: but you need to join the channel to "learn" that
12:50:50 <Rubidium> why? Or do you mean you don't know you shouldn't casually walk into White House?
12:51:09 <Ammler> it is like visiting "special" pubs, some you do visit only once.
12:51:09 <Rubidium> or with a oddly padded coat into an airport
12:51:47 <TrueBrain> good argument for first time rapest: well, it was 'public', so I thought, I have to try it at least once to 'learn' if I am part of that community ... I am not
12:52:29 <masacre_> Probably you should use a less inviting name. 'opendune' sounds community-like.
12:53:06 <TrueBrain> I don't care that people join; it scares me people look in the list of channels users are in :)
12:53:32 <Ammler> TrueBrain: you should join a club with dih...
12:53:50 <TrueBrain> a NON PUBLIC club, to be exact :p
12:53:55 <masacre_> well you called me a TUDelft'er, i assumed your IP would show some sign of Delft too.
12:54:05 *** Chris_Booth has joined #openttd
12:54:09 <TrueBrain> masacre_: I hope you understand I am not really serious :)
12:54:16 <dihedral> what's he complaining about??
12:54:27 <TrueBrain> but no, I am not from Delft, else I wouldn't be making fun of the fact you are in Delft :p
12:54:50 <TrueBrain> my city just has a long standing discomfort with people from Delft :p :p :p
12:55:33 <Ammler> hmm, the private flag should also disable showing the channels you are in
12:57:21 <dihedral> Ammler, why bother setting that??
12:57:42 <Ammler> me doesn't, but it would help TB maybe.
12:57:59 *** boekabart has joined #openttd
12:58:13 <dihedral> no - we are not the people who need the help :-P
12:58:25 <dihedral> it's those who want to join and dont get why they are not welcome
12:59:16 <SpComb> mm, overlay manager with jump table
12:59:29 <SpComb> sounds a bit like the dynamic library stuff in ELF
13:00:57 <Rubidium> maybe because it is?
13:01:49 <TrueBrain> not really: a dynamic library is resolved on first call, and stays loaded
13:01:56 <TrueBrain> overlays unload themself when ever they seem fit
13:04:48 <SpComb> well, I presume you can unload libraries as well
13:05:31 <TrueBrain> that is something completely different :)
13:07:41 *** boekabart___ has joined #openttd
13:18:00 <Belugas> Hello sweet France :)
13:21:16 *** boekabart___ is now known as boekabart
13:33:00 *** Terkhen has joined #openttd
13:33:07 <SpComb> speaking of game remakes, I'd love to see one for Settlers II
13:34:04 <Belugas> Hello to Netherlands, and to Spain too :)
13:35:17 <blathijs> SpComb: There is an official remake of Settlers II, which is very playable
13:36:21 <SpComb> yeah, the 10th Anniversary one
13:36:26 <blathijs> SpComb: And actually, I think there is a game called "Widelands", which is exactly an open source Settlers II
13:36:34 <blathijs> Not sure if it's still alive, though
13:37:24 <SpComb> new build on 2009-09-27
13:37:28 <blathijs> Hmm, it's last release was a week ago :-)
13:37:46 <blathijs> It looks better than when I last checked it a few years ago :-)
13:38:09 <SpComb> but I guess with ubisoft you can't just rip off the origional GFX
13:38:56 * SpComb plays the DOS version on XP at 1024x768 res :(
13:39:31 <TinoDidriksen> I'd rather want an updated version of Settlers 1...best Settlers in the series.
13:43:18 *** green-devil has joined #openttd
13:43:20 *** green-devil has left #openttd
13:44:18 <SpComb> I've only ever played II, I had a look at 3/4 some time but meh
13:44:58 *** Terkhen has joined #openttd
13:46:03 <blathijs> Hmm, that's a pretty young problem
13:46:06 <Eddi|zuHause> there was a siedler 2 sequel (based on old gameplay) recently
13:46:20 <blathijs> SpComb: You haven't missed a thing about 3 and 4 :-)
13:46:32 <Eddi|zuHause> but i haven't played it myself
13:46:43 *** ChanServ sets mode: +o orudge
13:46:54 <Eddi|zuHause> i spent a lot of time playing 2 ;)
13:47:24 <Eddi|zuHause> but i recall the ships were a little buggy
13:47:26 <TinoDidriksen> I've spend days playing single Settlers 1 games; no opponents, just building out the whole map.
13:47:29 <blathijs> Hmm, I think those siedler25 might get some copyright trouble regarding their website... I'd say somebody still knows about his copyright, due to release the anniversary edition...
13:48:03 <TinoDidriksen> I'd leave my Amiga on for days with the same game running.
13:49:30 <SpComb> I spent six hours on the the one map last weekend, wiped out the pesky opponents and then eventually filled all of my military buildings up with soldiers, and got about halfway to making them all generals before I had to stop :)
13:50:39 <Eddi|zuHause> Siedler 1 was a bit unstable (especially starting it was a game of roulette)
13:51:08 <Eddi|zuHause> might have been an incompatibility with novell dos, though
13:51:27 <SpComb> most annoying point I had was a million guardhouses with one general each out in the middle of my country, and then all the active places on the border were full of newbies :(
13:51:42 <SpComb> ended up flushing them out by fiddling around with the military settings, heh
13:56:16 <Eddi|zuHause> hm... i fail to checkout their svn repository
13:58:14 <SpComb> their websvn at least lacks the 2.5 code
14:04:08 <blathijs> SpComb: The anniversary edition allows you to evacuate a military building to fix those things
14:39:29 *** boekabart has joined #openttd
14:40:09 <SpComb> hmm boo, it isn't working very well on my desktop for some reason
14:41:39 <SpComb> firstly the DOS fullscreen stuff causes my GPU to not do 1:1 scaling, plus the mouse cursor is buggy
15:16:05 *** Doorslammer has joined #openttd
15:21:19 *** Nickman87 has joined #openttd
15:21:38 *** frosch123 has joined #openttd
15:44:04 *** Polygon has joined #openttd
15:55:15 *** George3 has joined #openttd
16:07:40 *** LordAzamath has joined #openttd
16:38:31 *** Grelouk has joined #openttd
16:45:42 *** Xaroth_ has joined #openttd
16:45:58 *** Xaroth_ is now known as Xaroth
16:52:41 *** Xaroth_ has joined #openttd
16:53:03 *** Xaroth is now known as Guest419
16:53:03 *** Xaroth_ is now known as Xaroth
17:00:07 *** Alberth has joined #openttd
17:00:52 *** lobster has joined #openttd
17:06:42 *** Xaroth_ has joined #openttd
17:23:37 <CIA-4> OpenTTD: rubidium * r17720 /trunk/src/ (9 files in 2 dirs): -Codechange: guard the CargoPacket variables that are cached in CargoLists so they cannot be written from outside the CargoList class (based on patch by fonsinchen)
17:28:16 *** worldemar has joined #openttd
17:28:18 <CIA-4> OpenTTD: rubidium * r17721 /trunk/src/ (cargopacket.cpp cargopacket.h): -Codechange: replace a magic number with a constant
17:28:48 *** Xaroth_ is now known as Xaroth
17:31:14 *** Xaroth_ has joined #openttd
17:31:40 *** Xaroth is now known as Guest425
17:31:43 *** Xaroth_ is now known as Xaroth
17:33:13 <CIA-4> OpenTTD: rubidium * r17722 /trunk/src/cargopacket.cpp: -Codechange: simplify the cargopacket constructor; unduplicate if and don't set a value to 0 if it already is 0.
17:35:36 *** jonty-comp has joined #openttd
17:43:20 *** andythenorth has joined #openttd
17:43:42 <Eddi|zuHause> someone is onto these cargopackets suddenly ;)
17:44:08 <TrueBrain> he got shipped wrongly, so he needs to correct that
17:45:15 <Rubidium> nah, only the "automatically understand GCC/LTO and fix the problems I'm facing" wasn't shipped properly
17:45:19 <CIA-4> OpenTTD: translators * r17723 /trunk/src/lang/traditional_chinese.txt:
17:45:19 <CIA-4> OpenTTD: -Update from WebTranslator v3.0:
17:45:19 <CIA-4> OpenTTD: traditional_chinese - 1 changes by josesun
17:45:38 <Rubidium> more commit message than actual change
17:50:20 <TrueBrain> Prof_Frink: the solution is simple: next time you have to make sure it never commits 1 single string for any given language
17:50:23 <TrueBrain> up for that task? :)
17:58:49 <Prof_Frink> TrueBrain: I'd rather go climbing.
17:59:23 <_ln> 2277 revisions until cake party.
18:02:23 <Eddi|zuHause> so.. how do you plan to get everybody to your place? :p
18:04:19 *** fonsinchen has joined #openttd
18:17:10 *** Chris_Booth has joined #openttd
18:19:19 <_ln> it wasn't supposed to be my place, but sure why not.
18:21:14 *** Grelouk_ has joined #openttd
18:24:10 <frosch123> how many do fit into your sauna?
18:24:19 <CIA-4> OpenTTD: alberth * r17724 /trunk/src/company_gui.cpp: -Codechange: Merge magic height values toghether in finances window.
18:32:43 <_ln> frosch123: i don't have one of my own, but the one in this house is probably good for... maybe 6 persons at a time.
18:41:24 *** Brianetta has joined #openttd
19:09:33 *** Doorslammer has joined #openttd
19:13:11 *** welshdragon has joined #openttd
19:13:42 *** HerzogDeXtEr1 has joined #openttd
19:17:20 <CIA-4> OpenTTD: frosch * r17725 /trunk/src/ (12 files): -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
19:26:43 *** boekabart has joined #openttd
19:30:46 <CIA-4> OpenTTD: frosch * r17726 /trunk/src/ (4 files): -Cleanup: Remove some unneeded/unused parameters.
19:47:25 *** lobster has joined #openttd
19:52:48 <CIA-4> OpenTTD: rubidium * r17727 /trunk/src/ (cargopacket.cpp cargopacket.h saveload/station_sl.cpp): -Codechange: some coding style and documentation fixes
19:52:50 <CIA-4> OpenTTD: frosch * r17728 /trunk/src/ (9 files in 2 dirs): -Cleanup: Remove some more unneeded/unused parameters.
19:56:55 <CIA-4> OpenTTD: frosch * r17729 /trunk/src/build_vehicle_gui.cpp: -Cleanup: Deduplicate some code.
20:01:08 *** andythenorth has joined #openttd
20:02:30 *** Terkhen has joined #openttd
20:08:29 *** Kupuham has joined #openttd
20:34:29 *** andythenorth has joined #openttd
20:35:22 *** Chris_Booth has joined #openttd
20:38:53 *** Markk_ is now known as Markk
20:39:12 *** boekabart has left #openttd
20:39:29 <Muxy> a question about windget in a window...
20:39:49 <Muxy> i have some panels widgets and 2 button (images)
20:39:54 <Alberth> one with a short answer?
20:39:56 *** Rubix`` has joined #openttd
20:40:16 <Muxy> when i click on one of the pannel, its lowered
20:40:42 <Muxy> and the one lowered before is raised, like radio button in windows(tm)
20:41:03 <Muxy> i have also as said 2 pushimgbtn
20:41:28 <Muxy> when i click on the pushimgbutn, the the lowered pannel is raised...
20:41:40 <Muxy> is there a way to avoid this ?
20:42:25 <frosch123> do you want normal push-buttons, or do you want checkbox like buttons that stay lowered?
20:42:36 <Alberth> you do raiseWidget somewhere?
20:43:44 <Muxy> i have 2 sets of buttons : panel who are lowered and raised when cliked on it, and pushimgbtn just after
20:45:02 <Muxy> i dont want the panel lowerd be raised when clicking on the pushimgbtn
20:46:32 <Muxy> is there a window working like i want in OpenTTD ?
20:47:01 <Alberth> perhaps the station place gui ?
20:47:48 <Muxy> station place ? the one used to built station ?
20:48:23 <Muxy> or the one with the company stations list ?
20:49:43 <Alberth> no the station picker with the #tracks and #length of platforms and direction of station
20:51:23 <Muxy> all butons are panel lo/ra
21:05:20 <Alberth> in trunk, you must call 'this->RaiseWidget(num)' to raise a widget yourself. the window system only raises push buttons itself. (this is different in 0.7.x source). So if you don't make that call, the widget stays lowered afaik.
21:05:45 *** andythenorth has left #openttd
21:06:38 <CIA-4> OpenTTD: rubidium * r17730 /trunk/src/ (cargopacket.cpp cargopacket.h): -Codechange: do not cache the source of a packet in the cargo list. It's only used for (some) GUI/NewGRF purposes so precalculating it costs more than calculating when it's actually used.
21:07:08 <Muxy> yeap raising and lowering widget is ok
21:07:52 <Muxy> but when i have one of the panel lowered and i click a pushimgbtn, then my panel is raised
21:08:18 <Alberth> what source code are you working in? 0.7.x ?
21:09:03 <Alberth> yes. I changed that behaviour in trunk. previously, all buttons were raised as you noticed.
21:09:08 <Muxy> its when the push_imgbtn depressed itself
21:09:24 *** boekabart has joined #openttd
21:10:13 <Alberth> I think there is a call where you can hook into.
21:10:28 <Muxy> i will let it like this, and it will be okay later... when your modif will be merged
21:11:02 <Alberth> void DecreaseWindowCounters() is the function you need to look in.
21:11:19 *** boekabart has joined #openttd
21:11:41 <Alberth> w->OnTimeout(); implement raising of buttons in this function of your window
21:12:19 <Alberth> and remove WDF_UNCLICK_BUTTONS from the WindowDesc to prevent auto raising.
21:12:38 <Alberth> (at least in trunk, probably in 0.7 too, but you should check
21:12:46 <CIA-4> OpenTTD: rubidium * r17731 /trunk/src/ (cargopacket.cpp cargopacket.h): -Codechange: do not cache a boolean which states whether some other variable is not 0.
21:13:35 <Alberth> in this way you have to do it all yourself, so you have full control.
21:14:00 <Muxy> in the w->timeout() i can call the paint()
21:14:39 <Muxy> hum may be it's no good, better make another function called from paint & timeout
21:15:09 <Alberth> no, in timeout, raise any button, and call SetDirty on the same widget.
21:15:29 <Alberth> in OnPaint(), just paint :)
21:19:33 <CIA-4> OpenTTD: rubidium * r17732 /trunk/src/ (cargopacket.cpp cargopacket.h): -Codechange: reorder some variables of cargo packets/cargo lists to get better alignment *and* smaller structs; both from 40 bytes to 32 bytes on 64 bits.
21:24:17 <CIA-4> OpenTTD: rubidium * r17733 /trunk/src/ (cargopacket.cpp cargopacket.h):
21:24:17 <CIA-4> OpenTTD: -Codechange: store the 'days in transit' cache as the sum of the days in transit
21:24:17 <CIA-4> OpenTTD: instead of the average; the variable isn't requested that often (primarily
21:24:17 <CIA-4> OpenTTD: station NewGRFs) that the dividing/testing for dividing by 0 step needs to be
21:25:15 *** Brianetta has joined #openttd
21:55:14 <Nickman87> Ammler, you here? :)
21:56:39 <Nickman87> long time no see eh ;)
21:57:01 <Nickman87> I just finished updating the sign list filter patch ;)
22:02:41 <Nickman87> where can I upload a new patch?
22:05:10 <Eddi|zuHause> forum? bug tracker?
22:05:42 <Nickman87> I can post it in the old thead, thats a possibility :)
22:06:26 <Nickman87> One thing I cant get right, I want my button to be visually pushed in and come back out, but I can't get it to work, any ideas?
22:06:39 <Nickman87> I've looked at another example, but cant get it right...
22:08:09 <Eddi|zuHause> Something about LowerWidget and RaiseWidget or so
22:08:54 <Nickman87> Yeah, I tried that, but when I add a raiseWidget call, it imediatly does it without lowering :)
22:08:59 <SmatZ> there's a function that will make the button lower and raise again after a while
22:09:04 <SmatZ> something like HandleButtonClick
22:11:58 <Nickman87> do I need the "OnTimeout" function to then?
22:15:10 *** Coco-Banana-Man has quit IRC
22:24:00 *** Rubix`` has joined #openttd
22:26:17 <Ammler> Nickman87: ready for next gui patch?
22:26:35 <Nickman87> you mean the station GUI? :D
22:27:24 <Nickman87> yeah, in my VS setup the revision isn't added automaticly...
22:27:32 <Nickman87> and I'm to lazy to change it :D
22:27:40 <Nickman87> you tolk me how to fix it last time I think... :D
22:32:11 <Ammler> or simply install mingw/msys
22:34:04 <Nickman87> yeah, I have that installed... :D
22:34:26 <Rubidium> if only someone would release a fixed buildottd]
22:43:48 <Nickman87> hmmm, seems like I have a bug...
22:45:42 <Ammler> well, bottd is still good as installer for using make
22:46:04 <Nickman87> I can't load a game anymore, going to try with clean svn...
22:46:44 *** Dred_furst has joined #openttd
22:46:57 <Rubidium> Nickman87: use an older savegame :)
22:47:27 <Rubidium> like... 0.6 (or maybe 0.5) old
22:47:43 <Nickman87> why use old savegames?
22:48:00 <Nickman87> yep, trunk is broken?
22:48:17 <Nickman87> Unhandled exception at 0x00a27e9f in openttd.exe: 0xC0000005: Access violation reading location 0x00000004.
22:48:24 <Nickman87> Pretty useless like this I guess :)
22:50:10 <Nickman87> I'll try an older save
22:50:58 <Nickman87> Still not loading :s
22:51:41 <Rubidium> the intro game loads ;)
22:55:26 <Nickman87> now I get an assert failure :D
22:56:03 <Rubidium> just revert to 17700 or wait :)
22:56:10 <StM> tss ;) isnt it forbidden to commit broken builds? :>
22:56:17 <Nickman87> Have to go to sleep... will look again tomorrow or so ;)
22:56:35 <Nickman87> I'll just wait for a new revision ;)
22:57:09 <Nickman87> yeah, but it doesnt load! :D
22:57:42 <Rubidium> Nickman87: but it does load the intro game, which is just an old savegame
22:57:50 <Nickman87> yeah, that is strange...
22:58:09 <Nickman87> With the latest revision, it is somewhere in the loadsave part where it crashes so...
22:58:18 <Nickman87> Will look again tomorrow :)
22:58:29 <StM> build it with debug symbols and you know where :>
22:59:10 <Nickman87> I did, but closed it already ;)
22:59:30 <Rubidium> StM: actually, it's unlikely that he will find it quickly
22:59:55 <Rubidium> but that's more due the nastiness of the bug
23:00:16 <Nickman87> yeah, I don't think I'll be able to pinpoint the exact cause of it :D
23:01:23 <StM> Blerg it looks that in the NoAI framework no code exists to get a tilelist of x tiles around a tile :(
23:01:51 <CIA-4> OpenTTD: rubidium * r17734 /trunk/src/ (4 files in 2 dirs): -Fix (r17732): broke the assumption that 'this->packets == this', which broke loading old savegames. Now remove the (need for the) hack that needed that assumption.
23:02:32 <StM> is the id calculated like (x + (y*mapSizeX)? :)
23:02:39 <Rubidium> StM: AITileList::AddRectangle?
23:03:18 <Rubidium> StM: something like that, not sure about the exact formula; can't be bothered to look it up
23:03:19 <StM> I want a rectangle where a tile is the center of the rectangle with a size of Z
23:03:52 <Rubidium> request it at the forum, maybe Yexo can be bothered to implement it in the API
23:04:06 <Rubidium> (or tell you what function to actually use)
23:05:25 <Yexo> StM: AITileList.AddRectangle(tile - AIMap.GetTileIndex(-2, -2), tile + AIMap.GetTileIndex(2, 2)) should so what you want
23:05:36 <Yexo> given that tile is at least 2 tiles away from the border of the map
23:05:46 *** fonsinchen1 has joined #openttd
23:27:32 <StM> Thats doesnt work Yexo AIMap.GetTileIndex(-2,-2) gives -1,-1
23:28:02 <Yexo> AIMap.GetTileIndex returns a single integer
23:28:17 <StM> make a mistake in thinking
23:30:47 <StM> AITileList.AddRectangle(tile - AIMap.GetTileIndex(2, 2), tile + AIMap.GetTileIndex(2, 2)) works :))
23:31:10 <Yexo> now I see the error in my line
23:31:28 <Yexo> + AIMap.GetTileIndex(-2, -2) should do the same as - AIMap.GetTileIndex(2, 2)
23:31:29 <StM> Now do i get more realistic results :>
23:33:16 *** Eddi|zuHause has joined #openttd
23:44:06 *** Dred_furst has joined #openttd
23:45:07 *** Dred_furst has joined #openttd
23:51:38 <Muxy> But _current_company is CompanyByte. But i thought there was some mistake in the function declaration, but cant see
23:52:38 <Yexo> what file did you create WatchCompany in?
23:52:45 <Yexo> did you also add that file to the msvc project file?
23:52:59 <Muxy> i used the existing smallmap_gui.cpp
23:53:28 <Yexo> can you upload your diff?
23:53:51 <Muxy> oh yeap, let me do it...
23:59:42 <Muxy> anyway, it's late, have some rest. Thx for looking. night everybody !
continue to next day ⏵