Author Topic: Environment Zone 1.1 | Per-client environments | Multiple worlds!  (Read 21412 times)


Environment Zones allow you to easily create multiple environments in a single server. For example:













Quickstart




Environment Zones are mostly controlled using simple chat commands.

To get started, type /createEnvZone {Name}. A zone will automatically be created around your player.



That's nice, but it's completely the wrong shape! To fix that, type /editEnvZone {Name}.



You can edit the zone using the standard duplicator controls. Once you're done, type /editEnvZone.



Now let's make it more interesting! Just go inside the zone, and open the environment GUI. It couldn't be easier!



And... that... was it! Now you have two completely different environments inside and outside of the zone.



But wait, there's more! Every client can see a different environment based on which zone they're in... at the same time!
Want to have multiple, different worlds on your server? Or maybe some really dark interiors? No problem!





Commands



/createEnvZone {name}|Creates a new named environment zone around your player.
/deleteEnvZone {name}|Deletes the environment zone with that name, if it exists.
/deleteEnvZones|Deletes all environment zones! Be careful with this!
/listEnvZones|Shows you which environment zones currently exist.
/editEnvZone {name}|Creates a resizeable selection box to edit the zone.
/editEnvZone|Removes the resizeable box and applies changes in size.
/setEnvZonePersistent {name}|Sets an environment to be persistent.
Persistent environments don't automatically revert to the global one when
you leave the zone, so you could use these like triggers and similar stuff.
/setEnvZoneLocal {name}|Sets an environment to not be persistent.
/saveEnvZones {file}|Saves the current zones to a file for later use.
/loadEnvZones {file}|Loads a set of environment zones from a file.
/deleteEnvZoneSave {file}|Permanently deletes a zone save file! Be careful!
/listEnvZoneSaves|Shows you a list of save files available to load.
/hideEnvZones|Hides the grey frames shown in the screenshots.
/showEnvZones|Brings back the grey frames.
/envHelp|Shows a list of commands.

Obviously, all of these commands require you to be admin.




Installation




This add-on is intended for advanced users only, as it requires a dll to be installed.
It will not work if you skip any of these steps.

1. Install Blockland Loader
   1.1 Download the latest versions of Blockland.exe and BlocklandLoader.dll from this page.
   1.2 Place both files in your Blockland folder. You will need to overwrite Blockland.exe.
   1.3 Create a new folder called modules/ in your Blockland folder.

2. Prevent the launcher from overwriting the new Blockland.exe using one of the two ways:
   2.A Set Blockland.exe to be read-only.
   2.B Create .bat files similar to these and use them:
      To launch a client: start blockland.exe ptlaaxobimwroe -noconsole -nosteam
      To launch a server: start blockland.exe ptlaaxobimwroe -dedicated -nosteam

3. Install Selective Ghosting
   3.1 Download the latest version of SelectiveGhosting.zip from this page.
   3.2 Unzip the file and place SelectiveGhosting.dll in the new modules/ folder.

4. Install New Duplicator
   4.1 Download the latest version of Tool_NewDuplicator.zip from this page.
   4.2 Place it in your add-ons folder and enable it.

5. Install Environment Zones
   5.1 Download the latest version of Server_EnvironmentZones.zip from below.
   5.2 Place it in your add-ons folder and enable it. Done!




Downloads




Current version: 1.1

18.4KB
39.8KB



« Last Edit: April 02, 2017, 10:05:00 AM by Zeblote »

this is NOT a joke

god bless zeblote

its mr kek
super useful ill use for interiors!

edit: prob one of the most useful addon after the new dupie
« Last Edit: April 01, 2017, 01:23:17 PM by Sylvanor »

OHHHHHH
This could be exactly what I've been wanting, but thought I'd never see. but...


Does it work when the player drives through in a vehicle?

How big can the zones be? Can they span a distance as large as the maximum view distance?

Yessssss.
Thank you for doing this and sorry for constantly annoying you :)

Does it work when the player drives through in a vehicle?
Yes.

How big can the zones be? Can they span a distance as large as the maximum view distance?
As big as you want them to be. But keep in mind this isn't a crazy volumetric effect, it simply switches the environment when you enter the zone. You only need to enclose the build itself.


Holy damn...

I've been waiting for this for years and it's finally here!  I'll have to get to making my PC soon.

Yes.
YES
As big as you want them to be. But keep in mind this isn't a crazy volumetric effect, it simply switches the environment when you enter the zone. You only need to enclose the build itself.
The build's diameter will be several times the maximum draw distance. It shall have many areas! I am excited to think about it.


oh man. I just saw the persistent zones. this already has everything I can think of
« Last Edit: April 01, 2017, 01:35:39 PM by Teneksi »

Ive been asking for this for loving years!
I swear to god, if its a joke...




WTF THIS IS THE BEST THING LITERALLY EVER

Hmm.

"BlocklandLoader found no DLLs in the 'modules' directory"

I've got ./modules/SelectiveGhosting.dll ... it's unzipped. What's going awry?