| --- | Log | opened Thu Jun 07 00:00:41 2007 |
| 00:08 | |-| | Sacro [~Ben@adsl-87-102-80-216.karoo.KCOM.COM] has quit [Ping timeout: 480 seconds] |
| 00:15 | |-| | Sacro [~Ben@adsl-87-102-80-216.karoo.KCOM.COM] has joined #openttd |
| 00:57 | |-| | elmex [~elmex@e180065198.adsl.alicedsl.de] has joined #openttd |
| 01:06 | |-| | Sacro [~Ben@adsl-87-102-80-216.karoo.KCOM.COM] has quit [Read error: Connection reset by peer] |
| 01:09 | |-| | Osai^2 [~Osai@pD9EB68A7.dip.t-dialin.net] has quit [Quit: Osai^2] |
| 01:10 | |-| | RamboRonny [magic.powe@81-233-244-56-no37.tbcn.telia.com] has quit [Quit: - nbs-irc 2.3 - www.nbs-irc.net -] |
| 01:27 | |-| | boekabart [~boekabart@81.58.27.138] has joined #openttd |
| 01:28 | <boekabart> | goodmorning earthlings |
| 01:28 | <hylje> | evening boekabart |
| 01:29 | <boekabart> | strange.. how one wishes to others what actually is valid for oneself... |
| 01:29 | <boekabart> | so, good evening hylje :) |
| 01:29 | <hylje> | :o |
| 01:49 | |-| | Tobin [~Tobin@c58-107-50-36.eburwd7.vic.optusnet.com.au] has quit [Quit: Tobin] |
| 01:59 | |-| | Frostregen_ [~sucks@dslb-084-058-146-029.pools.arcor-ip.net] has joined #openttd |
| 02:04 | |-| | Frostregen [SADDAM@dslb-084-058-166-041.pools.arcor-ip.net] has quit [Ping timeout: 480 seconds] |
| 02:05 | |-| | Frostregen_ changed nick to Frostregen |
| 02:07 | |-| | maddy [~maddy@88-136-244-96.adslgp.cegetel.net] has joined #openttd |
| 02:21 | <CIA-1> | OpenTTD: peter1138 * r10052 /trunk/src/newgrf.cpp: -Codechange: Support reserve/activate stage bits of action 7/9 variable 84. |
| 02:34 | |-| | Vikthor [~Vikthor@snat1.spoje.net] has joined #openttd |
| 02:38 | |-| | Frostregen_ [~sucks@dslb-084-058-132-050.pools.arcor-ip.net] has joined #openttd |
| 02:39 | |-| | Frostregen61 [~sucks@dslb-084-058-138-087.pools.arcor-ip.net] has joined #openttd |
| 02:41 | |-| | Purno [~Purno@5357D37C.cable.casema.nl] has joined #openttd |
| 02:43 | |-| | skidd13 [~skidd13@p548A55BE.dip.t-dialin.net] has joined #openttd |
| 02:44 | |-| | Frostregen [~sucks@dslb-084-058-146-029.pools.arcor-ip.net] has quit [Read error: Operation timed out] |
| 02:46 | |-| | Frostregen [~sucks@dslb-084-058-169-150.pools.arcor-ip.net] has joined #openttd |
| 02:46 | |-| | Frostregen_ [~sucks@dslb-084-058-132-050.pools.arcor-ip.net] has quit [Ping timeout: 480 seconds] |
| 02:48 | |-| | Frostregen61 [~sucks@dslb-084-058-138-087.pools.arcor-ip.net] has quit [Ping timeout: 480 seconds] |
| 02:48 | |-| | Frostregen_ [~sucks@dslb-084-058-175-132.pools.arcor-ip.net] has joined #openttd |
| 02:54 | |-| | mikk36 [~mikk36@pc149.host4.starman.ee] has quit [Quit: The pedestrian had no idea which way to run, so I ran over him.] |
| 02:54 | |-| | Frostregen [~sucks@dslb-084-058-169-150.pools.arcor-ip.net] has quit [Ping timeout: 480 seconds] |
| 02:54 | |-| | Frostregen_ changed nick to Frostregen |
| 02:55 | |-| | mikk36 [~mikk36@pc149.host4.starman.ee] has joined #openttd |
| 03:05 | |-| | elmex [~elmex@e180065198.adsl.alicedsl.de] has quit [Remote host closed the connection] |
| 03:19 | |-| | Nickman [~nick_defr@d54C1C327.access.telenet.be] has joined #openttd |
| 03:20 | |-| | HMage [HMage@89-178-52-147.broadband.corbina.ru] has quit [Read error: No route to host] |
| 03:20 | <Nickman> | hi all |
| 03:26 | |-| | XeryusTC [~irc@cc480157-b.sneek1.fr.home.nl] has joined #openttd |
| 03:34 | |-| | Neonox [~Neonox@p57B2AC35.dip0.t-ipconnect.de] has joined #openttd |
| 03:50 | |-| | Tino|Home changed nick to TinoM |
| 03:58 | <CIA-1> | OpenTTD: rubidium * r10053 /trunk/src/road_cmd.cpp: -Fix: could not clear a level-crossing tile with tram tracks. |
| 04:04 | |-| | Neonox [~Neonox@p57B2AC35.dip0.t-ipconnect.de] has quit [Quit: Verlassend] |
| 04:06 | |-| | Szandor [~user@host-83-146-12-81.bulldogdsl.com] has quit [] |
| 04:15 | |-| | MUcht [~Mucht@p57a0e41f.dip.t-dialin.net] has quit [Quit: Konversation terminated!] |
| 04:18 | |-| | TheJosh [~josh@d58-105-39-13.dsl.vic.optusnet.com.au] has joined #openttd |
| 04:18 | <TheJosh> | where can i put some code to clean up some stuff when a game is abandoned? |
| 04:18 | <TheJosh> | aka dynamic array |
| 04:19 | <@peter1138> | we just rely on the OS ;p |
| 04:19 | <@peter1138> | i don't think ottd runs on any systems that don't free up used memory on exit |
| 04:20 | <boekabart> | it runs... once |
| 04:20 | <Kjetil> | Oh noes.. it won't run on DOS ! aaaaahhh |
| 04:20 | <boekabart> | maybe twice |
| 04:20 | <CIA-1> | OpenTTD: rubidium * r10054 /trunk/src/ (4 files in 2 dirs): -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format. |
| 04:20 | <@peter1138> | Kjetil: does DOS even have a concept of free memory? heh |
| 04:20 | <@peter1138> | i imagine any dos 'extender' would handle it anyway |
| 04:20 | <@peter1138> | just guessing though |
| 04:20 | <boekabart> | well there was always too little, so it must have |
| 04:21 | <Rubidium> | anything about 640kB is free, right? |
| 04:21 | <Rubidium> | *above |
| 04:21 | <@peter1138> | i think 'mem' knew of stuff in EMS/XMS, so... |
| 04:22 | <@peter1138> | hmm, mem is qemu says so, but that's freedos |
| 04:22 | <boekabart> | peter1138: pretty sure that the heap of the protected mode 'layer' would clean up better than openttd does :) |
| 04:22 | <@peter1138> | Extended (XMS) 130,048K 12,744K 117,304K |
| 04:22 | <boekabart> | you run DOS on the side? :) |
| 04:22 | <@peter1138> | yeha |
| 04:22 | <TheJosh> | so noone cleans up there heap objects anymore? |
| 04:22 | <Kjetil> | peter1138: haha.. I was using Dos the other day. I am amazed how poorly designed it is. Why did people buy that crap ?.. |
| 04:22 | <@peter1138> | ottd only cleans up between games ;) |
| 04:22 | <TheJosh> | isnt a 'memory leak' a non-cleaned up heap object? |
| 04:23 | <Rubidium> | no |
| 04:23 | <TheJosh> | i have a unopened genuiene copy of MS-DOS 6.2 |
| 04:23 | <Nickman> | Cool :D |
| 04:23 | <Rubidium> | a memory leak is a non-cleaned up heap object that doesn't have any reference to it anymore |
| 04:23 | <Biff> | memory leak is when you have allocated memory which has 0 references to it |
| 04:23 | <@peter1138> | "FreeDOS is resident in the high memory area." |
| 04:23 | <@peter1138> | woo, intelligent |
| 04:23 | <TheJosh> | but if the program closes, there will be no reference to my object |
| 04:24 | <@peter1138> | still only 619KB of 'conventional' memory free |
| 04:24 | <@peter1138> | heheh |
| 04:24 | <Biff> | if the program closes the memory is free |
| 04:24 | <@peter1138> | been AGES since i heard that conventional memory term |
| 04:24 | <Kjetil> | Biff: if you run a proper os :P |
| 04:24 | <@peter1138> | even windows frees it, heh |
| 04:24 | <Biff> | what os doesnt free memory? |
| 04:24 | <Kjetil> | dos :P |
| 04:24 | <TheJosh> | old windows |
| 04:25 | <Biff> | i think win9x had some bugs, but it did it |
| 04:25 | <TheJosh> | 95 and 98 |
| 04:25 | <Biff> | well, it did free memory, but there were some bugs that were never fixed, so it didnt always manage to free memory |
| 04:25 | <boekabart> | 95/98 tried to, but didn't have the possibility to enforce it 100% i think |
| 04:25 | <TheJosh> | and XP until your program uses about 800mb of ram (i tested it once by mkaing lots of integers) |
| 04:25 | <Biff> | hehe |
| 04:26 | <TheJosh> | then at 90% full or so it just drops off |
| 04:26 | <Biff> | that seems like a hard way to do it .-) |
| 04:26 | <TheJosh> | i guess the GC went through |
| 04:26 | <Biff> | what GC? |
| 04:26 | <boekabart> | that's swapping. look at VM size rather than memory size |
| 04:26 | <TheJosh> | nonetheless, can i execute code to clean up this memory? |
| 04:26 | <TheJosh> | GC = garbage collector |
| 04:26 | <@peter1138> | what GC, not what is GC |
| 04:26 | <Biff> | yes, did you use a gc language? |
| 04:27 | <TheJosh> | no this experiment was in c++ |
| 04:27 | <Biff> | if you used something like java, its the java vm that frees up the memory, by doing reference counting |
| 04:27 | <boekabart> | XeryusTC: we talked about GC yesterday too |
| 04:27 | <Nickman> | C and C++ doesn't do automatic GC .. |
| 04:27 | <Nickman> | as I recall... |
| 04:27 | <XeryusTC> | :o |
| 04:27 | <boekabart> | you can easily replace your malloc/free by a GC library. |
| 04:27 | <TheJosh> | the os must then if what you guys are taling about is true |
| 04:27 | <Biff> | ok, then there usually is no GC |
| 04:28 | <Biff> | TheJosh: the os knows when the process is closed, and it can mark its memory as free |
| 04:28 | <Nickman> | in C++ you have to do all garbage collection yourself. But this only goas for dangling pointers... |
| 04:28 | <boekabart> | if you close a program when debugging it in in msvc, i'll give you a list of all the memory blocks unfreed |
| 04:28 | <Nickman> | local varables and stuff are removed when they go out of scope |
| 04:28 | <Nickman> | and indeed, when the program terminates, the OS recieves all the memory again ;) |
| 04:28 | <Biff> | boekabart: ah, something like valgrind |
| 04:28 | <boekabart> | then you can set a breakpoint on their allocation (if repeatable) |
| 04:29 | <@peter1138> | valgrind is just designed to make it impossible to test by being really slow... |
| 04:29 | <boekabart> | so if you make sure the game does 100% the same thing on a run (until closing) you can figure out what blocks they are. |
| 04:29 | [~] | peter1138 remembers that days when newgrf leaked memory like a sieve |
| 04:29 | <TheJosh> | where can i put some code after the game has been closed? |
| 04:30 | <@peter1138> | UnInitializeGame() in openttd.cpp does some clean up |
| 04:30 | <boekabart> | class bla { public: ~bla() { /* the code */ } } onebla; |
| 04:30 | <Nickman> | when the game is closed you shouldn't do anything, it gets thrown away anyway... :D |
| 04:30 | <@peter1138> | not all pools are cleaned up though. hmm. |
| 04:31 | <Nickman> | yeah, use destructors... |
| 04:31 | <@peter1138> | boekabart: roflcopters |
| 04:31 | <Biff> | is there any free space in savegames? |
| 04:31 | <boekabart> | only in small ones :) |
| 04:31 | <TheJosh> | peter1138: thanks for an actual answer |
| 04:31 | <Biff> | or rather, if i wanted the savegame to remember last railtype used, would it break compatibility? |
| 04:32 | <boekabart> | Biff: you can add a variable to patches |
| 04:32 | <boekabart> | without UI |
| 04:32 | <boekabart> | you'll have to bump the savegame version though |
| 04:32 | <Rubidium> | Biff: not necessarily, but requires quite a lot of work to do it in a way that you can still load old savegames |
| 04:33 | <Biff> | i see |
| 04:33 | <Rubidium> | so, technically possible, practically unfeasible |
| 04:34 | <Biff> | i hate building the wrong type of rail |
| 04:34 | <Biff> | :p |
| 04:34 | <TheJosh> | does openttd mainly use malloc or new ?? |
| 04:34 | <TheJosh> | to create an object on the heap |
| 04:34 | <@peter1138> | mainly malloc |
| 04:34 | <TheJosh> | malloc and free? |
| 04:35 | <Rubidium> | no, malloc and delete and new and free ofcourse ;) |
| 04:35 | <TheJosh> | ok thanks |
| 04:35 | <Rubidium> | *kuch* |
| 04:35 | <boekabart> | whoops :) |
| 04:38 | |-| | Progman [~progman@p57A1D878.dip.t-dialin.net] has joined #openttd |
| 04:38 | <Rubidium> | TheJosh: do you have *any* real knowledge about programming in C(++)? As in not applying php skills or so on C(++) |
| 04:39 | <Nickman> | :D |
| 04:40 | <Noldo> | Rubidium! |
| 04:40 | <TheJosh> | Rubidium: i have some C++ but i am mainly using OpenTTD as a C++ learning platform. I do have about 12-14 years programmign experience in 19 languges at last count |
| 04:40 | <boekabart> | TheJosh: 19?!? |
| 04:41 | <boekabart> | TheJosh: is that including english? just kidding :) |
| 04:41 | <TheJosh> | some are dialects. 15 to be safe |
| 04:41 | <TheJosh> | also depends what you think of html and css |
| 04:41 | [~] | boekabart would like to see a list :) |
| 04:41 | <Rubidium> | does that include C? |
| 04:41 | <@peter1138> | html and css are not programming languages |
| 04:41 | <TheJosh> | probably shouldnt |
| 04:42 | <TheJosh> | i know, but they still require learning |
| 04:42 | <@peter1138> | (but javascript is, of course) |
| 04:42 | <ln-> | TheJosh: html and css are of course not programming languages. |
| 04:42 | <boekabart> | TheJosh: xsl is, though. |
| 04:42 | <TheJosh> | http://en.wikipedia.org/wiki/User:TheJosh |
| 04:42 | <Rubidium> | xml and uml neither, unless you're talking about exectable uml |
| 04:43 | <TheJosh> | i know all that |
| 04:43 | <TheJosh> | of course there not programming langues. they are markup languages (except css, thats a style language0 |
| 04:43 | <boekabart> | you haven't even left earth yet, ever? |
| 04:43 | <boekabart> | :) |
| 04:44 | <TheJosh> | its on the todo: list |
| 04:44 | <boekabart> | does jumping count? |
| 04:44 | <TheJosh> | in that case i have left earth |
| 04:45 | |-| | Tobin [~Tobin@c58-107-50-36.eburwd7.vic.optusnet.com.au] has joined #openttd |
| 04:45 | <TheJosh> | "Segmentation Fault" whee |
| 04:45 | <ln-> | i don't think regular expressions are a programming language either. |
| 04:45 | <Noldo> | gotta love them |
| 04:46 | <Rubidium> | does "This user can program in X" mean "This user did some stuff in language X, but doesn't have a deep understanding of the langauge"? |
| 04:46 | <Noldo> | ln-: it's a language defining language |
| 04:46 | <Rubidium> | in that case my list becomes pretty long too |
| 04:46 | <TheJosh> | yeah |
| 04:46 | <TheJosh> | but a stack on that list I do have a deep understanding of |
| 04:46 | <blathijs> | Saying "XML is a programming language" is like saying "Text is a programming language", really |
| 04:47 | <TheJosh> | proably c/c++, scheme and asm i dont know very well |
| 04:47 | <TheJosh> | im not saying xml is a programming language |
| 04:47 | <TheJosh> | ok 14 programming langues, 11 im good at |
| 04:47 | <blathijs> | The reverse also goes, btw :-) |
| 04:47 | <blathijs> | oh, we're counting programming languages :-) |
| 04:48 | <TheJosh> | i know i wont win, but i dont care. i just do my best |
| 04:48 | <boekabart> | blathijs & Rubidium : http://www.digitalmars.com/d/ |
| 04:48 | <Rubidium> | yeah, I know that (a little) |
| 04:49 | <ln-> | when I change text to bold and italics in openoffice, and even change font, am I programming in openofficeish? |
| 04:49 | <blathijs> | ln-: If you like to think so, then yes ;-p |
| 04:49 | <Rubidium> | hmm, does vhdl count? |
| 04:49 | <boekabart> | DUH! |
| 04:49 | <boekabart> | of course it does |
| 04:50 | [~] | boekabart wonders if he just said duh out load |
| 04:50 | <Rubidium> | well, it is a hardware description language |
| 04:50 | <boekabart> | well.. isn't C is a software description language :) |
| 04:50 | <Rubidium> | ofcourse it looks awfully lot like a programming language |
| 04:51 | <boekabart> | it's all if (input) then output(); |
| 04:52 | <Rubidium> | in that case... I can (i.e. once programmed in) [..lot of languages..] ;) |
| 04:53 | <skidd13> | Remember all the shell/batch/makro languages... The list is huge. |
| 04:53 | <boekabart> | i'm quite a btm expert myself :) |
| 04:53 | <TheJosh> | i only wrote bash because i can do loops and ifs and stuff like that in bash |
| 04:58 | <TheJosh> | i think i am killing the code |
| 04:58 | <TheJosh> | dont worry i will get my patch working before i release it |
| 04:58 | <skidd13> | Did someone tried the new ms batch thing (don't remember the name)? |
| 04:59 | <boekabart> | i've played with it a while ago |
| 04:59 | <boekabart> | but man didn't work, so i gave up quickly |
| 04:59 | <boekabart> | can't imagine why they had to invent smth new |
| 04:59 | <boekabart> | any choice of langs (like python) would have worked fine imho |
| 04:59 | |-| | lolman [~lolman@cpc3-leds2-0-0-cust55.leed.cable.ntl.com] has quit [Read error: Connection reset by peer] |
| 04:59 | |-| | lolman [lolman@cpc3-leds2-0-0-cust55.leed.cable.ntl.com] has joined #openttd |
| 05:00 | <skidd13> | I've a bash runing at my NT 5.1 @work. So I don't mind what MS invents. :) |
| 05:02 | <boekabart> | nt5.1? that's code for? |
| 05:02 | <boekabart> | 2003 sp 0? |
| 05:02 | <Rubidium> | XP iirc |
| 05:02 | <@peter1138> | TheJosh: besides, 'asm' for which processor? |
| 05:02 | <skidd13> | XP aka codename "whistler" ... |
| 05:03 | <boekabart> | Microsoft Windows XP [Version 5.1.2600] |
| 05:03 | <skidd13> | 5.2 is 2003 |
| 05:03 | <boekabart> | ok |
| 05:03 | [~] | peter1138 knows 'asm' for 6502, not that it's very useful |
| 05:03 | <TheJosh> | peter1138: x86 |
| 05:03 | <boekabart> | peter1138: 99% same as 6800/68000? |
| 05:03 | <@peter1138> | not as far as i know |
| 05:04 | <@peter1138> | heh, i used to use debug at school to 'enable' the mouse pointer in DOS |
| 05:05 | <boekabart> | i've never used masm. just debug.exe and ah, edit.exe? |
| 05:06 | <@peter1138> | assembly the real man's way ;) |
| 05:07 | <boekabart> | well it's hard to make a lot that way |
| 05:07 | <Nickman> | I know some assemble ;). Had to make a quicksort in it :| |
| 05:08 | <boekabart> | a made a tsr once to hook int so-much calls that would enable me to use my C64 joysticks in dos games (via a parallel port interface) |
| 05:08 | <Nickman> | assembly* |
| 05:10 | |-| | Thomas[NL] [~thomas@vdburgt.xs4all.nl] has joined #openttd |
| 05:10 | <skidd13> | Every programming-language has it's purpose ... even if it's nonsense or fun ... (except prolog IMO :lol:) |
| 05:11 | <TheJosh> | would I be able to pm someone so i can get some advice (without embarresment or ruining your assembly conversation) |
| 05:14 | <skidd13> | Rubidium: I splitted the rest of the order_gui patch. Where should I post it? Flyspray? |
| 05:16 | <boekabart> | XeryusTC: patch managment, we talked about that too :) |
| 05:16 | <XeryusTC> | :o |
| 05:17 | <XeryusTC> | that took you a long time to come up with :P |
| 05:18 | <TheJosh> | mewh im off |
| 05:18 | <TheJosh> | cya round everyone |
| 05:19 | <TheJosh> | sorry about all the c++ questions |
| 05:19 | |-| | TheJosh [~josh@d58-105-39-13.dsl.vic.optusnet.com.au] has left #openttd [] |
| 05:22 | <Nickman> | skidd13: I learnd Prolog, Haskell and LISP this year, I hate em :p |
| 05:23 | <skidd13> | Prolog has abilitys, but I don't like it either. |
| 05:24 | <Nickman> | yeah, you can dome some cool stuff with it |
| 05:30 | <Nickman> | I'm gonna try to compile OTTD in Cygwin, any problems I should look out for? |
| 05:32 | <hylje> | its silly |
| 05:33 | <Nickman> | ? |
| 05:33 | <skidd13> | Just another thing: what about NC-Programming (programming or description language)? |
| 05:34 | <skidd13> | NC -> CNC |
| 05:34 | <Nickman> | hmmmm |
| 05:34 | <Nickman> | that's a tuff one :) |
| 05:34 | <Nickman> | You describe all the movements so I would say description |
| 05:35 | <skidd13> | but in some dialect you can do if and sub programms etc. |
| 05:35 | |-| | geoffk [~geoffk@host86-130-159-207.range86-130.btcentralplus.com] has joined #openttd |
| 05:35 | <Nickman> | yeah |
| 05:35 | <Nickman> | don't knwo about that... |
| 05:41 | <Nickman> | Cygwin keeps hanging here : "[SRC] DEP CHECK (all files)" |
| 05:41 | <Nickman> | ah, it's going further ;) |
| 05:43 | |-| | skidd13 [~skidd13@p548A55BE.dip.t-dialin.net] has left #openttd [] |
| 05:43 | [~] | peter1138 kicks CIA-1 |
| 05:43 | <CIA-1> | ow |
| 05:43 | <Nickman> | lol |
| 05:43 | <Nickman> | peter1138: getting compile errors in cygwin, could you help maybe? |
| 05:43 | <Nickman> | or is it plain stupid to try and compile in cygwin |
| 05:44 | |-| | TheMask96 [martijn@sirius-r5.ne2000.nl] has quit [Ping timeout: 480 seconds] |
| 05:44 | <@peter1138> | should work no problem |
| 05:44 | <Nickman> | this is my log : http://pastebin.ca/547316 |
| 05:44 | <Nickman> | am I missing some libraries? |
| 05:45 | <@peter1138> | tuff |
| 05:45 | <@peter1138> | err |
| 05:45 | <@peter1138> | you're missing zlib/libpng stuff |
| 05:46 | <@peter1138> | grrr, that's pissing me off |
| 05:46 | <Nickman> | hmmmm, I installed them... :s |
| 05:46 | <Nickman> | I'll recheck |
| 05:46 | <@peter1138> | and their devel counter parts? |
| 05:46 | <Nickman> | ah, maybe that's the thing... |
| 05:46 | <Nickman> | sec |
| 05:46 | <Nickman> | whats pissing you off? |
| 05:47 | <@peter1138> | some oddity on my system/ssh/screen/irssi/somewhere |
| 05:47 | <@peter1138> | i'll be typing something and it'll suddenly clear the line, or go back to a previous line i typed |
| 05:47 | <@peter1138> | as if the mouse wheel is moving on its own, perhaps |
| 05:48 | <Nickman> | I have from libpng: |
| 05:48 | <Nickman> | libpng 12: PNG library 1.2.x runtime (1.2.12-1) |
| 05:48 | <Nickman> | libpng 122-devel: PNG library - 1.2.x development libraries and headers (1.2.12-1) |
| 05:48 | <Nickman> | do I need the source to? |
| 05:49 | <Nickman> | zlib I have 1.2.3-2 (only one thing is in cygwin...) |
| 05:53 | <Nickman> | peter1138 ? |
| 05:55 | <blathijs> | Nickman: -devel should be enough |
| 05:56 | <Nickman> | I have em so... :s |
| 05:57 | <Nickman> | why am I getting this... svn: '\cygdrive\e\OpenTTD\src' does not exist |
| 05:57 | <Nickman> | it does exitst |
| 06:18 | <stillunknown> | Rubidium: ping |
| 06:19 | <DJGummikuh> | Pong |
| 06:20 | <DJGummikuh> | package re-rout |
| 06:20 | <DJGummikuh> | e |
| 06:20 | <stillunknown> | I'm not pinging you ;-) |
| 06:20 | <boekabart> | MIM attack! |
| 06:20 | <Nickman> | :D |
| 06:20 | <DJGummikuh> | yay |
| 06:21 | <Nickman> | I think I'm having problems with svn in cygwin ;) |
| 06:21 | <blathijs> | Nickman: What svn command triggers that error? |
| 06:22 | <Nickman> | I'm trying to get OTTD compiled :d |
| 06:22 | <Nickman> | don'tk now the command but I get this |
| 06:22 | <Nickman> | svn: '\cygdrive\e\OpenTTD\src' does not exist |
| 06:22 | <Nickman> | so.. I'm guessing something wrong with my subersion |
| 06:22 | <Nickman> | I'm adding some packages to cygwin |
| 06:23 | <blathijs> | Nickman: Can you try "make VERBOSE=1", that should display the executed commands IIRC |
| 06:23 | <Nickman> | aha |
| 06:23 | <Nickman> | I'll try when cygwin update is done ;) |
| 06:24 | <stillunknown> | Rubidium: revision 10049 broke multiplayer games |
| 06:24 | <stillunknown> | openttd: /ts/downloads/openttd2/src/saveload.cpp:297: int SlIterateArray(): Assertion `next_offs == 0 || SlGetOffs() == next_offs' failed. |
| 06:24 | <stillunknown> | When trying to join. |
| 06:24 | <Eddi|zuHause2> | <skidd13> Every programming-language has it's purpose ... even if it's nonsense or fun ... (except prolog IMO :lol:) <- prolog is clearly one of the greatest languages invented :) |
| 06:26 | <Nickman> | and why is that? :p |
| 06:27 | <Eddi|zuHause2> | because! |
| 06:28 | <Eddi|zuHause2> | but really, prolog is so cool if you can handle it properly :) |
| 06:29 | <blathijs> | #troll prolog |
| 06:29 | <Eddi|zuHause2> | above that is only Haskell :) |
| 06:30 | <Eddi|zuHause2> | in what other language can you calculate all prime numbers in a short one-liner? |
| 06:30 | <Nickman> | hahaha :D |
| 06:30 | <Nickman> | that's true :d |
| 06:30 | <DJGummikuh> | Eddi|zuHause2: in what language would you possibly WANT that? |
| 06:30 | <DJGummikuh> | :D |
| 06:30 | <Eddi|zuHause2> | you need prime numbers for lots of reasons :) |
| 06:30 | <DJGummikuh> | hmm agreed |
| 06:31 | <Eddi|zuHause2> | but try to implement the sieve of erathostenes in C(++) |
| 06:32 | <DJGummikuh> | what I did not understand until today: is it random how industries change output or can I somehow manipulate that? |
| 06:32 | <DJGummikuh> | I mean the ressource gathering industries like mines and wells |
| 06:33 | |-| | TinoM| [~Tino@i5387C3F5.versanet.de] has joined #openttd |
| 06:36 | <Nickman> | blathijs: http://pastebin.ca/547410 new compile log... |
| 06:37 | <Nickman> | all goes well until heigtmap |
| 06:37 | <blathijs> | Nickman: So, the svn issue is resolved, that's good |
| 06:38 | <blathijs> | Nickman: It seems you don't have zlib-devel or something similar? |
| 06:38 | <DJGummikuh> | what I did not understand until today: is it random how industries change output or can I somehow manipulate that? |
| 06:38 | <DJGummikuh> | I mean the ressource gathering industries like mines and wells |
| 06:38 | <blathijs> | Nickman: Did you run ./configure? What output does it give? |
| 06:38 | <Nickman> | I have it installed, but it searches for the file in de libPNG folder? |
| 06:38 | <Nickman> | I did run it, but it scrolled out of range :d |
| 06:38 | <Nickman> | I'll run it again |
| 06:39 | <blathijs> | Ther should be an -I argument for zlib too, but I can't find it |
| 06:39 | <Nickman> | configure log : http://pastebin.ca/547417 |
| 06:40 | |-| | TinoM [~Tino@i5387C3F5.versanet.de] has quit [Ping timeout: 480 seconds] |
| 06:40 | <Nickman> | yeah, that I is missing... :| |
| 06:40 | [~] | DJGummikuh feels ignored |
| 06:41 | <Nickman> | The zlib.h file is in the main include folder... |
| 06:41 | <Nickman> | DJGummikuh: I have no ID :) |
| 06:41 | <DJGummikuh> | Nickman: no ID? ^^ |
| 06:41 | <Nickman> | no idea ;) |
| 06:41 | <DJGummikuh> | hmm... |
| 06:41 | <DJGummikuh> | who has, then? |
| 06:43 | <DJGummikuh> | oopsie |
| 06:43 | <blathijs> | Nickman: Where is zlib.h exactly? |
| 06:44 | <Nickman> | in /usr/include |
| 06:44 | <blathijs> | that should work... |
| 06:46 | <blathijs> | Nickman: I think you need -I /usr/include explicitely passed |
| 06:46 | <Nickman> | yeah, but how do I do that? |
| 06:47 | <Nickman> | I tried copying the zlib.h file into the llibpng folder now ;) |
| 06:47 | <Nickman> | :d |
| 06:47 | <Nickman> | :D |
| 06:47 | |-| | graeme [~graeme@88-104-31-62.dynamic.dsl.as9105.com] has joined #openttd |
| 06:47 | <blathijs> | Nickman: That probably worked, right? |
| 06:48 | <Nickman> | dunno, it's busy :d |
| 06:48 | <blathijs> | Nickman: export CFLAGS="-I/usr/include" should help |
| 06:48 | <blathijs> | then reconfigure and recompile |
| 06:48 | <Nickman> | ah |
| 06:48 | <Nickman> | I'll try that in a minure |
| 06:48 | <Nickman> | minute |
| 06:48 | <DJGummikuh> | hmm can't the dedicated dump a screenshot of the map? |
| 06:49 | <Nickman> | ? |
| 06:49 | <blathijs> | bbl |
| 06:49 | <DJGummikuh> | I'm in dedicated control and did screenshot big |
| 06:49 | <DJGummikuh> | I'm certain it cannot create a simple screenshot because it doesn't know where to look but screenshot big should work on dedicated server as well imho |
| 06:50 | <Nickman> | the DEP check takes ages... |
| 06:50 | <Eddi|zuHause2> | you can do a "goto <tile>" |
| 06:50 | <Eddi|zuHause2> | then take a normal screenshot |
| 06:50 | <Eddi|zuHause2> | like brianettas "webcam" |
| 06:50 | <DJGummikuh> | goto: command not found |
| 06:50 | <DJGummikuh> | Eddi|zuHause2: lol? link? |
| 06:51 | |-| | elmex [~elmex@e180065198.adsl.alicedsl.de] has joined #openttd |
| 06:51 | <Eddi|zuHause2> | it's "scrollto", i believe |
| 06:51 | <DJGummikuh> | yeah |
| 06:51 | |-| | elmex [~elmex@e180065198.adsl.alicedsl.de] has quit [Remote host closed the connection] |
| 06:51 | <Eddi|zuHause2> | it's in the forum somewhere |
| 06:51 | <DJGummikuh> | but when I create a screenshot, I get libpng error: IDAT: CRC error |
| 06:51 | <Eddi|zuHause2> | or on ppcis.org |
| 06:52 | <DJGummikuh> | http://134.130.54.198:8001/ss3.png |
| 06:52 | <DJGummikuh> | that should be a screenshot of the entire map |
| 06:52 | <Kjetil> | you killed my firefox ! :P |
| 06:53 | <DJGummikuh> | ah lol sry |
| 06:53 | <DJGummikuh> | I wgetted it and tried with feh |
| 06:53 | <Nickman> | firefox sucks at big images :D |
| 06:53 | <DJGummikuh> | woah it kills my opera too :) |
| 06:53 | <Nickman> | it doesn't kill my opera... |
| 06:54 | <boekabart> | ie7 shows it |
| 06:54 | <DJGummikuh> | nah but my system :)) |
| 06:54 | <DJGummikuh> | boekabart: reallyß |
| 06:54 | <DJGummikuh> | that is odd |
| 06:54 | <Eddi|zuHause2> | it opene directly in gwenview here... |
| 06:54 | <DJGummikuh> | I use the standard libpng library and it doesnt work here |
| 06:54 | <DJGummikuh> | even opera shows it only black |
| 06:54 | <boekabart> | that's the corner |
| 06:54 | <boekabart> | it IS black |
| 06:54 | <boekabart> | scroll to center |
| 06:55 | <DJGummikuh> | AH LOL |
| 06:55 | <Eddi|zuHause2> | the corner is always black :) |
| 06:55 | [~] | DJGummikuh = TEH N00B |
| 06:55 | <boekabart> | well you said it ;) |
| 06:55 | <DJGummikuh> | feh can't display it nonetheless |
| 06:55 | <Nickman> | euhm blathijs, placing the file in the libpng folder caused abunch of errors :D |
| 06:55 | <DJGummikuh> | and why are the trees transparent? |
| 06:56 | <Eddi|zuHause2> | because you set that? |
| 06:56 | <boekabart> | apparently that's your server default setting? |
| 06:56 | <DJGummikuh> | hm... what's the var to change that? |
| 06:57 | <blathijs> | Nickman: And with the CFLAGS thing? |
| 06:57 | <Eddi|zuHause2> | list_patches? |
| 06:58 | <Eddi|zuHause2> | i actually have no idea |
| 06:58 | <Nickman> | I'm trying blathijs but don't i have to do the "export CFLAGS="-I/usr/include"" after I configure? |
| 06:58 | <DJGummikuh> | cool |
| 06:58 | <DJGummikuh> | can I somehow get help to a specific patch setting? |
| 06:59 | <Eddi|zuHause2> | in the worst case, grep the source code :) |
| 06:59 | <blathijs> | Nickman: no, the configure should pick it up and save it |
| 07:00 | <blathijs> | Nickman: in any case, bash will keep the CFLAGS value around as well |
| 07:00 | <Nickman> | ah, it's there! |
| 07:00 | <Nickman> | I'll try to compile ;) |
| 07:01 | <DJGummikuh> | can I alter the config file while a game runs? so that when I restart the server afterwards, it uses the new config? |
| 07:01 | <Eddi|zuHause2> | on normal program termination, the config file is overwritten |
| 07:02 | <Eddi|zuHause2> | so you'd have to kill the server |
| 07:02 | <DJGummikuh> | meh |
| 07:03 | <Nickman> | blathijs: new log : http://pastebin.ca/547467 |
| 07:04 | <DJGummikuh> | what are freight_trains in the config? |
| 07:04 | <Nickman> | I get another error now |
| 07:06 | <Eddi|zuHause2> | the freight train multiplier affects acceleration with full trains |
| 07:06 | <blathijs> | Nickman: uh... I don't really know what causes that :-S |
| 07:06 | <Eddi|zuHause2> | for all except passengers/mail, the weight of the wagon is multiplied |
| 07:07 | <blathijs> | Nickman: It seems that something is different for files in subdirectories (ie, "ai", but I can't tell what exactly) |
| 07:07 | <Eddi|zuHause2> | i.e. like 1 "symbolic" wagon represents 5 "real" wagons |
| 07:07 | <Nickman> | I'll try a full recomiple... |
| 07:14 | |-| | TheMask96 [martijn@sirius-r5.ne2000.nl] has joined #openttd |
| 07:22 | <Nickman> | blathijs: new log : http://pastebin.ca/547525 |
| 07:22 | <Nickman> | now it dies at the second file already :D |
| 07:23 | |-| | Nukebuster [~wouter@a62-251-21-79.adsl.xs4all.nl] has quit [Read error: Connection reset by peer] |
| 07:24 | <blathijs> | Nickman: It seems it doesn't like the -I/usr/include then? |
| 07:24 | <Nickman> | no :s |
| 07:29 | <Eddi|zuHause2> | didn't the wiki always say libpng does not work under cygwin? |
| 07:30 | <Nickman> | it's zlib that's causing problems :( |
| 07:32 | <stillunknown> | blathijs: the r10000 party, wasn't it a bit impractical, during the day (classes and such)? |
| 07:36 | <Rubidium> | who has classes anyway? |
| 07:36 | <stillunknown> | People who go to universities ;-) |
| 07:37 | <boekabart> | or high schools |
| 07:37 | <stillunknown> | Rubidium: did you get the message, i sent (about the bug you introduced)? |
| 07:37 | <Nickman> | blathijs: I think I'm getting further than before!! I forgot to copy a file to the libpng (zlib has 2 files) nog they are both in lobpng :p |
| 07:37 | <boekabart> | come in, CIA |
| 07:37 | |-| | Digitalfox [~chatzilla@bl10-67-36.dsl.telepac.pt] has quit [Ping timeout: 480 seconds] |
| 07:37 | |-| | TheJosh [~josh@d220-238-156-217.dsl.vic.optusnet.com.au] has joined #openttd |
| 07:37 | <TheJosh> | hey |
| 07:37 | <boekabart> | CIA? |
| 07:37 | <CIA-1> | OpenTTD: miham * r10055 /trunk/src/lang/ (6 files): (log message trimmed) |
| 07:37 | <CIA-1> | OpenTTD: -Update: WebTranslator2 update to 2007-06-07 14:37:06 |
| 07:37 | <CIA-1> | OpenTTD: brazilian_portuguese - 3 fixed by tucalipe (3) |
| 07:37 | <CIA-1> | OpenTTD: catalan - 3 fixed by arnaullv (3) |
| 07:37 | <CIA-1> | OpenTTD: danish - 1 fixed by ThomasA (1) |
| 07:37 | <CIA-1> | OpenTTD: estonian - 99 fixed by kristjans (99) |
| 07:37 | <CIA-1> | OpenTTD: galician - 8 fixed by Condex (8) |
| 07:38 | <boekabart> | good boy |
| 07:38 | <CIA-1> | OpenTTD: rubidium * r10056 /trunk/src/ (saveload.cpp saveload.h vehicle.cpp): -Revert (r10049): removing SLE_WRITEBYTE didn't work as expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy. |
| 07:38 | <boekabart> | CIA-1: you can stop now |
| 07:38 | <Nickman> | lol |
| 07:38 | <Nickman> | I think I'm actually compile OTTD!!!! |
| 07:38 | <Nickman> | :D |
| 07:38 | <Rubidium> | stillunknown: what message? |
| 07:38 | <stillunknown> | The thing you just fixed ;-) |
| 07:38 | <TheJosh> | excuse me could someone please point out what im doing wrong? im sure its something real simple but its driving me nutter |
| 07:38 | <Rubidium> | (hopefully fixed) |
| 07:39 | <Nickman> | show us :p |
| 07:39 | <Rubidium> | you're using malloc and delete together? |
| 07:39 | <boekabart> | or new and free? |
| 07:39 | <TheJosh> | i cant even get malloc to work |
| 07:39 | <TheJosh> | i keep segfaulting |
| 07:40 | <TheJosh> | i have this variable: |
| 07:40 | <TheJosh> | static TextEffect *_text_effect_list = NULL; |
| 07:40 | <boekabart> | TheJosh: use http://paste.openttd.org/ if you need to paste larger pieces of code |
| 07:40 | <TheJosh> | can i do one liners? |
| 07:40 | <Nickman> | I'm getting linking error now : http://pastebin.ca/547585 |
| 07:40 | <Nickman> | can someone help? :( |
| 07:40 | <TheJosh> | ill use paste |
| 07:41 | |-| | TinoM|Mobil [~tino@gprs-pool-1-008.eplus-online.de] has joined #openttd |
| 07:41 | |-| | ThePizzaKing [~jeff@c211-28-166-77.eburwd2.vic.optusnet.com.au] has quit [Quit: ThePizzaKing] |
| 07:41 | <stillunknown> | Rubidium: My problem is gone. |
| 07:42 | |-| | TinoM|Mobil [~tino@gprs-pool-1-008.eplus-online.de] has quit [] |
| 07:43 | <TheJosh> | http://paste.openttd.org/83 |
| 07:43 | <stillunknown> | Can anyone explain why a dedicated server still does rendering? |
| 07:44 | |-| | Osai [~Osai@pD9EB68A7.dip.t-dialin.net] has joined #openttd |
| 07:44 | <boekabart> | stillunknown: the calls are all over the place |
| 07:45 | <TheJosh> | sorry im such a n00b |
| 07:45 | <Eddi|zuHause2> | stillunknown: because nobody took the time to unfiddle the spaghetti code |
| 07:45 | |-| | Peakki [antti@cs181000195.pp.htv.fi] has joined #openttd |
| 07:45 | <@peter1138> | no they're not |
| 07:45 | <@peter1138> | it's pretty simple to stop it |
| 07:46 | <boekabart> | peter1138: yes they are. there are about 16 calls accessing the video memory |
| 07:46 | <boekabart> | 16 functions |
| 07:46 | <TheJosh> | http://paste.openttd.org/85 actually |
| 07:47 | <boekabart> | TheJosh: you could've updated the first one :) |
| 07:47 | <Nickman> | peter1138: you have any idea about this linking error? http://pastebin.ca/547585 is my libPNG corrupt or so? |
| 07:47 | |-| | glx [glx@bny93-6-82-245-156-124.fbx.proxad.net] has joined #openttd |
| 07:47 | |-| | mode/#openttd [+v glx] by ChanServ |
| 07:48 | <TheJosh> | i tried to but it then only had my new stuff |
| 07:48 | <Rubidium> | TheJosh: why malloc something that has *always* the same static size? |
| 07:48 | <TheJosh> | i think i screwed it uyp. just look for 3 posts by me |
| 07:48 | <boekabart> | nevermind |
| 07:48 | <TheJosh> | Rubidium: because i wanted to get the array working to begin with, then add the dynamic stuff |
| 07:48 | <boekabart> | i see your problem |
| 07:48 | <boekabart> | line 42 |
| 07:49 | <boekabart> | _text_effect_list[i] is a TextEffect, not a *. You put that into a * |
| 07:49 | <stillunknown> | Why not use some kind of data container for this? |
| 07:49 | <boekabart> | make line 43 _text_effect_list[i].string_id != /.... |
| 07:50 | <Rubidium> | but the compiler should cry about that, unless he's using 0.5.x (but even then it should) |
| 07:50 | <boekabart> | Rubidium: it should |
| 07:50 | <@peter1138> | boekabart: accessing video memory? i think you're looking at the wrong level |
| 07:50 | <boekabart> | peter1138: _cur_dpi, i mean |
| 07:51 | <@peter1138> | then yes, you're at the wrong level |
| 07:51 | <boekabart> | Q is: if you move the 'if' up one level... won't you skip out on other code too? |
| 07:52 | <TheJosh> | "texteff.cpp:282: error: cannot convert ‘TextEffect’ to ‘TextEffect*’ in assignment" (aka line 42) |
| 07:52 | <boekabart> | TheJosh: that was what Rubidium and I were expecting |
| 07:52 | <@peter1138> | boekabart: not if you do it at the right place |
| 07:53 | <boekabart> | peter1138: like i did in the 'renderer' class patch, do you consider that the right place or not? |
| 07:53 | <@peter1138> | no, that's way too low |
| 07:54 | <boekabart> | rendere: http://paste.openttd.org/86 |
| 07:55 | <@peter1138> | hehe, = 0 |
| 07:55 | <@peter1138> | stupid C++ :p |
| 07:55 | <boekabart> | #define pure = 0 :) |
| 07:55 | <TheJosh> | boekabart: so how do I avoid casting hell? how can something seemingly so simple be so crap? |
| 07:55 | <boekabart> | without the :) |
| 07:55 | <boekabart> | TheJosh: 1 sec |
| 07:55 | <TheJosh> | ok thanks |
| 07:55 | <boekabart> | (by not taking this approach, by the way). |
| 07:56 | <@peter1138> | boekabart: with that you're still telling it what to draw, including loading and looking up sprites |
| 07:56 | <boekabart> | TheJosh: http://paste.openttd.org/87 |
| 07:57 | <boekabart> | peter1138: looking up, yes, loading, no (that's done in DrawSprite or GfxMainBlitter i think) |
| 07:57 | <Nickman> | blathijs: http://pastebin.ca/547585 any idea? |
| 07:59 | <boekabart> | peter1138: obviously, the EmptyRenderer returns immediately on all calls. (or returning a dummy value) |
| 08:00 | <@peter1138> | you can save a lot of processing by returning early in ViewportDraw |
| 08:00 | <TheJosh> | boekabart: still segfaults. that function does other stuff with te after the loop |
| 08:00 | <@peter1138> | you can save even more by not calling doing anything with windows at all |
| 08:01 | <TheJosh> | things like "te->string_id = msg;" |
| 08:01 | <TheJosh> | am I asking at a bad time? |
| 08:01 | <boekabart> | TheJosh: are you sure the _list... is not NULL there? |
| 08:02 | <TheJosh> | how do you output an error? |
| 08:02 | <TheJosh> | printf? |
| 08:04 | <valhallasw> | depends what you want to happen |
| 08:04 | <TheJosh> | i just need to know when my funciton is called |
| 08:08 | <TheJosh> | the list is defidently there |
| 08:08 | |-| | TheMask96 [martijn@sirius-r5.ne2000.nl] has quit [Ping timeout: 480 seconds] |
| 08:08 | <Eddi|zuHause2> | TheJosh: use debug() |
| 08:09 | |-| | orudge [~orudge@91.84.56.243] has quit [Ping timeout: 480 seconds] |
| 08:10 | <XeryusTC> | TheJosh: assert() |
| 08:10 | <Eddi|zuHause2> | that's probably not what he wants :) |
| 08:10 | <TheJosh> | thanks anyway |
| 08:12 | <TheJosh> | the problem is not in the loop. it is after the loop |
| 08:12 | |-| | orudge [~orudge@91.84.56.243] has joined #openttd |
| 08:12 | |-| | mode/#openttd [+o orudge] by ChanServ |
| 08:14 | <TheJosh> | http://paste.openttd.org/88 << entire function |
| 08:14 | <TheJosh> | it segfaults after "doing stuff" |
| 08:16 | <blathijs> | Nickman: Ah, you;ve reached the linker :-) |
| 08:16 | <boekabart> | TheJosh: now te is never set |
| 08:16 | <boekabart> | the outside one |
| 08:17 | <boekabart> | right |
| 08:17 | <blathijs> | Nickman: I don't know what causes that, perhaps some library should be linked in that isn't... |
| 08:17 | <boekabart> | replace line 13 by |
| 08:17 | <boekabart> | te = &_text_effect_list[i]; |
| 08:17 | <blathijs> | Nickman: (btw, do document your findings on the wiki if you get it to work..) |
| 08:17 | <boekabart> | and init te with NULL and test for it after the for |
| 08:18 | <Eddi|zuHause2> | that code does not make any sense to me |
| 08:18 | <Nickman> | blathijs: I got the compiling to work by placing the zlib files into the pnglib folder :p |
| 08:19 | <Nickman> | but now I think my libPNG isn't correct or something... |
| 08:19 | <TheJosh> | "texteff.cpp:284: error: request for member ‘string_id’ in ‘te’, which is of non-class type ‘TextEffect*’" |
| 08:19 | <Eddi|zuHause2> | e.g. why is it te.string_id once, and te->string_id the other time? |
| 08:19 | <TheJosh> | 284 is line 14 |
| 08:20 | <Nickman> | te is a pointer, replace te te. with te-> on line 14 and try again |
| 08:20 | <TheJosh> | changed te.string_id to te->string_id |
| 08:20 | <Nickman> | and? |
| 08:20 | <TheJosh> | it compiles, runs, doenst segfault |
| 08:21 | <TheJosh> | but also does nothing (the array is not updated) |
| 08:21 | <Nickman> | tada ;) |
| 08:21 | <Nickman> | hehe :D |
| 08:21 | <TheJosh> | the function does not work |
| 08:21 | <Nickman> | where does it have to add it? |
| 08:21 | <TheJosh> | to the array. |
| 08:21 | <Nickman> | what array needs to be updated? |
| 08:22 | <Nickman> | could you point me to the line where you update the array? |
| 08:22 | <TheJosh> | the loop is to find a free spot in the array. i did not code this, i am just tryng to get it working with a dynamic array so i can have 25 or 1000 elements |
| 08:22 | <TheJosh> | the original code did not have a update it used pointers i guess |
| 08:23 | <Nickman> | so, in the for loop, you are looking for an empty spot? |
| 08:23 | <TheJosh> | yes |
| 08:23 | |-| | lolman [lolman@cpc3-leds2-0-0-cust55.leed.cable.ntl.com] has quit [Read error: Connection reset by peer] |
| 08:23 | <Eddi|zuHause2> | i think you should look into container types... |
| 08:23 | <TheJosh> | thanks |
| 08:23 | <Eddi|zuHause2> | and not try to fiddle with this stuff |
| 08:23 | <Nickman> | what type does "_text_effect_list[i]" return ? |
| 08:23 | <TheJosh> | a struct |
| 08:24 | <TheJosh> | Eddi|zuHause2: i play with containers every day (aka high-level languages) how can i learn stuff if i take the easy road each time |
| 08:24 | <TheJosh> | sure im diving everyone nuts, and to that im sorry |
| 08:25 | <Nickman> | why don't you change this TextEffect *te; into TextEffect te; |
| 08:25 | <Nickman> | and don't work with silly pointer? |
| 08:25 | <Nickman> | since you have to get rid of the pointer here : TextEffect &te = _text_effect_list[i]; |
| 08:25 | <Nickman> | ? |
| 08:25 | |-| | Progman [~progman@p57A1D878.dip.t-dialin.net] has quit [Remote host closed the connection] |
| 08:25 | <Eddi|zuHause2> | yes, why don't you directly assign stuff to _text_effect_list[i]? |
| 08:25 | <TheJosh> | i dunno |
| 08:26 | <TheJosh> | its just the way the old code was |
| 08:26 | <Eddi|zuHause2> | e.g. in the if...break part |
| 08:26 | <Eddi|zuHause2> | where i is still valid |
| 08:27 | <Eddi|zuHause2> | btw. is that intentional that, if no free spot is found, the last spot is overwritten? |
| 08:27 | <Nickman> | try this? http://paste.openttd.org/89 |
| 08:27 | <TheJosh> | originally it had a weird loop |
| 08:28 | <TheJosh> | look in texteff.cpp around line 270 |
| 08:28 | |-| | orudge [~orudge@91.84.56.243] has quit [Ping timeout: 480 seconds] |
| 08:28 | |-| | MiHaMiX [~miham@xenon.bibl.u-szeged.hu] has joined #openttd |
| 08:30 | <TheJosh> | Nickman: sorry didnt work |
| 08:30 | <TheJosh> | dont worry about this i will get it eventually. |
| 08:30 | <TheJosh> | thanks everyone |
| 08:30 | <TheJosh> | im going to bed now |
| 08:30 | |-| | TheJosh [~josh@d220-238-156-217.dsl.vic.optusnet.com.au] has quit [Quit: sick of c++] |
| 08:31 | <Eddi|zuHause2> | TheJosh: yes, this "weird" loop does nothing if the array is full |
| 08:31 | <Eddi|zuHause2> | because it returns |
| 08:31 | <Eddi|zuHause2> | your loop just exits and continues with the assignments |
| 08:32 | <Eddi|zuHause2> | i hope you notice the difference between a "break" and a "return" |
| 08:32 | |-| | orudge [~orudge@91.84.56.243] has joined #openttd |
| 08:32 | |-| | mode/#openttd [+o orudge] by ChanServ |
| 08:35 | <Nickman> | hehe, he will get a corrupt array if he tries his code :) |
| 08:40 | <CIA-1> | OpenTTD: glx * r10057 /trunk/Makefile.src.in: -Fix (r10051): git version detection didn't work for mingw/msys |
| 08:47 | |-| | TheJosh [~josh@d220-238-156-217.dsl.vic.optusnet.com.au] has joined #openttd |
| 08:47 | <TheJosh> | got it |
| 08:47 | <TheJosh> | thanks everyone |
| 08:47 | <TheJosh> | im off now again |
| 08:47 | |-| | TheJosh [~josh@d220-238-156-217.dsl.vic.optusnet.com.au] has left #openttd [] |
| 08:55 | |-| | |2rB [~Twofish@195.204.107.4] has joined #openttd |
| 08:55 | |-| | Osai [~Osai@pD9EB68A7.dip.t-dialin.net] has quit [Read error: Connection reset by peer] |
| 08:56 | |-| | Osai [~Osai@pd9eb68a7.dip.t-dialin.net] has joined #openttd |
| 08:59 | |-| | Twofish [~Twofish@195.204.107.4] has quit [Ping timeout: 480 seconds] |
| 09:07 | <Nickman> | blathijs: new compile error (messing with some packages...) http://pastebin.ca/547734 |
| 09:07 | <Nickman> | any idea? |
| 09:07 | |