Jump to content

[MOD] MoveUI v2.2.1


Dirtyredz

Recommended Posts

MoveUI

 


A mod designed for custom UI elements to be displayed on the players screen, and give them the ability to move those UI's around on thier screen.

 

The best way to show off this mod is with a video so here ya go:

 


 

Heres also a couple picture of the current UI's I have available:

 

CargoNotifier

Tired of getting stopped by the local faction because you forgot you had that suspicious cargo left in your hold?

Well no more, for this UI will display 4 separate alerts when carrying: Illegal, Suspicious, Dangerous, or Stolen Cargo.

 

L3vK83V.png

 

DistCore

This UI will display how far you are from the core of the galaxy.

 

HOwmJjF.png

 

ResourcesUI

Tired of being frustrated that you cant see your resources all the time anymore?

Well this UI is for you, It will display credits and resources on your screen at all times.

 

w7rYjMM.png

 

ScrapyardLicenses

This UI will show all ScrapyardLicenses that are currently active.

The UI will only countdown on Loaded Sectors.

It will aslo change colors depending on time remaining.

 

R26PXPS.png

 

ScrapyardLicenses UI also has the ability to click one of the lines to show that sector on the galaxy map.

SYqJIAy.png

 

SPECIAL THANKS AND CREDIT: dnightmare

For his original idea, and work. He started this idea while working on: http://www.avorion.net/forum/index.php/topic,3850.0.html

He continued to work with me on the best approach to make this UI possible.

Thxs again!!

 

ObjectDetector

This UI will display when your C43 Object Detector Module, has detected a valuable object inside the sector.

not only will it detect it, but it will display what was detected, and maintain the UI until you leave the sector, so you always know if thiers a valuable object inside the sector.

 

6gdhrMw.png

 

SPECIAL THANKS AND CREDIT: dnightmare

He and I infact started work on this together, but he beat me to it.

So I took his work and incorperated my work in to his.

Thxs again!!

 

PVPSector

This UI will display when you are inside a Player Enabled/Disabled Sector.

 

S4SPW7R.png

 

 

Remember with all these UI's they can be Moved, Enabled, Disabled, or even restricted to specific situations (coding skill required)

 

oy5WRlG.png

 

I look forward to everyone feedback, and I welcome ideas for more UI's that I can add.

 

FactionNotifier

This UI will display the factions that are present in the sector.

The names of the factions will be colored in relation to your relationship status with that faction.

 

If you have any one of the 4 cargo licenses for that faction the UI will display the license you have for that faction to the right of thier name. allowing you to quickly identify if youll be safe to transport goods in the sector.

 

Clock

Simple UI to display your computers current time.

 

SPECIAL THANKS AND CREDIT: dnightmare

 

PowerSystems

A simple UI that displays additional details about your power systems.

 

Notepad

A UI that displays notes added via the MoveUI Menu.

 

INSTALLATION


1. Download the zip file

2. Drag and Drop the contents into the /Avorion/ directory,

    File structure:

        /avorion

            |---->/data (do not place inside this directory)

            |---->/mods

                  |---->/MoveUI

 

 

3. Place this line at the bottom of this file: data/scripts/entity/merchants/scrapyard.lua

   

if not pcall(require, 'mods.MoveUI.scripts.entity.merchants.scrapyard') then print('Mod: MoveUI, failed to extend scrapyard.lua!') end

 

 

4. Place these two lines at the bottom of this file: data/scripts/server/server.lua

   

        local s, b = pcall(require, 'mods/MoveUI/scripts/server/server')
        if s then if b.onPlayerLogIn then local a = onPlayerLogIn; onPlayerLogIn = function(c) a(c); b.onPlayerLogIn(c); end end else print(b); end
    

 

 

Note


I wanted to also notify other modders that this mod and all my future mods/patchs will be using this new file structure.

After discussing it with several other modders including koonschi himself, its been agreed upon that a separate directory mimicing the main data directory will be the best approach.

I encourage all modders to adopt this file structure as default, as its likely to became standard possible required for future mods, when avorion supports steam mods.

 

Downloads


MoveUI v2.2.1

 

Older Downloads

 

 

 

Changelog


2.2.1

  --Added 12/24 option for the Clock

 

2.2.0

  --Support for 0.20 security update

 

2.1.1

  --Fixed bug in PowerSystems

  --Changed how Clock UI gets current time

 

2.1.0

  --Added PowerSystems UI

  --Added Notepad UI

  --Adjusted core moveui to use local data storage, increases client and server performance.

  --Decreased the amount of space used by FactionNotifier

  --Dynamic UI's now shrink and grow depending on the individual UI.

 

1.4.0

  --Added Clock UI, Thxs  DNightmare

  --Added FactionNotifier UI

  --Added ability to delete scrapyard licenses data from the UI

  --Removed Vanilla files from zip, follow installation instructions please

 

1.3.0

  --Every UI now utilizes delayed server/client communication

      Will help tremendously with any high ping issues.

      This will also cause a 1-5 sec delay when activating Movement of the UI's

  --Added PVPSector, will show if a sector has pvp damaged Enabled/Disabled.

  --ScrapyardLicenses now has the option to Allow for Clicking to show the sector on the map.

  --ScrapyardLicenses now has the option to show both alliance/player licenses at the same time.

  --CargoNotifier now has the option to have the UI Flash

  --ObjectDetector now has the option to have the UI Flash

 

1.2.1

  -Fixed Entity Creation bug error.

 

1.2.0

  -Added ObjectDetector

      Special Thxs to dnightmare, we were apprently working on this at the same time.

  -Cleaned up the files, and added ExampleUI.lua to easily show others how its done.

  -Added tab support to the main MoveUI interface.

  -Each UI can now build its own tab inside the main MoveUI interface, allowing for more options and descriptions

 

1.1.0

  -Added ScrapyardLicenses

      Special Thxs to dnightmare, for working with me and collaborating on how to get this to work.

  -ResourceUI now had valid currency format

      Special Thxs to dnightmare, for adding this in.

  -MoveUI should work with alliance ships now.

 

GITHUB


https://github.com/dirtyredz/MoveUI

 

 

DONATE


Wanna show your appreciation?

http://dirtyredz.com/donate

 

Become a patron:

https://www.patreon.com/Dirtyredz

 

 

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.

 

 

MoveUI.v2.2.0.zip

Link to comment
Share on other sites

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

many thanks for this nice mode.

i modify the ui for money and res for a dec-point in ResourcesUI.lua with the info from this site:http://lua-users.org/wiki/FormattingNumbers

change '%1,' to '%1.' in the code from Richard Warburton:

...
drawTextRect( comma_value(Player().money), HSplit:partition(0),1, 0,ColorRGB(1,1,1), 15, 0, 0, 0)
...
drawTextRect(comma_value(resources[i+1]), HSplit:partition(i+1),1, 0,Material(i).color, 15, 0, 0, 0)
...
function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('(%d%d%d)','%1.'):reverse())..right
end

Link to comment
Share on other sites

many thanks for this nice mode.

i modify the ui for money and res for a dec-point in ResourcesUI.lua with the info from this site:http://lua-users.org/wiki/FormattingNumbers

change '%1,' to '%1.' in the code from Richard Warburton:

 

Many thanks, to be honest i never even considered having a comma seperated, was so focused on getting to to dispaly properly.

Ill see this gets into the next patch Thxs.

Link to comment
Share on other sites

1.1.0

  -Added ScrapyardLicenses

      Special Thxs to dnightmare, for working with me and collaborating on how to get this to work.

  -ResourceUI now had valid currency format

      Special Thxs to dnightmare, for adding this in.

  -MoveUI should work with alliance ships now.

Link to comment
Share on other sites

1.2.0

  -Added ObjectDetector

      Special Thxs to dnightmare, we were apprently working on this at the same time.

  -Cleaned up the files, and added ExampleUI.lua to easily show others how its done.

  -Added tab support to the main MoveUI interface.

  -Each UI can now build its own tab inside the main MoveUI interface, allowing for more options and descriptions

Link to comment
Share on other sites

  • 2 weeks later...

1.3.0

  --Every UI now utilizes delayed server/client communication

      Will help tremendously with any high ping issues.

      This will also cause a 1-5 sec delay when activating Movement of the UI's

  --Added PVPSector, will show if a sector has pvp damaged Enabled/Disabled.

  --ScrapyardLicenses now has the option to Allow for Clicking to show the sector on the map.

  --ScrapyardLicenses now has the option to show both alliance/player licenses at the same time.

  --CargoNotifier now has the option to have the UI Flash

  --ObjectDetector now has the option to have the UI Flash

 

MoveUI v1.3.0

 

 

 

Link to comment
Share on other sites

  • 1 month later...

I'll be releasing a beta version soon,  although it should for the most part still work.

sadly I cannot get the GUI to even let me go through settings to show so I cant get anything else to display.. My roommate though somehow has it show the defaulted options but cannot access anything else. Thanks for quick reply though

Link to comment
Share on other sites

1.4.0

  --Added Clock UI, Thxs  DNightmare

  --Added FactionNotifier UI

  --Added ability to delete scrapyard licenses data from the UI

  --Removed Vanilla files from zip, follow installation instructions please

 

I am currently working on version 2.0.0 which i hope will have far better performance on the client, aswell as a some more UIs

Link to comment
Share on other sites

  • 2 weeks later...

Hi. Recently tried your mod.

Noticed a few things that I'd like to discuss:

Firstly, FactionNotifier. This is how it looks for me (look at the screenshot). It is supposed to look like this? I mean, it eats a lot of space without any reason and faction name is way bottom.

 

Also, I have a few suggestions/questions:

[*]My friends just want to install modpack and play, they're not very good at settings e.t.c. Usually I'm getting all mods together for our server. Can you add a way to export/import settings? As far as I know devs disabled ability for Lua on client-side to access file system. But you can use something like json/other format string. Just a popup, textbox with settings string. And user can copy/paste it and apply.

[*]Can you please add a way to set UI element position in pixels? It's hard to properly drag ResourcesWindow, for example,

to match ingame resource view.

factionNotifierQuestion.jpg.2c874a66d8b0cf4af771b959b9739529.jpg

Link to comment
Share on other sites

I'll need releasing my next version soon , where moveui uses significantly less interactions between server aswell uses client dude data storage so the mod stores its pixel  and other Serbs on the client.

 

As for the screenshot i still hacer too fix that.

Link to comment
Share on other sites

Once I had the idea to add an UI to print some custom texts. F.e. you need to buy lot of different goods to get your factories running, you can write some kind of shopping list wich you always see on your screen. This would fit perfectly into MoveUI.

I agree, some kind of notepad would be a cool addition.

Link to comment
Share on other sites

2.1.0

  --Added PowerSystems UI

  --Added Notepad UI

  --Adjusted core moveui to use local data storage, increases client and server performance.

  --Decreased the amount of space used by FactionNotifier

  --Dynamic UI's now shrink and grow depending on the individual UI.

 

https://github.com/dirtyredz/MoveUI/releases/download/2.1.0/MoveUI.v2.1.0.zip

Link to comment
Share on other sites

  • 4 weeks later...

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