Jump to content

[MOD] Subspace Corridor - A modders recource [1.1.0]


Dirtyredz

Recommended Posts

Subspace Corridor

 

QjimETA.png


This is a modders recources, designed to mimick /teleport, due to server commands not being available through the api.

 

 

FAQ


#### What does this mod do?

  This mod is a modders recource giving modders access to a teleport command. which they can call inside thier scripts.

 

#### Does the client have to fly through a wormhole?

  No. the picture is just an a nice picture. If you watch the gif below youll see that the client is simply teleported to thier destination.

 

#### does the client need to be an admin?

  No. This script will teleport any player.

 

#### Whats an example use of this mod?

  Thier is a command included with the mod showing how you would call this command via /corridor. For examplea modder could limit the where the script is allowed to teleport allowing servers to give strict teleport command to their players. IE players can teleport back to their home base.

 

#### Why did you make this mod?

  Ive got a mod in development that would not work without access to /teleport. So I made this allowing me to accomplish my mod.

 

#### Can I use this in my mods?

  Yes, Thats why im posting it here. Some credit would be appreciated though.


 

Click to see gif of script in use.

crwVmq9l.jpg

INSTALL


Place the SubspaceCorridor.lua inside data/scripts/player/

Access the script like so:

 

    local x = 1

    local y = 1

    player:addScriptOnce("SubspaceCorridor.lua",x,y)

 

The script will then teleport the player to that destination.

The script has built in safegaurds preventing a teleportation inside of a rift.

In later versions i'll be making the script easier to use with 'require()' this will allow me to return an error if the x,y provided are not reachable. Or if their is an error in teleporting.

 

UNINSTALL


Just delete the files, and remove refrences to them out of your own scripts.

 

Downloads


Version 1.1.0

Subspace-Corridor v1.1.0

 

Version 1.0.0

Subspace-Corridor-V1.0.0

 

Changelog


Changelog

Version 1.1.0

-Added more print outs

-Added check to identify if to close to other entities

-Added configs page, (no required)

-Cleaned up code for performance

 

GITHUB


https://github.com/dirtyredz/Subspace-Corridor

 

 

MY OTHER MODS


 

 

DSM

-A project dedicated to server deployment, management, and exposing features to a web interface.

http://www.avorion.net/forum/index.php/topic,3507.0.html

 

Reganerative Asteroid Fields

-Regenerates designated sectors, and randomly appearing sectors, of minable asteroids.

http://www.avorion.net/forum/index.php/topic,3055.0.html

 

MoveUI

-A mod for adding custom UIs to the screen.

http://www.avorion.net/forum/index.php/topic,3834.0.html

 

Subspace Corridor

-A modders recources, designed to mimick /teleport, due to server commands not being available through the api.

http://www.avorion.net/forum/index.php/topic,3148.0.html

 

Dirty Buoy's

-Allows players to spawn Navigational and Sentry Buoys, More to come soon.

-These buoys have unique features players cant get in normal game play, for example: Navigational buoys are invincible and cannot be moved. A great way to mark a distance wreckage or minarable rich asteroid field.

--Rusty Servers only at the moment.

 

LogLevels

-LogLevels gives modders the ability to set levels for there print functions.

-Aswell as allowing server owners to clean up there consoles, making it easier to read.

http://www.avorion.net/forum/index.php/topic,3799.0.html

 

NoNeutralCore

-A small script for stopping the creation of neutral zones inside the core.

http://www.avorion.net/forum/index.php/topic,3472.0.html

 

DirtyCargoExtender

-Extends the cargo hold of any NPC station discovered with low cargo holds.

--Patreon Members only

 

DirtySecure

-A mod which assigned PVP or PVE sectors based on distance from core.

-Provides Offline Protection to Players ships.

-Provides protection for NPC stations.

--Rusty Servers only at the moment

 

Reganerative Claimable Asteroids

-A mod which respawns claimable asteroids, when theyve been moved or turned into a mine.

-Also will unclaim or unsell an asteroid after a configured number of days

-Keeps the galaxy alive, providing claimable asteroids for new players.

--Rusty Servers only at the moment

 

Death Info

-Used to track cords of a players death point, assigning player values, for other mods to use.

--Rusty Servers only at the moment.

 

/Back

-A command using DeathInfo and Subspace Corridor, to teleport a players drone BACK to there death point.

--Rusty Servers only at the moment.

 

DistCore HUD

-Displays distance to the core on the players hud

--Rusty Servers only at the moment.

 

Any mod listed as Rusty Servers only, are live and active on the Rusty Servers.

Want the mod for your server? Lets talk and ill see about releasing the mod to you/public.

Not all mods on Rusty will remain there, they will eventually be released to the public.

 

 

Link to comment
Share on other sites

  • 3 months later...

Version 1.1.0

-Added more print outs

-Added check to identify if to close to other entities

-Added configs page, (no required)

-Cleaned up code for performance

 

Extremely useful for creating mods that can teleport a player!!

What mod Ideas do you have?

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

Would it be possible to create an if statement to check whether of not a player ship is present in the requested teleport sector? Example would be, check if player requesting teleport has a ship present in the sector they are teleporting to.

 

Something like this; if yes, teleport, if no, "No ship present cannot teleport." My idea is that you can use this resource to teleport to ships in your fleet to help manage them better but not used to teleport to places without a ship present.

 

Found a mining zone? Exit your ship from Drone, teleport to miner, teleport back to ship in the new zone you found. Get back in your ship and continue searching.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...