Random Chitchat 2012-2016 - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html) +--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html) +--- Thread: Random Chitchat 2012-2016 (/thread-434.html) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
|
Random Chitchat 2012-2016 - xoft - 05-08-2012 @LogicParrot edit: This thread was previously known as "What we're doing". Please see this for further info. Original post below. It seems every other thread on this forum derails into "what are you doing now, devs?" thread. So I thought I'll make one thread with exactly this content - we'll post here what we're currently working on, if working on something at all Please don't de-rail other threads now. Ask here. Dear diary. I've just finished fast NBT parser and writer. The results are astonishing, Anvil is now on par with Compact storage schema, speed-wise. ( https://forum.cuberite.org/showthread.php?tid=433 ) I'll continue working on the composable_generator branch. The generator is finished enough, but now lighting needs to be rewritten to take full advantage of the generator. This will probably take some time, as lighting is both difficult to do and has grown too much into other code, so cutting out the current one and replacing it will be lots of work. ( https://forum.cuberite.org/showthread.php?tid=409 ) RE: What we're doing - FakeTruth - 05-08-2012 Working on a sound engine for school. Have to load WAV files and play them using the Windows' waveOut interface. Engine should be capable of:
All that's left is the 3D sound parts I like this thread RE: What we're doing - xoft - 05-08-2012 Wow, you should have said so, I have something that you could have based your code on, or at least taken an inspiration. The other day I wrote a simple and fast synthesizer (because all of the synthesizers I had at that time were laggy, playing a MIDI keyboard with a 1000ms lag in sound response is totally weird It loads wav files, uses waveOut, minimizes lag for newly added sounds and does sampling. Oh, and I see it's still online at my homepage Go have a look what my early code looked like http://xoft.cz/prog/xoftsynth.html Well, I thought this thread would still be MCS-related, but what the heck RE: What we're doing - FakeTruth - 05-08-2012 (05-08-2012, 10:32 PM)xoft Wrote: Wow, you should have said so, I have something that you could have based your code on, or at least taken an inspiration. The other day I wrote a simple and fast synthesizer (because all of the synthesizers I had at that time were laggy, playing a MIDI keyboard with a 1000ms lag in sound response is totally weirdCool. It wasn't really hard to do though. The waveOut interface gave the most trouble, but there are tutorials on the web (05-08-2012, 10:32 PM)xoft Wrote: Well, I thought this thread would still be MCS-related, but what the heckMuahaha RE: What we're doing - FakeTruth - 05-11-2012 That's what I've been working on :O http://dl.dropbox.com/u/27784874/HA4Final.rar RE: What we're doing - xoft - 05-13-2012 Funny thing happened to me now. I'm writing a lighting progress for the cWorld::InitializeSpawn(), quite the same as cWorldLoadProgress, and it just happenned that the lighting had finished before the progress thread actually had a chance to start executing. So the cIsThread destructor waits for the thread to even begin, but the thread object is already half-destructed then, meaning that the Execute() method is already gone. The result: pure virtual function call. So finally I know one of the ways how that particular error can be reached. RE: What we're doing - xoft - 05-14-2012 The first version of the new lighting is in SVN. It's working basically - the lighting thread lights chunks that are queued, and the lighting operation produces (hopefully) correct lighting. The calculation is surprisingly fast, it's almost as if something's missing - 400 chunks lighted in under 2 seconds? But the output seems correct... Now it needs to be properly "plugged in": chunks need to be lighted before being sent to a client, chunks' light needs to be saved to file (or not saved if it's invalid). Block changes need to invalidate lighting, and a function for getting a block-light, sky-light and actual-light of a block needs to be written. This function may fail, so its callers must be made aware of that fact. Just lots of tiny changes, but finding them will all be difficult. So, FakeTruth, how do you like my new cLightingThread? Also, I know the correct word is "lit", but I'm intentionally using "lighted" - the source is kinda easier to understand then. Also, searching for Light will yield all places where Lighted is used. RE: What we're doing - xoft - 05-22-2012 Connecting the Lighting seems to be more difficult than I first thought. When a neighbor is missing for lighting calculation, I need to re-queue the chunk for later re-lighting when the neighbor is ready. So I need notifications of chunks getting ready. And I need another queue in the lighting thread, so that it doesn't spend all its time just checking neighbors over and over again. And it seems the new lighting engine somehow broke the logic behind sending chunks to clients, now the clients see way too many missing chunks - as many as 5 % of the chunks don't get sent! Just plain weird: Code: [0adc|22:47:03] Streaming chunks centered on [2, 23], view distance 5 On a side note, I've been trying to write an ActiveX control host using plain C++ and nothing else (no ATL, no MFC...). With the state of MS docs, it's a major pain in the ___ . Finally turned out my biggest problem was not returning a valid window handle in the IOleClientSite callback RE: What we're doing - xoft - 05-23-2012 I got tired of porting changes back and forth between the two branches. Having four working copies checked out and doing magic on all of them isn't my idea of fun I'm making *all* changes in the composable_generator branch and hope that it will *replace* the trunk entirely, when finished. RE: What we're doing - xoft - 05-23-2012 With the lighting finished up to testing, I'm doing a little side work for a friend, but still minecraft-related: a block replacer. He has a server world built with mods and now he wants to update, but the mods' BlockID has changed between versions. So this tool will help him convert the world, replacing blockIDs and possibly even blockMetas. The basic version is working, now i'm adding metas into the picture. Also later I'll be adding a feature to convert all stored items (in chests, furnaces, minecart chests etc., as well as in players' inventory) based on itemID and itemDamage values. |