Jump to content

[Mod] /disttocore


Salminar

Recommended Posts

Heyas,

 

I have been looking for the boss lately and was a bit in trouble to make them appear and then having to manualy calculate the distance from the core again and again to be sure i'm in range bored me a bit, so i used Aki's command mods to make my own really simple one that would display it to player.

 

So thanks to him for the original sethome script i took as model

 

 

Files :

data\scripts\player\cmd\disttocore.lua

data\scripts\commands\disttocore.lua

 

Link to comment
Share on other sites

Again, the same case as with /agoods. With few changes I would gladly accept pull request with this command for the package. You will be listed as an author along with e.g. me and your command will be accessible easier through single package (when the Steam Workshop support will come out).

Link to comment
Share on other sites

Yes of course, feel free to add it to your package. Since i used your code it's the least i can do lol.

 

Point is I wanted you to add it so it will remain your contribution in commits. ;)

 

Or, I think, I could rip it from your repository along with your commits, heh.

Link to comment
Share on other sites

  • 2 weeks later...

If you play on single player, most of the scripts will work just fine. The way this game is designed is a bit different from most.

Basically you have one script, and only one part is used on the client and another on the server. Don't know if what i say is clear but, it will be ok in single  player and far easier to use in single player, like most of the scripts you will find here.

Link to comment
Share on other sites

All of Aki's commands seem to be working, but when I type /disttocore or /help disttocore into the console, nothing is printed out. Both disttocore.lua files are installed in their correct spots. Am I looking in the wrong place? Any help?  :(

Link to comment
Share on other sites

I'm not sure, but I'm most certainly running it on my singleplayer world.

*Edit: this is the server file.

[Game]
Seed=Bl5MlqBdMQ
Difficulity=-1
InfiniteResources=false
CollisionDamage=0
BigWreckageDespawnTime=1800
SmallWreckageDespawnTime=900
LootDiminishingFactor=0.00499999989
ResourceDropChance=0.400000006
TurretDropChanceFromTurret=0.0250000004
TurretDropChanceFromCraft=0.25
TurretDropChanceFromBlock=0.00499999989
SystemDropChanceFromCraft=0.200000003
SystemDropChanceFromBlock=0.00499999989
ColorDropChanceFromCraft=0.0500000007
ColorDropChanceFromBlock=0.00249999994
sameStartSector=true
startUpScript=data/scripts/server/server.lua
startSectorScript=startsector
[system]
saveInterval=600
sectorUpdateTimeLimit=300
emptySectorUpdateInterval=0.5
workerThreads=3
generatorThreads=2
weakUpdate=true
immediateWriteout=true
[Networking]
port=27000
broadcastInterval=5
isPublic=false
isListed=false
isAuthenticated=false
useSteam=true
[Administration]
maxPlayers=10
name=jupiter878's Server
description=An Avorion Server
password=
accessListMode=Blacklist

Link to comment
Share on other sites

Well i'm sorry but i can't find the issue. The script is pretty simple and inspired from aki's command pack and is even now integrated in.

 

The only thing that could prevent the script from running is when you install it on a distant server, you need then to allow it for all players, but it don't seem to be your issue.

 

So i really don't know what's wrong, it run well on my computer and on the distant linux server i use for tests.

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...