Toto je starší verze dokumentu!
Obsah
Seznam linků které by se mohly časem hodit
- pitrissův fork starší verze technic kvůli nezmršeným receptům a elektrickým výkonům
- v latest verzi - cca 5.10.2013 - byly udělány změny, které mají za následek přílišné zjednodušení hry
- MV wind milly s výkonem 3k2 EU
- HV solar panely s výkonem 4k2 EU
- switching station potřebuje na výrobu jen LV transformátor
- elektrické stroje v nečinnosti nemají standby odběr (50 EU na mašinu)
- workshopy jsou změněny z LV na MV
- Jednoduchý návod na zprovoznění minetest serveru, inspirace konfigurace složek ve skriptu.
- Nodebox Generator - program na tvorbu bloků různých tvarů
- VPN a iptables ohledně default GW pro OpenVPN - jen pro záznam
jak zvětšit počet nodů
[01:29:18] <pitriss> I want to ask, is planned to allow more than circa 4k nodes? [01:34:47] <VanessaE> yes [01:34:58] <VanessaE> if the appropriate people will just fucking commit to it already :) [01:35:43] <VanessaE> edit mapnode.h line 46 [01:35:47] <VanessaE> I set mine to 0x7fff but I personally think a value of 0xc000 or so is appropriate. [01:55:05] <pitriss> VanessaE: oh thanks:) [01:56:44] <pitriss> VanessaE: btw it is server only setting, right? So it will be possible to connect with standard client too.. [01:57:32] <VanessaE> yes [01:57:43] <VanessaE> all modern clients can already handle it [01:58:01] <VanessaE> anything pre-July 22 will not work though if you define more than 4k nodes. [01:58:27] <VanessaE> (that includes 0.4.7-stable) [02:01:37] <pitriss> ok.. i don't really care about stable clients. so it is ok for me:) [02:01:59] <VanessaE> ok :)
Detekce vzdálenosti
[16:29:10] <pitriss> please did someone invented some quick way how to get distance of player from some spot on map? I don't want to re-invent a wheel:) [16:30:34] <sfan5> pitriss: vector.distance [16:30:49] <kaeza> pitriss, pythagoras' theorem, or use vector.distance(p1, p2) [16:32:31] <pitriss> so vector.distance(coords1, coords2).. I guess coords are tables:) Thank you guys:) [16:32:54] <pitriss> and sorry for my noobish questions..:) [16:33:00] <sfan5> tables like {x=1, y=0, z=7}
Definice max_lag
[21:43] <ShadowNinja> Wouldn't max_lag be a better value to announce as lag than the step time? [21:44] <sapier> Can someone explain to me what max lag is supposed to be? [21:45] <PilzAdam> sapier, AFAIK its the time spend in Lua code [21:47] <ShadowNinja> sapier: http://pastebin.ubuntu.com/6845876/ [21:48] <ShadowNinja> Basically dtime that decreases only slowly. [21:49] <sapier1> hmm ok guess we need to think about this way of determine lag later as it doesn't honor network lag
http://pastebin.ubuntu.com/6845876/
float max_lag = m_env->getMaxLagEstimate(); max_lag *= 0.9998; // Decrease slowly (about half per 5 minutes) if(dtime > max_lag){ if(dtime > 0.1 && dtime > max_lag * 2.0) infostream<<"Server: Maximum lag peaked to "<<dtime <<" s"<<std::endl; max_lag = dtime; } m_env->reportMaxLagEstimate(max_lag);