Time |
Nick |
Message |
00:13 |
|
swift110 joined #minetest |
00:17 |
|
swift110 joined #minetest |
00:34 |
|
PsychoVision joined #minetest |
00:48 |
|
lumberJuice joined #minetest |
00:54 |
|
DonBatman joined #minetest |
01:08 |
|
garywhite joined #minetest |
01:28 |
|
ge joined #minetest |
01:28 |
ge |
% |
01:50 |
|
kaeza joined #minetest |
02:00 |
|
GunshipPenguin joined #minetest |
02:05 |
|
ge joined #minetest |
02:09 |
kaeza |
anybody remembers how to do IRC channel redirects? |
02:09 |
kaeza |
anybody remembers how to do IRC channel redirects? |
02:25 |
kaeza |
forgot to disable the failing addon, sorry |
02:26 |
kaeza |
nevermind, got help on #fn |
02:31 |
|
betterthanyou711 joined #minetest |
02:40 |
|
ge left #minetest |
02:48 |
|
ge joined #minetest |
03:04 |
|
TheInformer joined #minetest |
03:04 |
TheInformer |
Can someone help me set up a server? |
03:07 |
TheInformer |
i compiled minetest as -DBUILD_SERVER=TRUE |
03:08 |
TheInformer |
I just need to know how to setup mods and worlds and stuff, also how do i give myself permissions |
03:08 |
|
bkeys joined #minetest |
03:10 |
TheInformer |
also how do I change the location of the minetest.conf and the mods folder as I have two seperate minetest installations and I dont want them to interfere, I am on Ubuntu 16.04 btw |
03:11 |
lumberJuice |
TheInformer most of what you need to know is already explained @ http://wiki.minetest.net/Installing_Mods |
03:12 |
lumberJuice |
as far as mods go |
03:12 |
TheInformer |
I know how to install mods, I just need to know how to change the directory |
03:12 |
TheInformer |
I already downloaded a bunch of mods |
03:14 |
lumberJuice |
the article explains where you need to put them and how to enable them in your world. |
03:14 |
|
fuddie joined #minetest |
03:15 |
lumberJuice |
having two versions could be problematic. both will look in the same .minetest folder for minetest.conf |
03:16 |
TheInformer |
yeah |
03:16 |
TheInformer |
I know... |
03:17 |
TheInformer |
But I want a different conf for the server |
03:19 |
TheInformer |
also am I doing something wrong, isnt ethreal a mapgen? |
03:19 |
TheInformer |
For some reason I cant find it when i make a new world |
03:21 |
kaeza |
how are you running minetestserver? |
03:21 |
lumberJuice |
ethereal is a mod. it will need to be in mod folder and enabled when you configure the world |
03:21 |
|
DFeniks joined #minetest |
03:21 |
kaeza |
for a different conf: --config foobar.conf |
03:21 |
TheInformer |
from terminal |
03:22 |
kaeza |
:I |
03:22 |
kaeza |
I mean, show the actual command you run |
03:22 |
TheInformer |
sudo ./bin/minetestserver |
03:22 |
kaeza |
you're...running as root? |
03:23 |
TheInformer |
yep |
03:23 |
kaeza |
don't do that, please |
03:23 |
TheInformer |
where would I put that config file in .minetest or the root of minetest server |
03:23 |
TheInformer |
ok |
03:23 |
kaeza |
always run minetestserver with its own user, or at least with your user |
03:24 |
TheInformer |
ok |
03:24 |
TheInformer |
what about a seperate mods folder? |
03:25 |
kaeza |
mods are always in ~/.minetest/mods |
03:25 |
kaeza |
or worlddir/worldmods |
03:25 |
TheInformer |
ill do that |
03:25 |
kaeza |
probably better since you don't need to explicitly enable them (AFAIK) |
03:26 |
kaeza |
you can also bundle a full subgame in worlddir/game IIRC |
03:28 |
kaeza |
TheInformer, this may also help: https://gist.github.com/kaeza/83bf160f0f853e3f4130daa42caf76ee |
03:33 |
TheInformer |
Some mods arent working |
03:34 |
TheInformer |
almost all of them |
03:34 |
TheInformer |
nvmd |
03:34 |
TheInformer |
im an idiot |
03:39 |
|
TheInformer left #minetest |
03:45 |
|
TheInformer joined #minetest |
03:45 |
TheInformer |
ok I have another problem |
03:46 |
TheInformer |
Im getting the error "AsyncErr: Failed to bind socket (port already in use?)" |
03:47 |
lumberJuice |
sounds like you already have an instance of the server running on that port |
03:48 |
TheInformer |
nope I checked system monitor and there is nothing else running |
03:49 |
|
Player_2 joined #minetest |
03:50 |
TheInformer |
brb im gonna reset my pc |
03:50 |
TheInformer |
restart* |
03:53 |
|
TheInformer joined #minetest |
03:53 |
TheInformer |
back |
03:54 |
TheInformer |
that worked |
04:03 |
|
redblade7 joined #minetest |
04:09 |
|
Player_2 joined #minetest |
04:33 |
|
Sockbat joined #minetest |
04:48 |
|
ge joined #minetest |
05:23 |
|
Freejack joined #minetest |
05:45 |
|
Not_a_Robot joined #minetest |
06:08 |
kaeza |
<random>a StackOverflow-like Q/A site for modding questions would be nice</random> |
06:09 |
|
clippng joined #minetest |
06:59 |
|
QwertyDragon joined #minetest |
07:08 |
|
Weedy joined #minetest |
07:28 |
|
xSmurf joined #minetest |
07:33 |
|
CWz joined #minetest |
07:41 |
|
kimitux joined #minetest |
07:43 |
Baffy[m]1 |
do nodes in minetest have unique identifiers |
07:44 |
Baffy[m]1 |
like can you track a specific block all over the place |
08:04 |
|
red-001 joined #minetest |
08:22 |
|
gege01_ joined #minetest |
08:30 |
est |
Baffy[m]1: no |
08:31 |
est |
if you mine a node at place A and one at place B and they are the same type, they become indistinguishable |
08:34 |
kaeza |
maybe we can find a solution if you tell what you're trying to do |
08:36 |
|
calculon joined #minetest |
08:47 |
|
ssieb joined #minetest |
08:48 |
Baffy[m]1 |
ehhhhh |
08:48 |
Baffy[m]1 |
i'll figure it out |
09:10 |
MinetestBot |
[git] sofar -> minetest/minetest: FreeType: address font license issues (#5230) eb49009 https://git.io/vD6de (2017-02-14T09:08:17Z) |
09:15 |
sofar |
http://i.imgur.com/ulO8aTJ.png how about this font XD |
09:19 |
PureTryOut[m] |
that's not that bad tbh |
09:19 |
PureTryOut[m] |
it fits the game |
09:21 |
|
aheinecke joined #minetest |
09:24 |
yusf[m] |
Pixel fonts makes less sense when the rest of the forspec isnt pixely. |
09:28 |
Persi[m] |
Somebody should work on a 3d voxel based font spec, it would be a perfect fit for the game |
09:40 |
|
MinetestBot joined #minetest |
09:41 |
|
est31 joined #minetest |
09:49 |
|
JamesTait joined #minetest |
09:52 |
JamesTait |
Good morning all! Happy Tuesday, and happy Extraterrestrial Culture Day! 😃 👽 |
10:03 |
yusf[m] |
Persi: Ellaborate, how would it look? |
10:06 |
|
proller joined #minetest |
10:08 |
|
Gael-de-Sailly joined #minetest |
10:19 |
Persi[m] |
yusf: it would look exactly like a bitmap font, it was meant to be a joke |
10:20 |
yusf[m] |
Persi: Right… I haven't had sufficient amount of coffee yet, it seems. :) |
10:24 |
yusf[m] |
sofar: Like it, but needs to have less horizontal spacing imo |
10:30 |
yusf[m] |
Is this a good player shadow implementation? https://github.com/minetest-australopithecus/minetest-australopithecus-player-shadow/blob/master/mods/player_shadow/init.lua |
10:49 |
|
YuGiOhJCJ joined #minetest |
11:03 |
|
Fixer joined #minetest |
11:05 |
xunto |
yusf[m]: looks ok but I'm almost sure there'll be shadow entities lying everywhere after server crash |
11:13 |
yusf[m] |
xunto: Not that great then. Thanks! Engine support would be preferable… |
11:26 |
|
ensonic joined #minetest |
11:46 |
|
zyabin101 joined #minetest |
11:46 |
PureTryOut[m] |
I see param1 could be used for my own data of the block if paramtype is set to "none". is it possible to edit this value later if you have the node's position? |
11:47 |
PureTryOut[m] |
"node.param1 = 'whatever'" doesn |
11:47 |
PureTryOut[m] |
*doesn't seem to work |
11:47 |
sfan5 |
it's an 8 bit integer |
11:48 |
sfan5 |
you're better off using the metadata in almost all cases |
11:49 |
PureTryOut[m] |
well I only need to store 0 to 7 |
11:50 |
PureTryOut[m] |
so I have the node object. how do I store it then? is there something like node:set_param1() or whatever? |
11:51 |
sfan5 |
you read the node, set param1 to your number and set the node |
11:51 |
PureTryOut[m] |
ooh wait nvm I just need to set the noe at the position |
11:51 |
PureTryOut[m] |
yeah just figured that out ;) |
11:53 |
|
Tux[Qyou] joined #minetest |
11:57 |
* PureTryOut[m] |
sent a long message: PureTryOut[m]_2017-02-14_11:57:12.txt - https://matrix.org/_matrix/media/v1/download/matrix.org/TxOtkNdEHBhfrjsqQYyfNaEq |
11:57 |
sfan5 |
no obviously not |
11:57 |
sfan5 |
node is a table that contains name, param1 and param2 |
11:57 |
sfan5 |
that's it |
11:58 |
sfan5 |
it's seperate from the nodedef which specifies how the node looks |
11:58 |
PureTryOut[m] |
yeah thought so |
11:59 |
PureTryOut[m] |
no problem I guess, I'll just register another block for it |
12:06 |
|
Pie-jacker875 joined #minetest |
12:09 |
|
kimitux joined #minetest |
12:12 |
|
nowhereman joined #minetest |
12:15 |
|
nowhere_man joined #minetest |
12:34 |
|
shangul joined #minetest |
12:58 |
|
tpe joined #minetest |
13:07 |
|
Markow joined #minetest |
13:25 |
|
Jordach joined #minetest |
13:27 |
|
Andy______ joined #minetest |
13:47 |
|
lumberJ joined #minetest |
13:48 |
|
zyabin101 joined #minetest |
13:53 |
|
red-001 joined #minetest |
14:02 |
|
swift110 joined #minetest |
14:17 |
|
STHGOM joined #minetest |
14:38 |
|
hanna joined #minetest |
14:38 |
hanna |
hola |
14:40 |
zyabin101 |
alola :) |
14:40 |
hanna |
hi |
14:41 |
hanna |
im cant good espoñol |
14:41 |
hanna |
and im need help onMinetest Server No.521 |
14:41 |
^7heo |
huehuehue. |
14:42 |
^7heo |
(sorry) |
14:42 |
|
thefamilygrog66 joined #minetest |
14:42 |
hanna |
? |
14:42 |
^7heo |
s/?/br&/ |
14:43 |
hanna |
im need help onMinetest Server No.521 then a poeple grif spawn and make spawn kill |
14:44 |
^7heo |
please try again in English or in Google Translate. |
14:44 |
hanna |
ok |
14:45 |
hanna |
in minetest.no521 make a people spawn kill ( killing poeple on a spawn) what can im do?? |
14:46 |
Benrob0329[m] |
run away, that's about it |
14:46 |
hanna |
and what is then he folow me or other people ? |
14:47 |
Benrob0329[m] |
Unless the server sets up a no pvp area, you just have to run |
14:47 |
Benrob0329[m] |
And defend yourself |
14:47 |
hanna |
oh ok |
14:47 |
Benrob0329[m] |
He'll loose interest eventually |
14:47 |
^7heo |
or just stop playing |
14:47 |
^7heo |
or make your own server. |
14:47 |
^7heo |
so you can kick people who do that. |
14:48 |
hanna |
and how im make owner setver? |
14:48 |
hanna |
*servern |
14:49 |
^7heo |
I find "setver" easier to read than "servern" |
14:49 |
^7heo |
but maybe that's just me. |
14:49 |
^7heo |
in all cases, "server" is the easiest to read ;) |
14:49 |
^7heo |
and to make your own server, I guess you need a server. |
14:49 |
^7heo |
and then download minetest on it, and run it. |
14:50 |
hanna |
ok thx |
14:53 |
yusf[m] |
hanna: You can also setup a server on your own machine, look in the server tab in the main menu http://www.linux.org/attachments/minetest_02-png.829 |
14:57 |
^7heo |
yusf[m]: the user left long before you answerd. |
14:57 |
^7heo |
answered* |
14:57 |
^7heo |
but maybe you don't know that since you're using a crappy client. |
15:00 |
|
YuGiOhJCJ joined #minetest |
15:05 |
|
octacian joined #minetest |
15:05 |
|
octacian joined #minetest |
15:09 |
yusf[m] |
At least I'm trying to help ;P |
15:11 |
|
whitephoenix joined #minetest |
15:18 |
|
YuGiOhJCJ joined #minetest |
15:20 |
^7heo |
true. |
15:30 |
|
rafalcpp joined #minetest |
15:37 |
|
octacian_ joined #minetest |
15:51 |
rdococ |
for gods sake |
15:51 |
rdococ |
when I ctcp someone I can never find where the response is |
16:16 |
|
zyabin101 left #minetest |
16:22 |
|
Markow joined #minetest |
16:37 |
|
rubenwardy joined #minetest |
16:44 |
|
Alcyone joined #minetest |
16:53 |
|
Jordach joined #minetest |
17:00 |
|
Taose joined #minetest |
17:02 |
|
ensonic joined #minetest |
17:05 |
|
Alcyone joined #minetest |
17:17 |
|
Jordach joined #minetest |
17:19 |
|
IhrFussel joined #minetest |
17:21 |
IhrFussel |
It seems that Opera 43 for Linux broke my server website lol... this is what it looks like in the development console http://i.imgur.com/e5ZqZlsl.png |
17:23 |
IhrFussel |
That's Jquery code...unmodified Jquery...that is a huge bug it seems cause it works in Firefox, Opera for Android |
17:23 |
|
Jordach joined #minetest |
17:31 |
|
Krock joined #minetest |
17:31 |
|
Krock joined #minetest |
17:33 |
|
STHGOM joined #minetest |
17:33 |
|
STHGOM joined #minetest |
17:34 |
Calinou |
your web server isn't encoding files right, perhaps |
17:34 |
Calinou |
what web server is it? |
17:34 |
|
Alcyone joined #minetest |
17:35 |
IhrFussel |
Calinou, it's lighttpd with fast-cgi enabled...if it's an encoding problem why doesn't it happen in other browsers? |
17:36 |
Calinou |
browsers can interpret things differently |
17:36 |
Calinou |
personally, I stopped caring about lighttpd, I use nginx or Apache |
17:36 |
Calinou |
maybe try Caddy if you want something lightweight, too |
17:36 |
Calinou |
https://caddyserver.com/ |
17:36 |
Calinou |
so unfortunately I can't help about this |
17:36 |
Calinou |
(also, curious, why did you rename the jQuery file?) |
17:36 |
Calinou |
just call it jquery.js or jquery.min.js :P |
17:37 |
IhrFussel |
lighttpd isn't the problem...the website worked in Opera 42...I updated 1 hour ago and now it's broken |
17:37 |
Calinou |
yes, it works fine in Edge 14, just tested |
17:39 |
IhrFussel |
Calinou, i renamed it cause it's shorter =P also if the encoding was the issue wouldn't the browser also display the index.php source wrong?? It doesn't |
17:39 |
Calinou |
you can set encoding guidelines per file extension, IIRC |
17:41 |
IhrFussel |
Well I posted it as a bug in the Opera forums and wait for moderator approval...we'll see what the devs have to say about it I guess |
17:42 |
IhrFussel |
Opera doesn't even have a public bug tracker (which is stupid IMO) |
17:44 |
Calinou |
proprietary software is starting to have public bug trackers, but it's slow to happen |
17:45 |
IhrFussel |
Calinou, Opera uses Chromium as engine though AFAIK |
17:45 |
Calinou |
sure, it's still proprietary software |
17:46 |
IhrFussel |
Can you tell me where I need to set the character encoding? In lighttpd.conf? |
17:52 |
Calinou |
IhrFussel: I don't use lighttpd, so I don't know, however, I found this via searching: http://serverfault.com/questions/303661/lighttpd-sending-wrong-headers-for-utf-8-content |
17:52 |
Calinou |
http://stackoverflow.com/questions/29349348/specifying-charset-in-http-header-with-lighttpd too |
17:55 |
Alcyone |
Hi all ! Does someone manage a Minetest Server with a systemd deamon here ? |
17:55 |
|
garywhite joined #minetest |
17:57 |
IhrFussel |
Calinou, when I add this line mimetype.assign = ( ".js" => "text/javascript; charset=utf-8" ) Lighttpd won't start :/ |
17:58 |
Calinou |
do a "systemctl status lighttpd" or whatever is the equivalent on your init system :) |
17:58 |
Calinou |
you can see the error message this way |
18:00 |
|
Telesight joined #minetest |
18:00 |
IhrFussel |
It just says code=exited, status=255 |
18:02 |
IhrFussel |
Calinou, sudo service lighttpd status tells more: Duplicate config variable in conditional 0 global: mimetype.assign |
18:02 |
IhrFussel |
2017-02-14 18:56:32: (configfile.c.957) source: /etc/lighttpd/lighttpd.conf line: 34 |
18:03 |
Calinou |
IhrFussel: you probably have a file somewhere else, already defining mimetypes |
18:06 |
IhrFussel |
Well there is a /etc/mime.types file with all the extensions but I don't see charsets anywhere...should I just add it after "application/javascript js" ? |
18:12 |
|
Alcyone2 joined #minetest |
18:17 |
|
H-H-H joined #minetest |
18:27 |
IhrFussel |
Calinou, it's not the encoding...I created a 2nd .js file and it loads fine...both files are "ASCII text" |
18:30 |
IhrFussel |
WHAT...renaming the file helped |
18:34 |
|
GreenDimond joined #minetest |
18:34 |
* GreenDimond |
is afk |
18:43 |
|
DonBatman joined #minetest |
18:46 |
* GreenDimond |
is no longer afk. |
18:48 |
IhrFussel |
So it was most likely a browser cache issue...I cleared it and now even jq.js loads |
18:54 |
|
shamoanjac joined #minetest |
18:54 |
|
Tux[Qyou] joined #minetest |
18:58 |
|
betterthanyou711 joined #minetest |
19:03 |
|
betterthanyou711 joined #minetest |
19:03 |
|
orwell96 joined #minetest |
19:09 |
Taose |
Is there any way to move all nodes between x1, y1, z1 and x2, y2, z2 to another set of coordinates? |
19:10 |
garywhite |
WorldEdit |
19:10 |
Taose |
Looks like I'll be grabbing that eventually |
19:10 |
Taose |
Thank you |
19:10 |
garywhite |
yw |
19:10 |
garywhite |
!next |
19:10 |
MinetestBot |
Another satisfied customer. Next! |
19:11 |
|
orwell96 joined #minetest |
19:29 |
|
GreenDimond joined #minetest |
19:29 |
GreenDimond |
I would like some modding help for anyone who is willing: https://forum.minetest.net/viewtopic.php?f=47&t=4668&p=251515#p251515 (bottom of page) |
19:33 |
Telesight |
Hello all; how do you make a block explosion proof? |
19:35 |
GreenDimond |
perhaps look at the stuff here http://wiki.minetest.net/Category:Explosion-proof |
19:36 |
agaran |
sfan5: I probably fail to understand how you want to not use struct, if I use struct allocated in v3s16_to_key() then it may stop to exist once I return from it.. so I need to make it at caller.. so I am doing, or you want simply to avoid using struct? |
19:36 |
rubenwardy |
Telesight, on_blast |
19:36 |
rubenwardy |
I believe |
19:36 |
rubenwardy |
there's a callback that you'll need to return false in |
19:37 |
GreenDimond |
hi ruben |
19:37 |
rubenwardy |
hi |
19:37 |
GreenDimond |
maybe u can help with my problem? |
19:38 |
Telesight |
Ok, not on_blast = true or something like that ... |
19:38 |
rubenwardy |
GreenDimond: wrong syntax |
19:38 |
GreenDimond |
D: wat? |
19:38 |
GreenDimond |
how so? |
19:38 |
rubenwardy |
the only thing you can do in a table is add things to the table |
19:39 |
rubenwardy |
you can't declare a global function |
19:39 |
GreenDimond |
well using this function replace_donemodel(pos, node) minetest.set_node(pos, {name = "waffles:wafflemaker_open_done", param2 = node.param2}) end, on_place = minetest.after(2.0, replace_fullmodel) doesnt work either |
19:39 |
rubenwardy |
so, 1) move replace_donemodel to be above or below register_node(name, {}) |
19:39 |
GreenDimond |
ok.... |
19:39 |
rubenwardy |
oh, you've done 2 |
19:39 |
GreenDimond |
I have? |
19:39 |
GreenDimond |
what was 2? |
19:40 |
rubenwardy |
2) was replace function() with function |
19:40 |
GreenDimond |
oh yes I dunno why that was there :P |
19:40 |
GreenDimond |
i was prob just trying things |
19:41 |
GreenDimond |
trying... |
19:41 |
rubenwardy |
GreenDimond, https://gist.github.com/rubenwardy/3c6f49995b83a0366f9a6c1cdd86724e |
19:41 |
rubenwardy |
wait |
19:42 |
GreenDimond |
I keep getting invalid core.after invocations. |
19:42 |
rubenwardy |
updated |
19:42 |
rubenwardy |
updated again |
19:43 |
GreenDimond |
trying... |
19:44 |
GreenDimond |
game crashes when placing it. |
19:44 |
|
twoelk joined #minetest |
19:45 |
GreenDimond |
2017-02-14 11:44:17: WARNING[Server]: Undeclared global variable "replace_fullmodel" accessed at /home/alex/.minetest/mods/waffles/nodes.lua:115 2017-02-14 11:44:17: ERROR[Main]: ServerError: Lua: Runtime error from mod 'waffles' in callback item_OnPlace(): /usr/share/minetest/builtin/game/misc.lua:41: Invalid core.after invocation 2017-02-14 11:44:17: ERROR[Main]: stack traceback: 2017-02-14 11:44:17: ERROR[Main]: [C]: in fu |
19:45 |
GreenDimond |
also, will this code work if the item is placed using set_node? |
19:45 |
rubenwardy |
replace minetest.after(2.0, replace_fullmodel, pos, node) with minetest.after(2.0, replace_donemodel, pos, node) |
19:46 |
GreenDimond |
lol that would make sense :P |
19:46 |
GreenDimond |
trying... |
19:47 |
GreenDimond |
thats a new one. |
19:47 |
GreenDimond |
2 things happen |
19:47 |
rdococ |
waffles |
19:47 |
rdococ |
mm |
19:47 |
GreenDimond |
I place it and it disapears instantly |
19:47 |
GreenDimond |
i placed it too fast in a row and my game crashes |
19:48 |
GreenDimond |
2017-02-14 11:46:52: ERROR[Main]: ServerError: Runtime error from mod 'waffles' in callback environment_Step(): Invalid position (expected table got userdata). 2017-02-14 11:46:52: ERROR[Main]: stack traceback: 2017-02-14 11:46:52: ERROR[Main]: [C]: in function 'set_node' 2017-02-14 11:46:52: ERROR[Main]: /home/alex/.minetest/mods/waffles/nodes.lua:92: in function 'func' 2017-02-14 11:46:52: ERROR[Main]: /usr/share/minetest |
19:48 |
GreenDimond |
hi rdococ |
19:48 |
rubenwardy |
you're using the wrong callback |
19:48 |
rdococ |
hi |
19:48 |
GreenDimond |
wrong callback? |
19:49 |
rubenwardy |
on_place is used to place the node, and isn't a callback ran after placing a node |
19:49 |
rubenwardy |
you want after_place_node = function(pos, placer, itemstack, pointed_thing) |
19:50 |
GreenDimond |
it is currently on_place = function(pos, node) so why the itemstack, placer, and pointed_thing? |
19:50 |
|
orwell96 joined #minetest |
19:50 |
|
Alcyone joined #minetest |
19:51 |
rubenwardy |
it's a different callback |
19:51 |
GreenDimond |
oh duh :P |
19:51 |
rubenwardy |
and on_place isn't defined as that anyway |
19:51 |
GreenDimond |
the world is loading. thats a good sign, |
19:51 |
rubenwardy |
if you needed to use on_place, the correct arguments would be on_place = function(itemstack, placer, pointed_thing), |
19:52 |
rubenwardy |
(but you don't want on_place in this case) |
19:52 |
GreenDimond |
after 2(ish) seconds, game crashes. |
19:52 |
rubenwardy |
local node = minetest.get_node(pos) above the minetest.after |
19:53 |
GreenDimond |
and under the after_place stuff? |
19:53 |
rubenwardy |
yeah |
19:53 |
|
Fixer joined #minetest |
19:54 |
GreenDimond |
ok, so um...problem. |
19:55 |
|
STHGOM joined #minetest |
19:55 |
GreenDimond |
code worked. great :) but it doesn't work for its intended purpose. i explain: |
19:57 |
GreenDimond |
I have one model, that when punched with a tool, changes to another model. That model, when punched, changes into this current node we are working with. My goal was for when I punch the one model, it becomes another, waits a few seconds, and changes to another model. So obviously my set_node stuff does not work with after_place or whatever. |
19:58 |
Telesight |
@Rubenwardy It is on_blast = function() end, ;-) |
19:58 |
rubenwardy |
set_node doesn't call after_place |
19:58 |
rubenwardy |
iirc |
19:59 |
rubenwardy |
in the on_punch handler of the node, you'll want something like: |
20:01 |
GreenDimond |
rdococ: just so you know, I am making a waffle mod (useless for the most part, but hey. its waffles). I hope for it to be up by today. |
20:02 |
rubenwardy |
https://gist.github.com/rubenwardy/9d5aa4cc87a45fd790bd546e62af2094 |
20:03 |
GreenDimond |
where does that go? |
20:03 |
GreenDimond |
it looks like for one node... |
20:04 |
rubenwardy |
the node which you punch to go to another node then back to the original |
20:04 |
GreenDimond |
:/ i dont think you got what I meant |
20:05 |
GreenDimond |
Node A node B node C. Punch nodeA ----> turns to nodeB. After a few seconds, nodeB turns into nodeC. |
20:05 |
GreenDimond |
i will post the code in a comment on the link you just posted |
20:08 |
rubenwardy |
oh |
20:08 |
rubenwardy |
well, will update |
20:09 |
rubenwardy |
updated, GreenDimond |
20:09 |
GreenDimond |
this goes on nodeA...oki... |
20:10 |
GreenDimond |
so should I comment out the code currently on nodeC? |
20:11 |
GreenDimond |
oh |
20:11 |
GreenDimond |
you edited my comment. |
20:11 |
GreenDimond |
now im confused. |
20:13 |
GreenDimond |
ok, I got an error. |
20:13 |
GreenDimond |
(while ingame |
20:13 |
GreenDimond |
) |
20:14 |
GreenDimond |
2017-02-14 12:13:05: ERROR[Server]: Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "waffles:wafflemaker_closed_full" at (5015,9,5112) (block (313,0,319)) 2017-02-14 12:13:05: ERROR[Main]: Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "waffles:wafflemaker_closed_full" at (5015,9,5112) (block (313,0,319)) |
20:17 |
GreenDimond |
rubenwardy maybe it was cuz i commented out the other code? |
20:19 |
yusf[m] |
How can I add a trash in survival inventory? |
20:19 |
GreenDimond |
you dont need to. hold an item you want to trash and type /pulverize |
20:21 |
rubenwardy |
invalid node name |
20:21 |
rubenwardy |
you've mistyped the name of the node in set_node |
20:21 |
rubenwardy |
that's what "Not allowing to place CONTENT_IGNORE" means |
20:22 |
GreenDimond |
yup. forgot the waffles: |
20:23 |
GreenDimond |
wooohooo!!! |
20:23 |
GreenDimond |
Thanks ruben! |
20:23 |
sfan5 |
agaran: just avoid using struct at all |
20:24 |
yusf[m] |
GreenDimond: My players won't be able to do that I'm afraid. |
20:24 |
agaran |
sfan5: that I made already, but looking at those serialize inlines |
20:24 |
rubenwardy |
yusf[m]: are you using sfinv? |
20:24 |
yusf[m] |
rubenwardy: Not at the moment, no. Why? |
20:25 |
rubenwardy |
my answer depends on whether you're using that |
20:26 |
rubenwardy |
you'll need to create a detached inventory for each player, which deletes and stacks placed into it using callbacks |
20:26 |
rubenwardy |
and then modify the inventory using set_inventory_formspec |
20:27 |
GreenDimond |
quick n00b question: uses = 3 doesnt work for a tools I made i think because the tool does an on_use and I want it to only be able to be used 3 times. how do this? |
20:27 |
GreenDimond |
*tool |
20:29 |
|
Menche joined #minetest |
20:30 |
|
Pie-jacker875 joined #minetest |
20:31 |
|
AntumDeluge joined #minetest |
20:34 |
GreenDimond |
nevermind that question. |
20:39 |
|
kaeza joined #minetest |
20:40 |
kaeza |
greetings |
20:40 |
garywhite |
Minetest Census is still active https://goo.gl/forms/SCTWl5c59h5oqU4D2 |
20:41 |
GreenDimond |
i believe mah waffle mod is ready for release :D |
20:41 |
GreenDimond |
thx ruben for helps. |
20:43 |
rubenwardy |
welcome |
20:44 |
sfan5 |
agaran: here'S how it should look http://sprunge.us/hTBC?cpp |
20:44 |
agaran |
sfan5: I can commit my version already |
20:45 |
agaran |
sfan5: you used key identifier twice but yes, I got that |
20:46 |
sfan5 |
hm where did I use it twice? |
20:46 |
agaran |
5,6 line |
20:46 |
agaran |
u8 key, datum key |
20:46 |
sfan5 |
oops |
20:46 |
agaran |
:-) |
20:49 |
|
Alcyone joined #minetest |
20:50 |
yusf[m] |
rubenwardy: Sorry, I'm not a coder. :/ |
20:52 |
sfan5 |
agaran: why are you allocating a new buffer for 6 bytes |
20:52 |
agaran |
sfan5: because datum has pointer only not buffer there? |
20:53 |
agaran |
but maybe I don't understand c++.. (surelly I am not..) |
20:53 |
sfan5 |
char buffer_on_stack[123]; |
20:53 |
sfan5 |
char *pointer = &buffer_on_stack; |
20:53 |
sfan5 |
no need to allocate anything |
20:53 |
agaran |
that I know but you wanted it c++ way.. so I thought thats what you mean.. |
20:54 |
sfan5 |
you should prefer the "new[]" operator over "malloc" |
20:54 |
sfan5 |
but if it doesn't make sense to allocate a buffer then don't use either |
20:54 |
agaran |
heh.. I like malloc;) |
21:05 |
|
emunand joined #minetest |
21:13 |
|
GreenDimond joined #minetest |
21:16 |
|
GreenDimond joined #minetest |
21:20 |
|
AndDT joined #minetest |
21:41 |
kaeza |
IRC mod works on 0.4.3 :D |
21:42 |
VanessaE |
0.4.3 still works? :) |
21:42 |
kaeza |
except it does not cleanly shut down because apparently there was no register_on_shutdown yet O.o |
21:42 |
kaeza |
yes it does. did a sinple script to compile everything from 0.4.3 to 0.4.15 |
21:46 |
kaeza |
everything seems to work fine |
21:46 |
agaran |
why so testing? |
21:46 |
kaeza |
the wibbly wobbly hand animation was funny |
21:47 |
|
ensonic joined #minetest |
21:50 |
kaeza |
http://imgur.com/a/69NxR |
21:54 |
kaeza |
yay had forgot about crahes because recursive nodeupdate |
21:57 |
agaran |
sfan5: atabase-gdbm.cpp:64:48: error: invalid const_cast from type ‘char*’ to type ‘unsigned char*’ |
21:58 |
agaran |
sfan5: I tried const_cast first.. |
21:58 |
sfan5 |
huh |
22:04 |
|
DonBatman joined #minetest |
22:33 |
|
Menche_ joined #minetest |
22:36 |
|
dabbill_ joined #minetest |
22:36 |
|
emunander joined #minetest |
22:40 |
|
Freejack_ joined #minetest |
22:41 |
|
mmuller_ joined #minetest |
22:41 |
|
greeter joined #minetest |
22:41 |
|
Azelphur_ joined #minetest |
22:41 |
|
^v^v joined #minetest |
22:41 |
|
fusl_ joined #minetest |
22:46 |
|
jomatv6 joined #minetest |
22:46 |
|
thatgraemeguy joined #minetest |
22:46 |
|
thatgraemeguy joined #minetest |
22:46 |
|
^v joined #minetest |
22:46 |
|
exio4 joined #minetest |
22:47 |
|
nore joined #minetest |
22:47 |
|
stiell joined #minetest |
22:47 |
|
Fixer joined #minetest |
22:49 |
|
kaeza joined #minetest |
22:49 |
|
enricom joined #minetest |
22:50 |
|
nyuszika7h joined #minetest |
22:50 |
|
topsy-N[m] joined #minetest |
22:51 |
|
kattsmisk joined #minetest |
22:52 |
|
emunander joined #minetest |
22:52 |
|
DonBatman joined #minetest |
22:52 |
|
shamoanjac joined #minetest |
22:52 |
|
Gizmokid2005 joined #minetest |
22:52 |
|
KrimZon_2 joined #minetest |
22:59 |
|
diemartin joined #minetest |
23:08 |
|
superfly joined #minetest |
23:09 |
|
DFeniks joined #minetest |
23:25 |
|
Jousway joined #minetest |
23:43 |
|
garywhite1 joined #minetest |