IRC logs for #openttd on OFTC at 2008-07-07
⏴ go to previous day
00:25:03 *** planetmaker is now known as pm|away
00:26:58 *** Chrill is now known as Teddy
00:27:05 *** Teddy is now known as Chrill
00:34:01 *** Eddi|zuHause2 has joined #openttd
01:32:10 *** Eddi|zuHause3 has joined #openttd
02:00:45 *** Cyclonerotor has joined #openttd
02:38:12 *** ChanServ sets mode: +v Belugas_Gone
02:38:12 *** ChanServ sets mode: +v DorpsGek
02:38:12 *** ChanServ sets mode: +v orudge
02:38:12 *** ChanServ sets mode: +v peter1138
05:00:24 *** pm|away is now known as planetmaker
05:42:41 *** planetmaker is now known as pm|away
06:10:54 *** einKarl has joined #openttd
06:19:57 *** daspork has joined #openttd
07:46:22 *** TiberiusTeng has joined #openttd
07:57:28 *** Wezz6400 has joined #openttd
08:09:25 *** GoneWacko has joined #openttd
08:16:59 *** Vikthor has joined #openttd
08:30:00 *** Doorslammer|BRSet has joined #openttd
08:30:50 <Doorslammer|BRSet> Afternoon all
08:31:52 <Doorslammer|BRSet> You guys were right
08:31:58 <Doorslammer|BRSet> That was some GP last night :D
08:42:21 *** GoneWacko has joined #openttd
08:45:10 *** pm|away is now known as planetmaker
08:49:47 *** grumbel has joined #openttd
08:56:16 *** Brianetta has joined #openttd
09:24:17 <CIA-3> OpenTTD: rubidium * r13679 /trunk/src/ (economy.cpp economy_type.h oldloader.cpp): -Fix [FS#2131]: saving TTD imported games in recession failed due to wrong (and unneeded) type conversions in the saveload code.
10:29:04 *** flowOver has joined #openttd
10:56:10 *** einKarl has joined #openttd
11:11:00 *** Mirrakor has joined #openttd
11:13:17 *** Devastator has joined #openttd
11:35:06 *** Brianetta has joined #openttd
11:56:12 *** Frostregen has joined #openttd
12:57:35 <Yorick> I'm testing vista speech recognition
12:58:12 <Yorick> dictation doesn't work on IRC :-<
13:10:12 *** Osai^zZz`off is now known as Osai
13:13:54 <Yorick> it even inserts a sad face when I say "press happy face"
13:20:41 <Eddi|zuHause3> "I'm testing vista [...]" <- you poor soul
13:22:25 <Forked> does it type "LOL" for you if you start laughing?
13:22:43 <Gekz_> "Open parenthesis cat close parenthesis, NO YOU STUPID THING... no, I- stop listening."
13:25:16 <Yorick> yeah, I started dictating that after you finished that line :)
13:25:22 *** Progman has joined #openttd
13:29:58 *** Belugas_Gone is now known as Belugas
13:33:38 <Yorick> meh, I'm quite sure I wouldn't want to enable "dictate everywhere"
13:38:18 <Belugas> the air conditioner is broken
13:38:27 <Belugas> my arms are sticking on the desk
13:39:20 <Yorick> I'm testing out speech recognition
13:39:58 <Yorick> Currently dictating that text :-)
13:43:56 <Yorick> BLOATED: am = new math.ArithmeticManager(); opA = new math.Operand((float) a); opB = new math.Operand((float) b); am.addOperand(opA); am.addOperand(opB); am.operator = new math.operators.Addition(); am.executeMathOperation(); system.io.output.print(am.mathOperationResult())
13:49:16 *** Vikthor has joined #openttd
14:01:23 <Ammler> does someone know the admin of www.openttdserver.de
14:05:05 <Yorick> or does someone happen to be it?
14:06:07 <Ammler> as the stats tells, he is on the server :-)
14:07:55 <Yorick> And how is he called ?
14:08:08 <Ammler> whois tells Thomas Fischer
14:08:22 <Ammler> so I assume, he is Tom
14:15:24 <Ammler> I do not like ingame chat :-)
14:15:38 <Yorick> he's distributing the grfpack, is that the problem?
14:17:46 <Yorick> he'll remove the files, he says
14:28:41 <Ammler> heya rortom, thanks for it
14:29:28 <Ammler> rortom: you can still use the pack, just link to our wiki, so you will be sure to have the current version. ( www.openttdcoop.org/wiki/GRF )
14:29:55 <rortom> sorry that i upload it
14:30:05 <rortom> but it was fast to get it out to some users
14:30:44 <rortom> you did very good work with the gfx pack :)
14:30:59 <rortom> mh im searching for server tools
14:31:19 <planetmaker> The download link is also always online :)
14:31:20 <rortom> currently im using the autopilot and the openttdlib for stats
14:33:02 * dih has a highlight for openttdlib ;-)
14:33:20 <rortom> oh dih nice to see you
14:33:30 <rortom> wanted to say thanks for the nice software :D
14:33:55 <rortom> mh i wanted to add some stats to it
14:34:19 <rortom> i hope i find some time :\
14:34:42 <planetmaker> actually that'd be awesome :)
14:35:13 <rortom> is it possible to get more infos from ottd?
14:35:36 <dih> only what is described in the docs
14:35:58 <rortom> mh what about a bot that joins as spectator?
14:36:24 <dih> unless you patch the source, you will not get more info using openttdlib
14:36:37 <rortom> yes i thought that would be the answer
14:36:40 <Eddi|zuHause3> it should be easier to change the server source to generate some output
14:37:10 <dih> you could combine the mysql logging from autopilot with details from openttdlib
14:37:10 <Eddi|zuHause3> maybe you can hijack the NoAI interface ;)
14:37:11 <rortom> the integration of the changes is the problem ;)
14:38:42 <dih> well - based on the unique id you are kinda safe
14:39:13 <rortom> no i mean if i write a patch for the server it will be diffucult to get it into the trunk
14:39:19 <rortom> or i misunderstood you
14:39:35 <dih> i was not saying it should go into trunk
14:39:53 <rortom> is the protocol documented somewhere?
14:40:11 <rortom> i wrote a python client for the RoR game
14:40:12 <dih> you mean the packet structure
14:40:25 <dih> well... you can read the c++ or php code
14:40:55 <dih> SpComb has written that stuff in python
14:42:24 <rortom> you know what source code file by chance? :|
14:42:58 <dih> src/network/core/udp.cpp i think
14:43:27 *** Singaporekid has joined #openttd
14:43:44 <rortom> the server knows how everything looks like
14:43:58 <rortom> so if you could add a simple bitblit interface
14:44:16 <rortom> you could use something like google maps to navigate in real time in a map
14:44:36 <rortom> it would only have to render 200x200 pixel boxes or so
14:44:39 *** DaleStan has joined #openttd
14:44:44 <dih> the server does not know what things look like
14:45:06 <Eddi|zuHause3> you can enable it, afaik ;)
14:45:19 <rortom> so far for that idea :p
14:45:21 <Eddi|zuHause3> but that is basically wasted computer power
14:45:41 <rortom> so you could write a client and emulate that
14:45:59 <dih> it might be easier to teach python how to read a sav game
14:46:08 <dih> and give it the required graphics
14:46:43 <rortom> not much udp packet types
14:47:13 <Yorick> dih: afaik spcomb did that using screenshots with a google earth interface :p
14:47:43 <rortom> so that idea is also old :|
14:47:49 <Yorick> you could make the server nondedicated...
14:47:56 <Yorick> but then you have no way of controlling it
14:48:22 <rortom> why is there no rcon tool for the server?
14:48:28 * dih controlls his server with shell sciprts :-D
14:48:52 <dih> just you need to run it from inside the game
14:49:00 <dih> or use autopilot connected to an irc channel
14:49:12 <rortom> yeah, nice software you wrote btw ;)
14:49:24 <dih> autopilot is from Brianetta
14:49:43 <Yorick> dih: I got a "bad packet size" on openttdlib some time ago
14:49:51 <Yorick> refreshing page fixed it
14:50:11 <rortom> is there a wireshark dissector for openttd?
14:50:13 <dih> the ottd server was down (or not responding) but the port was not blocked on the server
14:50:28 <dih> rortom: search the forums
14:50:39 <dih> there is something along those lines ;-)
14:50:47 *** Vikthor has joined #openttd
14:51:02 <Yorick> dih: querying the server on same pc, but to an ip it wasn't bound to
14:51:25 <planetmaker> rortom: there's a patch for OpenTTD which allows modification of the usual patch settings via the patch settings GUI...
14:52:06 <dih> Yorick: you get that packet when the server does not drop your packet but no ottd server is running there
14:52:11 <dih> i.e. a response rather than a drop
14:52:33 <rortom> so i will write my own :\
14:53:05 <Yorick> some way that's a discription of my unfinished patch
14:53:37 <planetmaker> yeah, was just thinking wether it is already around somewhere else...
14:54:09 <Yorick> atleast the "waiting for dih" status hasn't changed
14:54:13 * Belugas has a plan to remove the word "patch" in ottd's code...
14:54:29 <planetmaker> ^^ good plan, Belugas :)
14:54:40 <blathijs> Belugas: Fine plan indeed :-)
14:55:31 <Belugas> happy to see so many positive reactions :D
14:56:35 <Yorick> but it will make every patch currently available outdated
14:56:52 <Doorslammer|BRSet> Bipolar smilie
14:57:28 <planetmaker> For the sake of clearity of the code and dis-ambiguation that's acceptable, IMO :)
14:57:29 <Belugas> Yorick: so ? It's not the first time there has been patch killers commit...
14:57:41 <Belugas> what's important is trunk.
14:57:43 <Yorick> yeah, the cpp branch too
14:58:40 <Eddi|zuHause3> s/patch/p*tch/g
15:00:16 <rortom> mh but the server uses tcp for its stream?
15:00:23 <dih> 16:54 < Yorick> atleast the "waiting for dih" status hasn't changed
15:00:42 * dih will not patch for wwottdgd
15:01:29 <Eddi|zuHause3> rortom: UDP is only used for the server list, every game aspect has to be reproducable exactly, so it uses TCP
15:01:42 <rortom> thanks for clearify! :)
15:02:04 <rortom> we think think about to use udp for RoR :\
15:02:21 <hylje> Rise of Rome? Ruby on Rails?
15:02:31 <Yorick> you should use some udpstack and such
15:03:01 <dih> 17:00 < Yorick> ? <-- what?
15:03:14 <Yorick> dih will not patch for wwottdgd <-- what?
15:03:31 <dih> what word do you not understand?
15:04:13 <Yorick> that's why I don't understand it yet
15:04:28 <dih> there is no reason you need to know
15:04:43 <dih> as far as you are concerned there is only 'dih will not patch for wwottdgd'
15:05:07 <Eddi|zuHause3> rortom: UDP is fine if you depend neither on completeness nor on order of packages
15:05:20 <Belugas> 'cause dih CANNOT patch right ^_^
15:05:56 <MorgyN> what would open transport tychoon do, god damn?
15:06:11 <dih> there is no open transport tyhoon
15:06:12 <rortom> @ SpComb: thats what i wanted to create :D
15:06:17 <dih> and no open transport tycoon
15:07:42 <SpComb> but they're against some ancient version of OpenTTD, and a real pain to try and maintain
15:08:12 <Belugas> dih : "chaSes" buwhahaha!!! can't even spell right :D
15:08:16 <dih> SpComb: how about a scrolto option, where one can enter the same tile number as in openttd
15:08:18 <SpComb> basically, it replaces the console on stdin/out with a binary protocol
15:08:39 <dih> Belugas: i dont need spelling tips from someone who makes those mistakes at a dozon every day
15:08:55 <rortom> seems not to be a nice idea about the binary IO
15:09:02 <Yorick> dih: stop bashing french people!
15:09:12 <SpComb> rortom: well, if you're going to ship PNG screenshots around, there's not much else you can use
15:09:18 * dih ads Yorick to the ignore list again
15:09:35 <Yorick> "ads", hah, he spellt it wrong!
15:09:40 <SpComb> but yes, the current OpenTTD console is really limited if you want to try and do funky stuff with it
15:09:55 <rortom> what about a userspace pipe?
15:09:56 <SpComb> using squirrel for it would make it a bit better, if the interface that it provided was improvied
15:10:02 <SpComb> but then you'd also need some kind of UNIX socket inteface or such
15:10:14 <rortom> thats what i would use
15:10:17 <SpComb> but to do that sanely it would need to be part of trunk
15:10:35 <rortom> i will try to write a client
15:10:41 <SpComb> I tried setting up some kind of conditional module compilation thing, but it would be a realy pain
15:11:25 <rortom> so is the tcp stream documented somewhere?
15:11:41 <Belugas> lol at dih :D true, i make TYPOS :)
15:11:52 <Yorick> rortom: /src/network/network_client.cpp
15:12:22 <Yorick> Belugas: @kick dih :-)
15:12:24 *** Mirrakor has joined #openttd
15:13:10 <rortom> mh you thought about using scripting in the server? :|
15:13:10 * Belugas hugs rortom, he seems to be jealous...
15:13:22 <rortom> i am integrating it into RoR currently
15:13:37 <SpComb> but myes, a console that uses some proper syntax and a better API to the internals would go a long way
15:14:05 <Yorick> dih: you weren't gonna patch for wwottdgd ;)
15:14:27 <rortom> world wide ottd group destruction?
15:14:32 <SpComb> but I'm currently working on too many other projects to touch OpenTTD
15:15:13 <rortom> all those precompiler abuse :|
15:15:13 <Yorick> dih: yes, I wonder what is your issue with _me_
15:15:35 <rortom> @ SpComb: thats indeed nice :D
15:15:56 <SpComb> it's an exercise in building a service that should scale
15:16:24 <rortom> self served? or webserver?
15:16:30 <SpComb> currently I only have a single node with eight 2Ghz cores, and it can easily utilize that to 800%
15:17:00 <SpComb> but it can also scale to multiple physical nodes right now, and it's still got a long way to go to add caching and other things
15:17:27 <SpComb> I use libevent's evhttp library for the web server part, although I'm going to need to more or less roll my own
15:17:40 <SpComb> the evhttp API isn't all that great, and the code is a little bit of a mess
15:18:11 <dih> 17:17 < Yorick> dih: what users? <- those who always have the urge to continue asking questions!
15:18:21 <SpComb> still, I clocked almost 10,000 req/s and over a hundred MB/s of traffic on static resources (/static/tiles.js), and that's with a million data copies
15:18:26 <rortom> mhm ottd is a great example of non-existing documentation :|
15:18:46 <Yorick> dih: still looking for a question you may find annoying...
15:19:40 <rortom> has anyone a bit time to help me understand the protocol? :|
15:20:02 <rortom> the tcpstream consists of CommandPacket ?
15:20:08 <Yorick> dih: shut up...shutting up has never done anything good...
15:20:23 <Yorick> if I have the knowledge...
15:20:25 <SpComb> rortom: you're going to write a custom OpenTTD client from scratch?
15:21:04 <rortom> so it must be do-able for ottd too ;)
15:21:09 <Yorick> it has multiple packets for tcp
15:21:17 <Yorick> one of those is the COMMAND_PACKET, yes
15:21:31 * planetmaker wonders whether under those conditions it wouldn't be easier to modify the existing client...
15:21:52 <Yorick> planetmaker: he doesn't need a WHOLE transport simulation
15:23:12 <peter1138> rortom: you wrote a custom ror client from scratch? ;)
15:23:29 <planetmaker> interesting indeed.
15:24:04 <peter1138> shame ror is closed source really :o
15:24:11 <Belugas> out of curiosity, rortom, why? just... wanting to know
15:26:03 <SpComb> rortom: and what functionality is the client supposed to have?
15:26:28 <rortom> its a tool to stress test servers
15:26:35 *** Cyclonerotary has joined #openttd
15:26:57 <rortom> @ Belugas: if i write a custom ottd client, i can attach it to any server without modifying the sources in any way
15:27:01 <Yorick> those with _SERVER_ are sent by the server, those with _CLIENT_ are sent by the client to the server
15:27:45 <rortom> mh so is each packet different from each other?
15:28:37 <peter1138> same format for each command packet, different data
15:28:43 <rortom> the RoR and ottd protocol is very much the same ;)
15:28:57 <peter1138> everything after the initial connect and map download is with commands
15:29:24 <rortom> where can i find the initial connecct routine?
15:31:01 <rortom> DEF_SERVER_SEND_COMMAND(PACKET_SERVER_WELCOME)
15:31:57 <Yorick> DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMPANY_INFO) it starts with
15:32:53 <Yorick> that's the network lobby screen
15:33:44 <Yorick> server then sends back company data, and you can send a PACKET_CLIENT_JOIN
15:34:01 <rortom> so let me create a basic server to be able to do this :)
15:34:43 <Yorick> at least, I think that's what it does
15:34:57 <rortom> oh, if you dont even know, then im lost :p
15:35:18 <Yorick> hmm...it checks the NetworkClientInfo before the company_info point
15:36:13 <rortom> should we move to -dev?
15:37:16 <rortom> blender had the -dev channel ;)
15:39:01 <rortom> so everything is a struct packet?
15:40:13 <Yorick> yeah, I think you should send a PACKET_CLIENT_COMPANY_INFO first
15:40:46 <dih> you can go to #yorick.annoymenot
15:41:02 <Yorick> dih: and how am I annoying today?
15:42:16 <dih> i am easily annoyed if i dont get enough sleep
15:42:21 <rortom> @ Yorick: let me trace everything down ...
15:43:31 <Yorick> ah, I'm just guessing a bit
15:44:55 <rortom> that seems to be the core receive
15:46:26 <Yorick> network.cpp provides the start of the routing
15:47:13 <rortom> Packet *NetworkTCPSocketHandler::Recv_Packet(NetworkRecvStatus *status)
15:47:21 <rortom> i think thats what the server uses
15:47:48 <Yorick> possibly both server and client
15:49:58 <rortom> everything is send above the Packet struct
15:50:21 <rortom> so i must recode that first
15:51:26 <rortom> is every command one packet or multiple?
15:51:50 <Yorick> what's your definition of "command"?
15:52:50 <Yorick> the "PACKET_CLIENT_COMMAND"-packet forms a command
15:53:35 <Yorick> but they're one packet, yes
15:54:03 <Yorick> or splitup by tcp, but you shouldn't be noticing
15:54:35 <rortom> i recognise some code you have
15:54:51 <rortom> we do it the same way at some points
15:55:05 <Yorick> ror is closed source :(
15:56:13 <rortom> i dont think because pricorde thinks he could make money with it some day
15:57:11 <Belugas> don't mind, rortom, Yorick is the most curious human been i've encountered so far, right after dih
15:57:30 <Belugas> curious as in wanting to know everything
15:57:43 <Belugas> even waht is not of his matter :P
15:58:23 <SpComb> is RoR Rise of Rome, or some other game?
15:58:49 <rortom> not that you think i advertise here on purpose ...
15:59:14 <SpComb> right, I was just trying to find it on the wikipedia disambiguation page
15:59:34 <rortom> so i will start with a simple tcp stream
15:59:40 <rortom> and try to send PACKET_CLIENT_COMPANY_INFO to the server
15:59:53 <Yorick> don't think you need that
16:00:24 <Cyclonerotary> anyone gonna start a opendttd mulitplayer anytime soon?
16:01:02 <rortom> im currently playing ;)
16:01:05 <dih> the game auto upgrades to latest nightly
16:01:35 <Yorick> PACKET_CLIENT_JOIN, at once should work
16:02:56 <rortom> so that at first i guess :\
16:03:24 <rortom> so i must just figure out how that packet is constructed :\
16:04:30 <Yorick> p->Send_string(_openttd_revision);
16:04:32 <Yorick> p->Send_string(_network_player_name); // Player name
16:04:34 <Yorick> p->Send_uint8 (_network_playas); // PlayAs
16:04:35 <Yorick> p->Send_uint8 (NETLANG_ANY); // Language
16:04:37 <Yorick> p->Send_string(_network_unique_id);
16:05:02 <CIA-3> OpenTTD: rubidium * r13680 /trunk/src/vehicle.cpp: -Fix: NPF crashing when a ship tried to find a nearby depot when on an aqueduct.
16:05:27 <rortom> so i must be blind that i did not see that :\
16:05:59 <rortom> ok, let me recode that thing :)
16:08:47 <Yorick> _openttd_revision should match the server revision( char[15]), _network_player_name(char[80]), _network_playas(uint8), NETLANG_ANY = 0(uint8), unique_id(char[33]) :)
16:09:14 <rortom> thanks for your help :D
16:09:44 <Yorick> the unique id is just a hash :)
16:09:45 <rortom> so how does the packet type identify itself?
16:11:24 <Yorick> network/core/packet.cpp helps
16:13:26 *** Doorslammer|BRSet has quit IRC
16:14:20 <rortom> this->buffer[this->size++] = type;
16:14:38 <rortom> so last byte of the PacketSize is the Type
16:14:55 <rortom> and PacketSize is the whole size of all components
16:15:08 <rortom> size is the counter :|
16:17:05 <Yorick> Rubidium managed to explain the packet system to you in 2 words :-D
16:19:50 <rortom> we have nearly the same packet format in RoR
16:19:59 <rortom> btw the network stuff for RoR is open source ...
16:20:05 <rortom> including the server ...
16:21:04 <Rubidium> that sounds like a toyland climate; rabbits on rails
16:21:35 <Yorick> yeah, like "ottd" is that clear
16:22:19 <Rubidium> it's wikipedia unambiguous, so yes it is clear ;)
16:22:24 <Belugas> hoo.... Yorick, the big expert :P
16:23:29 <Yorick> hohoho...merry Belugas!
16:24:20 <peter1138> i just wish rigs of rods ran faster ;)
16:24:44 <peter1138> although sometimes it's stupidly fast
16:24:51 <peter1138> 110 fps is pretty good
16:24:58 <rortom> yeah, when the physics is deactivated :p
16:25:00 <peter1138> then you go too near a plane and it drops to 30 or so
16:25:36 <rortom> each beam is running in its own thread
16:25:41 <peter1138> just needs to be more parallel (the magic word)
16:25:46 <rortom> and those sync at 2000 FPS
16:26:25 <rortom> a Beam structure is a truck/car/crane/ship/anything in RoR
16:26:26 <peter1138> shame it doesn't (yet?) make use of my quad core...
16:26:46 <rortom> i wass coding on a better core support :\
16:27:24 <rortom> whats sizeof(uint16) ?
16:27:25 <peter1138> i still don't know why my q6600 gets decent frame rates but my athlon 5800+ struggles along
16:30:52 <Belugas> grrrr... wrong database version :(
16:31:22 <rortom> sizeof(uint8)? 1 byte?
16:32:04 <rortom> must create some c-->python mappings
16:34:31 <peter1138> one thing i noticed with RoR
16:34:49 <peter1138> the right hand mirror shows the same image as the left hand mirror
16:34:55 <peter1138> makes it pretty useless :)
16:35:34 <rortom> just rotate the camera more to the right ;)
16:37:11 *** frosch123 has joined #openttd
16:38:40 *** Vikthor has joined #openttd
16:44:47 <rortom> i hope that is correct
16:46:18 <Yorick> if it works on a server...
16:46:38 <Rubidium> but why do you want to join a server?
16:47:51 <Ammler> Rubidium: spam bot ;-)
16:48:25 <rortom> anyone can miuse it D:
16:50:09 *** lobster_MB has joined #openttd
16:50:35 <Rubidium> still... why do you want to join a server with a custom made client?
16:50:39 *** Lakie` is now known as Lakie
16:51:25 <rortom> to prevent all those server console/stat hacks ...
16:52:31 <Rubidium> and thus you are joining a server from where you get desynced in a few game days
16:53:29 <Rubidium> to ensure game state consistency between the clients/servers
16:54:51 <rortom> @ Rubidium so i could not emulate the client behavior?
16:55:01 *** DaleStan has joined #openttd
16:55:14 <Rubidium> rortom: you can, but that means porting the whole core of OpenTTD to python
16:55:14 <rortom> @ dvdb its the TTD successor (cannot remember its name now...)
16:55:19 <Rubidium> and keeping it up to date
16:55:54 <Rubidium> dvdb: look at the subforum you're in there
16:56:00 <rortom> @ Rubidium: so its not possible to join as spectator and just listen?
16:57:33 *** thingwath has joined #openttd
16:58:50 <Rubidium> rortom: what's listening?
16:59:16 <Rubidium> OpenTTD only transfers the map on join and then *only* the commands humans give
16:59:33 <Rubidium> e.g. building a train, placing a signal
16:59:43 <rortom> so as spectator i only receive commands
17:00:03 <Rubidium> yes and you are requested to check whether you are still in sync with the server
17:00:28 <rortom> how does that work (just if you have time)
17:01:14 <Rubidium> the random seed is send every X ticks and then checked
17:01:41 <Rubidium> the random seed changes (pseudo randomly) after getting a random number out of it
17:02:06 <Rubidium> so the only way to not fail that check is performing the exact same amount of calls to random
17:02:32 <Rubidium> and random is used *all* over the place
17:03:01 <rortom> so i could not emulate that random number stuff?
17:03:19 <KingJ> Hah, never knew OpenTTD had a special message when you drowned your competitor :P
17:03:34 *** raimar2 has joined #openttd
17:03:57 <Rubidium> rortom: exactly (except actually running OpenTTD)
17:04:14 <Rubidium> without the drawing, but that doesn't cut the CPU usage that drastically
17:06:23 *** DJNekkid has joined #openttd
17:06:40 <dvdb> What is the most powerful locomotive in OpenTTD? AsiaStar has only 8000 PS :/
17:06:56 <DJNekkid> dvdb: the Chimaera :)
17:07:51 <dvdb> DJNekkid: and for electric railways?
17:08:18 <rortom> @ rubidium, thats not good :|
17:09:48 <rortom> so no passive clients possible
17:14:53 <MorgyN> Need a cat mod for openttd... monorail cat, and the cat busses from totoro
17:20:35 <Yorick> rortom: rubidium has tricked you, ignoring the sync requests leads in you keeping connected
17:21:58 <Rubidium> but you get some ancient game state
17:22:10 <Rubidium> and you know nothing about the 'current' game state
17:22:15 <Yorick> do you need a game state for a passive client?
17:22:28 <Rubidium> what use is a passive client?
17:22:39 <Rubidium> except using player slots?
17:22:39 <Yorick> logging commands and chat?
17:22:55 <Rubidium> the server can log the commands and so can any client
17:23:07 <Yorick> he wants it on unmodified servers
17:23:33 <Rubidium> so I should rewrite the network so the server checks the sync
17:24:32 <Belugas> why logging everything? Are we going CIA or KGB or something like that?
17:24:56 <Belugas> i think i'll keep on playing local :P
17:25:24 <Prof_Frink> Belugas: Well, why log that yourself?
17:25:43 <Prof_Frink> Just say Bomb and let Echelon log it for you
17:25:45 <Yorick> you've got irc channel logs, no?
17:25:59 <rortom> so i shouldnt even try to write that bot :|
17:26:26 <Ammler> rortom: maybe better to port autopilot to python?
17:26:33 <Belugas> me? ain't logging a thing
17:26:35 <Yorick> of python-easy scriptable openttd
17:27:08 <rortom> in RoR we use it in MP to create missions and stuff like that
17:27:09 <Yorick> c has no good string parsing stuff
17:27:17 <SmatZ> Belugas: to determine who is trying to destroy the game
17:27:32 <rortom> means a python client join, and sends rcon commands to the server to control game flow
17:28:01 <Belugas> it can happen both ways, don't you know that?
17:28:14 <Belugas> it can log, but it can destroy the landscape too...
17:28:37 *** lolman is now known as john
17:28:44 *** john is now known as lolman
17:28:51 <rortom> in RoR server we use tokens
17:29:04 <Yorick> unique ids can be fakes
17:29:09 <rortom> to control what cleints may do clients
17:29:34 <rortom> to control what clients may do
17:30:18 *** Vikthor has joined #openttd
17:30:48 <rortom> i hope you tested your net protocol with fuzzy data etc?
17:31:31 <Yorick> otherwize bug > fixneeds
17:31:53 <Yorick> you made the server crash from sending a packet
17:31:54 <Rubidium> someone did something like that a while ago
17:32:15 <rortom> imagine i write that bot
17:32:24 <rortom> and someone uses it to take down ALL SERVERS
17:33:06 <Yorick> you'd be getting to the master server, istantly
17:36:29 <rortom> so i will test that on some local server ...
17:37:37 <Yorick> Have you made any progress?
17:42:51 <Yorick> Because I like his idea
17:43:21 *** Slowpoke has joined #openttd
17:44:26 <Belugas> so you like something and don't know why?
17:46:20 <Belugas> Yorick, why don't you answer?
17:46:41 <Yorick> speech recognition being slow
17:47:14 <Yorick> it's nice to have unpatched servers, and a most-likely quite compatible bot
17:47:48 <Belugas> are you answering to me, Yorick?
17:49:07 <Belugas> i do not understand your answer then. Could you add more content toyour answer?
17:50:12 <rortom> @ Yorick i will continue to write the client
17:50:30 <rortom> so much other stuff to be done :\
17:50:51 <rortom> like ordering tshirts :p
17:50:54 *** Marduuhin has joined #openttd
17:51:03 <rortom> btw you have an openttd shirt? :|
17:54:14 <rortom> its readlly easy to create one
17:54:24 <Belugas> i've got one from all the diving scholl i worked for, but not for ottd
17:54:42 <Belugas> either way, i'd be almost the only one havng one in montreal ^_^
17:56:03 * Belugas wonders what could be printed on such a shirt...
17:56:06 <rortom> the ottd community is much bigger than ours ;)
17:56:29 <rortom> you dont have any official logo?
17:57:35 *** Cyclonerotary has joined #openttd
17:57:35 <rortom> isnt that the original one?
17:58:07 <rortom> that would be nice on a shirt :)
17:58:17 <rortom> and since its vector, it would scale well :)
17:58:29 <rortom> let me try something out
17:58:54 <Ammler> I have no idea, who to credit for...
18:02:02 <Belugas> and on the sleeve : "Dev", "Code Leader", "Patcher", "User" "Server Admin", "/ignore Yorick"
18:02:28 <rortom> as said, its easy and fast
18:03:05 <Ammler> wh is it cheaper then RoR shirt?
18:03:26 *** Vikthor has joined #openttd
18:03:46 <Belugas> colour of the shirt maybe
18:03:56 <rortom> 3 euro flow in my pocket :|
18:04:24 <rortom> so that adds to the price ;)
18:04:46 <rortom> have to pay ~60 euros a month
18:04:50 *** thgergo has joined #openttd
18:04:51 <Belugas> any quantity? i mean... there is no minimum? nor rebate after x amount?
18:05:34 <rortom> thats the cool thing about spreadshirt
18:05:43 <Yorick> then how does it work?
18:05:59 <Yorick> you let them sell a shirt?
18:06:07 <rortom> just order one for you and tahts it :)
18:06:41 <rortom> and set how many you want per sold shirt
18:07:08 <rortom> and you will get such fancy online shop
18:07:24 <Yorick> and what's the max you can want?
18:07:54 <Yorick> what's their base price?
18:08:04 <rortom> thats fixed with a table
18:08:06 <Belugas> as much as your wallet can allow :P
18:08:33 <rortom> and everything you add costs also :)
18:08:38 <rortom> i just created that shirt
18:09:15 <Yorick> if someone buys it, you get the money...
18:09:39 <rortom> that 15,90 is the minimum price
18:09:50 <rortom> means no profit for me
18:10:32 <rortom> yeah, more expensive than normal shirts :|
18:10:39 <rortom> but since its something special ...
18:11:35 <rortom> do you want me to remove that shirt again?
18:12:25 <peter1138> which image did you use?
18:12:50 <rortom> exported as png, then uploaded
18:13:23 <rortom> someone of your leaders/executives should create some spreadshirt shop :)
18:13:49 <peter1138> Yorick: this sort of custom graphic printing place are always expensive
18:14:16 <rortom> "Spreadshirt - Hands per piece, how your t-shirt is made"
18:14:28 <rortom> lots of manual work ...
18:14:36 <Eddi|zuHause3> # Weisst du noch wie's früher war?
18:14:36 <Eddi|zuHause3> # Früher war alles schlecht!
18:14:36 <Eddi|zuHause3> # Der Himmel grau, die Menschen mies.
18:14:37 <Eddi|zuHause3> # Die Welt war furchtbar ungerecht.
18:14:37 <Eddi|zuHause3> # Doch dannn; dann kam die Wende! - unser Leid war zu Ende.
18:14:50 <Belugas> that does not include shipping, does it?
18:15:04 <rortom> its about 3 euros shipping
18:15:20 <rortom> the main thing to notice: they dont do oversea shipping
18:15:32 <rortom> so since its a german company ...
18:15:33 <Forked> hmm, so why not use cafepress?
18:15:42 <peter1138> nice bosom shot at 30 seconds in ;)
18:15:43 <Forked> you could get openttd boxer shorts
18:16:01 <rortom> i think thats the same as spreadshirt :)
18:16:48 <rortom> if you want to reach US customers create an account at spreadshirt.com
18:16:59 <Forked> CP keeps mislabeling what they ship..
18:16:59 <rortom> they have different products
18:18:41 <Belugas> Mogwai - Auto Rock rocks
18:19:13 <peter1138> did we ever solve the dos/windows graphics problem for 32bpp tars?
18:20:03 <Wolf01> houston, we have a problem!
18:20:08 <Eddi|zuHause3> Belugas: but it is not from "the best band of the world" :p
18:20:10 <peter1138> well, that 32bpp graphics depend on dos/windows version
18:20:54 <De_Ghosty> anyone can read korean?
18:20:56 <Belugas> Eddi|zuHause3, ot yours, but it's getting more and more mine :)
18:21:31 <Eddi|zuHause3> www.die-beste-band-der-welt.de ;)
18:22:35 *** Swallow has joined #openttd
18:23:49 * Belugas is picking up some hot coffee, might eventually cool him a bit :S
18:25:01 <Swallow> Question: Can I assume that CargoID 0 is valid?
18:25:19 <Eddi|zuHause3> with newgrf, you can never assume anything
18:26:26 <Rubidium> Belugas: are you sure?
18:27:10 <Belugas> i was pretty much sure, but you're shaking my convitions now
18:27:45 <peter1138> no, but quite a bit of code does
18:28:11 <Belugas> unless not talking about the same stuff ;S
18:28:51 <Swallow> but NewGRF can override that, can't they?
18:31:09 <Belugas> ho... not the same stuff then...
18:32:11 <peter1138> same stuff, CT_PASSENGERS only applies if a newgrf hasn't change it
18:35:02 <Swallow> I will take the safe route and add an extra check, thanks for your help
18:58:44 *** GoneWacko has joined #openttd
19:05:58 <rortom> whats an M in the revision number?
19:06:15 <rortom> i mean the game version number
19:07:06 <rortom> that russion patch pack
19:07:17 <rortom> i have a precompiled windows client without M client
19:07:30 <rortom> and when i compile the server i get an M :|
19:07:31 <hylje> you can override it by running configure
19:07:48 <Ammler> or you can force the join with argument -n
19:07:49 <hylje> if you are really sure it's the same rev
19:09:05 <Ammler> the russion pack has a whole sentence as Revision name.
19:09:12 <Prof_Frink> about |---| yay long
19:10:51 <rortom> @ ammler i was just about to notice that too :|
19:11:09 <Eddi|zuHause3> dvdb: something around 30ms
19:11:37 <Ammler> dvdb: it is a patch setting
19:11:42 <rortom> ./configure --revision="r13437 - Russian Community patchpack 1.2.0"
19:11:59 <Eddi|zuHause3> dvdb: it's a patch setting, "show timetables in ticks instead of days"
19:12:01 <Ammler> Belugas: indeed, removing the word "patch"
19:13:21 <Belugas> btw, it has nothing to do agaisnt TTDPatch.. Just that we do niot have patches. We have options and advanced options
19:14:29 <Belugas> and we are not applying patches, we're applying diffs!
19:15:08 <Ammler> did you discuss that with dih :-)
19:17:12 <Ammler> nvm, we discussed that once, because I always renamed his *.patch to *.diff...
19:18:11 <Belugas> well... tell a newcomer to apply a patch, 99% of the time, he thinks it's a piece of a binay that fixes something in the orignal exe :S
19:18:19 <Ammler> removing of word patch wouldn't need patching, would it ;-)
19:18:48 <Ammler> just a matter of translation
19:19:03 <Prof_Frink> No, it needs bodging
19:19:44 <Prof_Frink> Nah, fudge is different
19:19:56 <Prof_Frink> Bodging is making it right in the wrong way
19:20:03 <Belugas> call it deving then...
19:20:06 <Prof_Frink> Fudging is making it wrong, but look right
19:22:02 <Eddi|zuHause3> i already imagine the forum topic: "Patch: Diff" :p
19:22:46 <rortom> mh russian pack lags as hell?
19:22:52 <TiberiusTeng> about the file extension: .diff / .patch, which is better ?
19:22:54 <Eddi|zuHause3> rortom: using ECS?
19:23:44 <Eddi|zuHause3> i meant do you use the ECS grfs?
19:24:39 <Belugas> TiberiusTeng, i don't know to be honest
19:24:44 <Eddi|zuHause3> you should never enable all grfs from the grf pack ;)
19:24:55 <Belugas> i thnik that as long as you can apply either one, it's fine
19:25:09 <Ammler> Eddi|zuHause3: wise suggestion :-)
19:25:15 <Belugas> (patch or diff, i mean...)
19:25:15 <Eddi|zuHause3> TiberiusTeng: i use .diff most of the time
19:25:58 <TiberiusTeng> I always use redirect :P
19:26:02 <TiberiusTeng> (sorry for those typo)
19:33:46 <Yorick> badgerbadgerbadgerbadgerbadgerbadger
19:34:44 <Noldo> is it output of diff or input of patch
19:36:46 *** egladil has joined #openttd
19:53:25 *** DaleStan has joined #openttd
19:54:32 <michi_cc> Rubidium: your bug's fixed
20:01:40 *** Mirrakor has joined #openttd
20:15:14 <DJNekkid> a nfo-question if i may:
20:15:35 <DJNekkid> -1 * 0 02 00 D1 81 0C 00 FF 01 23 80 00 00 AC 00
20:16:17 <DJNekkid> should not that give me a "generic text" number 00 00 (the 2nd and 3rd 00 from the back) ?
20:16:34 <DJNekkid> or to be presice, the D000
20:17:05 <DJNekkid> if i add the cid D1 to the action 3
20:20:37 <peter1138> "00 00" is not a callback result
20:20:59 <peter1138> but i can't remember the format of it :)
20:21:12 <DaleStan> DJNekkid: And that location isn't where a callback result would be, anyway.
20:21:53 <DJNekkid> and where would that be?
20:22:01 <DaleStan> Those would be <min> and <max>
20:22:43 <DaleStan> <setID>s (23 80) and (AC 00) are where you put results.
20:24:49 *** Vikthor has joined #openttd
20:25:14 <DJNekkid> so ... FF 01 00 80 23 23 AC 00 ?
20:25:50 <DaleStan> To return 0 for CB 23 (text D000) and chain to CID AC in all other cases, yes.
20:26:49 <DJNekkid> but isnt that what i actually want? :)
20:27:31 <DJNekkid> tho, it dont seem to work
20:31:24 * Belugas Mogwai - Moses? I Amn't
20:33:59 <DJNekkid> what i want to do is add text to the purchase window :)
20:44:21 <DJNekkid> btw, i got it to work, but i had a separate purchise screen cID
20:48:53 *** Vikthor has joined #openttd
20:54:39 <DaleStan> DJNekkid: Ah. CB23 will only be called with the purchase-window cargo type.
20:55:42 <DJNekkid> DaleStan: yea ... i figured that out finally ... i mean, the cid i did set were the engine itself ... if that makes sense, but i needed to put in the separate puchsise screen cid
20:59:24 *** ChanServ sets mode: +v tokai
21:15:17 *** Vikthor has joined #openttd
21:15:29 *** Osai is now known as Osai^zZz
21:18:08 *** Ridayah has joined #openttd
21:18:33 <Cyclonerotary> i dont get it, my large train stations right in the middle of town attract very few passangers
21:18:48 <Cyclonerotary> whereas my docks on the edges of small towns rapidly get hundreds
21:24:01 <fjb> How many trains are visiting the stations?
21:26:37 *** Ridayah has joined #openttd
21:31:13 <DaleStan> And what are the station ratings?
21:41:28 *** Slowpoke_ has joined #openttd
21:47:21 <Eddi|zuHause3> Cyclonerotary: ships suffer less from rating decay, when no vehicle is waiting
21:57:23 *** TiberiusTeng has joined #openttd
22:56:24 *** grumbel has joined #openttd
23:33:28 *** Frostregen has joined #openttd
continue to next day ⏵