Time |
Nick |
Message |
01:09 |
|
Verticen joined #minetest |
02:09 |
|
Edgy1 joined #minetest |
02:32 |
|
nowhere_man joined #minetest |
02:50 |
|
tuedel_ joined #minetest |
02:55 |
|
tuedel joined #minetest |
04:08 |
|
rcmaehl joined #minetest |
05:00 |
|
MTDiscord joined #minetest |
05:40 |
|
FeXoR joined #minetest |
07:26 |
|
Flabb joined #minetest |
08:00 |
|
ShadowNinja joined #minetest |
08:07 |
|
Beton joined #minetest |
08:11 |
|
illwieckz joined #minetest |
08:29 |
|
calcul0n joined #minetest |
10:00 |
|
Talkless joined #minetest |
10:13 |
|
FeXoR joined #minetest |
10:24 |
|
proller joined #minetest |
11:04 |
|
sec^nd joined #minetest |
11:19 |
|
Talkless joined #minetest |
11:38 |
|
Fixer joined #minetest |
11:56 |
|
Jhalman joined #minetest |
12:52 |
|
calcul0n_ joined #minetest |
13:49 |
|
Jhalman joined #minetest |
13:53 |
|
SwissalpS joined #minetest |
14:02 |
|
lisac joined #minetest |
14:28 |
|
Pie-jacker875 joined #minetest |
14:33 |
|
Noideawhatmedoi1 joined #minetest |
14:38 |
|
janice61 joined #minetest |
14:48 |
|
absurb joined #minetest |
14:49 |
|
Pest joined #minetest |
15:14 |
|
kamdard joined #minetest |
15:21 |
|
AndDT joined #minetest |
15:40 |
|
Pest|2 joined #minetest |
16:03 |
|
Xorkle joined #minetest |
16:34 |
|
Markow joined #minetest |
17:20 |
|
tango_ joined #minetest |
17:22 |
|
AspireMint joined #minetest |
17:28 |
AspireMint |
Hello, how do i override function from other mod? Mod has public table with functions - t.func() I tried to put that mod into depends.txt, i can even print it, is says it is function. But if i type t.func = function() print("it works") end and call it, it still call old function... is it somehow protected against overriding? |
17:30 |
MTDiscord |
<appguru> AspireMint: The mod probably localizes it. |
17:31 |
MTDiscord |
<appguru> So they have: local func do_something() print("something") end t.do_something = do_something() minetest.register_globalstep(do_something) |
17:31 |
MTDiscord |
<appguru> There probably is a way to replace it though - in the above example, minetest.registered_globalsteps could be modified |
17:32 |
MTDiscord |
<appguru> Would you mind naming mod & function so I can have a look? |
17:33 |
AspireMint |
im 99% sure :D that it is not local, worldedit.transponse, i can read it in my mod, it says it is function. So it should not be local. |
17:34 |
AspireMint |
worldedit.transpose * |
17:34 |
MTDiscord |
<appguru> Worldedit can still do "local transpose = worldedit.transpose" and localize it. Exposure says nothing about mod internals. |
17:36 |
MTDiscord |
<appguru> worldedit.transpose seems to not be localized |
17:36 |
MTDiscord |
<appguru> you should be able to override it |
17:37 |
MTDiscord |
<appguru> check again that your code is correct |
17:48 |
|
Verticen joined #minetest |
17:58 |
|
awell joined #minetest |
18:03 |
AspireMint |
ohhhhhh... wrong fn, did not see it (time for small break).... ok now it works, thanks |
18:09 |
sfan5 |
what reason would you have to override worldedit_transpose though? |
18:10 |
AspireMint |
now worldedit rotates stairs, slabs, torches |
18:10 |
AspireMint |
:) |
18:11 |
|
calcul0n__ joined #minetest |
18:11 |
AspireMint |
actually it was rotate fn |
18:11 |
AspireMint |
my bad... |
18:46 |
|
FeXoR joined #minetest |
19:07 |
|
proller joined #minetest |
19:07 |
|
Lunatrius joined #minetest |
19:09 |
|
FeXoR joined #minetest |
19:10 |
|
appguru joined #minetest |
19:28 |
|
erlehmann_ joined #minetest |
19:38 |
|
olliy joined #minetest |
19:48 |
|
fluxflux joined #minetest |
19:56 |
|
Fixer_ joined #minetest |
19:57 |
|
illwieckz joined #minetest |
20:12 |
|
Fixer joined #minetest |
20:36 |
|
Hawk777 joined #minetest |
20:40 |
|
Zeth joined #minetest |
20:44 |
|
Zeth left #minetest |
20:58 |
|
nowhere_man joined #minetest |
21:01 |
Krock |
MerryFoxmas: u 2 |
21:08 |
rubenwardy |
MerryFoxmas: u 3 |
21:09 |
Viper |
99% |
21:10 |
MerryFoxmas |
hullo, yes, happy holidays all |
21:10 |
MerryFoxmas |
*hands rubenwardy some cookies* |
21:36 |
|
GreenXenith joined #minetest |
22:01 |
|
FreeFull joined #minetest |
22:08 |
Calinou |
/giveme cookies:cookie_chocolate -1 |
22:10 |
rubenwardy |
num |
22:10 |
rubenwardy |
-u+o |
22:13 |
|
milkt_ joined #minetest |
22:20 |
|
sec^nd joined #minetest |
22:54 |
|
Taoki joined #minetest |
22:57 |
|
illwieckz joined #minetest |
23:37 |
|
FreeFull joined #minetest |