Config
Log for #openttd on 10th September 2022:
Times are UTC Toggle Colours
10:34:08  *** wallabra_ has joined #openttd
10:39:08  *** wallabra has quit IRC
10:39:08  *** wallabra_ is now known as wallabra
11:01:04  <andythenorth> funny
11:01:08  <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018113891974271057/object_gui_lol_720p.mov
11:07:56  <petern> That was awkward
11:19:58  <andythenorth> wonder if I can force a null object to make 3s
11:26:32  <andythenorth> nah
11:26:34  <andythenorth> nvm
11:27:32  <andythenorth> nml seemed a bit angry about object action 0s
11:27:45  <andythenorth> when I tried to declare them multiple times
11:27:53  <andythenorth> wonder if i can make it work though
11:28:10  <andythenorth> then I can do objects per FIRS economy, which has much more chance of fitting in 255 ID limit
11:29:10  <andythenorth> max 128 industries, some don't get objects for $reasons
11:29:13  <andythenorth> some get 3 or 4
11:29:17  <andythenorth> 'might be fine'
11:29:46  <petern> Split into different files?
11:30:07  <petern> I'm surprised there's a limit of 255 to be honest.
11:30:39  <andythenorth> goes it throw out?
11:31:25  <andythenorth> did TTDP have objects?
11:31:38  <frosch> kind of, yes
11:32:09  <frosch> it may have been the last ttdp feature, implemented in parallel to ottd
11:32:41  <DorpsGek> [OpenTTD/OpenTTD] ssokolow commented on pull request #10015: Add the Simulation subcategory to openttd.desktop https://github.com/OpenTTD/OpenTTD/pull/10015#issuecomment-1242710362
11:33:05  <petern> Simulation of earning too much money to spend.
11:33:18  <frosch> also: https://github.com/OpenTTD/OpenTTD/commit/ac599625da28a448a4f9ec655e4767e6436d0e16
11:33:47  <frosch> the limit used to be 256 for all grf together
11:34:08  <andythenorth> so the limit is grf-local...for reasons?
11:34:16  <andythenorth> or because we didn't change it yet?
11:34:28  <petern> "Extended byte" eh?
11:34:43  <frosch> it's probably only "noone increased it yet"
11:35:07  <andythenorth> it would be a service to Bananas
11:35:14  <andythenorth> and people using the Australian grfs
11:35:41  <andythenorth> I've tried using the views thing to compress into smaller ID space
11:35:44  <andythenorth> it's kinda weird
11:36:13  <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1018122723790164028/unknown.png
11:36:18  <frosch> https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Objects#Get_object_type_at_offset_.2860.29 <- i guess that's the limit for the spec
11:36:26  <frosch> 65534 per grf
11:36:41  <petern> The reason is probably "andythenorth hasn't tried using it yet so hasn't found the limits"
11:36:56  <andythenorth> all those object grfs though 🙂
11:37:06  <andythenorth> objects and stations are the weirdest things in grf
11:37:13  <andythenorth> but probably the most made
11:37:38  <frosch> most objects sets have multiple grf, for people to pick from
11:37:45  <andythenorth> is there any connection between 'FIRS' and 'industry spec is very good, and very complete' ?
11:37:45  <petern> If I plug in my broken monitor is it likely to just work...?
11:37:48  <andythenorth> yes
11:37:49  <frosch> noone just dumps 500 firs sprites in random order onto the player 🙂
11:37:54  <JGR> The object spec is much less weird than stations, to be honest
11:38:05  <andythenorth> the spec is good, but the UI is laughably broken
11:38:17  <andythenorth> as in 'such lol' 🙂
11:38:26  <frosch> yeah, it's weird that the gui is so broken and noone complained
11:38:30  <JGR> The UI works fine for me and princely m2022-09-10T13:58:27  <DorpsGek> [OpenTTD/nml] frosch123 merged pull request #266: Fix: Station animation triggers every 250 ticks, not 256. https://github.com/OpenTTD/nml/pull/266
14:15:50  <dP> hm, weird, python lzo module doesn't want to decompress openttd saves...
14:31:20  <andythenorth> More IDs vicar?
14:41:08  <petern> Already?
14:45:34  <petern> Although more tea is probably a good idea.
14:46:26  <petern> @seen belugas
14:46:26  <DorpsGek> petern: belugas was last seen in #openttd 5 years, 23 weeks, 2 days, 18 hours, 27 minutes, and 55 seconds ago: <Belugas> yeah, a birthday :)  a good friend of mine!
14:53:31  <petern> He's just been spamming the Give Kudos button on my Strava 🙂
15:09:30  <kamnet> LOL.
15:36:00  <Wolf01> Miss him
15:48:08  <andythenorth> wonder if I can just reuse object IDs in different economies
15:48:26  <andythenorth> highest industry count is 33
15:48:46  <andythenorth> most industries have about 8 sprite layouts
15:58:16  *** sla_ro|master has joined #openttd
16:01:20  <petern> Another cuppa?
16:02:11  <andythenorth> maybe
16:02:30  <andythenorth> it is only a 2 coffee day so far
16:04:56  <andythenorth> ok let's see if I can find the object limit in source 😛
16:06:05  *** wallabra_ has joined #openttd
16:06:08  <petern> Another beer?
16:06:54  <andythenorth> I try to alternate beer and coffee
16:06:59  <andythenorth> I don't believe in water
16:07:04  <andythenorth> diluting
16:08:12  <DorpsGek> [OpenTTD/nml] glx22 approved pull request #267: Fix #256: Objects have a 'colour' in var 47. https://github.com/OpenTTD/nml/pull/267#pullrequestreview-1103149763
16:09:59  <andythenorth> so is there some object pool?
16:10:04  <andythenorth> and is the ID just an offset into the pool?
16:10:20  *** wallabra has quit IRC
16:10:20  *** wallabra_ is now known as wallabra
16:11:14  <frosch> local ids are not in pools, they are in the override manager
16:11:34  <andythenorth> I found a uint32 global ID
16:11:39  <andythenorth> ObjectID
16:11:55  <andythenorth> and I found ObjectOverrideManager
16:12:49  <andythenorth> https://youtu.be/EsWfh7pz5ag?t=46
16:15:14  <andythenorth> maybe invalid_ID will lead me 😛
16:16:10  <andythenorth> no that might not be local id
16:16:15  <petern> if (id + numinfo > NUM_OBJECTS_PER_GRF) {
16:17:18  <petern> I guess you might be able to just increase that and see what happens 😉
16:18:39  <andythenorth> limited to 255 to allow extending Action3 with an extended byte later on.
16:18:45  <andythenorth> so by design
16:23:47  <petern> Is it later on?
16:23:51  <andythenorth> very
16:23:59  <andythenorth> ok nml expects a byte
16:24:01  <andythenorth> lol
16:24:11  * andythenorth at least can fix that :P
16:25:37  <petern> Sadly because it's limited to 255 currently, the allocation is a bit too simple to just increase that constant.
16:26:31  <petern> Or maybe not, it's an allocate of pointers, that's only 8 bytes each.
16:26:55  <andythenorth> I could just work around it for FIRS, there are ways.  But then there are all these other object sets spanning multiple grfs 😛
16:26:56  <petern> Do we still run on 386s?
16:26:59  <andythenorth> yes
16:27:04  <andythenorth> I have an ARM 386
16:27:06  <petern> (with 4MB)
16:27:38  <andythenorth> DOS Extended Mode?
16:27:48  <petern> Hmm, can I play on my Fitbit?
16:29:09  <andythenorth> the object GUI might not fit
16:32:25  <andythenorth> glx[d]: nml seems to have object IDs as a byte somewhere.
16:32:33  <andythenorth> I al

Powered by YARRSTE version: svn-trunk