[Modpack] WorldEdit [worldedit]
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
a cannon..A CANNON..i didn't know 2500x3000x1000 was a cannonsfan5 wrote:Update!
Changelog:Download in first Post!
- Fixed annoying "You havent got the Permission for that"-Bug when punching Blocks
- Each Player now has his/her own P1 and P2
e.g. sfan5 has selected his house while jordan4ibanez has selected a tnt cannon
hello, am program. do language in rust. make computer do. okay i go now.
-
- Moderator
- Posts: 4095
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
That was just an Example!!!jordan4ibanez wrote:a cannon..A CANNON..i didn't know 2500x3000x1000 was a cannonsfan5 wrote:Update!
Changelog:Download in first Post!
- Fixed annoying "You havent got the Permission for that"-Bug when punching Blocks
- Each Player now has his/her own P1 and P2
e.g. sfan5 has selected his house while jordan4ibanez has selected a tnt cannon
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
-
- Member
- Posts: 4534
- Joined: Mon Oct 03, 2011 17:58
- GitHub: Jordach
- IRC: Jordach
- In-game: Jordach
- Location: Blender Scene
you need to make the text file look like this:
Code: Select all
{scott}
-
- Member
- Posts: 180
- Joined: Tue Nov 01, 2011 18:53
That's a good tip, should be in the first post.cosarara97 wrote:Or add the user "singleplayer" to weperms.txt
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
I suggest:
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:
EDIT: In a future version, there will be minetest.is_singleplayer(); thus I recommend doing this:
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
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:
Code: Select all
minetest.get_worldpath().."/weperms.txt"
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
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
- Death Dealer
- Member
- Posts: 1379
- Joined: Wed Feb 15, 2012 18:46
- Location: Limbo
- Contact:
-
- Moderator
- Posts: 4095
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
I am working on thisceleron55 wrote:I suggest: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...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
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:EDIT: In a future version, there will be minetest.is_singleplayer(); thus I recommend doing this:Code: Select all
minetest.get_worldpath().."/weperms.txt"
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
-
- Moderator
- Posts: 4095
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
Update!
Changelog:
Changelog:
- Added .we Postfix when using //save and //load
- Moved weperms.txt to World-Folder
- Moved Positon-Files and *.we Files to WorldEdit-Mod Folder
- Made *.we Files smaller by disabling Comments in Table-Save/Load-Library and stop saving param1|param2 if it's equal to 0
-
- Member
- Posts: 180
- Joined: Tue Nov 01, 2011 18:53
Who is online
Users browsing this forum: No registered users and 43 guests