--- | Log | opened Sun Oct 09 00:00:01 2016 |
00:29 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
00:32 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd |
00:32 | -!- | Snail is "Jacopo Coletto" on #openttd |
01:11 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
02:15 | -!- | sla_ro|master [slamaster@31.5.74.162] has joined #openttd |
02:15 | -!- | sla_ro|master is "slamaster" on #sla #openttd #love |
02:18 | -!- | Flygon_ [~Flygon@124-149-151-217.dyn.iinet.net.au] has joined #openttd |
02:18 | -!- | Flygon_ is "Flygon" on #openttd |
02:24 | -!- | Flygon [~Flygon@210.84.45.14] has quit [Ping timeout: 480 seconds] |
02:27 | -!- | Flygon_ [~Flygon@124-149-151-217.dyn.iinet.net.au] has quit [Ping timeout: 480 seconds] |
02:29 | -!- | HerzogDeXtEr1 [~farci@i59F6AF8F.versanet.de] has quit [Read error: Connection reset by peer] |
02:40 | -!- | Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd |
02:40 | -!- | mode/#openttd [+o Alberth] by ChanServ |
02:40 | -!- | Alberth is "purple" on @#openttd |
02:46 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has quit [Ping timeout: 480 seconds] |
03:07 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has joined #openttd |
03:07 | -!- | andythenorth is "Andy" on #openttd |
03:08 | <@Alberth> | yo, andy |
03:17 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
03:17 | -!- | Flygon is "Flygon" on #openttd |
03:20 | -!- | Lejving [~Lejving@78-68-169-135-no37.tbcn.telia.com] has quit [Read error: Connection reset by peer] |
03:20 | <andythenorth> | Sunday cat |
03:20 | -!- | Lejving [~Lejving@78-68-169-135-no37.tbcn.telia.com] has joined #openttd |
03:20 | -!- | Lejving is "realname" on #openttd #/r/openttd #openttdcoop |
03:22 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has quit [Read error: No route to host] |
03:24 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has quit [Quit: andythenorth] |
03:25 | -!- | keoz [~keikoz@pha75-1-81-57-54-15.fbx.proxad.net] has joined #openttd |
03:25 | -!- | keoz is "Grmph" on #openttd |
03:26 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has joined #openttd |
03:26 | -!- | andythenorth is "Andy" on #openttd |
03:30 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
03:30 | -!- | Flygon is "Flygon" on #openttd |
03:39 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has quit [Ping timeout: 480 seconds] |
03:41 | <@Alberth> | 1000 buildings project has major clashes in building style :) |
03:41 | * | andythenorth looks |
03:47 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
03:47 | -!- | Flygon is "Flygon" on #openttd |
03:52 | <andythenorth> | is it Hog day? |
03:55 | <@Alberth> | could be renamed |
03:55 | <@Alberth> | s/Sun/Hog/ |
03:55 | <@Alberth> | done |
03:56 | <@Alberth> | more tramz? |
03:57 | -!- | Flygon_ [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
03:57 | -!- | Flygon_ is "Flygon" on #openttd |
04:02 | -!- | Flygon [~Flygon@124-149-153-109.dyn.iinet.net.au] has quit [Ping timeout: 480 seconds] |
04:08 | <andythenorth> | need to paint some unpainted angles |
04:09 | <@Alberth> | ah, I advise red or bright yellow for those angles, as they can be very sharp |
04:09 | -!- | Flygon__ [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
04:09 | -!- | Flygon__ is "Flygon" on #openttd |
04:11 | <andythenorth> | probably http://s7g3.scene7.com/is/image//ae235?src=ae235/21451_P&$prodImageMedium$ |
04:16 | -!- | Flygon_ [~Flygon@124-149-153-109.dyn.iinet.net.au] has quit [Ping timeout: 480 seconds] |
04:20 | <@Alberth> | If you have run out of red paint, black would work too :) |
04:23 | -!- | Wolf01 [~wolf01@host24-112-dynamic.116-80-r.retail.telecomitalia.it] has joined #openttd |
04:23 | -!- | Wolf01 is "Wolf01" on #openttd |
04:24 | <@Alberth> | moin W |
04:26 | <Wolf01> | o/ |
04:27 | <andythenorth> | lo Wolf01 :) |
04:32 | <Wolf01> | Slow server is slow |
04:32 | <andythenorth> | so what’s current blocker on NRT? o_O |
04:32 | <Wolf01> | Me |
04:33 | * | andythenorth is hoping $someone will get interested and help :) |
04:33 | <andythenorth> | the patch you posted, I am out of my depth |
04:33 | <Wolf01> | It seem I don't have enough knowledge to fix it |
04:35 | <andythenorth> | what does it do / not do? o_O |
04:36 | <Wolf01> | I think I'm stuck on the pack/upack of roadtypes |
04:36 | <Wolf01> | *unpack |
04:37 | -!- | frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd |
04:37 | -!- | frosch123 is "frosch" on #openttdcoop.devzone #openttd.dev #openttd |
04:37 | <Wolf01> | Quak |
04:40 | <frosch123> | moi |
04:43 | <andythenorth> | Wolf01: where’s the patch? |
04:43 | <Wolf01> | My 1drive |
04:44 | <Wolf01> | https://1drv.ms/u/s!AgUFeOGLNNfVhdJb5qXQXZwkjHmBgA |
04:50 | -!- | sla_ro|master [slamaster@31.5.74.162] has quit [] |
04:50 | -!- | Flygon_ [~Flygon@124-149-153-109.dyn.iinet.net.au] has joined #openttd |
04:50 | -!- | Flygon_ is "Flygon" on #openttd |
04:53 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd |
04:53 | -!- | Snail is "Jacopo Coletto" on #openttd |
04:56 | -!- | Flygon__ [~Flygon@124-149-153-109.dyn.iinet.net.au] has quit [Ping timeout: 480 seconds] |
04:59 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
05:06 | <Wolf01> | andythenorth, I have a question, why do you/supermop/whoever put 1 train station non track tile connected to every truck station in openttdcoop.pro? |
05:06 | <andythenorth> | displays waiting cargo |
05:06 | <andythenorth> | so can see if station is under-served |
05:07 | <Wolf01> | Oh, you mean visually intead of clicking the station |
05:07 | <andythenorth> | yes |
05:07 | <andythenorth> | it’s much less useful if more than one cargo is collected though |
05:07 | <andythenorth> | because station display of multiple cargos is crap |
05:10 | <andythenorth> | Wolf01: which branch should I compile this against? |
05:10 | <Wolf01> | dev |
05:10 | <andythenorth> | or just put it in the repo, broken? o_O |
05:10 | <andythenorth> | usually I hate that, but it’s a dev branch, in a fork of a fork :P |
05:11 | <andythenorth> | no kittens will die |
05:11 | <Wolf01> | I would like to have something working, it compiles and run, but asserts almost immediately |
05:12 | <Wolf01> | It retrieves "roadtype = 2" which is ROADTYPE_END |
05:14 | * | andythenorth trying to apply the patch |
05:14 | <andythenorth> | it assumes svn file structure? o_O |
05:14 | <andythenorth> | looks svn-ish :P |
05:15 | <Wolf01> | Yes, it breaks if I do it as git because I usually try to apply the same patch to different working copies |
05:15 | <Wolf01> | Or even branches, or trunk |
05:23 | * | andythenorth manually resolved the paths in patch |
05:23 | <andythenorth> | src/road_func.h:179:32: error: unknown type name 'RoadTypeIdentifier' |
05:24 | <Wolf01> | Strange |
05:24 | <andythenorth> | might be uncommitted changes in the repo |
05:24 | * | andythenorth tries from fresh |
05:25 | <Wolf01> | Nah, RoadTypeIdentifier is in patch only |
05:26 | <Wolf01> | Did it patch road.h fine? |
05:26 | -!- | Webster [~coop-9001@188.cimarosa.openttdcoop.org] has quit [Remote host closed the connection] |
05:26 | <andythenorth> | no |
05:26 | <andythenorth> | 4 out of 4 hunks FAILED -- saving rejects to file src/road.h.rej |
05:27 | -!- | Webster [~coop-9001@188.cimarosa.openttdcoop.org] has joined #openttd |
05:27 | -!- | Webster is "Supybot 0.83.4.1" on #openttd @#openttdcoop.wiki @#coopetition @#openttdcoop.stable |
05:28 | <andythenorth> | not sure how to resolve a failed patch |
05:28 | * | andythenorth goes by line number |
05:29 | <andythenorth> | dunno if it’s the line numbers in the patch, or the .rej file |
05:29 | <Wolf01> | Usually I try to resolve by applying each chunk with the helper, but some times I do it manually |
05:32 | -!- | Progman [~progman@p57A192F8.dip0.t-ipconnect.de] has joined #openttd |
05:32 | -!- | Progman is "Peter Henschel" on #openttdcoop.dev #openttdcoop #openttd |
05:33 | <andythenorth> | ach |
05:33 | * | andythenorth can’t see why that wouldn’t patch |
05:34 | <Wolf01> | Line endings maybe |
05:38 | <andythenorth> | it fixed line endings in other files :| |
05:39 | <andythenorth> | Wolf01: push it in dev-unpack branch? o_O |
05:39 | <Wolf01> | Or directly in dev, as you said, it's a clone of a branch |
05:41 | <andythenorth> | if we can get the unpack working, I think the rest is just work and yak-shaving |
05:41 | -!- | Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd |
05:41 | -!- | Wormnest is "Wormnest" on #msys2 #mingw-w64 #openttd #gcc |
05:42 | <Wolf01> | Committing |
05:42 | <Wolf01> | It's 3-patches-in-one because it's too wide spread to get all divided |
05:43 | <Wolf01> | Done |
05:43 | <andythenorth> | got it |
05:45 | <andythenorth> | yeah asserts for me |
05:46 | <andythenorth> | got a compile warning about “CompareRoadTypes” being unused also, probably not relevant? |
05:46 | <Wolf01> | Yes, it asserts, with no doubt :P |
05:46 | <Wolf01> | Not relevant, I disabled sorting |
05:47 | <Wolf01> | I'll re-enable it when I'll get it working |
05:47 | <Wolf01> | GetRoadTypeInfo() is the problem |
05:48 | <andythenorth> | not Unpack() ? |
05:49 | <Wolf01> | It's the entire RoadTypeIdentifier if we want to be precise |
05:49 | <andythenorth> | ok it doesn’t assert with no grf |
05:49 | * | andythenorth working through things |
05:49 | <andythenorth> | we’re sure it’s not the grf is broken? |
05:49 | <Wolf01> | Could be |
05:49 | <andythenorth> | but then if it was, the behaviour should be better handled than assert |
05:49 | <andythenorth> | "should" |
06:04 | -!- | Defaultti [defaultti@lakka.kapsi.fi] has quit [Quit: Quitting.] |
06:07 | -!- | Defaultti [defaultti@lakka.kapsi.fi] has joined #openttd |
06:07 | -!- | Defaultti is "Defaultti" on #vserver #powerdns #pentadactyl #openttd #love #gcc #debian |
06:17 | -!- | Myhorta [~Myhorta@00018fad.user.oftc.net] has joined #openttd |
06:17 | -!- | Myhorta is "realname" on #openttd #/r/openttd |
06:18 | <andythenorth> | Wolf01: I’ve made a grf that has “ROAD” as label rather than “WOLF" |
06:19 | <andythenorth> | appears not to assert, _if_ I’ve done it right :P |
06:19 | <Wolf01> | It should appear in the road types dropdown if I made it right |
06:21 | <andythenorth> | I just get one type, normal road |
06:21 | <andythenorth> | that’s expected? |
06:21 | <Wolf01> | No |
06:22 | <andythenorth> | can I get it to print the label in shell? |
06:22 | <andythenorth> | it’s printing the roadtype props |
06:22 | <Wolf01> | It only prints the uint32, I don't know how to print the string |
06:24 | <andythenorth> | hmm |
06:25 | <andythenorth> | this is painful eh? :D |
06:27 | <Wolf01> | It's depressing, not painful |
06:28 | <andythenorth> | ok so changing the label from “ROAD” definitely triggers the assert |
06:29 | <andythenorth> | so why doesn’t that assert when label is “ROAD”…? o_O |
06:29 | <Wolf01> | Because it asserts when adding a roadtype |
06:29 | <Wolf01> | Not when changing an existing one |
06:29 | <andythenorth> | ok |
06:29 | <andythenorth> | are the ranges for GB correct? |
06:30 | <Wolf01> | I don't think so |
06:30 | <Wolf01> | Maybe thy are off by 1 |
06:30 | <andythenorth> | “C++ for dummies”: why is ret a bool? |
06:31 | <andythenorth> | the return value from Unpack() is a bool? |
06:31 | <Wolf01> | Yes, it returns if unpacked succesfully |
06:32 | <andythenorth> | ok |
06:35 | * | andythenorth needs a pencil and paper to draw bits :( :P |
06:36 | <argoneus> | good morning train friends |
06:38 | <Wolf01> | o/ |
06:41 | <andythenorth> | Wolf01: I can stop the assert on L207 of road.cpp :( (by commenting it out) |
06:41 | <andythenorth> | that gets me more asserts in road.h |
06:41 | <Wolf01> | Heh... that's because it's returning the wrong type |
06:42 | <Wolf01> | There's an assert there for a reason :P |
06:42 | -!- | Arveen [~Arveen@ip-178-202-138-209.hsi09.unitymediagroup.de] has joined #openttd |
06:42 | -!- | Arveen is "Arveen" on #openttd |
06:48 | <Eddi|zuHause> | andythenorth: if the grf is faulty, it should error out much earlier |
06:48 | <Wolf01> | Yes |
06:49 | <Wolf01> | But I think it is already on the reservation for the newgrf which calls GetRailTypeInfo() to check if there's already a label |
06:51 | <andythenorth> | ha ha |
06:51 | <andythenorth> | I forced this->subtype = (RoadType)1; |
06:51 | <andythenorth> | and now I am building tram instead of road :P |
06:51 | <andythenorth> | (RoadType) is a cast? |
06:52 | <Eddi|zuHause> | yes |
06:52 | <Wolf01> | Yes |
06:52 | <Eddi|zuHause> | not to confuse with RoadType(1), which would be a constructor |
06:56 | <andythenorth> | ach can’t just printf the result of GB |
06:56 | <andythenorth> | have to format it |
06:59 | <andythenorth> | Wolf01: if basetype is 0 and subtype is 1, what should the result be? o_O |
06:59 | <andythenorth> | I get tram track and trams :P |
07:00 | <Wolf01> | Basetype 0 is road, and subtype 1 should be a new roadtype |
07:00 | <andythenorth> | yeah... |
07:00 | * | andythenorth is prone to hard-coding things to test, rather than debugging ‘properly' |
07:01 | <Wolf01> | I have a bigger problem now: need to transport gasoline, I only have fuel cargo O_o |
07:04 | <Wolf01> | Oh, it works |
07:08 | <andythenorth> | ? o_O |
07:08 | -!- | Arveen2 [~Arveen@ip-178-202-138-209.hsi09.unitymediagroup.de] has joined #openttd |
07:08 | -!- | Arveen2 is "Arveen" on #openttd |
07:08 | -!- | Arveen is now known as Guest1575 |
07:08 | -!- | Arveen2 is now known as Arveen |
07:08 | <Wolf01> | Mix of different grfs |
07:08 | <Wolf01> | UKRS, FIRS... |
07:08 | <andythenorth> | sounds like something is changing cargo name? |
07:09 | <Wolf01> | Italian translation is different, in english is correct |
07:10 | <Wolf01> | UKRS "petrol" translate to "carburante (fuel)" while FIRS "petrol" translates to "benzina (gasoline)" |
07:10 | <andythenorth> | ah ok |
07:10 | * | andythenorth staring at RoadType() :P |
07:11 | -!- | Guest1575 [~Arveen@ip-178-202-138-209.hsi09.unitymediagroup.de] has quit [Ping timeout: 480 seconds] |
07:25 | -!- | Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd [] |
07:29 | -!- | gelignite [~gelignite@x4db5be85.dyn.telefonica.de] has joined #openttd |
07:29 | -!- | gelignite is "gelignite" on #openttd #openttdcoop.devzone |
07:32 | <andythenorth> | Wolf01: I got nothing :( |
07:32 | <Wolf01> | :/ |
07:32 | <andythenorth> | needs code review from someone who isn’t andythenorth :( |
07:32 | <Wolf01> | I'll give it a look too |
07:33 | -!- | Samu [~oftc-webi@po1-84-91-250-188.netvisao.pt] has joined #openttd |
07:33 | -!- | Samu is "OFTC WebIRC Client" on #openttd |
07:33 | <Samu> | @logs |
07:33 | <@DorpsGek> | Samu: https://webster.openttdcoop.org/index.php?channel=openttd |
07:34 | <Wolf01> | Samu, give it a look you too https://github.com/Wolfolo/NotRoadTypes/tree/dev |
07:35 | <andythenorth> | see if you can get Eddi|zuHause interested |
07:35 | <Samu> | what am i looking at? |
07:35 | <Eddi|zuHause> | that'll be hard |
07:35 | <Wolf01> | Oh, he is interested |
07:35 | <Wolf01> | He just don't want us to know |
07:35 | <andythenorth> | it’s an obiwan somewhere, € on it |
07:35 | <Wolf01> | ;) |
07:35 | <Eddi|zuHause> | well, interested, just not motivated |
07:36 | <andythenorth> | or subtype and basetype are transposed somewhere :P |
07:36 | <Wolf01> | Samu, Roadtypes, but it asserts because I don't know how to do it right in the RoadTypeIdentifier |
07:36 | * | andythenorth suspects subtype and basetype transposition in a way that doesn’t show up when both are 0 |
07:37 | <andythenorth> | Samu: you have to have a test grf also |
07:38 | <andythenorth> | this one http://dev.openttdcoop.org/attachments/download/8113/example_roadtype.grf |
07:38 | <Samu> | hmm, not really sure if i follow |
07:39 | <Samu> | https://github.com/Wolfolo/NotRoadTypes/archive/dev.zip - i downloaded this |
07:40 | <Samu> | gonna try loading project in visual studio |
07:40 | <andythenorth> | it’s a git repo forked from main openttd repo |
07:40 | <andythenorth> | should be fine |
07:43 | <Samu> | Visual studio does not like it "Security Warning for openttd_vs140: The project file openttd_vs140 may have come from a location that is not fully trusted. |
07:44 | <Samu> | Would you like to open this project? |
07:45 | <Samu> | is this project gonna do a format c: or something :o |
07:46 | <Wolf01> | We are working on roadtypes and we don't know how to fix a thing, we just need more point ov views |
07:51 | <andythenorth> | Samu: could just clone it with git? o_O |
07:54 | <Samu> | ok, back, gonna try building it |
07:55 | <Samu> | crap, needs those essentials stuff, brb |
07:57 | <Wolf01> | Why don't you prepare an openttd_vs140.vcxproj.user file? |
07:58 | <Wolf01> | I just copy that on every working copy and ba-dum! Useful included automagically |
07:58 | <Wolf01> | *Essentials |
08:01 | <Samu> | tortoise scv checkout doesn't work |
08:02 | <Samu> | or it's slow |
08:02 | <Samu> | ah, it just started |
08:02 | <Wolf01> | Git server is slow |
08:02 | <Wolf01> | *Github |
08:04 | <Wolf01> | Also I found why I missed key strokes, I connected again keyboard and mouse in the same usb hub... |
08:04 | <Samu> | there's branches, and there's trunk, which one is it? |
08:04 | <Wolf01> | dev |
08:05 | <Wolf01> | I don't know why, but if I do that they miss key strokes or even mouse clicks |
08:05 | <Samu> | branches/dev ? |
08:05 | <Wolf01> | Yes |
08:06 | * | andythenorth bbl |
08:06 | <Samu> | whatt's the vcxproj.user file? |
08:06 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has quit [Quit: andythenorth] |
08:06 | <Samu> | how do i prepare that |
08:07 | <Wolf01> | A user file to store user-dependant project properties instead of modifying the distributed project file |
08:08 | <Wolf01> | https://paste.openttdcoop.org/pqhus614o I did this |
08:08 | <Wolf01> | Where OTTD_IncludePath and OTTD_LibraryPath are environment variables, you can put the exact path if you want |
08:16 | <Samu> | sorry for noob question, is that the conents of a 'openttd_vs140.vcxproj.user' file? |
08:16 | <Samu> | i've never done it before |
08:16 | <Samu> | contents* |
08:16 | <Wolf01> | Yes |
08:17 | <Samu> | well anyway, i just done it by editing the vcxproj, maybe next time |
08:17 | <Samu> | it built! |
08:18 | <Samu> | how am i triggering the crash now? |
08:18 | <Wolf01> | Loading the provided grf |
08:19 | <Samu> | oh right |
08:21 | <Samu> | ah, crashed when starting a new game |
08:36 | -!- | Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving] |
08:36 | <Samu> | return (0< 16) && (2 < 2); |
08:36 | <Samu> | true && false |
08:36 | <Samu> | i don't really know what these values mean |
08:36 | <Samu> | false is 0? |
08:38 | -!- | Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd |
08:38 | -!- | Gja is "Martin" on #bcache #openttd |
08:38 | <Samu> | where is this data = 2 coming from t.t o |
08:39 | <Wolf01> | From Unpack(), and that, or pack, is wrong |
08:42 | <Samu> | hmm i see there's 2 RoadTypes and 16 RoadSubTypes ... |
08:42 | <Samu> | i'd need to learn how is this all organized |
08:44 | <Wolf01> | RoadTypeIdentifier should be a tool to provide an unique number based on base type + sub type, for example "Road + paved road 120kmh" or "Tram + rack and pinion rail" |
08:45 | <Wolf01> | And with that number you can know if it's road or tram |
08:45 | <Wolf01> | And which one if road or tram |
08:46 | <Wolf01> | It's needed in cases where you can't pass more parameters (sort functions) |
08:46 | <Wolf01> | But also to keep the code clean instead of passing 2 parameters everywhere |
08:46 | <Samu> | basetype can't be 2, i see that throughout the code |
08:47 | <Wolf01> | Indeed, that's wrong, it can only be 0 and 1 |
08:48 | <Samu> | this->basetype = (RoadType)GB(2, 0, 2); |
08:48 | <Samu> | = 2 |
08:51 | <Samu> | return (this->basetype << ROADSUBTYPE_END) | this->subtype; trying to decipher this |
08:51 | <Samu> | when it was packed it was 1, right? |
08:51 | <Samu> | or either 0 or 1 |
08:51 | <Samu> | would it pack 2? |
08:51 | <Samu> | assert is there, so i suppose not |
08:51 | <Wolf01> | It should be GB(2, 0, 1) |
08:52 | <Wolf01> | And the following line GB(2, 2, 4) |
08:53 | <Wolf01> | Need to store length in bits in the enum |
09:00 | -!- | aard [~aard@108.134.189.109.customer.cdi.no] has joined #openttd |
09:00 | -!- | aard is "realname" on #openttdcoop.stable #openttdcoop #openttd.dev #openttd #bitlbee |
09:08 | <Wolf01> | Ok, now it seem that there's a problem with the FOR_ALL_SORTED_ROADTYPES, I can't find other road types even if there are |
09:08 | <Samu> | return (2 << 16) | 0 - who's a math expert |
09:10 | <Samu> | or right, 2 is not possible |
09:10 | <Samu> | return (1 << 16) | 0 - who's a math expert |
09:11 | <Samu> | I'm getting 65.536 - is that what should be stored? I'm a bit confused now |
09:11 | <Samu> | erm, packed |
09:12 | <Wolf01> | No, it should pack 4 |
09:12 | <Wolf01> | Pack() is wrong too |
09:13 | <Wolf01> | I mixed lengths with max values |
09:13 | <Samu> | is pack and unpack related? |
09:14 | <Samu> | how does it go from 65536 to 2 |
09:14 | <Wolf01> | Yes, they are |
09:14 | <Wolf01> | Pack 0 and 0 -> *number* -> unpack -> 0 and 0 |
09:15 | <Samu> | pack returns 65536, then somehow it becomes 2 when it unpacks |
09:16 | <Wolf01> | Unpack should do: |
09:16 | <Wolf01> | this->basetype = (RoadType)GB(data, 0, 1); |
09:16 | <Wolf01> | this->subtype = (RoadType)GB(data, 2, 4); |
09:17 | <Wolf01> | I must go now, bbl |
09:24 | <Samu> | this->basetype = (RoadType)GB(data, 0, ROADTYPE_END -1); |
09:24 | -!- | Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)] |
09:25 | <Samu> | this->subtype = (RoadType)GB(data, ROADTYPE_END, calculate_4_somwhoe); |
09:25 | <Samu> | this->subtype = (RoadType)GB(data, ROADTYPE_END, calculate_4_somehow); |
09:27 | <Samu> | basetype is stored in 1 bit, right? |
09:27 | <Samu> | the other is in 4 bits |
09:28 | <Samu> | I think you want this->subtype = (RoadType)GB(data, 1, 4); |
09:28 | <Samu> | not 2,4 |
09:30 | -!- | HerzogDeXtEr [~farci@i59F6AF8F.versanet.de] has joined #openttd |
09:30 | -!- | HerzogDeXtEr is "purple" on #openttd |
09:30 | <Samu> | 7654 3210 |
09:31 | <Samu> | 0000 000x - RoadType |
09:31 | <Samu> | 000x xxx0 - RoadSubType |
09:31 | <Samu> | 000 x xxxx - RoadType + RoadSubType |
09:31 | <Samu> | 000x xxxx - RoadType + RoadSubType |
09:31 | <Samu> | :o |
09:32 | <Samu> | but packing needs fixing |
09:32 | <Samu> | grrr |
09:34 | <Samu> | return this->basetype | (this->subtype << 1); maybe this? |
09:36 | -!- | sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds] |
09:37 | <Samu> | trying the test grf |
09:37 | <Samu> | brb |
09:38 | <Samu> | it's generating world :) |
09:39 | -!- | HerzogDeXtEr1 [~farci@i59F6D476.versanet.de] has joined #openttd |
09:39 | -!- | HerzogDeXtEr1 is "purple" on #openttd |
09:40 | <Samu> | world generated but there's another assert when i get to road construction |
09:40 | <Samu> | meh :( |
09:43 | <Samu> | assert(list->Length() > 0); |
09:43 | <Samu> | dropdown window error |
09:43 | <Samu> | there are 0 items in the dropdown list |
09:45 | -!- | HerzogDeXtEr [~farci@i59F6AF8F.versanet.de] has quit [Ping timeout: 480 seconds] |
09:59 | -!- | Arveen [~Arveen@ip-178-202-138-209.hsi09.unitymediagroup.de] has quit [Quit: Nettalk6 - www.ntalk.de] |
10:38 | -!- | Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd |
10:38 | -!- | mode/#openttd [+o Alberth] by ChanServ |
10:38 | -!- | Alberth is "purple" on @#openttd |
10:53 | <Samu> | just started testing RoadRunner v10 |
10:53 | <@Alberth> | meep meep! |
11:27 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has joined #openttd |
11:27 | -!- | andythenorth is "Andy" on #openttd |
11:30 | <Samu> | andythenorth: hi |
11:30 | <andythenorth> | lo |
11:31 | <Samu> | how many road types are in your test grf |
11:31 | <Samu> | I presume 1, but not sure |
11:32 | <@Alberth> | o/ |
11:32 | <Samu> | i also tested the generic tram set |
11:32 | <Samu> | and i could only build roads |
11:33 | <Samu> | seems like 2 is 1, and 1 is 0 |
11:34 | <andythenorth> | Samu: just 1 in the grf I linked iirc |
11:36 | <Samu> | seems to be it, when i access the road construction dropdown it crashes because there are 0 items to display |
11:36 | <Samu> | but didn't crash with generic tram set |
11:37 | <Samu> | Wolf01: wake up |
11:41 | * | andythenorth should probably delete this post https://www.tt-forums.net/viewtopic.php?p=1177731#p1177731 |
11:41 | <andythenorth> | nothing good will come of it |
11:45 | <Samu> | i didn't read the whole topic, but it's about licenses? |
11:45 | <Samu> | i hate licenses |
11:45 | <andythenorth> | it’s about misunderstandings |
11:46 | <Samu> | if i post something on the internet, it's not mine anymore |
11:46 | <@Alberth> | false |
11:46 | <@Alberth> | the law says it's still yours |
11:46 | <andythenorth> | Samu: (1) you need the wtfpl :) (2) nah |
11:46 | <Samu> | anymore can do whatever they want with it :o |
11:46 | <andythenorth> | only if you license it for that |
11:46 | <andythenorth> | ;) |
11:46 | <@Alberth> | you have to explicitly say you give it away |
11:47 | <Samu> | it's the internet, once there, always there |
11:47 | <andythenorth> | nah :) |
11:47 | <andythenorth> | not |
11:48 | <@Alberth> | being around is not the same as being allowed to use |
11:48 | <@Alberth> | andy: indeed, post won't do much good |
11:48 | * | andythenorth deletes |
11:48 | <Samu> | not like i have any say on what the others do with it |
11:49 | <@Alberth> | Samu: but it's easily solved, just say with every post that the content has a the WTPL license |
11:50 | <Samu> | i don't get why do I need a license of stuff I post |
11:51 | <andythenorth> | you don’t need to |
11:51 | <@Alberth> | you don't, but then everything you post is still yours, others may not use it as they see fit |
11:51 | <@Alberth> | ^ Samu |
11:51 | <@Alberth> | just ass it to your signature :) |
11:52 | <@Alberth> | *add |
11:52 | * | andythenorth removed the post |
11:53 | <andythenorth> | spending Sunday arguing on the internet might have been fun |
11:53 | <andythenorth> | but Monday is a work day :P |
11:57 | <@Alberth> | :) |
11:58 | <Samu> | screw that wtf license |
11:58 | <andythenorth> | he must be about 15? |
11:58 | <@Alberth> | stuff seems mostly settled |
12:00 | <Samu> | http://www.wtfpl.net/ - the seriousness of this site... |
12:02 | <andythenorth> | pretty serious business |
12:08 | <@Alberth> | WTPL is an official open source license. It even has a real use, some countries do not recognize public domain, That license is equivalent to it, but it does get recognized as being legal in those countries |
12:10 | <Wolf01> | Back |
12:11 | <Wolf01> | andythenorth, I think I fixed one of the asserts |
12:11 | <Wolf01> | I need to understand the Pack() stuff now |
12:16 | <andythenorth> | great :) |
12:17 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd |
12:17 | -!- | Snail is "Jacopo Coletto" on #openttd |
12:19 | <Samu> | hey Wolf01 andythenorth |
12:19 | <Samu> | did you read logs? i typed stuff when you were gone |
12:20 | <Wolf01> | Samu, did you read that I fixed it way before you wrote that? |
12:20 | <Samu> | yes |
12:20 | <Wolf01> | Then? |
12:20 | <Samu> | pack was fixed |
12:20 | <Samu> | or not? |
12:21 | <Samu> | sec, i copy paste |
12:22 | <Samu> | for unpack i did this this->basetype = (RoadType)GB(data, 0, 1); |
12:22 | <Samu> | this->subtype = (RoadType)GB(data, 1, 4); |
12:23 | <Samu> | for pack i did this return this->basetype | (this->subtype << 1); |
12:24 | <Samu> | it worked, but there's more crashes |
12:24 | <Wolf01> | Ok |
12:25 | <Samu> | there's 2 is 1 and 1 is 0 issues somewhere when constructing a list of items for the road dropdown menu |
12:26 | <Wolf01> | That's because I hardcoded the showinf of tram |
12:26 | <Wolf01> | *showing |
12:27 | -!- | tokai [~tokai@00012860.user.oftc.net] has quit [Quit: c('~' )o] |
12:27 | <Wolf01> | I need to change the macro FOR_ALL_SORTED_ROADTYPES |
12:31 | <Samu> | you have said you did: this->subtype = (RoadType)GB(data, 2, 4); |
12:31 | <Samu> | i suppose it should be: this->subtype = (RoadType)GB(data, 1, 4); |
12:32 | -!- | tokai [~tokai@00012860.user.oftc.net] has joined #openttd |
12:32 | -!- | mode/#openttd [+v tokai] by ChanServ |
12:32 | -!- | tokai is "Christian Rosentreter" on +#openttd |
12:32 | <Wolf01> | Yes it should be 1, 4 |
12:34 | <Wolf01> | andythenorth, could you provide a roadtype with a different menu text? Dropdowns don't seem to work really well with same text |
12:35 | <Samu> | i used generic tram set |
12:36 | -!- | frosch123 [~frosch@00013ce7.user.oftc.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn] |
12:37 | <Wolf01> | It's not related to a tram set |
12:38 | <Wolf01> | Committed some fixes |
12:46 | <Samu> | let me see what happens when i use it |
12:47 | <Samu> | yay nice job, i can build trams and roads now |
12:48 | <Wolf01> | Nice error I'm getting now "96,030 bags of sweet" |
12:50 | <@Alberth> | enough to fill a house :) |
12:50 | <Samu> | I'm getting: Road Construction, Road Construction, Tramway Construction |
12:51 | <Wolf01> | Yes, the second road should be the new one |
12:51 | <Samu> | the two Road Constructions are pegged into each other, not separate |
12:56 | <Samu> | a quick fast forward test shows RoadRunner v10 doing much much better than v9 |
13:02 | -!- | sla_ro|master [slamaster@31.5.74.162] has joined #openttd |
13:02 | -!- | sla_ro|master is "slamaster" on #sla #openttd #love |
13:02 | <Samu> | and not cheating |
13:03 | <Samu> | hehe, RoadRunner was the cheating AI with 80 year preview vehicles :) |
13:03 | <Samu> | but that was fixed in 1.6.1 |
13:03 | <Samu> | would have to test in 1.5.0 or something to see if it really was fixed, i'm not in the mood for it |
13:05 | <Wolf01> | Mmmh, I need to get rid of all those RoadTypeToRoadTypes() |
13:06 | <Wolf01> | Also I fixed even that double selected dropdown item |
13:06 | <Wolf01> | Too bad the second roadtype is unbuildable right now |
13:12 | <Samu> | this is too much information to post in the forum https://paste.openttdcoop.org/pcocnay3q |
13:13 | <Samu> | horizontal scrolling will be needed |
13:13 | <Samu> | not sure if i post these results like that |
13:25 | <andythenorth> | Wolf01: I’ll make a new grf shortly |
13:26 | <Samu> | i'm not sure how terron managed a 101% with ships |
13:26 | <Samu> | i think he uses transfer orders |
13:26 | <Samu> | buses transfer passangers to ships |
13:27 | <Samu> | not sure about the whole math involved in transfers, but... ship profit averaged higher than the best last year ship profit |
13:28 | <Samu> | in better english: the average is higher than the best |
13:34 | <Samu> | or he sold quite some many ships right before entering 2051 |
13:35 | <Samu> | and that would inflate the average |
13:35 | -!- | Myhorta [~Myhorta@00018fad.user.oftc.net] has quit [Ping timeout: 480 seconds] |
13:35 | <Samu> | terron likes to renew vehicles for no reason |
13:35 | <Samu> | way before their max age |
13:39 | <Samu> | maybe he cheats like rondje |
13:39 | <Samu> | i dunno |
13:42 | <Samu> | @calc (((1131295-273205)/10)/85249)*100 |
13:42 | <@DorpsGek> | Samu: 100.656899201 |
13:42 | <Samu> | it's over 100 |
13:42 | <Samu> | :( |
13:42 | <Samu> | i rounded up to 101 |
13:45 | <@DorpsGek> | Commit by translators :: r27659 trunk/src/lang/portuguese.txt (2016-10-09 19:45:39 +0200 ) |
13:45 | <@DorpsGek> | -Update from Eints: |
13:45 | <@DorpsGek> | portuguese: 25 changes by Samu |
13:45 | <Samu> | oh, ty |
13:46 | <Samu> | is that my name there? it should be Xarick |
13:46 | <Samu> | whatever, doesn't matter |
13:56 | <andythenorth> | Wolf01: is the menu fetching the correct strings? o_O |
13:57 | <Samu> | andythenorth: your grf crashes on original 1.6.1 |
13:57 | <Wolf01> | Seems not |
13:57 | <Samu> | it's not supposed to use it, right? |
13:57 | <andythenorth> | Samu: no support for roadtype ;) |
13:57 | <andythenorth> | crashing is ‘correct’ |
13:58 | <andythenorth> | Wolf01: this one has two types http://dev.openttdcoop.org/attachments/download/8119/example_roadtype_2_types.grf |
13:58 | <andythenorth> | ‘default’ ROAD, and WOLF road |
13:58 | <andythenorth> | the strings don’t work for me though |
13:59 | <Wolf01> | The second type has something different |
13:59 | <Wolf01> | But still not using the right strings |
14:00 | <andythenorth> | it misses one way roads, I noticed |
14:00 | <Wolf01> | Yup |
14:01 | <Wolf01> | But I think it's because some hardcoded check on roadtype "1" |
14:01 | <Wolf01> | Since it should be using road subtype 1 now it might be that... |
14:02 | <Wolf01> | There are many things to change |
14:03 | <Wolf01> | It's checked everywhere that the roadtype must be road or tram |
14:03 | <andythenorth> | yes |
14:03 | <andythenorth> | but we now have it not crashing |
14:04 | <andythenorth> | which is a big deal ) |
14:04 | <andythenorth> | :) |
14:04 | <Wolf01> | And it's even loading another dropdown item! |
14:05 | <andythenorth> | construction menu thinks it’s a tramway :) |
14:06 | <Wolf01> | I can't decide if RoadTypeInfo is wrong |
14:06 | <andythenorth> | also nothing builds on the new type :D |
14:06 | <Wolf01> | No, that's because the hardcoded checks in tram and road |
14:06 | <andythenorth> | yair |
14:07 | * | andythenorth has seen those checks before and changed them in an old patch ;) |
14:07 | <Wolf01> | If you build a roadstop it even asserts |
14:07 | <andythenorth> | on a string eh? |
14:07 | <andythenorth> | interesting |
14:10 | <Samu> | pt_PT and pt_BR are copied over each other? or are they just suggestions? |
14:10 | <Samu> | the translation website is smart! |
14:20 | <Samu> | the portuguese translators have a tough town versus city issue |
14:21 | <Samu> | i guess we initially translated town to city |
14:21 | <Samu> | then city became part of openttd |
14:21 | <Samu> | and we still kept translating city to city |
14:21 | <Samu> | bah :( |
14:24 | <Samu> | is there a way to send notes to other portuguese translators? or put notes about certain words? |
14:25 | <Samu> | we're not in agreement about this town vs city issue |
14:26 | <Samu> | i'd like a note saying: DO NOT TRANSLATE CITY TO CITY, BUT TO METRÓPOLE |
14:30 | <Samu> | the root of the problem was at the beginning, whoever was at it, translated town to city, instead of village |
14:38 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
14:44 | <Samu> | town to city is also correct, but not when openttd also has city |
14:49 | -!- | Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd |
14:49 | -!- | Gja is "Martin" on #bcache #openttd |
14:50 | -!- | Myhorta [~Myhorta@00018fad.user.oftc.net] has joined #openttd |
14:50 | -!- | Myhorta is "realname" on #openttd #/r/openttd |
15:03 | <Wolf01> | Samu, feel free to change all town occurrencies |
15:14 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has joined #openttd |
15:14 | -!- | Supercheese is "Supercheese" on #openttd #openttdcoop.devzone +#openttd.dev |
15:18 | -!- | Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd |
15:18 | -!- | Wormnest is "Wormnest" on #msys2 #mingw-w64 #openttd #gcc |
15:22 | -!- | glx [~glx@000128ec.user.oftc.net] has joined #openttd |
15:22 | -!- | mode/#openttd [+v glx] by ChanServ |
15:22 | -!- | glx is "Loïc GUILLOUX" on +#openttd |
15:29 | -!- | Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd [] |
15:32 | <Wolf01> | andythenorth, I found why there were no strings in the errors of the second roadtype |
15:33 | <Wolf01> | Also why is the item title "road" and toolbar title "tramway" |
15:34 | <Wolf01> | The funny thing is that now you can build both roads |
15:36 | <Wolf01> | The last one is because I'm stupid |
15:40 | <Wolf01> | Uhm, it seem to work anyway |
15:42 | <Wolf01> | I want to try a thing |
15:43 | <Wolf01> | Ok, it seem I can add an arbitrary number of roadtypes and tramtypes now |
15:43 | <andythenorth> | Wolf01: let me know if there’s something to pull :) |
15:44 | <andythenorth> | if / when |
15:44 | <Wolf01> | I committed some fixes and changes |
15:45 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has quit [Quit: Valete omnes] |
15:48 | <andythenorth> | Wolf01: nicely played |
15:48 | <andythenorth> | both types now show |
15:48 | <Samu> | Wolf01: well i could do that, but then the next translator would find town and translate it to city, it's natural translation, and then another one finds city and then translates to city :( |
15:48 | <andythenorth> | hoo |
15:48 | -!- | aard [~aard@108.134.189.109.customer.cdi.no] has quit [Ping timeout: 480 seconds] |
15:48 | <andythenorth> | be useful if the land inspector gained the newgrf debug tools for NRT |
15:49 | <andythenorth> | maybe Samu would do that? o_O |
15:49 | <Wolf01> | Yup, we will do that |
15:49 | <Samu> | ? i was answering to Wolf01 [20:03] <Wolf01> Samu, feel free to change all town occurrencies |
15:49 | <Wolf01> | I added a second tramtype with label "etrm" and menu string from elrail and it works |
15:50 | <andythenorth> | in newgrf, or hard-coded? o_O |
15:50 | <Wolf01> | Hard coded |
15:50 | <andythenorth> | hard-coded ftw when it’s a complex patch |
15:50 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has joined #openttd |
15:50 | -!- | Supercheese is "Supercheese" on #openttd #openttdcoop.devzone +#openttd.dev |
15:50 | <Wolf01> | You could do that by copying the tram definition in roadtypes.h |
15:50 | <Samu> | it's natural for us to translate town to city |
15:51 | <Wolf01> | I just added another "original roadtype" |
15:51 | <Samu> | bah whatever, doesn't matter |
15:51 | <Wolf01> | It's like it's done by a newgrf but it's hardcoded instead |
15:52 | <Samu> | town = cidade |
15:52 | <Samu> | city = cidade |
15:52 | <Samu> | everything is a cidade.... and it can't be |
15:52 | -!- | sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has joined #openttd |
15:52 | -!- | sim-al2 is "sim-al2" on #openttd @#/r/openttd |
15:52 | <Samu> | i think im going crazy |
15:53 | <Wolf01> | So you in portuguese call a town city? |
15:54 | <Samu> | it's usually that |
15:54 | <Samu> | but it could also be village |
15:54 | <Wolf01> | And also a city city? |
15:54 | <Samu> | yes |
15:54 | -!- | HerzogDeXtEr1 [~farci@i59F6D476.versanet.de] has quit [Read error: Connection reset by peer] |
15:54 | <andythenorth> | USA often does same |
15:54 | <andythenorth> | ‘city’ is a legal incorporation, but might be 500 people |
15:57 | -!- | sla_ro|master [slamaster@31.5.74.162] has quit [] |
15:58 | <Wolf01> | It would be cool if while I'm doing the gui part somebody tries to fix the grf loading part... if that need a fix |
15:59 | <Wolf01> | I can't understand why it doesn't load a different string for the dropdown |
15:59 | <Wolf01> | Maybe because it isn't handled? |
16:00 | <Samu> | https://en.wikipedia.org/wiki/List_of_towns_in_Portugal |
16:01 | <Samu> | A vila is a town in Portugal. |
16:01 | <Samu> | that settles it |
16:02 | <Samu> | i blame the first ever translator that made town to cidade |
16:02 | <Wolf01> | Then change it, cidade for town is wrong |
16:02 | <Samu> | there's towns all over it, gah... :( |
16:02 | <Samu> | not in the mood for it now :( |
16:02 | <andythenorth> | Wolf01: the strings are at least in the encoded grf, I have confirmed that much |
16:05 | <Wolf01> | Oooooooh, I found how to pass the correct roadtype |
16:06 | <Wolf01> | I just need some help with flags |
16:07 | <Wolf01> | DoCommandP(start_tile, end_tile, _place_road_flag | (_cur_roadtype << 3) | (_one_way_button_clicked << 5), ..... |
16:07 | <Wolf01> | I need to pass the _cur_roadtype_id there |
16:08 | <Samu> | it's 1 bit? |
16:08 | <Wolf01> | No |
16:08 | <Samu> | _cur_road_type is 1+4 bits? |
16:08 | <Wolf01> | I used uint32 because I didn't know the exact length |
16:08 | <Wolf01> | But I think I could reduce to uint8 |
16:09 | <Wolf01> | Yes Samu, it's that |
16:09 | <Samu> | 7654 3210 |
16:10 | <Samu> | 000x xxxx - _cur_road_type |
16:10 | <Samu> | _cur_roadtype << 3 means .... |
16:11 | <Samu> | xxxx x000 |
16:13 | <Wolf01> | So the _one_way_button_clicked must be moved by 8 instead of 5? |
16:14 | <Wolf01> | I really have problems to follow bit shifting |
16:15 | <Samu> | me too, kinda, i used the windows calculator for that |
16:15 | <Samu> | change calculator mode to programmer |
16:15 | <Samu> | then it has all the nice bit math stuff |
16:16 | <Wolf01> | Yes I know |
16:16 | <Samu> | left shift right shihft, word, dwords etc... crap like that |
16:17 | <Samu> | _one_way_button_clicked is this 1 bit too? |
16:17 | <Eddi|zuHause> | <Wolf01> DoCommandP(start_tile, end_tile, _place_road_flag | (_cur_roadtype << 3) | (_one_way_button_clicked << 5), ..... <-- that sounds like a place where you should use pack/unpack |
16:17 | <Wolf01> | Yes |
16:18 | <Wolf01> | Yes Eddi, I'm trying to put there the packed identifier to unpack on the other side |
16:18 | <Samu> | in calculator i did 1 Lsh 8 = 256 in decimal |
16:18 | <Samu> | in bin it's 1 0000 0000 |
16:19 | <Samu> | 8 7654 3210 |
16:19 | <Samu> | so ya, i thnk that's where u want it |
16:19 | <Samu> | but a byte is only 8 bits |
16:20 | <Samu> | u got 9 bits already |
16:20 | <Wolf01> | The param is uint32, so I don't think it's a problem |
16:21 | <Wolf01> | The problem is: id is uint8 but only 5 bits are used, what kind of errors will this bring in future? |
16:23 | <Samu> | you only want to read those 5 bits |
16:24 | <Samu> | I don't really know, honestly |
16:24 | <Samu> | as long as you only use 5 bits and read only those 5 bits, there is no problem, but i'm not an expert |
16:24 | <Wolf01> | https://paste.openttdcoop.org/pifab1uny <- I mean this |
16:26 | <Wolf01> | Maybe it's not even a problem |
16:26 | <Samu> | you have asserts all over the place for that part you showed me |
16:26 | <Samu> | only 5 bits |
16:26 | <Samu> | 4+1 |
16:26 | <Eddi|zuHause> | it's not a problem, just you need to document the limitation so someone who extends it stumbles over it |
16:27 | <Samu> | you limited it already to 5 bits |
16:28 | <Wolf01> | Asserts can be changed |
16:28 | <Wolf01> | I'll do as Eddi suggested, a comment in the right place could only be a good thing |
16:28 | -!- | aard [~aard@108.134.189.109.customer.cdi.no] has joined #openttd |
16:28 | -!- | aard is "realname" on #bitlbee #openttd #openttd.dev #openttdcoop #openttdcoop.stable |
16:28 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd |
16:28 | -!- | Snail is "Jacopo Coletto" on #openttd |
16:45 | * | andythenorth -> bed |
16:46 | <andythenorth> | Wolf01: progress is good :) \o/ |
16:46 | <Wolf01> | Yup |
16:46 | <Wolf01> | But far from working |
16:46 | <Wolf01> | Also needs a lot of cleanup |
16:46 | <Wolf01> | nn |
16:48 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has quit [Ping timeout: 480 seconds] |
16:51 | <Wolf01> | Samu, is there a window which shows all the set breakpoints? |
16:58 | <Samu> | Debug > Windows > Breakpoints |
16:58 | <Wolf01> | Bah.. to many places for "windows" |
16:58 | -!- | Ethereal_Whisper [~Tricia@97-117-241-148.phnx.qwest.net] has joined #openttd |
16:58 | -!- | Ethereal_Whisper is "Tricia" on #openttdcoop #openttd |
16:58 | <Wolf01> | I didn't even notice that |
16:59 | <Wolf01> | Thank you anyway |
17:00 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has joined #openttd |
17:00 | -!- | Supercheese is "Supercheese_" on #openttd #openttdcoop.devzone +#openttd.dev |
17:06 | -!- | andythenorth [~Andy@cpc87153-aztw31-2-0-cust212.18-1.cable.virginm.net] has left #openttd [] |
17:28 | -!- | sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!] |
17:36 | -!- | sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has joined #openttd |
17:36 | -!- | sim-al2 is "sim-al2" on #openttd @#/r/openttd |
17:40 | -!- | gelignite [~gelignite@x4db5be85.dyn.telefonica.de] has quit [Quit: http://bit.ly/1kso8Ta] |
17:52 | -!- | Progman [~progman@p57A192F8.dip0.t-ipconnect.de] has quit [Remote host closed the connection] |
17:57 | -!- | keoz [~keikoz@pha75-1-81-57-54-15.fbx.proxad.net] has quit [Ping timeout: 480 seconds] |
17:58 | -!- | aard [~aard@108.134.189.109.customer.cdi.no] has quit [Read error: Connection reset by peer] |
18:23 | -!- | Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)] |
18:40 | -!- | Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving] |
18:42 | -!- | Biolunar [Biolunar@x4d0244f1.dyn.telefonica.de] has joined #openttd |
18:42 | -!- | Biolunar is "Biolunar" on #openttd #suckless |
18:47 | -!- | NGC3982 [~milda@81-228-202-215-no69.tbcn.telia.com] has quit [Ping timeout: 480 seconds] |
18:47 | -!- | NGC3982 [~milda@81-228-202-215-no69.tbcn.telia.com] has joined #openttd |
18:47 | -!- | NGC3982 is "milda" on #openttd |
18:57 | -!- | Lejving_ [~Lejving@78-68-169-135-no37.tbcn.telia.com] has joined #openttd |
18:57 | -!- | Lejving_ is "realname" on #openttd #/r/openttd #openttdcoop |
18:57 | -!- | Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has quit [Quit: Valete omnes] |
19:01 | -!- | Lejving [~Lejving@78-68-169-135-no37.tbcn.telia.com] has quit [Ping timeout: 480 seconds] |
19:24 | <Wolf01> | 'night |
19:24 | -!- | Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.] |
19:31 | -!- | Biolunar [Biolunar@x4d0244f1.dyn.telefonica.de] has quit [Ping timeout: 480 seconds] |
19:44 | -!- | Lejving_ is now known as Lejving |
20:11 | <Samu> | https://www.tt-forums.net/viewtopic.php?f=65&t=75144&p=1174945#p1174945 - better presentation of parameters and score, what u think? |
20:12 | <Samu> | also did the same for aircraft https://www.tt-forums.net/viewtopic.php?f=65&t=75174 |
20:12 | <Samu> | have yet to do trains and road, will take more work |
20:22 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
20:26 | <Samu> | trains https://www.tt-forums.net/viewtopic.php?f=65&t=75027&p=1172829#p1172829 |
20:26 | <Samu> | road vehicles won't be ready, need a few more days |
20:26 | <Samu> | im currently testing 2 road ais and they've not finished |
20:45 | -!- | Samu [~oftc-webi@po1-84-91-250-188.netvisao.pt] has quit [Quit: Page closed] |
21:08 | -!- | Myhorta [~Myhorta@00018fad.user.oftc.net] has quit [Ping timeout: 480 seconds] |
21:26 | -!- | tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd |
21:26 | -!- | mode/#openttd [+v tokai|noir] by ChanServ |
21:26 | -!- | tokai|noir is "Christian Rosentreter" on +#openttd |
21:31 | -!- | Fuco [~foobar@83-167-252-232.static.masterinter.net] has joined #openttd |
21:31 | -!- | Fuco is "O_o" on #openttdcoop #openttd |
21:31 | -!- | KouDy_ [~koudy@ip4-83-240-28-102.cust.nbox.cz] has joined #openttd |
21:31 | -!- | KouDy_ is "KouDy" on #openttd |
21:33 | -!- | tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds] |
21:33 | -!- | KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has quit [Ping timeout: 480 seconds] |
21:33 | -!- | Fuco_ [~foobar@83-167-252-232.static.masterinter.net] has quit [Ping timeout: 480 seconds] |
21:55 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd |
21:55 | -!- | Snail is "Jacopo Coletto" on #openttd |
22:35 | -!- | glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye] |
23:37 | -!- | Snail [~jacopocol@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: Snail] |
23:52 | -!- | Sylf [~sylf@c-71-199-78-95.hsd1.mo.comcast.net] has quit [Remote host closed the connection] |
23:53 | -!- | Sylf [~sylf@c-71-199-78-95.hsd1.mo.comcast.net] has joined #openttd |
23:53 | -!- | Sylf is "Sylf" on #openttdcoop.devzone #openttd #openttdcoop.stable #openttdcoop |
--- | Log | closed Mon Oct 10 00:00:02 2016 |