Time |
Nick |
Message |
00:38 |
|
kaeza joined #minetest-mods |
04:24 |
|
ShadowBot joined #minetest-mods |
05:10 |
|
phantombeta joined #minetest-mods |
07:12 |
|
diemartin joined #minetest-mods |
11:38 |
|
loggingbot_ joined #minetest-mods |
11:38 |
|
Topic for #minetest-mods is now Welcome to #minetest-mods, a channel dedicated to Minetest modding. | http://minetest.net | http://tinyurl.com/mt-lua-api |
12:12 |
|
PilzAdam joined #minetest-mods |
18:28 |
|
CheapSeth joined #minetest-mods |
19:00 |
|
Wuzzy joined #minetest-mods |
21:31 |
CheapSeth |
I'm working on an elegant way to separate nodes declarations and registrations (to register nodes in a loop, avoiding too many minetest.register_node() hard-coded calls). Is it a good Idea? |
21:31 |
PilzAdam |
why? |
21:43 |
CheapSeth |
I found the usual way «not so maintainable» |
21:43 |
CheapSeth |
(And copy/pasting the call many times remind me bad times programming microcontrollers in C) |
21:46 |
PilzAdam |
and how do you want to fix that? |
21:47 |
CheapSeth |
Defining blocks in another file (currently, by defining tables using the automatic numeric indexation to collect data and later, in XML structured files I could parse) |
21:49 |
CheapSeth |
Then register blocks in a for loop (for each entry in the node list, call the function register_node with the parameters obtained from the list) |
21:50 |
PilzAdam |
so you basically move the copy and paste to another file? |
21:51 |
CheapSeth |
Well um, not the same… Uh… Oh. |
21:52 |
CheapSeth |
Still, the function call is not copy/pasted x) Anyway, I will try later with an XML file, it could allow me to make a modding tool for adding blocks/items and basic abs without programming |
21:53 |
PilzAdam |
registering a node doesnt really require any programming skills currently |
21:53 |
PilzAdam |
since you basically have to fill out the table |
21:55 |
CheapSeth |
(Yes, but people does not mind it) |
21:55 |
CheapSeth |
(Making mods is always possible without programming knowledge (look at minecraft mods ^^)) |
21:55 |
CheapSeth |
(Noobs like GUIs) |
22:01 |
CheapSeth |
(Uh, I feel like an Apple dev saying that) |
22:02 |
CheapSeth |
(nevermind) |
23:45 |
|
ChubbaBubba joined #minetest-mods |
23:45 |
|
hunterx689 joined #minetest-mods |
23:45 |
ChubbaBubba |
But i am not a mod xD oh wait i am :D |
23:56 |
hunterx689 |
XD |
23:57 |
hunterx689 |
wha are you doing here |
23:57 |
hunterx689 |
? |
23:58 |
ChubbaBubba |
Huh 0.0 |
23:58 |
hunterx689 |
haha X |
23:58 |
hunterx689 |
D |
23:58 |
hunterx689 |
XD |