IRC logs for #openttd on OFTC at 2019-06-16
⏴ go to previous day
00:42:46 *** snail_UES_ has joined #openttd
01:06:44 <spnda> Shouldn't strings written into english.txt automatically be declared as a StringID when building?
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
02:21:05 *** tokai|noir has joined #openttd
02:21:05 *** ChanServ sets mode: +v tokai|noir
02:31:43 *** Thedarkb has joined #openttd
02:49:49 *** Gustavo6056 has joined #openttd
02:52:55 *** Gustavo6056 is now known as Gustavo6046
05:04:23 *** ChanServ sets mode: +v tokai
06:02:36 *** snail_UES_ has joined #openttd
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: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: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:19 <andythenorth> @calc 12 * 2 * 2 * 4
08:52:36 <andythenorth> 2 lengths, 2 power types, 4 generations = far too many
08:52:49 <andythenorth> @ calc 12 * 2 * 2
08:53:03 <andythenorth> 2 lengths, 1 power type, just 2 generations
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: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
11:55:02 *** Progman has joined #openttd
12:15:15 *** frosch123 has joined #openttd
13:05:59 *** andythenorth has joined #openttd
14:06:02 *** Eddi|zuHause2 has joined #openttd
15:06:20 *** Eddi|zuHause2 is now known as Eddi|zuHause
15:27:47 *** arikover has joined #openttd
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
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: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: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:43:54 <peter1138> Might be part of the game log :-)
18:44:27 <peter1138> Which is not machine readable, I guess.
18:45:46 <nielsm> but it doesn't contain a game date
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: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: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: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:37:28 *** gelignite has joined #openttd
19:45:47 *** andythenorth has joined #openttd
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: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: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: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: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
continue to next day ⏵