[Modpack] WorldEdit [worldedit]

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

by sfan5 » Thu Mar 22, 2012 06:21

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: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Mar 22, 2012 11:59

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
I've been gone for a long time
 

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

by sfan5 » Thu Mar 22, 2012 16:37

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 » Tue Mar 27, 2012 18:03

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
 

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

by sfan5 » Tue Mar 27, 2012 18:04

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

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Mar 27, 2012 18:50

needs to be where ever it was launched. if theres a link on your desktop then it needs to be there
I've been gone for a long time
 

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

by Scott » Tue Mar 27, 2012 19:15

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
 

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

by Jordach » Tue Mar 27, 2012 19:24

you need to make the text file look like this:

Code: Select all
{scott}
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

by Scott » Tue Mar 27, 2012 19:38

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

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

by sfan5 » Tue Mar 27, 2012 19:43

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 » Tue Mar 27, 2012 20:18

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 » Tue Mar 27, 2012 20:23

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 » Tue Mar 27, 2012 20:25

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

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

by Temperest » Tue Mar 27, 2012 20:58

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 » Tue Mar 27, 2012 22:01

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
 

celeron55
Administrator
 
Posts: 453
Joined: Tue Apr 19, 2011 10:10
GitHub: celeron55
IRC: celeron55

by celeron55 » Wed Mar 28, 2012 09:59

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: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Wed Mar 28, 2012 13:26

hey sfan! i have a crazy idea for this..why not a //nuke command..which turns EVERYTHING into tnt? :)
I've been gone for a long time
 

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

by Death Dealer » Wed Mar 28, 2012 13:29

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^_^
 

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

by sfan5 » Wed Mar 28, 2012 16:01

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)
 

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

by Jordach » Wed Mar 28, 2012 16:09

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.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

by sfan5 » Wed Mar 28, 2012 16:18

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)
 

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

by Jordach » Wed Mar 28, 2012 16:19

Okay sfan, I am willing to try that later.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

by sfan5 » Wed Mar 28, 2012 16:20

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

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

by Jordach » Wed Mar 28, 2012 16:25

Woot! Finally I can test it.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

by cosarara97 » Wed Mar 28, 2012 18:06

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

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 14 guests