| Time |
Nick |
Message |
| 00:01 |
|
nowhere_man joined #minetest |
| 00:30 |
|
makayabou joined #minetest |
| 00:33 |
makayabou |
Can I use io.write to store infos in a file inside minetest.get_modpath("mymod")/some_file ? |
| 00:34 |
rubenwardy |
you should avoid doing that, it's bad practice |
| 00:34 |
rubenwardy |
anything written there |
| 00:34 |
rubenwardy |
may be lost during mod updates |
| 00:34 |
rubenwardy |
it's better to write to the world dir |
| 00:34 |
rubenwardy |
or use mod storage |
| 00:34 |
rubenwardy |
!book storage |
| 00:34 |
MinetestBot |
rubenwardy: Storage and Metadata - https://rubenwardy.com/minetest_modding_book//en/map/storage.html |
| 00:36 |
makayabou |
yes I did read it and I use it, but it's data I want to create in a world and retrieve when creating other worlds, using the same game |
| 00:36 |
makayabou |
I understand it is bad practice |
| 00:38 |
makayabou |
database... |
| 00:39 |
p_gimeno |
also, the mod directory might be unwritable |
| 00:42 |
makayabou |
so I can use it only on setups I know that owner of /bin is the same than /mods/mymod/ .. |
| 00:43 |
olliy |
makayabou: are you trying to make a map for CTF? |
| 00:43 |
p_gimeno |
do you need to read the info you write during the game, or just at the start? |
| 00:43 |
makayabou |
just at the start |
| 00:44 |
makayabou |
no CTF but levels with parcours |
| 00:44 |
p_gimeno |
then mod storage should work, find it in the page that rubenwardy linked |
| 00:44 |
makayabou |
euh.. is that CTF? |
| 00:44 |
makayabou |
mod storage is inside world folder |
| 00:45 |
p_gimeno |
eep |
| 00:45 |
p_gimeno |
rubenwardy: guess that should be specified in that page then |
| 00:46 |
p_gimeno |
it says per mod, I guess it should say per world per mod |
| 00:47 |
makayabou |
and I want to define data in a world (formspec on nodes), create and save schematics, and, when someone create a new world with the same game, it imports mts ... and formspecs with it (storing pos and formdef and re-putting it as meta on nodes) !! |
| 00:49 |
makayabou |
importing mts and get its size, and implant protection is working, and you all helped me a lot !! |
| 00:49 |
makayabou |
*implement |
| 01:07 |
|
kaeza joined #minetest |
| 01:10 |
makayabou |
As I need to collect those data only on some nodes, I'd better to register a new node each time I really nead, then data can be stocked in on_punch |
| 01:33 |
|
swift110 joined #minetest |
| 02:04 |
|
Tuxedo[Qyou] joined #minetest |
| 02:04 |
|
Markow joined #minetest |
| 02:13 |
|
Foz joined #minetest |
| 03:12 |
|
bas080 joined #minetest |
| 03:13 |
|
milkt joined #minetest |
| 04:16 |
|
Hawk777 joined #minetest |
| 04:22 |
|
swift110 joined #minetest |
| 04:33 |
|
AceNovo_ joined #minetest |
| 04:33 |
|
Elon_Satoshi joined #minetest |
| 04:34 |
|
swift110-phone__ joined #minetest |
| 04:38 |
|
Flitzpiepe joined #minetest |
| 04:39 |
|
greeter joined #minetest |
| 04:44 |
|
paneg joined #minetest |
| 04:45 |
paneg |
hi |
| 05:07 |
|
ANAND joined #minetest |
| 05:09 |
|
ANAND joined #minetest |
| 05:36 |
|
SanskritFritz joined #minetest |
| 05:57 |
|
ssieb joined #minetest |
| 06:03 |
|
Dr_Frankenstone joined #minetest |
| 06:12 |
|
Dr-Frankenstone joined #minetest |
| 06:16 |
|
milkt joined #minetest |
| 07:22 |
|
CWz joined #minetest |
| 07:22 |
|
Fuchs joined #minetest |
| 07:55 |
|
aheinecke joined #minetest |
| 08:07 |
|
Dr_Frankenstone joined #minetest |
| 09:08 |
|
karamel joined #minetest |
| 09:15 |
|
Beton joined #minetest |
| 09:17 |
|
troller joined #minetest |
| 09:20 |
|
Wuzzy joined #minetest |
| 09:23 |
|
proller joined #minetest |
| 09:24 |
|
ensonic joined #minetest |
| 09:46 |
|
proller joined #minetest |
| 10:13 |
|
calcul0n joined #minetest |
| 10:17 |
|
amenji joined #minetest |
| 10:25 |
|
Fixer joined #minetest |
| 10:52 |
|
proller joined #minetest |
| 11:05 |
|
YuGiOhJCJ joined #minetest |
| 11:12 |
|
riff-IRC joined #minetest |
| 11:17 |
|
proller joined #minetest |
| 11:57 |
|
unclouded joined #minetest |
| 12:04 |
|
naicha_ joined #minetest |
| 12:07 |
|
Cornelia joined #minetest |
| 12:07 |
|
dch_ joined #minetest |
| 12:08 |
|
ShadowBot` joined #minetest |
| 12:08 |
|
sofar_ joined #minetest |
| 12:13 |
|
bodqhrohro_ joined #minetest |
| 12:21 |
|
Glorfindel joined #minetest |
| 12:21 |
|
Glorfindel joined #minetest |
| 12:22 |
|
MayeulC joined #minetest |
| 12:22 |
|
Milan[m] joined #minetest |
| 12:23 |
|
tacotexmex joined #minetest |
| 12:23 |
|
opal[m] joined #minetest |
| 12:33 |
|
ckeltz joined #minetest |
| 12:33 |
|
ckeltz joined #minetest |
| 12:54 |
|
nowhere_man joined #minetest |
| 13:13 |
|
nowhere_man joined #minetest |
| 13:20 |
|
jluc joined #minetest |
| 14:10 |
|
piesquared joined #minetest |
| 14:28 |
|
Jordach joined #minetest |
| 14:51 |
|
nezby joined #minetest |
| 14:52 |
nezby |
czech ? |
| 14:53 |
nezby |
cz |
| 15:18 |
galaxie |
Ha! My first core dump! Cannot have more than 65,536 vertices apparently. |
| 15:18 |
p_gimeno |
I don't recommend more than 100 |
| 15:19 |
benrob0329 |
Hmm, that number is suspiciously close to the world size limit |
| 15:19 |
galaxie |
Even for nodes that don't appear more than a few times? |
| 15:19 |
p_gimeno |
there's no LOD, everything is visible from hundreds of m away |
| 15:20 |
galaxie |
LOD? |
| 15:20 |
p_gimeno |
level of detail handling |
| 15:20 |
galaxie |
Also, how do I force the grass to grow faster? |
| 15:20 |
benrob0329 |
I suspect it has something to do with floating point precision |
| 15:20 |
p_gimeno |
LOD is a technique used to reduce polygons in objects that are far away and don't need so much detail |
| 15:20 |
galaxie |
Well, it explicitly tells me it can't handle more than that, so yeah, maybe. |
| 15:36 |
|
nowhere_man joined #minetest |
| 15:41 |
|
benrob0329 joined #minetest |
| 16:04 |
|
puzzlecube joined #minetest |
| 16:26 |
Calinou |
it's probably plenty for most use cases, especially in a voxel world |
| 16:27 |
Calinou |
3-4 year old AAA game characters are around 65k vertices :) |
| 16:32 |
benrob0329 |
Inb4 Mario 64 in minetest |
| 16:42 |
|
FrostRanger joined #minetest |
| 16:55 |
|
Fixer joined #minetest |
| 17:11 |
|
nowhere_man joined #minetest |
| 17:26 |
|
YuGiOhJCJ joined #minetest |
| 17:30 |
|
kurtzmusch joined #minetest |
| 17:58 |
|
ssieb joined #minetest |
| 18:04 |
|
namespace joined #minetest |
| 18:06 |
|
Krock joined #minetest |
| 18:06 |
|
twoelk joined #minetest |
| 18:19 |
|
proller joined #minetest |
| 18:26 |
|
FreeFull joined #minetest |
| 18:27 |
|
kaeza joined #minetest |
| 19:24 |
|
fwhcat joined #minetest |
| 19:34 |
|
nerzhul joined #minetest |
| 19:37 |
|
scr267a joined #minetest |
| 20:03 |
|
Markow joined #minetest |
| 20:13 |
|
proller joined #minetest |
| 20:18 |
|
makayabou joined #minetest |
| 20:20 |
|
jluc joined #minetest |
| 20:22 |
|
Fixer_ joined #minetest |
| 20:24 |
|
JDCodeIt joined #minetest |
| 20:50 |
|
cddepppp256 joined #minetest |
| 21:11 |
makayabou |
galaxie: for grass growth, in minetest_game/mods/default/nodes.lua grass is defined between l.1466-1515 . There should be somewhere a minetest.register_abm for growth but I don't know where.. |
| 21:11 |
|
kaeza joined #minetest |
| 21:19 |
JDCodeIt |
You mean growth or spread? |
| 21:24 |
makayabou |
growth, that was the question of galaxie |
| 21:31 |
|
riff-IRC joined #minetest |
| 22:37 |
|
paramat joined #minetest |
| 22:40 |
|
proller joined #minetest |
| 23:13 |
makayabou |
I can't find a way to share datas from one world to another.. |
| 23:15 |
p_gimeno |
minetest.conf? |
| 23:16 |
makayabou |
nodes metada .. |
| 23:18 |
p_gimeno |
well, minetest.conf is global, it could get quite clobbered if it included large amounts of data though |
| 23:18 |
makayabou |
In fact, from a world I export (by hands) schematics created with WorldEdit, I just need to do the same things with datas I write in mod_storage... |
| 23:19 |
makayabou |
but minetst |
| 23:20 |
makayabou |
but minetest.conf looks good for some infos. It doesn't require insecure env to be written in ? |
| 23:23 |
p_gimeno |
I don't think so |
| 23:23 |
makayabou |
It should not, as we can fix seed map in mod.. no? |
| 23:26 |
p_gimeno |
names starting with "secure." can't be set, others can |
| 23:29 |
|
argyle77 joined #minetest |
| 23:30 |
|
argyle77 joined #minetest |
| 23:32 |
makayabou |
ok I got it. But I think it's better if I create a single mod dedicated to writing a specific file from one world's mod_storage to another. Then I don't have to include that inside my mod |
| 23:58 |
|
argyle77 joined #minetest |