| Time |
Nick |
Message |
| 02:14 |
|
triplei joined #minetest-mods |
| 05:58 |
|
workflow joined #minetest-mods |
| 09:22 |
|
workflow joined #minetest-mods |
| 11:44 |
|
NakedFury joined #minetest-mods |
| 13:45 |
|
VanessaE joined #minetest-mods |
| 14:16 |
|
VanessaE joined #minetest-mods |
| 14:53 |
|
jordach joined #minetest-mods |
| 15:16 |
|
ecube joined #minetest-mods |
| 17:36 |
|
khonkhortisan joined #minetest-mods |
| 17:40 |
|
triplei joined #minetest-mods |
| 17:47 |
jordach |
anyone has a fix: http://codepad.org/hrjDkQRz |
| 17:49 |
VanessaE |
run the code in minetest and see what happens |
| 17:50 |
jordach |
fails the function |
| 17:51 |
jordach |
have you seen the stairs function? its identical |
| 17:52 |
jordach |
i need mark right now...anbd hes not here |
| 17:52 |
VanessaE |
seems like you're overthinking it |
| 17:52 |
jordach |
well |
| 17:53 |
VanessaE |
get rid of the second function entirely. |
| 17:53 |
jordach |
okay |
| 17:53 |
VanessaE |
just *call* the first function |
| 17:53 |
VanessaE |
sp, delete lines 34, 35 and 41 |
| 17:54 |
VanessaE |
also fix your indentation on line 31 (add one tab) |
| 17:57 |
VanessaE |
also, |
| 17:57 |
VanessaE |
you're passing five parameters to the cotton.register_block function, but you only allowed four. |
| 17:58 |
jordach |
huh |
| 17:58 |
VanessaE |
(name, recipe_a, recipe_b, description) ... where's the texture? |
| 17:58 |
VanessaE |
try this on line 24: function cotton.register_block(name, recipe_a, recipe_b, description, texture) |
| 17:58 |
VanessaE |
and line 27: tiles = texture, |
| 18:00 |
* VanessaE |
waits... |
| 18:03 |
jordach |
19:02:36: ERROR[main]: Failed to load and run script from |
| 18:03 |
jordach |
19:02:36: ERROR[main]: /home/jordan/Desktop/latest git/bin/../games/minimal/mods/cotton/init.lua: |
| 18:03 |
jordach |
19:02:36: ERROR[main]: ...latest git/bin/../games/minimal/mods/cotton/init.lua:24: attempt to index global 'cotton' (a nil value) |
| 18:03 |
jordach |
19:02:36: ERROR[main]: stack traceback: |
| 18:03 |
jordach |
19:02:36: ERROR[main]: ...latest git/bin/../games/minimal/mods/cotton/init.lua:24: in main chunk |
| 18:03 |
jordach |
with http://codepad.org/z50TGxfj |
| 18:04 |
jordach |
no idea |
| 18:04 |
VanessaE |
so get rid of the cotton. in front of the function and function calls |
| 18:04 |
VanessaE |
it's redundant anyway |
| 18:04 |
VanessaE |
make it register_cotton_block |
| 18:06 |
jordach |
thank you |
| 18:06 |
jordach |
it works |
| 18:06 |
jordach |
just register_block works |
| 18:07 |
VanessaE |
excellent. |
| 18:07 |
jordach |
so thank you |
| 18:07 |
jordach |
now, i need to implement shapeless recipes |
| 18:07 |
jordach |
using the two items defined |
| 18:07 |
VanessaE |
"the more they overthink the plumbing, the easier it is to stop up the drain." |
| 18:07 |
VanessaE |
that's easy |
| 18:08 |
* jordach |
get off yer soapbox vanessa |
| 18:08 |
VanessaE |
look at unifieddyes code, that's how I define everything |
| 18:08 |
VanessaE |
shapeless recipes derived from the base colors. |
| 18:09 |
jordach |
okidokey |
| 18:12 |
jordach |
hm |
| 18:12 |
jordach |
problem |
| 18:12 |
jordach |
crafts will have to be by hand |
| 18:12 |
jordach |
i cant use a function |
| 18:13 |
VanessaE |
use a loop. |
| 18:14 |
VanessaE |
for i = 1, 12 do |
| 18:14 |
VanessaE |
hue = HUES[i] |
| 18:14 |
VanessaE |
minetest.register_craft( { |
| 18:14 |
VanessaE |
type = "shapeless", |
| 18:14 |
VanessaE |
output = "unifieddyes:dark_" .. hue .. "_s50 2", |
| 18:14 |
VanessaE |
recipe = { |
| 18:14 |
VanessaE |
blah blah blah }, |
| 18:14 |
VanessaE |
}) |
| 18:14 |
VanessaE |
where HUES is a table containing the 12 base colors |
| 18:16 |
VanessaE |
in my case there are 8 register_craft calls within the loop, one for each of the variants. |
| 18:16 |
jordach |
erm, is it possible to chop the output |
| 18:16 |
VanessaE |
chop it? |
| 18:16 |
jordach |
because all my nodenames will reflect the dyes |
| 18:16 |
jordach |
such as lightgrey |
| 18:17 |
VanessaE |
look at my code |
| 18:17 |
VanessaE |
all of the item names are derived piecemeal |
| 18:18 |
jordach |
but how |
| 18:18 |
jordach |
I NEED THE name from the dye to GO INTO THE NODE NAME |
| 18:18 |
VanessaE |
yeah? |
| 18:18 |
VanessaE |
look at the above |
| 18:18 |
jordach |
thats why i need to chop it |
| 18:18 |
VanessaE |
minetest.register_craftitem("unifieddyes:medium_" .. hue .. "_s50", { |
| 18:18 |
VanessaE |
canot register_node do the same thing? |
| 18:19 |
jordach |
but how would this WORK WITH: cotton: |
| 18:19 |
VanessaE |
the same way, just build the names up from pieces. |
| 18:19 |
jordach |
you will exploade my head in a sec |
| 18:20 |
VanessaE |
minetest.register_node ("cotton:dark_" .. hue .. "_s50", |
| 18:20 |
VanessaE |
tiles = "cotton:dark_" .. hue .. "_s50.png", |
| 18:20 |
VanessaE |
and so on. |
| 18:20 |
VanessaE |
(using "hue" as the index in this case, you get the idea) |
| 18:20 |
jordach |
VanessaE, would a function variable go straight into "recipe_a" like so |
| 18:21 |
VanessaE |
it should - just TRY it. :-) |
| 18:21 |
jordach |
no wait |
| 18:21 |
jordach |
my problem is ME |
| 18:21 |
VanessaE |
*facepalm* |
| 18:21 |
jordach |
fuck you left hemisphere |
| 18:21 |
VanessaE |
you suck. :-) |
| 18:21 |
jordach |
i was thinking a different texture name space |
| 18:22 |
jordach |
okay, now i just realize that im stupid when mirroring ideas |
| 18:22 |
jordach |
FUCK FUCK FUCK |
| 18:22 |
jordach |
but |
| 18:23 |
jordach |
how would the light textures work, then we are fucked |
| 18:23 |
VanessaE |
light textures are defined explicitly |
| 18:23 |
jordach |
from where, codepad it |
| 18:23 |
VanessaE |
with normal register_craftitem/register_craft calls outside the loop |
| 18:23 |
VanessaE |
then the loop uses THOSE to define the rest |
| 18:23 |
VanessaE |
read. the. code. |
| 18:23 |
VanessaE |
:-) |
| 18:24 |
VanessaE |
it's all there ;-) |
| 18:24 |
jordach |
but, {"cotton:dark" .. hue .. "_s50", throws me |
| 18:24 |
VanessaE |
what? |
| 18:24 |
VanessaE |
that's just how it works :-) |
| 18:24 |
VanessaE |
the ".." concatenates stuff |
| 18:25 |
jordach |
because of " cotton:dark " it specifies it WILL be DARK |
| 18:25 |
VanessaE |
so you're saying "cotton:dark_" plus the string in "hue" plus the phrase "_s50" |
| 18:25 |
jordach |
nonononono |
| 18:25 |
VanessaE |
where hue is the index of your loop reading through that table I mentioned |
| 18:25 |
jordach |
what if I WANT A LIGHT colour, and cotton:dark was there |
| 18:25 |
VanessaE |
um |
| 18:25 |
jordach |
see |
| 18:25 |
VanessaE |
add another register_node without the "dark_" part? :-) |
| 18:25 |
VanessaE |
like I did. :-) |
| 18:25 |
jordach |
but, they RUN ON THE SAME BIT |
| 18:26 |
jordach |
how can you |
| 18:26 |
jordach |
you might wanna just add the crafting |
| 18:26 |
jordach |
ive already blown my hemispheres |
| 18:26 |
VanessaE |
inmy code, I define each class of colors separately. |
| 18:26 |
VanessaE |
ine register_craft for dark, one for medium, one for dark s50, one for medium s50, etc. |
| 18:27 |
VanessaE |
ine->one |
| 18:27 |
jordach |
what? |
| 18:27 |
VanessaE |
you can put them all in the same loop, one after another |
| 18:27 |
jordach |
just read through it |
| 18:27 |
jordach |
makes no sense |
| 18:28 |
jordach |
im trying to walk on water, when i can only crawl |
| 18:28 |
jordach |
but in understand how to do it |
| 18:28 |
VanessaE |
read the code again :-) |
| 18:28 |
VanessaE |
let it soak in for a bit |
| 18:28 |
jordach |
two words: |
| 18:28 |
jordach |
you bitch |
| 18:28 |
VanessaE |
then all of a sudden you'll be like FUCKING DUH! |
| 18:28 |
VanessaE |
;-) |
| 18:28 |
* jordach |
starts crying in the cornet |
| 18:28 |
jordach |
corner* |
| 18:29 |
VanessaE |
all of a sudden it'll dawn on you - OH THAT's why she did that, that makes total sense! |
| 18:29 |
jordach |
im going to nick all the code and redo it as cotton |
| 18:29 |
jordach |
this is fucking annoying me |
| 18:31 |
jordach |
VanessaE, crafting......i giveup |
| 18:31 |
VanessaE |
heh |
| 18:31 |
jordach |
thats yours |
| 18:32 |
jordach |
for how much there is, zbslfhwsdiofpverpogqep |
| 18:33 |
jordach |
SHUT UP AND TAKE MY CODE http://codepad.org/UemKBmFJ |
| 18:33 |
jordach |
i give the crafting to you |
| 18:33 |
VanessaE |
heh |
| 18:33 |
jordach |
im trying to reduce line clutter |
| 18:34 |
VanessaE |
output = "cotton:" .. , |
| 18:34 |
VanessaE |
cotton-what? ;-) |
| 18:35 |
jordach |
as a general |
| 18:35 |
VanessaE |
so add 7 more register_craft calls |
| 18:35 |
jordach |
so then using something, we can add dark, light depending on the item |
| 18:35 |
VanessaE |
customize each one for dark, medium, bright, dark s50, medium s50, bright s50 |
| 18:36 |
VanessaE |
er, 7 -> 5. |
| 18:36 |
VanessaE |
use a loop to iterate through all 12 hues |
| 18:39 |
* VanessaE |
considers writing the damn thing... ;-) |
| 18:44 |
jordach |
well, you clearly understand the code, just write it, (oh, btw, im on xubuntu atm, i can use your bash) |
| 18:48 |
VanessaE |
Busy </> |
| 18:48 |
jordach |
alright |
| 18:48 |
VanessaE |
Busy <-> |
| 18:48 |
VanessaE |
Busy <\> |
| 18:48 |
jordach |
three times, was there a need? |
| 18:48 |
VanessaE |
to show the animated cursor ;-) |
| 18:48 |
jordach |
ikr |
| 18:49 |
jordach |
or you have a really slow pc |
| 18:49 |
VanessaE |
no, it's a quite quick PC... just a slow brain |
| 18:49 |
jordach |
btw, listcolours.sh wont work |
| 18:49 |
jordach |
running as executable |
| 18:49 |
jordach |
just says file / directory not found |
| 18:50 |
VanessaE |
you have to cd into the unifieddyes directory first |
| 18:50 |
VanessaE |
./listcolors.sh |
| 18:50 |
VanessaE |
it's a commandline app. |
| 18:51 |
jordach |
>:C |
| 18:52 |
jordach |
better |
| 18:58 |
VanessaE |
working on an autogenerator script. Got the 12 base colors from a single red texture, now for the variants. |
| 19:09 |
VanessaE |
generating...... |
| 19:11 |
jordach |
lol |
| 19:11 |
VanessaE |
done |
| 19:11 |
jordach |
does it make the textures? |
| 19:11 |
VanessaE |
yes |
| 19:11 |
jordach |
:O |
| 19:11 |
VanessaE |
ok, here's the situation. |
| 19:11 |
VanessaE |
you make a single texture, BRIGHT RED, must be damn close to 100% saturation on average, but as textured as you want |
| 19:12 |
VanessaE |
name it red_base_wool.png |
| 19:12 |
jordach |
why wool |
| 19:12 |
VanessaE |
ok fine, let's make it cotton |
| 19:12 |
VanessaE |
stand by. |
| 19:12 |
jordach |
you know thats my mod |
| 19:12 |
jordach |
i have image magick on standby |
| 19:13 |
* jordach |
is happy, thanks to some blogger that allows me to get oracles java 7, mc wont run otherwise |
| 19:14 |
VanessaE |
working... |
| 19:14 |
jordach |
okay |
| 19:14 |
jordach |
thank you |
| 19:14 |
VanessaE |
this script might actually be useful for someone else later |
| 19:16 |
jordach |
thanks |
| 19:20 |
jordach |
hows it |
| 19:20 |
jordach |
going* |
| 19:20 |
VanessaE |
almost there. |
| 19:20 |
jordach |
cant you use find and replace |
| 19:20 |
VanessaE |
checking the output of it now |
| 19:21 |
VanessaE |
(I'm using it against a 512px base texture, so it takes a minute to run) |
| 19:23 |
jordach |
VanessaE, -j16 |
| 19:26 |
VanessaE |
working on it still |
| 19:32 |
jordach |
done yet? |
| 19:32 |
VanessaE |
no, having trouble with it |
| 19:34 |
jordach |
oh# |
| 19:34 |
VanessaE |
what moron decided that hue should be a percentage of change!? |
| 19:34 |
VanessaE |
bah |
| 19:35 |
jordach |
tell me about stupid or what |
| 19:40 |
VanessaE |
this complicates things a little. |
| 19:45 |
VanessaE |
make that a LOT |
| 19:45 |
VanessaE |
it isn't a percentage either. it's a value 0-300, in counter-clockwise steps. |
| 19:45 |
VanessaE |
yet somehow a value of 200 is equal to 180 degrees |
| 19:56 |
VanessaE |
this is fucking stupid |
| 19:57 |
VanessaE |
let's see if this does the trick.. |
| 19:59 |
VanessaE |
think I got it |
| 20:05 |
jordach |
yay |
| 20:06 |
VanessaE |
http://digitalaudioconcepts.com/vanessa/hobbies/minetest/gentextures.sh |
| 20:06 |
VanessaE |
ok here's how it works |
| 20:06 |
VanessaE |
1. make a directory |
| 20:06 |
VanessaE |
2. put this script there |
| 20:06 |
VanessaE |
3. make a single texture in bright red, 100% saturation, hue = 0. In other words, as close to #FF0000 as you can get without losing the detail of your texture |
| 20:06 |
VanessaE |
name it red_base_cotton.png |
| 20:07 |
VanessaE |
./gentextures.sh |
| 20:07 |
VanessaE |
(from inside the directory you created) |
| 20:07 |
VanessaE |
it'll create all 77 colors from that single one. |
| 20:09 |
VanessaE |
then use gthumb or ristretto or something to view the images, compare their filenames to the colors you get, and cross-compare with the dyes' actual colors to make sure they came out right |
| 20:09 |
VanessaE |
(from my end, they look right) |
| 20:09 |
jordach |
awesome |
| 20:10 |
VanessaE |
I believe all 32 colors from your original wool are represented here, or at least damn close. |
| 20:16 |
jordach |
that was fast |
| 20:16 |
jordach |
all textures in about 0.75 seconds |
| 20:16 |
VanessaE |
*nod* it's quick with smaller files |
| 20:16 |
VanessaE |
but did it produce what you want? |
| 20:18 |
jordach |
yep |
| 20:18 |
VanessaE |
excellent! |
| 20:19 |
VanessaE |
shall I publish this script? |
| 20:20 |
jordach |
YEP |
| 20:20 |
jordach |
go ahead |
| 20:20 |
jordach |
btw: i could do with a hand on the crafting |
| 20:21 |
jordach |
i understand if i = 1 do this forever, but, how they syntax works just loses me |
| 20:22 |
jordach |
thats where i am stuck |
| 20:25 |
VanessaE |
if i? |
| 20:25 |
VanessaE |
you me for i |
| 20:25 |
VanessaE |
mean |
| 20:25 |
VanessaE |
bah! |
| 20:25 |
VanessaE |
"if i"? |
| 20:25 |
VanessaE |
you mean "for i". |
| 20:25 |
jordach |
yes |
| 20:25 |
VanessaE |
for i = 1, 12 |
| 20:25 |
jordach |
its just the wording gets me in the jam |
| 20:26 |
VanessaE |
means count from 1 to 12, placing the value in 'i'. |
| 20:26 |
VanessaE |
HUES[i] means "the item in location 'i' of the HUES table" |
| 20:27 |
VanessaE |
(which translates to the i'th line in the table as you see it in the code) |
| 20:28 |
VanessaE |
there, added some basic sanity checks - the script requires the presence of a textures/ directory, and the red_base_xxxx.png must be found therein |
| 20:29 |
jordach |
huh |
| 20:29 |
jordach |
prefered it without the textures folder |
| 20:29 |
VanessaE |
should help avoid "your script doesn't work!" complaints later. |
| 20:29 |
jordach |
yep |
| 20:29 |
jordach |
all im asking for is help with unifieddyes crafting intergration |
| 20:29 |
jordach |
i have no idea |
| 20:30 |
VanessaE |
give me a bit to finish this |
| 20:30 |
jordach |
alright |
| 20:30 |
jordach |
i dont expect it done by tomorrow |
| 20:30 |
jordach |
do it bit by bit |
| 20:31 |
jordach |
bas080 can eat my dust |
| 20:31 |
jordach |
(however, i will pass on the universal dying of one block) |
| 20:33 |
VanessaE |
ok, I'm gonna call the folder generated-textures, and the script will just create it and dump the results there |
| 20:33 |
VanessaE |
to avoid cluttering up the current dir. |
| 20:34 |
jordach |
alright i suppose |
| 20:34 |
jordach |
VanessaE, keep the old style dye system: once dyed, no returns |
| 20:34 |
VanessaE |
old style? |
| 20:35 |
jordach |
http://www.youtube.com/watch?v=YKC1skLtbiI&feature=plcp |
| 20:35 |
jordach |
like that |
| 20:35 |
jordach |
MC has the no-return system |
| 20:35 |
VanessaE |
ohh |
| 20:35 |
jordach |
like tbhat |
| 20:36 |
jordach |
that* |
| 20:36 |
VanessaE |
well afaic, you shouldn't be able to un-dye something anyway |
| 20:36 |
jordach |
because that would fuck the colourant up |
| 20:37 |
VanessaE |
but, it might be good if you could convert medium grey and dark grey wool into medium and dark grey colors by adding the appropriate full-saturation dye (since unifieddyes does this internally to craft those colors anyway) |
| 20:37 |
jordach |
(but old wool did this) |
| 20:37 |
VanessaE |
excuse me, medium/dark grey COTTON. |
| 20:37 |
jordach |
yep |
| 20:37 |
jordach |
cotton is catching people off guard |
| 20:38 |
VanessaE |
it's okay, cotton makes more sense since the flowers can be found easily |
| 20:38 |
VanessaE |
maybe call this "fabric" instead of cotton, specifically |
| 20:38 |
VanessaE |
that way one could, say, craft wool, cotton, or some other textile into these blocks. |
| 20:39 |
jordach |
meh |
| 20:39 |
jordach |
i dont plan on any conversions |
| 20:39 |
jordach |
...yet |
| 20:39 |
VanessaE |
plan for the future. |
| 20:39 |
jordach |
i could write a abm that converts wool 32/16 into cotton |
| 20:41 |
jordach |
my gpu is 63'c |
| 20:41 |
VanessaE |
naw |
| 20:41 |
VanessaE |
don't do that, just leave existing stuff where it is |
| 20:41 |
VanessaE |
I'm thinking more like if the player has a shitload of wool "flowers" in their inventory already, maybe they could use those with my dyes to create these generic "textiles" blocks |
| 20:42 |
jordach |
dont worry |
| 20:42 |
VanessaE |
or if some time in the future, animals becomes a standard mod, sheep therein can be sheared for the wool |
| 20:42 |
jordach |
the abm will just remove them on_place |
| 20:42 |
VanessaE |
or the player can just go around collecting cotton flowers. |
| 20:42 |
jordach |
or just remove them for good |
| 20:43 |
jordach |
more minetest.register_alias("wool:flower", "flowers:cotton_flower") |
| 20:43 |
jordach |
old flowers -> ironzorgs |
| 20:44 |
VanessaE |
well as long as it's the standard flower, whether it's ironzorg's original mod or neko259's nature pack or whatever |
| 20:44 |
jordach |
hahahahahahahahahaha, my foss friend told me html5 and flash are bad for the planet......... |
| 20:45 |
jordach |
<offtopic/> |
| 20:50 |
jordach |
night all |
| 20:50 |
jordach |
but ill be on me tablet |
| 20:58 |
|
jordach|tablet joined #minetest-mods |
| 20:58 |
jordach|tablet |
back |
| 21:07 |
jordach|tablet |
sigh |
| 21:09 |
VanessaE |
wb |
| 21:19 |
|
khonkhortisan joined #minetest-mods |
| 21:50 |
jordach|tablet |
ow, that hurts |
| 21:52 |
jordach|tablet |
my bones clicked. |
| 21:52 |
jordach|tablet |
night |
| 23:57 |
|
jordach|tablet joined #minetest-mods |
| 23:57 |
jordach|tablet |
eurgh...fuckin cold |
| 23:57 |
jordach|tablet |
cant sleep, fun |