IRC logs for #openttd on OFTC at 2016-08-20
            
00:01:08 <Rubidium> "delete c->ai_instance" is like freeing prisoners, and c->ai_instance = NULL is like removing all knowledge of the prisoners existing
00:02:01 <Rubidium> doing only the latter does not free the prisoners, but since everyone forgets about the prisoners they will never be fed again (or freed)
00:02:53 <glx> good way to fill the RAM ;)
00:04:34 <Rubidium> unlike languages with garbage collection, where the latter will in a sense move the knowledge of the prisoners existing to an entity that releases "forgotten" prisoners every once in a while. But bear in mind that those languages require more steps to count the number of users and require more memory to maintain those counts
00:07:46 <Samu> i'm trying this command
00:07:53 <Samu> erm, fucntion
00:07:56 <Samu> /* static */ void AI::Restart(CompanyID company) { Company *c = Company::Get(company); delete c->ai_instance; c->ai_instance = NULL; c->ai_instance = new AIInstance(); c->ai_instance->Initialize(c->ai_info); }
00:08:24 <Samu> trying to avoid AI::Stop and AI::StartNew
00:10:09 <Samu> there's still something else that is clearing the debug log
00:10:19 <Samu> must find what is cleaning it
00:10:26 <Samu> i wanted it to keep all the log
00:19:55 *** michi_cc has quit IRC
00:22:11 *** sla_ro|master has quit IRC
00:22:13 *** Compu_ has joined #openttd
00:27:19 *** CompuDesktop has quit IRC
00:28:06 *** JacobD88 has quit IRC
00:32:37 <Samu> what is backup and restore used for? in the case of ais?
00:32:55 <Samu> Backup<CompanyByte> cur_company(_current_company, company, FILE_LINE); Company::Get(company)->ai_instance->Pause(); cur_company.Restore();
00:33:34 <Samu> to pause the ai, you use this backup thing, but i can't figure out why
00:34:45 <Samu> not only when pausing, but also for startnew, stop, unpause
00:35:44 *** keoz has joined #openttd
00:43:32 *** gelignite has joined #openttd
01:07:40 *** michi_cc has joined #openttd
01:07:40 *** ChanServ sets mode: +v michi_cc
01:16:15 <Samu> i have an idea for this problem but i may need help
01:16:29 <Samu> instead of restarting immediately, i'd postpone a restart on the next month
01:16:52 <Samu> or perhaps in the next few hundred ticks, how do I do this?
01:18:50 <Samu> i'm still unable to keep the log
01:18:59 <Samu> it is always cleaning up the old log, starting anew
01:21:57 *** FLHerne has quit IRC
01:23:59 <Samu> hehe, rocketai with 103 road vehicles, this is nice, and the company ain't bankrupting
01:33:35 <Samu> oh, 108 road vehicles, it feels alive!
01:46:52 *** Compu has joined #openttd
01:50:55 *** Compu_ has quit IRC
01:55:02 *** CompuDesktop has joined #openttd
01:56:40 *** michi_cc has quit IRC
02:00:26 *** Compu has quit IRC
02:08:22 *** efess has joined #openttd
02:20:07 *** michi_cc has joined #openttd
02:20:07 *** ChanServ sets mode: +v michi_cc
02:22:55 *** Compu has joined #openttd
02:25:41 *** keoz has quit IRC
02:28:06 *** CompuDesktop has quit IRC
02:34:06 *** Compu has quit IRC
02:34:29 *** Compu has joined #openttd
02:55:36 *** Defaultti has quit IRC
02:56:50 *** Defaultti has joined #openttd
02:56:55 <Samu> is this good english?
02:56:56 <Samu> STR_CONFIG_SETTING_AI_RESTART_DEAD_HELPTEXT :Enabling this setting permits the AIs to restart themselves if they have encountered an error, without notificating the player about it and without reseting the company they are controlling.
02:57:38 *** mindlesstux_ has joined #openttd
03:03:25 <Samu> http://imgur.com/a/Sk5o1
03:03:26 <Samu> keks
03:03:36 *** mindlesstux has quit IRC
03:03:36 *** mindlesstux_ is now known as mindlesstux
03:03:36 <Samu> what can you say about that english
03:04:12 <Samu> oh, the :on, off thingy is missing, must fix
03:13:01 <Samu> fixed
03:13:44 <Samu> any native english speaker?
03:36:06 <alask0ud> Hey, I can speak english relatively good, but I'm noob to OTTD
03:36:19 <alask0ud> I see you've been talking alone all day haha
03:40:21 <planetmaker> English proficiency is no prerequisite to playing OpenTTD ;)
03:41:54 <Samu> https://www.tt-forums.net/viewtopic.php?f=33&t=75167 - posted it here
03:42:03 <Samu> if anyone wants to test it out
03:44:26 <alask0ud> That's why I'm noob lol
03:48:13 <Eddi|zuHause> strange time for a random planetmaker to appear.
03:49:52 <Flygon> planetmaker: It might be if your primary language isn't in Latin script :)
03:50:22 <Flygon> Otherwise loading a NewGRF, and readng train names
03:50:47 <Flygon> And the Korean person reads it thinking "What the fuck is a Victorian Railways Walker Railcar?"
03:50:55 <Flygon> ...granted, I don't think the 2CC set has that yet :U
03:51:05 <Flygon> Point is, it wouldn't be in Hangul :
03:51:08 <Flygon> :P*
03:52:17 *** Samu has quit IRC
03:52:25 <Eddi|zuHause> but knowing what a vehicle name means is also not really necessary for playing openttd
03:53:05 <Eddi|zuHause> like, for many years i misinterpreted what the "BR" in the original vehicle names meant...
03:56:02 <planetmaker> Flygon, latin script is no pre-requisite either
03:56:24 <Flygon> xP It does help a lot, tho
03:56:29 <Flygon> Eddi: Lemme guess. "Brazil"?
03:56:50 <Flygon> I use to play Ragnarok Online in the mid-00s, and wondered why everyone was referring to British Railways
03:57:00 <Flygon> Turned out they were annoyed by all the Portuguese speakers
04:17:51 *** gelignite has quit IRC
04:28:07 *** alask0ud has quit IRC
04:46:34 *** HerzogDeXtEr has quit IRC
05:11:51 *** Supercheese has joined #openttd
05:33:32 *** Flygon has quit IRC
05:34:52 *** glx has quit IRC
05:37:02 *** Flygon has joined #openttd
05:38:49 *** nilez has quit IRC
05:38:58 *** nilez has joined #openttd
05:39:41 <Eddi|zuHause> Flygon: no, not brazil...
05:40:23 <Flygon> Hmm? o.o
06:19:34 *** nilez has quit IRC
06:19:49 *** nilez has joined #openttd
07:25:27 *** supermop__ has joined #openttd
07:31:56 *** supermop_ has quit IRC
07:32:16 *** supermop_ has joined #openttd
07:38:00 *** supermop___ has joined #openttd
07:38:41 *** ccfreak2k has quit IRC
07:38:44 *** supermop__ has quit IRC
07:39:24 *** ccfreak2k has joined #openttd
07:44:29 *** supermop_ has quit IRC
07:46:41 *** supermop_ has joined #openttd
07:52:31 *** supermop___ has quit IRC
08:29:11 *** Alberth has joined #openttd
08:29:11 *** ChanServ sets mode: +o Alberth
08:51:47 *** Hiddenfunstuff has joined #openttd
08:52:43 *** keoz has joined #openttd
09:20:31 *** sla_ro|master has joined #openttd
09:21:21 *** supermop__ has joined #openttd
09:27:50 *** supermop_ has quit IRC
09:30:25 *** supermop_ has joined #openttd
09:35:11 *** supermop___ has joined #openttd
09:36:54 *** supermop__ has quit IRC
09:37:46 *** supermop__ has joined #openttd
09:41:30 *** supermop_ has quit IRC
09:44:16 *** supermop___ has quit IRC
10:01:20 *** Biolunar has joined #openttd
10:06:20 *** Progman has joined #openttd
10:09:49 *** Wolf01 has joined #openttd
10:09:58 <Wolf01> o/
10:11:11 *** andythenorth_ has joined #openttd
10:11:15 <Wolf01> o/
10:11:25 <andythenorth_> o/
10:11:35 <Wolf01> I just purchased 2 claas and a volvo wheeled excavator
10:11:46 <Wolf01> Big discount on Amazon.co.uk
10:14:42 *** HerzogDeXtEr has joined #openttd
10:23:27 <andythenorth_> 2 Claas :o
10:23:37 <andythenorth_> For tyres?
10:24:08 <Wolf01> One original and one heavily modded ;)
10:30:14 <Wolf01> And now the challenge: https://youtu.be/c7CFzDepXfM
10:33:30 <Alberth> o/
10:40:26 *** andythenorth_ has quit IRC
10:40:57 *** frosch123 has joined #openttd
10:42:09 <Wolf01> Quak
10:43:39 <frosch123> hoi
10:52:30 <frosch123> SLUGwtf2.png
10:52:49 <Wolf01> Yes
10:57:36 *** Supercheese has quit IRC
11:03:07 *** HerzogDeXtEr1 has joined #openttd
11:09:16 *** HerzogDeXtEr has quit IRC
11:27:35 *** gelignite has joined #openttd
11:29:42 *** aard has joined #openttd
11:51:05 <V453000> frosch123: ?
11:51:21 <frosch123> i was looking for some test sprites :p
11:51:52 <V453000> :D
11:53:19 <frosch123> any idea how to combine a 8bpp image with the alpha channel from some other image?
11:54:28 <frosch123> hmm, actually... i guess nml already does that for me
11:54:35 *** CactiChad has quit IRC
12:04:08 *** Samu has joined #openttd
12:04:13 <Samu> hi
12:21:58 *** Antheus has quit IRC
12:23:21 <Flygon> Fugg
12:23:23 <Flygon> I'm an idiot
12:23:46 <Flygon> Was it 2CC 2.0 alpha1 or 2.0.0 beta 5 that was most recent?
12:24:40 <Flygon> right, alpha1
12:25:03 *** Antheus has joined #openttd
13:13:21 *** Gja has joined #openttd
13:22:49 <Wolf01> http://www.eurobricks.com/forum/index.php?showtopic=139035 ha!
13:25:31 *** ConductorCat has quit IRC
13:25:56 *** ConductorCat has joined #openttd
13:34:35 *** aard has quit IRC
13:34:56 *** aard has joined #openttd
13:42:55 *** aard has quit IRC
13:43:52 *** aard has joined #openttd
13:51:22 <Samu> I just "Build/Run Code Analysis on Solution" on Visual Studio and it came up with 120 warnings
13:51:25 <Samu> https://paste.openttdcoop.org/psmxrrjea
13:51:32 <Samu> are they of any importance?
14:02:47 *** andythenorth_ has joined #openttd
14:04:53 *** Antheus has quit IRC
14:05:51 *** andythenorth_ has quit IRC
14:08:47 *** Antheus has joined #openttd
14:19:07 *** Gja has quit IRC
14:24:14 *** gelignite has quit IRC
14:36:58 <Samu> damn it
14:37:07 <Samu> now that i want aiai to crash, it isn't crashing
14:37:25 <Samu> or teshinet
14:42:08 <Samu> interesting, there aren't many ais that crash, after all these tests
14:44:10 <Samu> crashing ais over the last 2 months tests: AIAI, BorkAI, rocketAI, TeshiNet, TracAI
14:44:18 <Samu> only 5
14:44:42 *** tokai has joined #openttd
14:44:42 *** ChanServ sets mode: +v tokai
14:45:53 <Samu> oh, i forgot to count the autosaving crashers
14:46:04 <Samu> NoCAB, SimpleAI, Trans
14:46:21 *** tokai|noir has quit IRC
14:47:59 <Samu> 8 crashing ais
14:48:15 <Samu> heh, never thought I'd be actually needing them for this test
14:53:51 <Alberth> you never get what you need :p
14:58:42 <Samu> well, if i don't notice them crashing, then I suppose I did a good job, too
14:59:02 <Alberth> true :)
14:59:18 <Alberth> they got so scared, that they resist crashing :)
14:59:44 <Samu> i know that rocketai gets to a point when it crashes immediately upon several restarts
14:59:58 <Samu> but i wanted to know about the other ais
15:00:21 <Alberth> you can try to use an older version
15:01:47 <Alberth> but my guess is that is one of the two likely outcomes. Either it crashes immediately, or it restarts and runs normally again
15:35:32 *** andythenorth_ has joined #openttd
15:43:03 <Samu> tracai crashed and restarted, hmm I'd like to have a way to know if an AI had crashed
15:43:35 *** andythenorth_ has quit IRC
15:44:54 <Samu> it's nice in a way that it is behaving as transparent as possible, but still, I don't quite like that it's not possible to know which ones have crashed
15:45:21 <Samu> and when
15:45:45 <Samu> hmm, i'd like to have it print a message on the console perhaps
15:45:49 <Samu> how do i do it
15:50:34 <Samu> debuglevel 9 isn't working?
15:54:05 <Alberth> debuglevel will throw pages and pages of output
15:54:17 <Alberth> *debuglevel 9
15:54:32 <Alberth> maybe your windows doesn't know what a console is?
15:55:19 <Samu> a dos window?
15:55:26 <Samu> i thought about the in-game console
15:55:31 <Samu> gui console
15:55:51 <Alberth> nope, OS console
15:56:36 <Samu> ok, let me try
15:58:12 <Samu> D:\OpenTTD\Build\openttd.exe -d script=9
15:59:13 <Alberth> isn't that game script? (don't know mostly just guessing)
15:59:55 *** alask0ud has joined #openttd
16:01:26 *** umgeher has quit IRC
16:03:02 <Samu> it's script
16:03:15 <Alberth> ok
16:03:31 <Samu> hmm level 9 really prints everything
16:03:37 <Samu> gah, trying 0
16:03:46 <Alberth> yes, 3-4 is much saner :)
16:03:54 *** andythenorth_ has joined #openttd
16:04:14 <Wolf01> Mmmh, T4 is a bit over my possibilities, but I'm getting excellence levels really fast, and I need to change the entire equip because I have many pieces <70
16:04:15 <Alberth> o/
16:06:17 *** umgeher has joined #openttd
16:06:42 *** andythenorth_ has quit IRC
16:13:20 *** aard has quit IRC
16:18:42 <Samu> waiting for a crash
16:18:44 <Samu> zzzz
16:42:01 *** umgeher has quit IRC
16:47:15 *** umgeher has joined #openttd
16:47:58 *** Progman has quit IRC
17:10:09 <Samu> root_company and company, what is the difference?
17:11:07 *** Biolunar has quit IRC
17:11:22 <Samu> CompanyID root_company; ///< The root company, the company that the script really belongs to. CompanyID company; ///< The current company.
17:11:44 <Samu> uh, how can they belong to different companies anyway?
17:11:55 <Samu> which one do I use?
17:13:50 *** ElleKitty has quit IRC
17:25:25 <Samu> :(
17:27:35 <Alberth> I have as much idea as you
17:27:46 <Alberth> ie none at all
17:41:06 <Samu> how do i convert a company byte to char
17:42:07 <Samu> char cid = (int)_current_company; ?
17:42:31 <Samu> nop
17:43:57 *** Antheus has quit IRC
17:44:24 *** Antheus has joined #openttd
17:47:26 <Samu> Severity Code Description Project File Line Suppression State Error (active) no suitable conversion function from "CompanyByte" to "const char *" exists openttd d:\OpenTTD\trunk\src\script\script_instance.cpp 155 :(
17:47:56 <Samu> how to convert companybyte to char thing?
17:55:10 *** andythenorth_ has joined #openttd
18:03:11 *** andythenorth_ has quit IRC
18:09:14 <Alberth> not, mostly
18:10:12 <Alberth> const char * indicates a string of some kind, while CompanyByte is a number
18:12:10 <Samu> DEBUG(script, 0, "[%s] The script died unexpectedly and was restarted.", ScriptObject::GetCompany()); - will it work?
18:12:29 <Samu> Exception thrown: read access violation.
18:12:30 <Samu> nop
18:39:41 *** DDR has quit IRC
18:40:06 *** supermop_ has joined #openttd
18:44:28 *** Stimrol has joined #openttd
18:46:34 *** supermop__ has quit IRC
18:53:15 *** Samu has quit IRC
18:55:20 *** DDR has joined #openttd
18:57:44 *** Samu has joined #openttd
19:01:35 <Samu> how do i print to in-game console? :(
19:04:18 <Samu> oh, the dummyai
19:04:29 <Samu> i hope it's not restarting the dummyai, must test that
19:09:45 <Samu> nice, it's not restarting DummyAI
19:10:08 <Samu> but it isn't showing the error message as well
19:10:17 <Samu> maybe it should?
19:19:07 *** ElleKitty has joined #openttd
19:30:40 *** Arveen has joined #openttd
19:36:39 *** aard has joined #openttd
19:46:42 *** glx has joined #openttd
19:46:42 *** ChanServ sets mode: +v glx
19:51:34 *** supermop__ has joined #openttd
19:57:07 *** Wormnest has joined #openttd
19:57:44 *** supermop_ has quit IRC
20:06:09 <argoneus> good evening train friends
20:21:07 <Samu> hi
20:28:13 <Samu> :(
20:29:40 *** gelignite has joined #openttd
20:32:01 *** Progman has joined #openttd
20:40:47 <Samu> while it's true that the dummyai doesn't restart, it outputs "The script died unexpectedly and was restarted." message
20:41:05 <Samu> and was restarted isn't true, how do i detect the DummyAI?
20:41:41 <Samu> I'm trying to get his name
20:41:45 <Samu> but i fail
20:42:35 <Samu> if (_settings_game.ai.ai_restart_dead && _current_company != OWNER_DEITY) { DEBUG(script, 0, "The script died unexpectedly and was restarted."); } else { DEBUG(script, 0, "The script died unexpectedly."); }
20:43:21 <Samu> help me get the name for dummyai
20:46:42 <Samu> or else i'll just leave it as DEBUG(script, 0, "The script died unexpectedly.");
20:46:53 <Samu> it's not entirelly wrong, just less informative
21:06:26 *** keoz has quit IRC
21:12:57 *** srhnsn has joined #openttd
21:26:43 *** Supercheese has joined #openttd
21:32:39 *** Gja has joined #openttd
22:00:56 *** Alberth has left #openttd
22:05:48 *** Arveen has quit IRC
22:16:25 <Samu> meanwhile, AdmiralAI aircraft testing still goes on
22:16:29 <Samu> year 2044
22:17:09 <Samu> needs 2 more days
22:17:23 <Samu> to reach 2051
22:27:05 *** andythenorth_ has joined #openttd
22:27:22 <andythenorth_> Ship capacities tax my brain :p
22:38:07 *** andythenorth_ has quit IRC
22:42:09 *** umgeher_ has joined #openttd
22:44:35 *** umgeher_ is now known as umgher
22:45:05 *** umgeher is now known as Guest525
22:45:06 *** umgher is now known as umgeher
22:45:36 *** Guest525 has quit IRC
22:54:51 *** st6 has quit IRC
22:59:58 *** andythenorth_ has joined #openttd
23:02:10 *** FLHerne has joined #openttd
23:02:47 *** andythenorth_ has quit IRC
23:11:23 *** umgeher_ has joined #openttd
23:13:11 *** umgeher has quit IRC
23:13:26 *** umgeher_ is now known as umgeher
23:16:44 *** FLHerne has quit IRC
23:36:39 *** tokai|noir has joined #openttd
23:36:39 *** ChanServ sets mode: +v tokai|noir
23:42:36 *** tokai has quit IRC
23:47:51 *** Hiddenfunstuff has quit IRC
23:56:45 *** keoz has joined #openttd