Config
Log for #openttd on 21st July 2020:
Times are UTC Toggle Colours
00:47:42  *** b_jonas has quit IRC
00:52:42  *** WormnestAndroid has quit IRC
00:52:55  *** WormnestAndroid has joined #openttd
01:22:33  *** snail_UES_ has quit IRC
01:23:02  *** k-man has quit IRC
01:23:40  *** k-man has joined #openttd
02:21:11  *** Gustavo6046 has quit IRC
02:22:07  *** snail_UES_ has joined #openttd
02:28:05  *** Gustavo6046 has joined #openttd
02:58:15  *** glx has quit IRC
03:05:57  *** Flygon has joined #openttd
03:08:30  *** Wormnest has quit IRC
04:02:29  *** snail_UES_ has quit IRC
04:22:31  *** virtualrandomnumber has joined #openttd
04:22:51  *** virtualrandomnumber has quit IRC
04:36:51  *** Ttech has quit IRC
04:46:40  *** Ttech has joined #openttd
06:40:23  *** arikover has joined #openttd
06:50:32  *** dihedral has quit IRC
06:52:41  *** dihedral has joined #openttd
07:06:01  *** LegantoCze has joined #openttd
07:08:46  *** LegantoCze has quit IRC
08:54:25  *** keoz has joined #openttd
09:16:02  *** Smedles has joined #openttd
09:18:36  *** Smedles has quit IRC
09:19:32  *** Smedles has joined #openttd
09:23:47  *** Smedles has quit IRC
09:24:45  *** Smedles has joined #openttd
10:26:33  *** cHawk has quit IRC
10:31:32  *** arikover has quit IRC
11:18:18  *** cHawk has joined #openttd
11:28:02  *** snail_UES_ has joined #openttd
12:00:53  *** cHawk has quit IRC
12:05:25  <supermop_Home_> quiet 23 hours
12:05:45  <Eddi|zuHause> and you broke it
12:13:57  *** cHawk has joined #openttd
12:15:13  <_dp_> this game is dead!!
12:21:51  <argoneus> it's amazing how this game is like 23 years old technically
12:22:13  <argoneus> and there still isn't any other game that captures the feel of ttd
12:22:29  <argoneus> though i haven't played train fever so maybe that one is
12:22:36  <argoneus> but people don't seem to like it much (?)
12:38:57  *** glx has joined #openttd
12:38:57  *** ChanServ sets mode: +v glx
13:04:43  *** WormnestAndroid has quit IRC
13:06:34  *** WormnestAndroid has joined #openttd
13:35:56  *** nielsm has joined #openttd
14:49:17  <Eddi|zuHause> argoneus: more like 26
14:51:33  *** Speeder has quit IRC
14:52:00  *** Speeder has joined #openttd
15:07:25  *** nnyby has quit IRC
15:18:19  <argoneus> well same point
15:28:40  *** longtomjr has joined #openttd
15:29:44  <longtomjr> Good day all. Is there a way to load a large amount of data into a variable (or the global table) using gamescripts?
15:30:22  <longtomjr> I am trying to alter world generation (spesicfically tree generation) using a gamescript. Is there other ways I can go about this?
15:36:57  *** Wormnest has joined #openttd
15:42:44  <Eddi|zuHause> i'm not quite sure what you're actually asking
15:49:24  <longtomjr> I have an array of coordinates on the map that I would like to place either 1, 2, 3, or 4 trees.
15:49:51  <longtomjr> current treemap is ~ 2k*4k
15:50:24  *** Gustavo6046 has quit IRC
15:53:59  <longtomjr> I already have a way to load the data, but it takes too long and times out
15:55:18  <longtomjr> I have a script that generates a squirrel array with all the coordinates, and then I require that file. However, the game fails to load if I require it during the init loop
15:55:25  <longtomjr> since the gs takes too long to load
15:55:59  <longtomjr> Is there a way to override that temprorarily somehow, force the game to wait untill everything has been loaded?
16:02:43  *** cHawk has quit IRC
16:07:00  *** Gustavo6046 has joined #openttd
16:12:30  <glx> don't do it in init loop then
16:13:47  <glx> you can do it once in the main loop
16:23:00  <longtomjr> Tried that, it still times out
16:23:06  <longtomjr> or gives up loading it rather
16:28:26  <Eddi|zuHause> next step would be splitting up into multiple files, and loading them in subsequent loops. or injecting the data in chunks through the admin port
16:29:10  <Eddi|zuHause> or increasing the AI/GS ticks in the .cfg
16:34:12  *** Progman has joined #openttd
16:35:11  <nielsm> how are the data stored in the squirrel script? as an actual squirrel array of static data, or as a string?
16:35:36  <nielsm> I think perhaps if you store it as a single huge string and parse that string after init it can work
16:47:25  <Timberwolf> Train/Transport Fever are quite fun, but they don't capture that same "I have 300 trains using this station" late-game TTD feeling.
16:49:07  <longtomjr> Eddi|zuHause, I am busy doing Run Length Encoding on the data, and then I can split it and require it on different ticks
16:49:33  <Timberwolf> I prefer their passenger model to cargodist ;), although it still leaves a little to be desired - IMO a blanket "passengers will travel for 20 minutes max, find them destinations" misses out on the crazy long-distance routes.
16:50:00  <longtomjr> also, how do I increase the ticks? If I can make it large enough just for generation I can then set it back afterwards.
16:51:14  <longtomjr> nielsm, Currently storing it as a squirrel array. I can try a string as well and see if that has any benefit. afaik the string is just a char []
16:53:22  <Timberwolf> I hit similar problems with Villages Is Villages, not found anything so big where loading the raw data exceeds the tick count but it only processes the town array once it's up and running.
16:54:54  <Timberwolf> Could you use something like a sparse quadtree rather than a 2D array? (not sure what kind of tree effect you're going for, that might work if you want a few clusters and none elsewhere)
16:56:09  *** HerzogDeXtEr has joined #openttd
16:56:52  <longtomjr> Timberwolf, The data is from a PNG that looks like a heightmap
16:57:37  <longtomjr> but it is a treemap, so I have a script that converts it into a squirrel array
16:59:54  <longtomjr> So what I am going to try to do now is have several runs with the RL encoded data for each tree level, and see if that loads
17:00:18  <longtomjr> The only other concern is the overhead of inflating the array again
17:00:34  <longtomjr> and if that can run quickly enough
17:15:04  *** b_jonas has joined #openttd
17:15:42  *** Flygon has quit IRC
17:16:43  *** gelignite has joined #openttd
17:45:51  <DorpsGek_III> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://git.io/JJW8n
17:45:51  <DorpsGek_III>   - Update: Translations from eints (by translators)
18:12:49  <longtomjr> update on my treemap situation. dP added the feature to citimania client :)
18:16:23  *** cHawk has joined #openttd
18:29:18  *** cHawk has quit IRC
18:49:39  *** longtomjr has quit IRC
19:19:25  <nielsm> oh they left, was just about to suggest the real crazy solution: send the treemap data to the GS via admin port
19:20:12  <_dp_> I'll pass it to him on discord xD
19:20:18  <_dp_> though it's kinda solved already
19:20:20  *** cHawk has joined #openttd
19:31:04  *** y2kboy23 has quit IRC
19:31:16  *** y2kboy23 has joined #openttd
19:32:46  *** gelignite has quit IRC
19:40:50  <Eddi|zuHause> nielsm: i said that
20:59:45  *** HerzogDeXtEr has quit IRC
21:08:32  *** WormnestAndroid has quit IRC
21:11:48  *** Wormnest has quit IRC
21:18:09  *** WormnestAndroid has joined #openttd
21:18:24  *** WormnestAndroid has joined #openttd
21:38:39  *** WormnestAndroid has quit IRC
21:39:24  *** WormnestAndroid has joined #openttd
21:47:25  *** Progman has quit IRC
21:49:18  <DorpsGek_III> [OpenTTD/OpenTTD] michicc opened pull request #8277: Fix: [CMake] Don't strip final newline from regression output. https://git.io/JJWgx
22:04:55  <DorpsGek_III> [OpenTTD/OpenTTD] jostephd opened pull request #8278: Feature: decitiles/day velocity unit https://git.io/JJW2w
22:16:52  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8278: Feature: decitiles/day velocity unit https://git.io/JJWaT
22:31:25  *** iSoSyS has joined #openttd
22:36:32  *** cHawk has quit IRC
22:38:57  *** nielsm has quit IRC
22:44:17  <DorpsGek_III> [OpenTTD/OpenTTD] jostephd commented on pull request #8278: Feature: decitiles/day velocity unit https://git.io/JJWaj
23:00:58  *** WormnestAndroid has quit IRC
23:07:43  *** Wormnest has joined #openttd
23:09:13  *** WormnestAndroid has joined #openttd
23:09:30  *** WormnestAndroid has joined #openttd
23:16:56  *** iSoSyS has quit IRC
23:21:37  *** WormnestAndroid has quit IRC
23:22:20  *** WormnestAndroid has joined #openttd
23:26:38  *** tokai|noir has joined #openttd
23:26:38  *** ChanServ sets mode: +v tokai|noir
23:33:32  *** tokai has quit IRC
23:44:58  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz opened pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
23:53:01  *** snail_UES_ has quit IRC

Powered by YARRSTE version: svn-trunk