IRC logs for #openttd on OFTC at 2011-10-19
⏴ go to previous day
01:17:56 *** supermop__- has joined #openttd
04:56:40 *** Eddi|zuHause2 has joined #openttd
05:10:41 *** Belugas has joined #openttd
05:10:41 *** ChanServ sets mode: +o Belugas
05:38:54 *** Eddi|zuHause2 has joined #openttd
05:48:11 *** Cybertinus has joined #openttd
05:51:33 *** DayDreamer has joined #openttd
06:26:55 *** sla_ro|master has joined #openttd
07:07:17 <_1009> I can't figure out where exactly a file (scenario, game) is loaded; fios_gui.cpp only marks a file with it's name, then /somewhere else/ it gets read?
07:11:26 <planetmaker> yes. it's only the _gui part
07:11:45 <planetmaker> look for _cmd or similar
07:12:27 <planetmaker> should do the trick
07:24:01 *** valhallasw has joined #openttd
07:35:19 *** Brianetta has joined #openttd
07:39:38 <_1009> Also fios.cpp only seems to generate the file names, not actually saving them. I'm trying to load the scenario I just saved right away, but I can't find where to place the load code (load keeps occuring before I saved it)
07:44:00 <planetmaker> and you made sure to look at the dirs and files bearing 'saveload' in their name?
07:46:42 <_1009> saveload.cpp looked promissing, but I just can't figure out how the _file_to_saveload from fios.cpp is passed to there
07:49:21 <planetmaker> _xxx are global variables
07:50:45 <_1009> Okay, I understand that. But how does saveload.cpp pick up the fact that the file has to be saved/loaded then? Does it check every second whether there is a file in the queue or something?
07:54:38 <peter1138> no, SaveOrLoad() is called when it's needed
07:56:00 <_1009> Nothin'. I'm just going to use WaitTillSaved() then remark the file for loading again and just rely on the SaveOrLoad() magic :3
08:18:25 *** Adambean has joined #openttd
08:27:48 *** Adambean` has joined #openttd
08:33:04 *** Progman has joined #openttd
09:06:36 *** Eddi|zuHause2 is now known as Eddi|zuHause
09:12:58 <yrol> When iuse a daylengthpatch, do i HAVE to adjust the "ticks per minute" setting aswell? and why?
09:16:31 <lugo> you don't have to, afaik it's meant for extensively playing with timetables
09:18:27 <yrol> Ah, okies, tried timetables but... thats a bit over my head to be honest
09:31:19 <_1009> Huzzah, I got it tow rok
09:31:46 <_1009> I'm leaving it to run for a few years now, but it seems like everything works fine
09:32:28 <yrol> great! remember: dont forget to lock he doors when leaving for vacation
09:42:21 <planetmaker> the wording "Die freie Benutzung weist gegenüber dem vorbestehenden Werk einen solchen Grad an Selbstständigkeit und Eigenart auf, dass dessen Züge in dem neuen Werk verblassen und in den Hintergrund treten" just coincidentially uses the same word in German for 'train' and 'characteristic' :-). What a nice pun
09:43:19 <yrol> planetmaker, too bad no one will notice because codepages wrecked your sentence ;oP
09:43:33 <planetmaker> use a proper irc client
09:44:07 <yrol> or you use umlaute winkwink
09:44:26 <__ln__> indeed, the channel policy has been UTF-8 since forever.
09:44:41 <planetmaker> yrol: yes. And a proper IRC client has no issue with that
09:45:18 <yrol> oh, i think i stepped into something there...i was making a tiny remark and now get beaten with the channel policy :o(
09:45:34 <planetmaker> yrol: you complain about funky? characters?
09:45:58 <planetmaker> I've not may characters pasted here which my IRC client couldn't display
09:46:46 <b_jonas> most channels have now changed to UTF-8
09:46:52 <b_jonas> it's starting to be almost universal on irc
09:47:29 <yrol> complain? i did not do such thing at all. please dont blow this up to un-nessecary proportions.
09:48:05 <planetmaker> yrol: but clearly you're at fault when you can't display the characters. Not me :-)
09:48:23 <b_jonas> and people are starting to use strange mathematical characters. as a result, the next time I rewise this font, I'm going to have to add maths symbols to it.
09:48:38 <yrol> planetmaker, that is correct, however....
09:49:19 <planetmaker> ... you're the first in 3(?) years to complain that he can't see the umlauts properly
09:49:22 <yrol> planetmaker, if youdont explain that zuege = characteristics, it stillwould be a bit difficult for any nongermanspeaker to undestand
09:50:00 <yrol> its a lovely pun though...
09:50:06 <b_jonas> I have at least eight letters to add, and several mathematics symbols (most importantly 0x2212)
09:50:29 <planetmaker> b_jonas: which font?
09:52:53 <b_jonas> it's not related to openttd because openttd doesn't use monospaced fonts
09:53:52 <yrol> giggles when looking at planetmaker'S link "unterschWeidung"
09:55:40 * planetmaker wonders what is funny about a random typo
09:56:35 <yrol> phonetics. it just sounds funny. more than "unterscheeidung"
09:57:26 <peter1138> 20x10? that's an odd shape...
09:58:48 <b_jonas> peter1138: 20 pixel high, 10 pixel wide. why is that odd?
09:59:11 <peter1138> openttd can use monospaced fonts
09:59:15 <peter1138> and width always comes width
09:59:19 <peter1138> and width always comes first :p
09:59:37 <peter1138> shame that monitors have sucky resolutions these days :(
09:59:56 <b_jonas> well height is more important to me because I always run out of vertical screen estate before horizontal screen estate
10:02:50 <peter1138> i'm not surprised you run out of screen with a font that size :)
10:03:03 <yrol> "[11:48] <b_jonas> the next time I rewise this font, I'm going to have to add maths symbols to it." That is most kind of you :o) but i only replace the *with in chat, because it is less spammy and something different
10:03:41 <b_jonas> oh, I already have the ° character in
10:03:51 <b_jonas> I have full coverage of iso-8859-1
10:04:00 <b_jonas> that's not the kind of math symbol I'm thinking of
10:05:02 <b_jonas> I mean like − and ∩ and stuff like that
10:05:14 <yrol> drools in awe full coverage of iso88591
10:05:33 <peter1138> iso-8859-1 isn't very large ;p
10:06:01 <b_jonas> yep, it's only like 191 characters
10:06:02 <planetmaker> b_jonas: care to make fonts for openttd?
10:06:33 <planetmaker> like 1.5x size of current sprite fonts? :-)
10:07:12 <planetmaker> or... actually so that I can "finish" the next version of ogfx+biggui: the missing font characters I mentioned in that thread
10:07:18 <peter1138> why bother, we have freetype ;)
10:07:33 <b_jonas> planetmaker: probably no. I'd like to go draw fonts if I get independently wealthy, but that won't happen any soon.
10:07:51 <peter1138> we ought to somehow allow Game Options to be wider, so that it's less tall
10:08:06 <planetmaker> yes, a good idea, peter1138
10:08:21 <planetmaker> for some languages it doesn't fit my screen. No matter what I do, even full screen
10:09:21 <b_jonas> I mean, think of it: I'll learn to make good fonts if I'm independently wealthy but have enough freetime and still enough of an eyesight for it. That's not very likely to happen.
10:09:46 <b_jonas> Until that, I just keep maintaining this one bitmap font I use in all terminals.
10:10:01 <b_jonas> (No, not terminal stations.)
10:10:11 <planetmaker> b_jonas: sorry, I thought you make fonts already :-9
10:10:11 <yrol> what about one unified options floater for ALL the various options floaters, something like a tabbed window?
10:10:41 <peter1138> arabic looks nice with DejaVu Sans
10:10:45 <peter1138> can't read it mind you :p
10:12:04 <peter1138> hmm, possible bugs with RTL support
10:15:20 <planetmaker> that's an error possibly in the descriptions of those base sets
10:15:25 <planetmaker> as it works for opengfx
10:15:58 <planetmaker> though it has no training arabic text. Not sure
10:16:18 <planetmaker> in any case it's one string only
10:16:34 <peter1138> didn't know if it was something to do with wrapping long strings
10:16:42 <peter1138> but didn't notice opengfx :p
10:17:21 <planetmaker> but something else is wrong: the drop-down arrows
10:17:30 <peter1138> i have biggui in use
10:18:20 <peter1138> even the ... doesn't fit :)
10:18:38 <peter1138> cos it uses hardcoded pixel sizes
10:18:40 <planetmaker> hm... should biggui then also replace the climate selectors?
10:18:44 <peter1138> but don't fear, i have patches ;p
10:19:02 <peter1138> make them bigger? hmm
10:19:12 <planetmaker> It might not really be needed
10:19:19 <planetmaker> it's an honest question :-9
10:19:36 <planetmaker> my shift sometimes hangs... :-)
10:19:58 <peter1138> i think it should actually
10:28:31 <yrol> hm, what would be the difference/consequences in having ( on win xp 32 ) all the .TARs unpacked in the datafolder of the newgrf-folder compared to how it normally is done?
10:29:16 <yrol> ( given that i do not use the ingame downloading system )
10:31:26 <planetmaker> you'd have much more files in that dir
10:32:20 <planetmaker> and you'd not know anymore which readme belongs to which and which grf has which license etc pp
10:32:56 <peter1138> if you unpack the tars you get a directory for each as well
10:33:01 <peter1138> so no problem there
10:33:16 <peter1138> more files yes, but the scanner only looks for specific extensions
10:33:53 <yrol> it would not brek anything though, right?
10:33:59 <Yexo> as soon as the in-game readme reader is done it won't work for unpacked tars
10:35:31 <yrol> well, i am ( although i use windows ans thusly have a lower QI already ) am able to find a folder with a readme.txt and read that without an ingame reader :o)
10:36:33 <yrol> or an ingame clock chuckles
10:39:45 <yrol> ( and only 43 of roughly 250 newgrfs include a readme anyways )
10:48:20 <yrol> hm.. what might be more useful than an integrated readme-reader... a lil browserwindow that automatically links to the corresponding thread in the forum
10:49:02 <yrol> and a coffemachine that also drinks the coffee for you, instead of only making it
10:49:43 *** Adambean_ has joined #openttd
11:03:55 *** Adambean_ is now known as Adambean
11:12:59 <planetmaker> Yexo: iirc the quoted nfo by akasoft misses the bit7 set for the languageID though
11:13:19 <planetmaker> which means the \wx would have to be a simple byte instead
11:13:47 <Yexo> when bit 7 is clear is a byte, but for vehicles an extended byte
11:14:00 <Yexo> it's basically the id of the vehicle, which can be > 255
11:14:22 *** erik1984 has joined #openttd
11:14:38 <planetmaker> ah, right. I only read in the top of the document. yes
11:15:44 <planetmaker> I missed the 'extended byte for vehicles'
11:15:59 <Yexo> added a note about that in the top too
12:00:38 *** Kurimus has joined #openttd
13:28:41 *** supermop_ has joined #openttd
13:44:17 *** HerzogDeXtEr1 has joined #openttd
14:22:00 *** Devroush has joined #openttd
14:38:58 *** Brianetta has joined #openttd
14:39:31 *** KenjiE20 has joined #openttd
14:47:54 *** Biolunar has joined #openttd
14:55:07 *** joho^_^ has joined #openttd
14:58:25 *** blathijs_ has joined #openttd
15:04:51 *** DayDreamer has joined #openttd
15:17:28 *** Prof_Frink has joined #openttd
15:40:00 *** erik1984 has joined #openttd
15:53:04 *** TWerkhoven has joined #openttd
15:57:22 *** Hyronymus has joined #openttd
16:01:47 *** erik1984 has joined #openttd
16:12:53 *** sla_ro|master has joined #openttd
16:25:19 *** Chruker has joined #openttd
16:33:07 *** valhallasw has joined #openttd
17:02:31 *** beijingguy has joined #openttd
17:02:40 *** beijingguy has left #openttd
17:12:34 *** KenjiE20 has joined #openttd
17:12:34 *** Devroush has joined #openttd
17:12:34 *** Cybertinus has joined #openttd
17:12:34 *** TheMask96 has joined #openttd
17:12:34 *** PierreW has joined #openttd
17:12:34 *** peter1138 has joined #openttd
17:12:34 *** b_jonas has joined #openttd
17:12:34 *** michi_cc has joined #openttd
17:12:34 *** XeryusTC has joined #openttd
17:12:34 *** solenoid.oftc.net sets mode: +v michi_cc
17:12:46 *** ChanServ sets mode: +o peter1138
17:15:05 *** frosch123 has joined #openttd
17:22:32 *** supermop_ has left #openttd
17:30:24 *** mahmoud has joined #openttd
17:50:20 <amix> I miss openttd updates for my beloved OS, MorphOS ;/
17:50:50 <Rubidium> we miss GCC updates for your beloved OS
17:51:35 <Rubidium> the compiler used for OpenTTD
17:52:29 <amix> the coder is rarerly seen on irc anymore
17:53:37 <Eddi|zuHause> without an updated GCC, there's not much he could do anyway
17:56:25 <z-MaTRiX> whats the proble mwith gcc?
17:58:35 <Eddi|zuHause> gcc 2.ancient is too old, and doesn't support some of the c++ features the code uses, especially templates are problematic
17:59:09 <z-MaTRiX> the oldest i had is 3.4
17:59:28 <z-MaTRiX> but you can compile a newer version with older no?
17:59:51 <Eddi|zuHause> sure, try that for morpthos then
18:00:28 <Eddi|zuHause> some variant of amigaos
18:00:44 <z-MaTRiX> and runs on a gameboy?
18:00:58 <Eddi|zuHause> something like that :p
18:01:46 <z-MaTRiX> always wanted to install linux on a tetris
18:02:08 <Eddi|zuHause> amiga is a computer architecture that was popular among gamers in the 80's and early 90's
18:02:45 <z-MaTRiX> doesnt feel like much computing power
18:03:24 <Eddi|zuHause> it was more powerful than PCs of the same time
18:04:20 <Eddi|zuHause> and especially it had better graphics
18:04:23 <z-MaTRiX> i use 64 bit amd with ddr memory
18:04:56 <Eddi|zuHause> 's it already had a separate GPU
18:05:23 <Eddi|zuHause> an architecture that took 20 more years until it appeared in PCs
18:05:51 <z-MaTRiX> but if it stopped developing then its no benefit
18:07:26 <z-MaTRiX> so it was made for the games they made and then they threw it away
18:08:04 *** TheMask96 has joined #openttd
18:08:17 <Eddi|zuHause> Commodore, the company that manufactured these, went bankrupt in the late 90's i think
18:08:49 <Eddi|zuHause> from there it dwindeled into an esoteric niche
18:09:20 <Eddi|zuHause> same thing that almost happened to apple, actually
18:09:28 <z-MaTRiX> it was a mistake then
18:10:05 <z-MaTRiX> we could all have commodore if it succeeded
18:10:32 <z-MaTRiX> and intel would go bankrupt
18:11:30 <Eddi|zuHause> PCs had a larger target group, with "serious" users, while Amigas were always only focused on gamers
18:11:50 <z-MaTRiX> but gamerz are most users
18:11:57 <z-MaTRiX> and they use windowz
18:12:09 <Eddi|zuHause> but you have the game consoles on that market
18:12:23 <Eddi|zuHause> there's much more active opposition
18:13:02 <z-MaTRiX> btw we only had dos before 93 right?
18:13:04 <Eddi|zuHause> windows was seriously the anti-game market around that time
18:13:29 <peter1138> early-mid 90s, not late 90s
18:13:33 <peter1138> only dos before 93? lol
18:13:46 <z-MaTRiX> well it was w95 in 95
18:13:57 <z-MaTRiX> that was built on dos
18:14:27 <Eddi|zuHause> z-MaTRiX: why do all windows then say (C) 1985-X?
18:15:03 <z-MaTRiX> well i assume 85 was the first version of DOS
18:15:25 <z-MaTRiX> and the magical bootsector
18:15:46 <peter1138> no, 85 would be a first version of windows
18:16:04 <z-MaTRiX> i thought i have seen all
18:16:13 <peter1138> ms-dos was out in 1981
18:16:28 <z-MaTRiX> installed win 3.1 on ramdisk in '98 :)
18:17:15 <Eddi|zuHause> sure an OS is fast if it'S run on a computer 10 years later
18:17:17 <z-MaTRiX> 300MHz cyrix MII/IBM cpu, 32MB sd-ram
18:17:23 *** andythenorth has joined #openttd
18:17:56 <Eddi|zuHause> i had win 3.1 on a 25MHz computer with 1.6MB ram
18:18:00 <z-MaTRiX> you have some amigas too?
18:18:16 <Eddi|zuHause> no, i never had an amiga
18:18:39 <z-MaTRiX> i played a few times on some commodore-like games
18:18:48 <Eddi|zuHause> funny thing: we used windows to slow games down :p
18:19:27 <z-MaTRiX> where was linux in 95-2k ?
18:20:07 <z-MaTRiX> linux came with internet right?
18:20:10 <peter1138> linux was first released in 91, although it wouldn't've been very usable :p
18:20:17 <peter1138> came with internet? what?
18:20:29 <z-MaTRiX> well developers connect using internet
18:20:41 <andythenorth> the entire internet in your computer
18:20:51 <andythenorth> they had the internet in a rom chip
18:20:57 <andythenorth> so they booted near-instantly
18:21:00 <Eddi|zuHause> z-MaTRiX: there were connections long before the internet
18:21:07 <andythenorth> which was great, because the internet in them crashed a lot
18:21:16 <Rubidium> oh... the good old times when downloading the full kernel source took hours
18:21:21 * andythenorth goes back to looking for lego projects
18:21:53 <Eddi|zuHause> Rubidium: i still take ~2h to do that
18:22:17 <peter1138> they rather large now
18:22:44 <andythenorth> I can haz enough projects
18:24:33 <Eddi|zuHause> but i must say, linux was totally unusable for me before i had reliable internet
18:24:48 <Eddi|zuHause> which is why i switched only in 2006
18:24:56 <Eddi|zuHause> after i got a flatrate
18:26:50 <z-MaTRiX> i remember i was donated a suse linux in ~2001 after a programming competition, they were selling that crap for $60
18:27:12 <TrueBrain> there are still distros that sell their linux variant :P
18:27:14 <z-MaTRiX> with some 50000 page manual books
18:27:30 <TrueBrain> by dad bought the Suse version + books I think :P
18:27:36 <z-MaTRiX> yyeaaah i remember mandriva and mandrake
18:27:50 <z-MaTRiX> but that failed for me too
18:28:03 <TrueBrain> which distros was it that was illegal in the US so they moved to germany as main point of distribution?
18:28:06 <z-MaTRiX> "never pay for linux"
18:28:12 <TrueBrain> (illegal because of the N-bit encryption bla)
18:28:43 <z-MaTRiX> is my linux illegal in us too?
18:28:49 <TrueBrain> in the old old days
18:28:52 <z-MaTRiX> it has 256 bit encryption functionality
18:29:20 <Eddi|zuHause> the wonderful times when "exporting encryption" was illegal...
18:29:28 <TrueBrain> Eddi|zuHause: yup :)
18:29:33 <TrueBrain> happy that no longer is a real issue
18:29:50 <amix> Eddi|zuHause: MorphOS is the amiga today
18:29:57 <amix> same with amigaos4 and aros
18:30:01 <Eddi|zuHause> z-MaTRiX: it was not illegal to have encryption, it was illegal to let people from other countries download it
18:30:01 <z-MaTRiX> they probably rely on people storing luks keyfiles on pendrive ;)
18:30:07 <amix> they are in the Amiga family
18:30:17 <Sacro> z-MaTRiX: if you have libdvdcss installed then yes
18:31:01 <TrueBrain> law was changed in January 10, 2000
18:31:04 <TrueBrain> had to look that up :P
18:32:14 <Eddi|zuHause> z-MaTRiX: so if the download server was in the US, you had to make sure that only people from US could download it
18:33:10 <TrueBrain> amix: you make me wonder if OpenTTD still compiles on MorphOS ..
18:33:18 <Eddi|zuHause> funny times back then. the law had a loophole where you could export the encryption source code only in form of a book
18:34:00 <Eddi|zuHause> and then a bunch of european "hackers" went and typed the book into their computers
18:34:09 <amix> now morphos is atleast available for cheap mac hardware
18:34:13 <TrueBrain> I wonder if tokai has ever tried since .. wel .. ever
18:34:15 <DorpsGek> TrueBrain: tokai was last seen in #openttd 6 weeks, 4 days, 21 hours, 1 minute, and 49 seconds ago: <tokai> it seems hiding the OpenTTD window speeds up fast forward on Mac OS X (CPU usage goes up too, then). As I suspected the screen refresh is the limiting factor (have similar effects an emulator). :)
18:34:16 <amix> so more can get hold on the OS
18:35:23 <Eddi|zuHause> TrueBrain: like said, the main stumbling point currently is the ancient GCC version provided with the OS
18:35:36 <TrueBrain> I know they were working on a 4.N
18:35:40 <TrueBrain> but I don't know if that ever got anywhere
18:45:59 <amix> TrueBrain: will there be a Android release?
18:46:11 <TrueBrain> of MorphOS? Sounds weird ..
18:47:01 <amix> would be nice to run OpenTTD on it
18:47:19 <Eddi|zuHause> oh... apparently the end of the world is now scheduled for friday
18:47:19 <TrueBrain> I am not the person to ask these questions too :) Sorry :)
18:47:26 <TrueBrain> Eddi|zuHause: should I pack anything?
18:47:27 <amix> Eddi|zuHause: Now a new MorphOS SDK got released
18:47:37 <amix> I think at new GCC version came with it
18:47:45 <Eddi|zuHause> TrueBrain: only if you are a true christian
18:48:05 <Eddi|zuHause> amix: don't tell me...
18:48:37 <Eddi|zuHause> peter1138: did you mean "terrible"? :)
18:51:38 <Rubidium> too bad the compiler only runs on MorphOS
18:51:51 <michi_cc> Eddi|zuHause: I see tt-ms is at its best again... ;)
18:52:04 <Eddi|zuHause> michi_cc: right :)
18:52:17 <Rubidium> and misses the source code for the compiler
18:52:54 <amix> tokai have left the scene for some time it seems
18:53:16 <amix> because someone made a program infront of him and claims the other one stealed his idea
18:53:46 <amix> so he even left morphos developer channels
18:54:13 <TrueBrain> sad ... he was one of the good guys
18:56:04 * andythenorth misses peter1138
18:56:52 <TrueBrain> andythenorth: you should just call him and ask him out on a date :D
18:57:09 * andythenorth misses TrueBrain
18:57:15 <TrueBrain> sorry, I am not available
18:59:01 * andythenorth misses the_point
18:59:06 <DorpsGek> andythenorth: I have not seen the_point.
19:02:32 <TrueBrain> so, when is OpenBattlefield 3 going to be released? Anyone any idea?
19:17:13 *** Alberth has joined #openttd
19:17:13 *** ChanServ sets mode: +o Alberth
19:45:56 <amix> while you play your openttds versions
19:46:32 <amix> he have made tram, subway and railroad maps for all cities in Japan having that
19:54:19 * Rubidium dislikes the way the Tsukuba Express is drawn on those maps
19:59:00 *** TWerkhoven[l] has joined #openttd
20:02:53 <Eddi|zuHause> colour? shape? path?
20:03:50 <Eddi|zuHause> hm... assuming i'm using additional text callback (23), is there a way i can push parameters on the stack?
20:04:16 <Rubidium> it is drawn as if it is part of JR, even though it has it's own route that is totally different
20:04:48 <Yexo> Eddi|zuHause: yes, you write the parameters to temporary storage registers starting with 0x100
20:05:01 <Yexo> you'll have to know the size of the parameters though
20:05:01 <Eddi|zuHause> so i could have a string like "Axle Scheme: {STRING} Usage: {STRING}"
20:05:42 <Yexo> since {STRING} reads only a word from the stack it'd be something like this: STORE_TEMP(string(STR_FIRST) | (string(STR_SECOND) << 16), 0x100)
20:05:56 <Yexo> firs does that quite a lot if you're looking for example code
20:06:29 <Eddi|zuHause> what happened to the plan to allow "String(Param1, Param2)"? :)
20:06:49 <Yexo> partically done, but only supported if the parameters are constant
20:06:58 <Yexo> ie when nmlc can inline them at compile-time
20:07:31 <Yexo> further support will come at some point in the future
20:07:38 <Eddi|zuHause> so if i expand everything to STR_* constants it should work?
20:08:30 <Yexo> it'd be something like this: string(STR_CB23_STRING, string(STR_AXLE_SCHEME_A), string(STR_USAGE_B))
20:08:52 <Eddi|zuHause> cool, i'll try that then
20:09:09 <Yexo> this would generate one string in nfo, something like "Axle scheme: aa Usage: bb"
20:09:25 <Yexo> the other approach generates 3 nfo strings and merges them at runtime
20:09:28 <z-MaTRiX> printf '%q\n' "'a'b''''\n" | sed -r 's;\\'"'"';'"'"'"'"'"'"'"'"';g'
20:09:36 <Eddi|zuHause> ugh, won't i run out of stringids then?
20:09:43 <Yexo> depending on the amount of different axle schemes and usages the amoutn of strings can vary a lot
20:09:52 <Yexo> there are 1024 strings available for each grf
20:10:08 <Eddi|zuHause> yes, and we have like 400 engines already
20:10:38 <Eddi|zuHause> so 500 engines and 500 description strings come awfully close to the limit
20:11:06 <Yexo> than the earlier approach is better.. You need (1 + amount_of_axle_schems + amount_of_usages) strings instead of (amount_of_axle_scheme * amount_of_usages) strings
20:11:42 <Yexo> Eddi|zuHause: engine names are not part of this 1000-string limit
20:11:43 <Eddi|zuHause> usage is only like 5-10 different things, and axle schemes are repeated quite often
20:12:14 <Yexo> if you use the same parameters multiple time nmlc is smart enough to generate only a single string
20:12:19 <Eddi|zuHause> then we'd run into the limit at 1000 engines :)
20:12:34 <Yexo> not even than if the strings are mostly not unique
20:13:24 <Eddi|zuHause> but the plan is to add more info, so asymptotically it might run into O(#engines)
20:13:40 <Yexo> say you have 10 axle schemes and 10 usage-strings. If all combinations are used you use either 21 or 100 stringIDs depending on how you code it
20:13:42 *** TWerkhoven[l] has joined #openttd
20:13:55 <Eddi|zuHause> right, i get that
20:14:15 <Yexo> that just means it's not dependend on #engines
20:14:22 *** supermop_ has joined #openttd
20:14:48 <Eddi|zuHause> no, not directly, but that's the worst upper bound
20:16:05 <Eddi|zuHause> now... can i manage that in < 10 loc? :)
20:42:56 *** michi_cc_ has joined #openttd
20:50:58 <Eddi|zuHause> err... how do i escape {} in strings?
20:53:18 *** valhallasw has joined #openttd
21:03:50 *** valhalla1w has joined #openttd
21:18:02 <AD> Would anyone here know if there are major differences between binaries for x.04 and x.10 versions of ubuntu??
21:18:51 *** michi_cc has joined #openttd
21:18:51 *** ChanServ sets mode: +v michi_cc
21:19:00 <AD> I'm wondering if this might be why the natty binary would install, but not run on oneiric?
21:19:06 <Eddi|zuHause> www.informatik.uni-halle.de/~krause/text_callback.diff <-- i'm doing something wrong, i end up with the string "Axle Scheme: Plastic Usage:"
21:19:24 <Yexo> AD: linked to different versions of libraries perhaps?
21:20:09 <Yexo> + vehicle_file.write(' 0: return string(STR_ENG_DESCRIPTION);\n')
21:20:09 <Yexo> + vehicle_file.write(' return string(STR_ENG_DESCRIPTION);\n')
21:20:12 <Yexo> you can leave out the first line
21:20:18 <AD> Yexo: You'd probably know more than I. Only started fettling with linux this week, so I'm feeling my way slightly.
21:20:24 <Eddi|zuHause> yes, but that's unlikely to be the bug :)
21:21:45 <Eddi|zuHause> "Plastic" in the above string is none of the strings i provided, but some kind of default string
21:22:01 <Eddi|zuHause> seems to be the same for all engines
21:23:42 <Eddi|zuHause> oh, it's different for wagons
21:23:46 <Yexo> I just checked the openttd code and it doesn't allow any values to be referenced from the textstack
21:24:43 <Eddi|zuHause> so this won't ever work?
21:24:45 <Yexo> which basically means it's reading uninitialized values from the text-stack
21:24:53 <Yexo> not without patching openttd
21:24:57 <Yexo> which is very easy in this case
21:25:31 <Eddi|zuHause> i expect your commit in the next ten minutes then :)
21:26:36 <Prof_Frink> Eddi|zuHause: Just be glad it's not "Axle Scheme: Cannot remove obstacles on land"
21:27:32 <Eddi|zuHause> that's still better than Axel Schweiß.
21:28:46 <Eddi|zuHause> anyway, i didn't quite manage 10 loc :)
21:30:52 *** erik1984 has joined #openttd
21:32:42 *** JVassie has joined #openttd
21:45:04 <Yexo> Eddi|zuHause: will probably commit tomorrow
22:05:43 <Eddi|zuHause> aye, looks good... next need to figure out colours
22:11:16 <yrol> "Geek up your household-duties with the all-new Quantum Levitator 2000 XL Supra! THE cutting edge in hover-vacuum cleaners!"
continue to next day ⏵