[Modpack] WorldEdit [worldedit]

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

The Mod is not done and i'm waiting for Textures
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

sfan5 wrote:Update!
Changelog:
  • 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
Download in first Post!
a cannon..A CANNON..i didn't know 2500x3000x1000 was a cannon :D
hello, am program. do language in rust. make computer do. okay i go now.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

jordan4ibanez wrote:
sfan5 wrote:Update!
Changelog:
  • 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
Download in first Post!
a cannon..A CANNON..i didn't know 2500x3000x1000 was a cannon :D
That was just an Example!!!
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Scott
Member
Posts: 100
Joined: Sun Nov 13, 2011 06:35

by Scott » Post

Even with the weperms.txt file in my bin folder, it still gives me permision denied when i try to set blocks. weperms.txt is just a txt document right?
ubuntu would be #1, without unity

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

yep
Whats in your weperms.txt?
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

needs to be where ever it was launched. if theres a link on your desktop then it needs to be there
hello, am program. do language in rust. make computer do. okay i go now.

Scott
Member
Posts: 100
Joined: Sun Nov 13, 2011 06:35

by Scott » Post

hmm, im running minetest just on my desktop in a file, where i go to bin and click the compiled minetest application. in my weperms.txt is : {Scott}
ubuntu would be #1, without unity

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

you need to make the text file look like this:

Code: Select all

{scott}

Scott
Member
Posts: 100
Joined: Sun Nov 13, 2011 06:35

by Scott » Post

but isnt it case sensitive? my username is (capital S) Scott
ubuntu would be #1, without unity

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Scott wrote:but isnt it case sensitive? my username is (capital S) Scott
It's Case Sensitive
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Scott
Member
Posts: 100
Joined: Sun Nov 13, 2011 06:35

by Scott » Post

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.
ubuntu would be #1, without unity

Gilli
Member
Posts: 20
Joined: Sat Mar 17, 2012 21:15

by Gilli » Post

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.
World Edit doesn't work in Single Player, use the multiplayer mod and leave blank the ip adress

cosarara97
Member
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Post

Or add the user "singleplayer" to weperms.txt
:D

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

cosarara97 wrote:Or add the user "singleplayer" to weperms.txt
That's a good tip, should be in the first post.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Scott
Member
Posts: 100
Joined: Sun Nov 13, 2011 06:35

by Scott » Post

thx! adding {singleplayer} to weperms.tx worked perfectly, totaly should be in original post. +1 to the mod, i built my comic book city in less then an hour.
ubuntu would be #1, without unity

User avatar
celeron55
Administrator
Posts: 532
Joined: Tue Apr 19, 2011 10:10
GitHub: celeron55
IRC: celeron55

by celeron55 » Post

I suggest:

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:

Code: Select all

minetest.get_worldpath().."/weperms.txt"
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 minetest.is_singleplayer and minetest.is_singleplayer() then
+        return true
+    end
     local fi = ""
     local f = io.open("weperms.txt", "r")
     if f ~= nil then

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

hey sfan! i have a crazy idea for this..why not a //nuke command..which turns EVERYTHING into tnt? :)
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

jordan4ibanez wrote:hey sfan! i have a crazy idea for this..why not a //nuke command..which turns EVERYTHING into tnt? :)
so when you set it of it crashs the server niceXD
Keep calm and code python^_^

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

celeron55 wrote:I suggest:

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:

Code: Select all

minetest.get_worldpath().."/weperms.txt"
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 minetest.is_singleplayer and minetest.is_singleplayer() then
+        return true
+    end
     local fi = ""
     local f = io.open("weperms.txt", "r")
     if f ~= nil then
I am working on this
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Make some setting like:

worldedit_singleplayer_mode() --settable mode called from single player to enable worldedit for singleplayer.

It's abstract I know, but however, it should work.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Update!
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
Download-Link: http://dl.dropbox.com/u/30267315/worldedit0.4.zip
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Okay sfan, I am willing to try that later.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Download-Link added
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Woot! Finally I can test it.

cosarara97
Member
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Post

Old saves still work right? (I didn't know they had the .we extension xD)
:D

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests