Search found 613 matches

Return to advanced search

Re: [Mod] Security [security]

Released version 1.1 with minor fixes and API additions (for LuaJIT and Minetest—still 0.4.12).
by prestidigitator
Mon Jun 01, 2015 22:30
 
Forum: WIP Mods
Topic: [Mod] Security [security]
Replies: 2
Views: 962

Re: Post your modding questions here

Or use protection. This is pretty much what protection is designed for. For example:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local oldProtect = minetest.is_protected;
function minetest.is_protected(pos, playerName)
   return not minetest.get_player_privs(playerName).build or
          oldProtect(pos, playerName);
end;
by prestidigitator
Mon Jun 01, 2015 18:38
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 658961

Re: [Mod] Mobs Redo [1.12] [mobs]

Do you mean the ';' character at the end of command lines ? if so then no, the LUA code should work regardless of running on win7 or win8 or even linux... All of my mods work fine on windows 8 as they have been tested on many platforms... No. I mean "\n" vs. "\r\n" for text file...
by prestidigitator
Mon Jun 01, 2015 06:18
 
Forum: Mod Releases
Topic: [Mod] Mobs Redo [1.34] [mobs]
Replies: 1026
Views: 249182

Re: What are the chances of my computer being hacked

I wouldn't trust your Lua version. I wouldn't trust it much without a few good pairs of eyes looking it over and pounding it for holes, but it should be as good as the C++ version in general (except that it doesn't have engine support and may not be loaded first). I did cover more of the possibly u...
by prestidigitator
Mon Jun 01, 2015 02:03
 
Forum: Minetest Servers
Topic: What are the chances of my computer being hacked
Replies: 11
Views: 1889

Re: Pick block by middle clicking (on_middleclick)

I'm not sure what it should do. Should the middle click "dig" a node or just highlight it? It's an eyedropper tool. I like it. In non-creative, it would have to somehow move stuff from elsewhere in inventory to the hotbar, or change to a hotbar slot that has the item. I suggest simply fin...
by prestidigitator
Sun May 31, 2015 20:44
 
Forum: Minetest Features
Topic: Pick block by middle clicking (on_middleclick)
Replies: 15
Views: 2549

Re: [Mod] Mobs Redo [1.12] [mobs]

Could it possibly have to do with line termination sequence/characters?
by prestidigitator
Sun May 31, 2015 20:38
 
Forum: Mod Releases
Topic: [Mod] Mobs Redo [1.34] [mobs]
Replies: 1026
Views: 249182

Re: What are the chances of my computer being hacked

Yeah, see it appears they left a LOT of holes in that mod security feature. I wouldn't trust it. For example, they allow you to get the environment table of standard library functions and they leave access to most of the debug library. I don't think I'd consider Minetest any more secure with it than...
by prestidigitator
Sun May 31, 2015 20:13
 
Forum: Minetest Servers
Topic: What are the chances of my computer being hacked
Replies: 11
Views: 1889

Re: What are the chances of my computer being hacked

you could also enable mod security https://github.com/minetest/minetest/commit/3a8c7888807e4483bbdb3edd81c9893f3e2f427d Right. That's why I mentioned that, "the next version of Minetest might have some similar kind of built-in sandboxing." I'm running 0.4.12, and will review the security ...
by prestidigitator
Sun May 31, 2015 19:21
 
Forum: Minetest Servers
Topic: What are the chances of my computer being hacked
Replies: 11
Views: 1889

Re: What are the chances of my computer being hacked

...there were possibilities to get access to the server pc, e.g. with the /lua chatcommand (using io.popen() or os.execute()) or the terminal mod. Yeah. That would be why LuaCmd says: Any player executing this command must have the new "lua" permission, as it is about the most dangerous t...
by prestidigitator
Sun May 31, 2015 09:10
 
Forum: Minetest Servers
Topic: What are the chances of my computer being hacked
Replies: 11
Views: 1889

Re: [Mod Request] Re-generating water source.

SAMIAMNOT wrote:I tested this and none of this worked with lava sources. I tried the "XOXO" thing and no luck.

Correct. They, "fixed," that a release or two ago. Water sources yes; lava sources no. Something about the rarity of obsidian, or doing it like Minecraft, or whatever.
by prestidigitator
Sat May 30, 2015 04:32
 
Forum: WIP Mods
Topic: [Mod Request] Re-generating water source.
Replies: 22
Views: 3530

Re: Smooth voxel surfaces

Terasology has the notion of a node family , which is a set of nodes that are basically considered the same, except that they can have different shapes based on how they are created/placed. In fact for your basic node, you can instance it with any defined shape in the game. Being able to load "...
by prestidigitator
Fri May 29, 2015 19:48
 
Forum: Minetest Features
Topic: Smooth voxel surfaces
Replies: 12
Views: 1819

Re: Xanadu Server

Animals are hopping fences (again?) suddenly. Weren't they always able to do that? (Just speculating, never had animals in an area surrounded by fences) Mobs Redo was enhanced to keep them penned in. I don't know if Xanadu switched to a different version of Mobs Redo, or if it's a bug, or some othe...
by prestidigitator
Fri May 29, 2015 10:47
 
Forum: Minetest Servers
Topic: Xanadu Server
Replies: 2713
Views: 568883

Re: Xanadu Server

Animals are hopping fences (again?) suddenly.
by prestidigitator
Fri May 29, 2015 10:20
 
Forum: Minetest Servers
Topic: Xanadu Server
Replies: 2713
Views: 568883

Re: What's Minetest still missing over Minecraft?

Minecraft is written in Java and Minetest in C++ with Irrlicht, yet Minecraft has better rendering performance which is pretty weird. Not that weird. "Java is slow," is a myth carried over from the 90's. There are a few things that are a bit slower in Java, and a few things that are actua...
by prestidigitator
Fri May 29, 2015 10:16
 
Forum: Minetest General
Topic: What's Minetest still missing over Minecraft?
Replies: 836
Views: 139939

Re: Post your mod requests/ideas here

xinyifly wrote:Will there be a method to walk faster or run? Like double hit W to run.

If you have the "fast" privilege, holding the 'E' key will make you run quite fast.
by prestidigitator
Tue May 26, 2015 00:41
 
Forum: Modding Discussion
Topic: Post your mod requests/ideas here
Replies: 1556
Views: 395444

Re: Post your modding questions here

topic: How do I have the nodes checked above and below the node that the player places and then change those nodes depending on their identities? In other words, the mod consists of one block. If that block is placed either above or below a previously placed block of that type then the mod will cha...
by prestidigitator
Tue May 26, 2015 00:23
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 658961

Re: Post your modding questions here

How do I attach a node to an entity? And I would like to know how to make an entity explode when an event occurs. I believe entities can be attached to entities, but not nodes to entities. You'd have to create an entity that looks like the node. As for explosions, you really have to define what you...
by prestidigitator
Mon May 25, 2015 23:48
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 658961

Re: How to get undeclared global variable warning on interfa

rubenwardy wrote:See minetest.global_exists()

Cool. Added to dev wiki.
by prestidigitator
Sun May 24, 2015 22:21
 
Forum: Modding Discussion
Topic: How to get undeclared global variable warning on interface?
Replies: 12
Views: 2114

Re: Search Minetest mods!

I've tried to sort mods into categories on the Wiki, but doing so manually was so much work (tedious cut&paste) that I gave up. This strikes me as a problem. Wikis are useful things, and Minetest has two good ones. Why not use them to full effect? Categorizing things on a wiki is supposed to be...
by prestidigitator
Sun May 24, 2015 21:53
 
Forum: Minetest-Related
Topic: Search Minetest mods!
Replies: 55
Views: 20678

Re: How to get undeclared global variable warning on interfa

There seems to be a way, I think. Intllib used to do it this way: https://github.com/kaeza/minetest-intllib/commit/2ef1abad55f0e1b8b76169cdb1da3bc3f8749c67#diff-d7d74284e2e39f6c06d199c8e2bedbd0R2 Hmm. It's a way of getting around the warning, true, but it's also perhaps a little subversive to use r...
by prestidigitator
Sun May 24, 2015 21:32
 
Forum: Modding Discussion
Topic: How to get undeclared global variable warning on interface?
Replies: 12
Views: 2114

Re: Define new keys with mod?

Not generally. There's exactly one key which isn't used by the engine and typically isn't used by tools/mods. It's the "use/aux1" key, usually mapped to 'E' on the keyboard. You'd also have to poll for whether the key is currently depressed or not, because there are no events delivered.
by prestidigitator
Sun May 24, 2015 21:05
 
Forum: Minetest General
Topic: Define new keys with mod?
Replies: 5
Views: 822

Re: [Mod] HUD bars [1.2.0] [hudbars]

Question: Have you found anything that guarantees z-order? Seems like for the background and text there's very much an assumption that HUDs added later are drawn on top, but I've never seen anything that specifies this. That means any day there could easily be a minor ("backwards compatible&quo...
by prestidigitator
Sun May 24, 2015 20:36
 
Forum: Mod Releases
Topic: [Mod] HUD bars [1.7.1] [hudbars]
Replies: 90
Views: 28908

Re: How to get undeclared global variable warning on interfa

There's one case where I don't like the warning. Sometimes when creating a namespace you don't want to depend on the order of execution. So you might write this in two or more different places: namespace = namespace or {}; namespace.var = ...; function namespace.func() ... end; I'd be nice to differ...
by prestidigitator
Sun May 24, 2015 20:11
 
Forum: Modding Discussion
Topic: How to get undeclared global variable warning on interface?
Replies: 12
Views: 2114

Re: Xanadu Server

Hmm. Each cow requires 16 wheat and a little growth time to produce. If leather (or a leather substitute) required at least 16 cotton and a little extra, for example, I'd think that would be a reasonable balance. What if, say, 4 wool and 1 palm wax made 1 canvas (or 1 leather if another fabric type ...
by prestidigitator
Sun May 24, 2015 10:26
 
Forum: Minetest Servers
Topic: Xanadu Server
Replies: 2713
Views: 568883

Re: Register_on_generated local variables

For one thing your positional logic probably isn't doing what you expect it to do. Positions are table objects, stored by reference not value. So you can't just assign one variable referring to a table to another to get an independent copy. This code: local p_above = p p_above.y = p.y + 1 local p_be...
by prestidigitator
Sun May 24, 2015 01:28
 
Forum: Minetest Problems
Topic: Register_on_generated local variables
Replies: 8
Views: 707

Re: [Mod Request] Re-generating water source.

Actually, diagonals do count. If you have a hole that is 2x2, and place one water source in opposing corners, the other two corners will become water sources not flowing water. Here is the sample of what I mean. XO OX becomes (where X is the water source.) XX XX Diagonals don't count because you ha...
by prestidigitator
Sat May 23, 2015 19:22
 
Forum: WIP Mods
Topic: [Mod Request] Re-generating water source.
Replies: 22
Views: 3530

Re: [Mod Request] Re-generating water source.

I made renewable wter source in a pool on accident and wanted to know how it happened so I cpuld do it again. Basically you have to let water from one water source flow into another water source? Is that it? Any node that is air or flowing water becomes a water source if it has two or more water so...
by prestidigitator
Sat May 23, 2015 13:28
 
Forum: WIP Mods
Topic: [Mod Request] Re-generating water source.
Replies: 22
Views: 3530

Re: Xanadu Server

Until you can get enough to keep a bag around (or a chest somewhere), use the wifi chest for anything valuable you're not taking on your jaunts.
by prestidigitator
Sat May 23, 2015 03:59
 
Forum: Minetest Servers
Topic: Xanadu Server
Replies: 2713
Views: 568883

Re: Xanadu Server

So I just finished placing rails in my tunnel and find out that rats on the track will stop the cart. I then tried placing stone ladders on top of the stone next to the track to stop the rats from spawning. But it appears rats don't care what they spawn on. Is there any way to stop them from spawni...
by prestidigitator
Sat May 23, 2015 02:25
 
Forum: Minetest Servers
Topic: Xanadu Server
Replies: 2713
Views: 568883

Re: [Mod Request] Re-generating water source.

The only difference between Minetest water and the Game of Life is that water doesn't get smothered by having too many neighbors (well, and that other node types serve as holes/barriers).
by prestidigitator
Sat May 23, 2015 02:22
 
Forum: WIP Mods
Topic: [Mod Request] Re-generating water source.
Replies: 22
Views: 3530
PreviousNext

Return to advanced search

cron