IRC logs for #openttd on OFTC at 2019-06-16
            
00:32:20 *** Progman has quit IRC
00:42:46 *** snail_UES_ has joined #openttd
00:52:26 *** Laedek has quit IRC
01:06:44 <spnda> Shouldn't strings written into english.txt automatically be declared as a StringID when building?
01:06:57 <nielsm> yes
01:07:57 <nielsm> if you're working in MS visual studio, often it doesn't refresh properly and the intellisense tools claim the new StringID constants don't exist
01:08:30 <spnda> I had build errors claiming it was undefined. I had that before that IntelliSense didn't catch it instantly
01:08:58 <spnda> I think it's not complaining anymore though after another build... So that's good
01:13:42 *** Wolf01 has quit IRC
01:16:32 *** arikover has quit IRC
01:43:35 *** snail_UES_ has quit IRC
01:45:39 *** spnda has quit IRC
02:03:42 *** nielsm has quit IRC
02:21:05 *** tokai|noir has joined #openttd
02:21:05 *** ChanServ sets mode: +v tokai|noir
02:28:00 *** tokai has quit IRC
02:31:43 *** Thedarkb has joined #openttd
02:49:49 *** Gustavo6056 has joined #openttd
02:52:55 *** Gustavo6046 has quit IRC
02:52:55 *** Gustavo6056 is now known as Gustavo6046
02:58:52 *** Laedek has joined #openttd
03:00:18 *** berndj has quit IRC
03:00:31 *** berndj has joined #openttd
03:04:48 *** Samu has quit IRC
03:57:42 *** Gustavo6046 has quit IRC
04:09:16 *** Flygon has joined #openttd
04:22:49 *** D-HUND has joined #openttd
04:26:08 *** debdog has quit IRC
04:45:32 *** glx has quit IRC
05:04:23 *** tokai has joined #openttd
05:04:23 *** ChanServ sets mode: +v tokai
05:11:17 *** tokai|noir has quit IRC
06:02:36 *** snail_UES_ has joined #openttd
06:58:47 *** snail_UES_ has quit IRC
07:44:05 *** sla_ro|master has joined #openttd
08:05:00 *** andythenorth has joined #openttd
08:08:27 <DorpsGek_II> [OpenTTD/OpenTTD] kiwitreekor updated pull request #7575: Feature: Add industry production graph https://git.io/fjc3i
08:11:14 <DorpsGek_II> [OpenTTD/OpenTTD] kiwitreekor commented on pull request #7575: Feature: Add industry production graph https://git.io/fjaLV
08:13:13 <DorpsGek_II> [OpenTTD/OpenTTD] kiwitreekor updated pull request #7575: Feature: Add industry production graph https://git.io/fjc3i
08:13:38 *** Thedarkb has quit IRC
08:13:48 <andythenorth> moin
08:17:19 <LordAro> o/
08:23:19 *** Thedarkb has joined #openttd
08:24:25 <andythenorth> feldbahn intro dates, 1860, 1900, 1950, 2000
08:25:05 <andythenorth> might drop the 2000, there's no real stats progression compared to 1950, just 100HP and a few pixels change
08:25:40 <andythenorth> cuts about 48 vehicles out
08:25:54 * andythenorth bear coding
08:27:16 *** nielsm has joined #openttd
08:44:24 <Eddi|zuHause> there's the CarGoTram for 2000-ish?
08:50:46 <andythenorth> yes, that's an actual tram though
08:51:11 <andythenorth> Hog already has a set of freight trams, slightly based on RL
08:51:28 <andythenorth> I'm keeping those, because they're 'done' :P
08:52:01 * andythenorth does some maths
08:52:06 <andythenorth> 12 types
08:52:19 <andythenorth> @calc 12 * 2 * 2 * 4
08:52:19 <DorpsGek> andythenorth: 192
08:52:36 <andythenorth> 2 lengths, 2 power types, 4 generations = far too many
08:52:49 <andythenorth> @ calc 12 * 2 * 2
08:52:49 <DorpsGek> andythenorth: 48
08:53:03 <andythenorth> 2 lengths, 1 power type, just 2 generations
08:53:04 <andythenorth> better
08:53:20 <nielsm> power type = diesel or electric?
08:53:37 <nielsm> maybe just decree that 3rd generation is a switch from diesel to electric?
08:54:11 <andythenorth> I could do that
08:54:30 <andythenorth> it's a lot of tedious track conversion though :)
09:01:27 <andythenorth> just 2 generations would be 'efficient'
09:01:40 <andythenorth> but it makes balancing against other vehicle types tricky :D
09:45:19 *** gelignite has joined #openttd
10:42:04 *** Speedy` has joined #openttd
10:54:33 *** andythenorth has quit IRC
11:00:18 *** Samu has joined #openttd
11:21:08 *** Wolf01 has joined #openttd
11:55:02 *** Progman has joined #openttd
12:15:15 *** frosch123 has joined #openttd
13:05:59 *** andythenorth has joined #openttd
13:21:38 *** Thedarkb has quit IRC
14:06:02 *** Eddi|zuHause2 has joined #openttd
14:10:38 *** Eddi|zuHause has quit IRC
14:37:52 *** spnda has joined #openttd
15:00:52 *** sla_ro|master has quit IRC
15:03:57 *** Progman has quit IRC
15:06:20 *** Eddi|zuHause2 is now known as Eddi|zuHause
15:18:24 *** andythenorth has quit IRC
15:27:47 *** arikover has joined #openttd
15:31:30 <spnda> Where is this window defined? I can't seem to find it... https://imgur.com/a/GeKOq2H
15:32:08 <spnda> Right after I ask this, I find it.... wow..
15:52:25 <Eddi|zuHause> that's how teddy bear coding works
15:52:43 <Eddi|zuHause> sometimes you have to say a thing outloud for it to properly manifest itself
16:13:47 *** sla_ro|master has joined #openttd
16:26:14 *** Gustavo6046 has joined #openttd
16:33:18 *** snail_UES_ has joined #openttd
16:51:34 *** Progman has joined #openttd
16:55:05 *** Flygon has quit IRC
17:13:14 *** Gumle2 has joined #openttd
17:49:07 <spnda> Where are files read which are listed in the fios gui to get the details?
17:51:24 <spnda> Or else, how does LoadCheckData work?
17:55:45 *** gandi[m] has joined #openttd
18:00:11 *** gelignite has quit IRC
18:09:10 <nielsm> spnda: the entire load/save infrastructure is rather complex and in general you should not need to touch the middle layers of it ever
18:16:38 <spnda> soo.. what would I do if I want to add something like the start date or map size to a file?
18:25:02 *** Thedarkb has joined #openttd
18:38:06 <peter1138> What kind of file?
18:38:19 <peter1138> If it's a savegame, it will already have map size. Not sure about start date.
18:42:05 <nielsm> doesn't look like start date is saved
18:42:19 <nielsm> you can check the earliest inaugurated_year for companies
18:42:36 <nielsm> (in singleplayer that will be the start date, in multiplayer all bets are off)
18:42:39 *** Gumle2 has quit IRC
18:43:54 <peter1138> Might be part of the game log :-)
18:44:27 <peter1138> Which is not machine readable, I guess.
18:44:47 <nielsm> I think it is
18:45:46 <nielsm> but it doesn't contain a game date
18:46:28 *** Thedarkb has quit IRC
18:48:24 <nielsm> or wait... isn't it part of the game settings?
18:49:14 <nielsm> GameSettings::game_creation.starting_year
18:50:19 *** Thedarkb has joined #openttd
18:50:40 <nielsm> spnda: yeah try _load_check_data.settings.game_creation.starting_year
18:51:35 <LordAro> that's not from the savegame though? just the current setting?
18:51:49 <nielsm> no that's from the savegame
18:51:59 <LordAro> well fair enough :)
18:52:11 <nielsm> _load_check_data is a global containing data from a savegame partially loaded via LoadCheckData()
18:52:21 <nielsm> including the game settings
18:53:53 <nielsm> and starting year _is_ displayed....
18:54:01 <nielsm> so I'm not sure what spnda's question is about
18:54:10 <spnda> hmm ok, I'll check that. Will have to see how those values are saved to the file though.
18:54:25 <nielsm> why?
18:54:34 <nielsm> I think we have an x-y problem here
18:56:04 <nielsm> fios_gui.cpp around like 498 is pretty clear about starting year being saved to the game and then displayed in the load game window when selecting a savegame file
18:56:56 <nielsm> it _is_ being saved, and it's being saved as part of the greater "game creation settings" structure which contains (among other things) all the setting chosen in the new game window
18:58:24 *** lpx has quit IRC
18:58:33 <nielsm> the way it's defined as something to be saved is by being declared in the settings.ini file, which is used to generate the settings.h file (and possibly more?) during build, and this provides a table of items to load/save from a file, their data size and format, location, saveload-versions they are valid in, and which in-memory structure to load/save the value from
19:03:50 *** lpx has joined #openttd
19:13:36 *** snail_UES_ has quit IRC
19:21:17 *** urdh has quit IRC
19:22:16 *** urdh has joined #openttd
19:37:28 *** gelignite has joined #openttd
19:45:47 *** andythenorth has joined #openttd
19:54:11 *** glx has joined #openttd
19:54:11 *** ChanServ sets mode: +v glx
19:55:24 <andythenorth> o/
19:55:32 <Markk> \o
20:10:21 <peter1138> . /o\
20:17:20 <LordAro> |o|
20:23:49 <spnda> oo
20:59:30 <spnda> When I want a different type of game to have a pop up at the start and track the games progress and when it saves into a different file, should I make a new gamemode? (From openttd.h, line 18)
21:01:16 <nielsm> what?
21:02:46 <nielsm> the game mode is how the game systems are operating, whether they are in "main menu" mode, in "playing the game" mode, in "scenario editor" mode, or some special init stuff
21:03:03 <nielsm> if you want to change the rules of the game slightly, introducing a new game mode is probably the wrong solution
21:03:16 <spnda> ok ok, so what would you suggest?
21:03:27 <nielsm> I don't understand what you want to do
21:05:34 <spnda> Just an idea I had to have challenges. Something like "Make 100.000$ by the year 1990". New button to load up a map and then ingame also have a window for progress tracking. When completed, you can continue it as a normal game, but you get achievement points like the highscore table.
21:05:56 <nielsm> that sounds like you should make a Game Script
21:06:19 <nielsm> maybe it needs some additional support features in the GS API to do some of the things (high score table)
21:15:53 *** snail_UES_ has joined #openttd
21:16:10 <andythenorth> that is a GS pretty much
21:16:23 <andythenorth> spnda: have you tried any gamescripts? :)
21:16:57 <spnda> No, never even played with any
21:19:31 <andythenorth> there are 3 or 4 cargo goal scripts
21:19:38 <andythenorth> try one of those to get ideas :)
21:19:50 <andythenorth> NoCarGoal, Busy Bee, Silicon Valley are 3 I use
21:23:46 <spnda> When using a gamescript, you wouldn't have the option of using maps/games from other people with a given challenge. You basically get something random every single time. Also unsure on how well this would work when you save a game and later reload it...
21:24:23 <nielsm> you mean you want to take an existing save of an in-progress game and apply a GS to it?
21:24:35 <andythenorth> this sounds more like a scripted scenario
21:24:51 <spnda> could be
21:24:52 <andythenorth> what happened to New Scenario Format?
21:24:58 <nielsm> (you can select which GS to use yourself, you can configure it yourself, and depending on how the GS is programmed it doesn't have to be random)
21:25:09 <andythenorth> https://wiki.openttd.org/Terkhen/Scenario_format
21:26:03 <nielsm> also GS do have functions to save its own data to the savegame file, they can definitely resume from a save/reload if programmed correctly
21:28:23 *** frosch123 has quit IRC
21:34:33 <spnda> I think, GS still make sence if you want to have a few goals in your ordinary game... Though I don't feel that integration is good enough to have a real challenge. A challenge could go over a rather long time, maybe disable a few features (No airplanes, no trains) and has multiple different windows to see progress, your challenge, and highscores.
21:35:17 <spnda> Also challenges could give the option to create scripted scenarios. Maybe a company which is not making any profit and you need to get the company to make profit. As an example. I feel that could give much more options ot the player.
21:36:56 <nielsm> I agree GS needs a proper way to configure specific scenarios
21:45:14 *** spnda has quit IRC
21:56:02 *** gelignite has quit IRC
22:16:55 *** Samu_ has joined #openttd
22:23:38 *** Samu has quit IRC
23:01:09 *** andythenorth has quit IRC
23:09:20 *** urdh has quit IRC
23:21:19 *** Progman has quit IRC
23:39:20 *** Wolf01 has quit IRC
23:44:59 *** sla_ro|master has quit IRC