Scott wrote:then why wouldnt it work? im running latest unstable, on the single player tab were it desnt give me an option to put a username or password anywere.
cosarara97 wrote:Or add the user "singleplayer" to weperms.txt
diff -rupN worldedit/init.lua worldedit_modified/init.lua
--- worldedit/init.lua 2012-02-24 21:31:10.000000000 +0200
+++ worldedit_modified/init.lua 2012-03-28 12:36:48.324525439 +0300
@@ -50,6 +50,9 @@ function string:split(delimiter)
return result
end
function check_player_we_perms(pname)
+ if pname == "singleplayer" then
+ return true
+ end
local fi = ""
local f = io.open("weperms.txt", "r")
if f ~= nil then
minetest.get_worldpath().."/weperms.txt"
diff -rupN worldedit/init.lua worldedit_modified/init.lua
--- worldedit/init.lua 2012-02-24 21:31:10.000000000 +0200
+++ worldedit_modified/init.lua 2012-03-28 12:36:48.324525439 +0300
@@ -50,6 +50,9 @@ function string:split(delimiter)
return result
end
function check_player_we_perms(pname)
+ if minetest.is_singleplayer and minetest.is_singleplayer() then
+ return true
+ end
local fi = ""
local f = io.open("weperms.txt", "r")
if f ~= nil then
jordan4ibanez wrote:hey sfan! i have a crazy idea for this..why not a //nuke command..which turns EVERYTHING into tnt? :)
celeron55 wrote:I suggest: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
diff -rupN worldedit/init.lua worldedit_modified/init.lua
--- worldedit/init.lua 2012-02-24 21:31:10.000000000 +0200
+++ worldedit_modified/init.lua 2012-03-28 12:36:48.324525439 +0300
@@ -50,6 +50,9 @@ function string:split(delimiter)
return result
end
function check_player_we_perms(pname)
+ if pname == "singleplayer" then
+ return true
+ end
local fi = ""
local f = io.open("weperms.txt", "r")
if f ~= nil then
EDIT: Actually, that is not exactly safe... somebody can log in as "singleplayer" on a regular server. 8D I'll figure out a way for this...
Also, weperms.txt should not be in bin/; it should be in the world directory. The bin/ directory is not even writeable on normal Linux installations, and also it isn't actually the bin/ directory, it is the *working directory*, which just happens to always be bin/ on Windows. Thus I suggest: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
minetest.get_worldpath().."/weperms.txt"
EDIT: In a future version, there will be minetest.is_singleplayer(); thus I recommend doing this: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
diff -rupN worldedit/init.lua worldedit_modified/init.lua
--- worldedit/init.lua 2012-02-24 21:31:10.000000000 +0200
+++ worldedit_modified/init.lua 2012-03-28 12:36:48.324525439 +0300
@@ -50,6 +50,9 @@ function string:split(delimiter)
return result
end
function check_player_we_perms(pname)
+ if minetest.is_singleplayer and minetest.is_singleplayer() then
+ return true
+ end
local fi = ""
local f = io.open("weperms.txt", "r")
if f ~= nil then
lkjoel wrote:I'm not exactly getting how this works. I'm using the latest build (both minetest and your mod), and it appears to work fine with //pos1 and //pos2, but when I say //p get, it just gives 0,0,0 on P1 and P2 (which is not the case), so of course, setting does not work.
lkjoel wrote:I'm not exactly getting how this works. I'm using the latest build (both minetest and your mod), and it appears to work fine with //pos1 and //pos2, but when I say //p get, it just gives 0,0,0 on P1 and P2 (which is not the case), so of course, setting does not work.
Death Dealer wrote:lkjoel wrote:I'm not exactly getting how this works. I'm using the latest build (both minetest and your mod), and it appears to work fine with //pos1 and //pos2, but when I say //p get, it just gives 0,0,0 on P1 and P2 (which is not the case), so of course, setting does not work.
it works 100% for me. are you using linux?
lkjoel wrote:I'm using linux, and I did try //p set, and it still didn't work (I punched two different objects). Nothing seems to show up.
RabbiBob wrote:First: can't believe I have just gotten around to installing this and playing with it. Very nice!
Second: Anyone sharing .we files?
Death Dealer wrote:RabbiBob wrote:First: can't believe I have just gotten around to installing this and playing with it. Very nice!
Second: Anyone sharing .we files?
i will sha5re my 5 mese hotel if your interested.
bgsmithjr wrote:So you make a block pattern lets say a castle then instead of rebuilding the castle in another spot it's a keystroke away?
RabbiBob wrote:Death Dealer wrote:RabbiBob wrote:First: can't believe I have just gotten around to installing this and playing with it. Very nice!
Second: Anyone sharing .we files?
i will sha5re my 5 mese hotel if your interested.
Yeah, that'd be good. I'm still a n00b with it and I'm curious to understand better the .we layout. If I see something more complex than I'm able to make in testing, that may help.
Users browsing this forum: No registered users and 76 guests