Is it me, or the command "/we-clear all" does not clear any blocks? Would be nice if it did.
Updated the script and the first post.
Is it me, or the command "/we-clear all" does not clear any blocks? Would be nice if it did.
Updated the script and the first post.
Yaaay! Thank you!
waiting for the next game and lua wrappers patch !
updated the first post so that less people get confused and uploaded a new version
Actually I didn't plan to expand this script, wanted just to give the idea about how to use the new wrapper called "LuaWorld" for those who are stuck. There are two reasons for that: 1) @red51 promised the updated area protection script 2) this script should implement access control and it's reasonable to integrate cleaning/filling/etc functions to area protection script.
BTW There is a new method LuaWorld:placeBlock(cx,cy,cz, bx,by,bz, blockID), that I didn't use. It places the desired block to the desired place, so it can be used for drawing huge 3D models in game, just need the 3D coordinates matrix and a little bit of programming.
For those who don't know the RW coordinate system: there are chunks and blocks. Chunks consist of 16x64x16 blocks, so the block coordinate can be global or relative. In LuaWorld wrapper we use 3 chunk coordinates (cx,cy,cz) and 3 relative block coordinates(bx,by,bz).
great job!
@Hagi, That's strange you have java running from syswow, i have both jre and jdk running from program files
Try setting enviroment variable JAVA_HOME to your program files java path or reinstalling java
edit: didn't mention you use windows server
Cory, they had this stuff in the 1st movie(when the blue guy escapes castle), though no cave building tools were demonstrated, you're right
Allright then, if everyone is sharing what he finds in this topic, i'm sharing the game I found tonight xD it's called "life is feudal" and you can find out everything about it yourself Looks veery promising
dunno if that helps, there are functions in api called LuaNpc/synchronizeNpcPosition(no args) and LuaNpc/synchronizeNpcStatus(no args)
@Meltron
That's Gokou Ruri from boku wa tomodachi ga sukunai series. That pic was uploaded to Gravatar a couple of years ago and sometimes bumps up in different forums suddenly .. well I'm ok with that xD
I got info from jar sources, using jd-gui decompiler for search and highlighting syntax. Guess I'll switch to a nightly build and reveal even more for myself about the game lol xD
@JokerAMC It doesn't fix it in this case
another screenshot how it actually happens
plank is placed with grid mode
the lamp that's inside a plank is with grid mode
the lamp that's outside - without grid mode
The base purpose of this script is to help to clear and fill zones with blocks in game.
You can get the fresh world edit script from github! Huge respect to @LordFoobar for redeveloping it from scratch and maintaining right now.
The information below can be outdated! Please read "Readme.md" on github or use ingame /we help command
How to use clear command and how to use help (updated)
Display MoreYou can type /we help for in-game help. Other than that, I just tried and it works, you can do either
or
NOTE: the -c (or -clean is the same) is the same as doing /we clear abs before /we fill.
Type /we help clear or /we help fill for more information.
Hope this helps!
Edit
Sometimes, the chunks will not update after executing a command. This has nothing to do with World Edit. If you don't see any error after executing a command, or any message, exit the world chunk (move away), than come back. You have to move away until the blocks disappear (seeing low details terrain is fine, as long as the blocks are no longer visible), then come back. If the command failed, nothing will have changed. Otherwise, you'll see that the command had succeeded indeed!
Regarding your /we undo, I'm afraid it is not quite possible at the moment, but we'll keep that in mind. And as for keeping the previous selection in memory (i.e. re-using a previous selection instead of selecting again and again the same area), yes, this is something that we can implement.
Using halfblocks
Display MoreOk i talked to Red and for halfblocks you add 195 to the id so did some testing of my own and found you can change the position of the blocks like so
195 halfblock bottom
198 halfblock center
201 halfblock top
If your Half Block id is 37 and you want the block at the top you type /we-fillblock 20137
if the id is, for example, over 100 like say 186 it Would be 20100 + 186 = 20286
example 2 for Half block Center 198 19800 + 186 = 19986
example 3 for Half block Bottom 195 19500 + 186 = 19686
This is the same for All block types with the id over 100
Full List
North East South West is to show you what way the block is facing
North East South West Block type 39 42 45 48 Stair 51 54 57 60 Stair type2 63 66 69 72 Stair type3 75 78 81 84 Stair corner 87 90 93 96 Stair inner corner 99 102 105 108 Ramp 111 114 117 120 Ramp upside down 123 126 129 132 Ramp Half Corner 135 138 141 144 Ramp Inner Corner 147 150 153 156 Ramp Half Corner upside down 159 162 165 168 Ramp Inner Corner upside down 171 174 177 180 Ramp Corner 183 186 189 192 Ramp Corner upside down 195 195 195 195 Half Block bottom 198 198 198 198 Half Block Center 201 201 201 201 Half Block Top 204 207 204 207 Cylinder on its side 219 219 219 219 Pyramid 222 222 222 222 Pyramid upside down
North East South West Block type 225 228 231 234 Ramp On Its Side 237 240 243 246 Arc 249 252 255 258 Arc upside down 261 264 267 270 Arc on its side 273 276 279 282 Stair on its side 285 288 291 294 Stair upside down 297 300 303 306 Stair Corner upside down 309 312 315 318 Stair Inner Corner upside down 003 003 003 003 Cylinder 006 009 012 015 Cylinder Half
This took me some hours guys so a thank you would be nice
Old description and commands
Commands:
/we-select
allows you to start selecting an area with ingame box selector
/we-cancel
to cancel the selection
/we-clear [obj|con|veg|all|abs]
allows you to clear objects / constructions / vegetations
all removes obj+con+veg+ player blocks (doesn't apply to terrain)
abs removes obj+con+veg+player blocks+terrain blocks (clears everything possible)
/we-fill [air|dirt|stone|green|grass]
/we-fill id <number>
Allows you to fill the selected area with specified blocks. It doesn't remove ANY objects or blocks EXCEPT terrain blocks, because it basically replaces them.
Note: game will interprete id>16 as 0 (air).
/we-fill2 [air|dirt|stone|green|grass]
/we-fill2 id <number>
Allows you to fill the selected area with specified blocks. It REMOVES all objects and blocks in the selection before filling with new.
Important note:
if handmade blocks are not disappearing and cannot be destroyed by hand after /we-fill, they will disappear/change after restart (singleuser - goto main menu, server - restart)
You can also try to hit them or to place some block near, sometimes this helps.
How this can be used:
0) You have to be a server admin (be in list) or play singleuser mode
1) start the selector tool with the command /we-select
2) select an area with left mouse button, arrow keys and others (look at the help messages on the bottom of the screen)
3) use /we-clear or /we-fill command to do desired stuff
Changelog
UPD 20.04
The script is now here: https://github.com/RisingWorld/world-edit
old version:
worldedit0203.zip
UPD 17.02.
worldedit1702.zip
I refactored the script a little bit and added a base player:isAdmin() check in /we-clear and /we-fill functions, so that the script can be used on public servers (needs to be checked! Didn't have a chance to check myself!)
UPD 21.02
worldedit2102.zip
Extended /we-clear all functionality.
UPD 02.03
worldedit0203.zip
- /we-fill doesn't clear any blocks
- /we-fill2 clears all blocks
- /we-clear all clears all player-made blocks and vegs
- /we-clear abs clears all above plus terrain blocks
- added green and grass (id=2) for /we-fill and /we-fill2
@Meltron Actually there some more items available from the console, for example tomahawk1 tomahawk2 shovel (omg they DO have shovels, works mostly like rake right now) and other
Noticed something kind of strange today
When I've placed a lamp on the ceiling with grid mode ON, it placed inside of it, while without grid mode, it's placed on the surface, see screens
Is it a predicted behavior?
screenshots..
from below:
from above:
macho man character like in most of the games including this one: "Rising World..."
C'mon the game is in alpha and character customization is in work.
Anyway otherland looks like another mob grinding game, I'm waiting for Black Desert RU/EU release in that case
P.S. "one game witch will surely attract many players" "game witch" ROFLing loud
"[New] "LuaWorld" object, which offers several functions to edit the terrain (see updated AreaProtection script for examples)"
I'm trying myself to get into lua scripting, what I've found is:
LuaWorld can be found in server.jar/lua/wrapper/LuaWorld class
Some of the methods:
public void setBlockDataInArea(int paramInt1, int paramInt2, int paramInt3, byte paramByte1, byte paramByte2, byte paramByte3, int paramInt4, int paramInt5, int paramInt6, byte paramByte4, byte paramByte5, byte paramByte6, int paramInt7)
1 - I was thinking about animal ai, not trader. For example: in some topic one guy suggested to make beacons - so what about a handy pet pig that shows the way home
Actually i even quoted the wrong part in my previous message,.. that happens when you rewrite messages for several times without bothering to reread the quote lol. I surely meant that devs will cover all kinds of interactions (PvE, EvE etc), not that npcs will wander around making grill, orange juice and hm .. such )) But i'd really love to see NPCs do all kind of weird unpredicted stuff depending on the time of the day and other factors)
Seeing them wander around while acting on their needs of food, hunger, and such.
That part 100% will be covered by devs, but I'll try to find out in what state is npc api right now, just in case any interesting ideas about animal behavior
with customization still being highly desired on my end. Wanting to let loose something similar to this
I think that's more about changing or appending game textures/resources. We have to wait until at least 1 humanoid npc Anyway it'll be a hard work to do unless devs provide a users' tool for that, and that's imo unlikely will happen.
Scripting, coding, programming, and whatever
Well it's sometimes not that hard as it seems to be, you probably just need a motivation and right direction;) if it's interesting for you ofcourse )))
sorry for my en, not a native speaker
Question: Do you know of any game that has a large map, or limitless amount of terrain like Minecraft & Rising World that I could create and let custom AI Followers?
What kind of custom AI do you mean? RW already has scripting support, it's badly documented yet afaik, but it's posible to start now with something interesting or funny. IMO it's pointless to create big mods right now, but i'm going to try to make some minigames (don't know lua though lol)