IRC logs for #openttd on OFTC at 2019-01-03
⏴ go to previous day
01:06:27 <lugo> "Allow up to two rail types per tile." i can't believe my eyes
01:48:17 <Samu> i wonder if i can trust the unitnumber
01:48:56 <Samu> there's autoreplace going on
01:49:19 <Samu> unit number is the v->unitnumber of a vehicle
01:50:19 <Samu> the first vehicle_id is the vehicle index that belongs to the vehicle with v->unitnumber
01:50:46 <Samu> the second vehicle_id is the vehicle index that was stored previously in a list
01:51:18 <Samu> can we trust the unitnumber?
01:51:30 <Samu> is it more reliable with autorenew+autoreplace?
01:54:13 <Samu> code for script_vehicle.cpp
01:54:27 <Samu> and the other code, in ai side is...
01:58:36 <Samu> Does anyone understand what I'm trying to do? :|
02:02:56 <Samu> Instead of working with vehicle_id on lists, I'd rework the API to create lists based on unitnumber (providing my theory is correct, that we can trust the unitnumber belonging to the save vehicle before and after autorenew)
02:04:00 <Samu> the basis of a vehicle would become v->unitnumber instead of v->index
02:04:57 <Samu> this is only for scripts, of course
02:05:24 <Samu> oh well cyas goodnight, guess everyone's asleep
02:52:41 *** Wyndbain has joined #openttd
03:30:01 *** HerzogDeXtEr has joined #openttd
07:19:08 *** HerzogDeXtEr1 has joined #openttd
09:00:52 <DorpsGek_II> [OpenTTD/OpenTTD] andythenorth commented on pull request #7000: Add: Var 6A, a clone of Var 4A for querying poweredness compared to a… https://git.io/fhmEx
09:01:53 *** HerzogDeXtEr has joined #openttd
09:11:20 *** sla_ro|master has joined #openttd
09:45:22 *** ToffeeYogurtPots has quit IRC
11:38:59 <Eddi|zuHause> anyone with linux-fu around? is there a quick way to see which process spawned a process?
11:40:38 <LordAro> there are better ways, but i usually use htop in tree mode for quixkly looking myself
11:41:35 <Eddi|zuHause> slight complication: the process is only around for a short time, so i need something that outputs once and doesn't update
11:42:50 *** Progman has joined #openttd
11:44:07 <LordAro> Eddi|zuHause: how about `ps faux` ? ('f' does the tree)
11:44:40 <LordAro> but if it's really short, then yeah, it's tricky
11:46:00 <Eddi|zuHause> i have a popup window about every half or one hour, which stays around for a few seconds
11:46:41 <Eddi|zuHause> asking me to accept a cacert
11:49:44 <Eddi|zuHause> i found that the process has the command line "gpgsm --server"
11:53:06 *** chomwitt has joined #openttd
12:14:17 <Samu> road vehicle 1835 has just been autoreplaced, look at date of last service and current date
12:15:36 <Samu> grabbing the vehicle by unitnumber redirects to its post-replacement index
12:17:48 *** DirkDiggler has joined #openttd
12:19:09 *** Thedarkb-T60 has joined #openttd
12:19:13 <Samu> vehicle_id 6854 was the index it had before replacement, and that of which vehicle lists iterate, it is outdated information
12:20:14 <Samu> vehicle_id 549 is the post-replacement index, the redirected-to-current index of the vehicle
12:28:28 <DorpsGek_II> [OpenTTD/OpenTTD] Eddi-z commented on pull request #7000: Add: Var 6A, a clone of Var 4A for querying poweredness compared to a… https://git.io/fhmXC
12:36:45 <Samu> guys, I don't know if I only need a function
12:37:11 <Samu> or if vehiclelists also need update
12:37:56 <Eddi|zuHause> doesn't seem to have a parent process
12:42:25 <Samu> all that is " a list of vehicles "
12:53:52 *** JacobD88 has joined #openttd
13:01:40 <Eddi|zuHause> so, the chinese finally managed to fake a moon landing on the dark side?
13:03:20 <Borg> ufff.... my NewGRF NFO file rewritten! :)
13:03:26 <Borg> now I can continue work on Transfer Industries
13:13:22 <Samu> how do i automatically generate .hpp.sq files?
13:13:32 <peter1138> Eddi|zuHause, there is no dark side. There is far side, though.
13:13:47 <Eddi|zuHause> congrats, you found one of the jokes :p
13:16:09 <Samu> * THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */
13:16:17 <Samu> but, how do i generate it
13:16:55 <Samu> i've been editing them manually
13:17:16 <Samu> but if there's an automated method, I'd like to know how to do that way
13:42:04 <Samu> how do i run .sh on windows?
13:47:05 <Samu> will git bash here work?
13:48:24 <Samu> what could possibly go wrong, :p
13:56:38 <Samu> i don't think it generated anything
14:04:36 <peter1138> Looks like it didn't like spaces in the path.
14:04:59 <peter1138> Hmm, or not. Maybe it ran from the wrong place.
14:05:13 <Borg> Samu: it needs quite a few UNIX tools like AWK and SED
14:05:17 <Eddi|zuHause> nice that after over 20 years, we still haven't found a solution for that problem
14:05:18 <Borg> MSYS should provide them..
14:32:54 <Samu> better resort to manual editing
14:33:13 <Samu> too much trouble to get msys
14:50:16 <Borg> How to define new tiles....
14:50:27 <Borg> I tried using B0-BF range..
14:50:47 <Borg> and used it in Industry layout.. but they dont work.. I get some tiles from old undistries
14:52:15 <Eddi|zuHause> sorry, can't help you there
14:52:36 <Borg> hmm probably need to use newtile layout reference.. lets try
15:14:30 <Samu> im failing to create a ScriptVehicleUNList api function
15:14:52 <Samu> it says the index AIVehicleUNList does not exist
15:15:54 <Samu> who's the API expert? :o
15:17:12 <Samu> it should exist at this point, i dont know what is wrong
15:18:14 *** Thedarkb-T60 has joined #openttd
16:15:33 *** sla_ro|master has joined #openttd
16:24:29 <Samu> I dont understand what im doing wrong
16:27:57 <Samu> dont tell me it's an API version, omg
16:49:49 *** Wormnest has joined #openttd
17:00:51 *** Wormnest_ has joined #openttd
17:06:57 <Samu> what I'm trying to do is creating lists by v->unitnumber
17:07:24 <Samu> but when I do local vehicleList = AIVehicleList_UnitNumber(AIVehicle.VT_ROAD);
17:07:48 <Samu> it says index 'AIVehicleList_UnitNumber' does not exist
17:22:20 *** Thedarkb-X40 has joined #openttd
17:48:10 *** ToBeFree has joined #openttd
17:49:33 *** erratic has joined #openttd
18:21:42 *** synchris has joined #openttd
18:25:58 *** Wormnest has joined #openttd
18:31:28 *** Oroburos has joined #openttd
18:43:13 *** Alberth has joined #openttd
18:43:13 *** ChanServ sets mode: +o Alberth
19:02:11 <Samu> I didn't know I have to register in ai_instance.cpp SQAIVehicleList_UnitNumber_Register(this->engine);
19:08:35 *** Progman has joined #openttd
19:09:03 <Samu> I don't know how to make it GS compatible
19:09:13 <Samu> it requires the company ID and the vehicle type
19:09:35 <Samu> well vehicle type is no trouble, but requiring a company ID to get the vehicle number of
19:23:42 *** gelignite has joined #openttd
19:35:47 *** andythenorth has joined #openttd
19:42:42 <DorpsGek_II> [OpenTTD/OpenTTD] andythenorth commented on issue #7001: YAPF can't find road depot, but NPF can https://git.io/fhYCT
19:44:05 <LordAro> andythenorth: ew, emojis
19:45:10 <andythenorth> I wanted to do emoticon
19:45:15 <andythenorth> but github doesn't approve
19:47:46 <andythenorth> Limitation disturbs me very sprites.?
20:04:24 <TrueBrain> andythenorth: why havent you reviewed yet :'(
20:05:26 <andythenorth> 32bpp EZ nielsm ? o_O
20:06:01 <nielsm> no I intend to render to original scale and paint over by hand
20:06:13 <nielsm> or even just use as reference for hand painting
20:16:02 <TrueBrain> ugh, I ate too much
20:16:57 <TrueBrain> downloads is 7 MiB, news is 2.5 MiB, screenshots are 44 MiB :D
20:17:59 <DorpsGek_II> [OpenTTD/website] TrueBrain updated pull request #7: Add: downloads pages, and links from header/index to them https://git.io/fhmIo
20:18:46 <TrueBrain> okay, only thing left is browser-detection
20:18:49 <TrueBrain> not sure that has any priority :D
20:19:37 <TrueBrain> and what I dont really like, is that the download-folders don't have an index.html
20:19:41 <TrueBrain> but that is minor too
20:20:25 <DorpsGek_II> [OpenTTD/website] TrueBrain updated pull request #7: Add: downloads pages, and links from header/index to them https://git.io/fhmIo
20:20:51 <andythenorth> someone approve TB's PR :P
20:21:01 * andythenorth is disassembling christmas right now and can't
20:21:27 <nielsm> I read that as "disapprove" at first and was confused
20:21:33 <TrueBrain> andythenorth: no rush :)
20:21:34 <DorpsGek_II> [OpenTTD/website] TrueBrain updated pull request #7: Add: downloads pages, and links from header/index to them https://git.io/fhmIo
20:21:39 <TrueBrain> I would love a look from LordAro anyway too
20:24:14 <Samu> AroAI uses autorenew, interesting
20:25:10 <Samu> i see several ais using autorenew, hmm
20:33:07 <LordAro> TrueBrain: i'll get to it :p
20:33:20 <LordAro> Samu: iirc, it's a single line of code to turn it on, so...
20:33:33 <TrueBrain> LordAro: cool, tnx :)
20:33:37 <TrueBrain> was not sure you read my request :D
20:36:51 <Samu> looking at choochoo reports
20:37:19 <Samu> seems to be an error caused by ... *cough*... autorenew *cough* :p
20:37:37 <Samu> local name = AIVehicle.GetName(vehicle);
20:37:37 <Samu> if (name.find("X") == null) {
20:44:30 <Samu> is trying to get the name of a vehicle == 11 which no longer exists~
20:48:16 <Samu> it was managing events, vehicle being unprofitable, it got the vehicle id there
20:48:44 <Samu> converted = AIEventVehicleUnprofitable.Convert(e);
20:48:52 <Samu> vehicle = converted.GetVehicleID();
20:48:58 <Samu> and then Cull(vehicle) is called
21:05:54 <Samu> I'm creating api functions. Can you help me with the naming? ScriptVehicleList_Station_UnitNumber
21:06:07 <Samu> ScriptVehicleUNList_Station ?
21:06:21 <Samu> ScriptVehicleUIDList_Station?
21:06:54 <Samu> ScriptVehicleUnitNumberList_Station, ScriptVehicleList_UnitNumber_Station?
22:00:45 <nielsm> sketchup's default isometric view is not quite the right angle
22:01:07 <andythenorth> don't you need dimetric? o_O
22:03:12 <Eddi|zuHause> @calc arctan(1/2)
22:03:12 <DorpsGek> Eddi|zuHause: Error: 'arctan' is not a defined function.
22:03:15 <DorpsGek> Eddi|zuHause: 0.463647609001
22:03:20 <Eddi|zuHause> @calc atan(1/2)*180/pi
22:03:20 <DorpsGek> Eddi|zuHause: 26.5650511771
22:03:31 <Eddi|zuHause> that's the "right" angle
22:03:44 <Eddi|zuHause> isometric is 30°
22:05:46 <Samu> oh, i thought it was a problem on openttd's side
22:10:17 <Eddi|zuHause> that thread doesn't look quite right
22:12:33 <nielsm> andythenorth that helped, I think
22:13:12 <andythenorth> it's either 30 or 26.5 probs
22:13:44 <andythenorth> TrueBrain: how do I trigger fetching the downloads data?
22:14:00 <andythenorth> just fetch-downloads.py is safe to run?
22:14:38 <Eddi|zuHause> andythenorth: that depends on what angle you're measuring
22:15:17 <Eddi|zuHause> the 26.5° angle is in the resulting image, the 30° angle is how you need to position the camera to produce this angle
22:15:22 <Eddi|zuHause> as far as i understand
22:15:25 <andythenorth> ok that makes sense
22:15:48 <andythenorth> FTR my calculation was same as yours atan(1/2)
22:16:56 <nielsm> dark blue overlay is 3x2 ttd tiles
22:17:54 <Eddi|zuHause> you might have to look for rounding errors at the border or something
22:18:45 <nielsm> this is good enough, I'm not going to use it as-is, really just as a template to paint over
22:20:04 *** smoke_fumus has joined #openttd
22:21:55 <peter1138> Sounds like more work
22:25:11 <andythenorth> I connect a few pax stations and cdist wrecks my network :P
22:25:56 <Eddi|zuHause> that's what it does, if you don't provide enough capacity
22:26:09 <Eddi|zuHause> and no amount of capacity is ever enough
22:27:45 <andythenorth> it is if you demolish enough of the city
22:28:05 <Eddi|zuHause> or you could try out one of those passenger generation patches
22:28:49 <andythenorth> 1k pax waiting, rating is 'Very Good'
22:29:01 <andythenorth> can't even get the rating to nerf the generation :P
22:29:40 <Eddi|zuHause> the first thing i'd try is increase the "effect of distance on demand"
22:29:52 <andythenorth> that wrecks supplies delivery :)
22:29:54 <Eddi|zuHause> but that might destroy your cargo networks
22:29:56 <andythenorth> I have it set to 0
22:30:14 <Eddi|zuHause> yeah, you can't have both :)
22:30:59 <andythenorth> I could add high-cap pax trains
22:31:12 <andythenorth> highest currently in my game year is 320 for 16/8 length
22:31:35 <andythenorth> but only 55mph, so throughput per tile length might be more on faster smaller trains
22:31:38 <Eddi|zuHause> that's still like 4 times more than default game
22:32:05 *** Progman has joined #openttd
22:32:15 <andythenorth> @calc (36/6) * 16
22:32:27 <andythenorth> 96 at 90mph or 320 at 55mph
22:32:32 <andythenorth> 320 has it I think
22:32:50 <andythenorth> but I don't know about dwell times
22:32:54 <andythenorth> the 320 might load very slowly
22:33:11 <andythenorth> also I don't know the acceleration factor
22:45:55 <Samu> glx, I have another issue
22:46:32 <glx> unless you have mingw installed
22:46:58 <Samu> can't autogenerate the api files
22:47:52 <glx> oh right, we may need to add a vbs for that
22:47:58 <LordAro> are there not equivalent vbs- oh
22:48:45 <Samu> i've been editing them manually so far, takes a while to get it right though
22:52:40 <glx> but converting these sh/awk scripts to vbs will not be easy
22:55:27 <Samu> Uh Oh, I'm delving into Valuate territory
22:55:55 <Samu> vehicleUNStationList.Valuate(AIVehicle.GetRoadType);
22:56:11 <Samu> looks like I need a GetRoadType_UnitNumber
22:56:41 <Samu> AIVehicle.GetRoadType_UnitNumber, horribad name
22:57:17 <Samu> and im gonna need everything changed from current behaviour
22:58:08 <Samu> I need a better naming scheme, plz help
22:58:27 <Samu> AIVehicleU.GetRoadType would be ideal
22:58:50 <andythenorth> FIRS Hot Country makes no sense
22:58:59 <andythenorth> can I be arsed to fix it?
23:04:18 <andythenorth> nearly all the cargo goes to ports
23:04:28 <andythenorth> but ports have capped maximum production
23:04:38 <andythenorth> so delivering more in doesn't get more out
23:07:06 <glx> hmm looking at squirrel_export.sh I wonder if it still works since the github move
23:07:40 <glx> especially for api in `find -type d | cut -b3- | grep -v '\.svn\|/'`; do
23:07:56 <LordAro> i noticed a few of those
23:08:48 <glx> and of course all the svn calls
23:10:47 <glx> so nice there is an external awk script and a internal generated awk script
23:14:27 *** Thedarkb-T60 has joined #openttd
23:17:00 *** raphikov has joined #openttd
23:22:56 <nielsm> obv. lots of shading missing
23:25:50 <Samu> local vehicleUNStationList = AIVehicleList_Station_UnitNumber(AIStation.GetStationID(this.m_stationFrom), AIVehicle.VT_ROAD);
23:27:06 <andythenorth> nielsm: commit, ship :P
23:27:22 <Samu> ScriptVehicleList_Station_UnitNumber::ScriptVehicleList_Station_UnitNumber(StationID station_id, ScriptVehicle::VehicleType vehicle_type)
23:28:05 <Samu> AIVehicleList_Station_UnitNumber is too long
23:37:56 <glx> of course join/part are in the logs
23:41:53 <glx> and google takes all images linked in the logs
23:43:31 <Eddi|zuHause> "luckily" i don't have a fixed ip?
23:44:01 <glx> ipv6 is usually not fixed, there's a random part in it
23:44:40 <dwfreed> IPv6 is not always random
23:45:07 <dwfreed> only if you're using some sort of temporary address generation, like privacy extensions
23:45:22 <Eddi|zuHause> glx: a sufficiently long prefix is as good as fixed
23:59:42 <Samu> another "list" function method api done
continue to next day ⏵