shulrak Posted February 8, 2017 Share Posted February 8, 2017 Sector Overview This mod is probably out of date, I might update it when I come back to the game in the future This is Work In Progress. Please read the known issues before trying it. I am looking for advice on how to make it better to fix the known issues. Description : This mod will give you a menu with the list of station around you. It is showing the type of the station and the name next to it. When you click on one of the entry it will target it. I mainly created this mod because I needed a way to quickly find entities around me. (Like in X3) New : You can also have a list of players and pin point them on the galaxy map. (the list is not persistent for the moment) For now you can add any player (not good for PvP servers). I will add some kind of grouping soon. screenshot : https://puu.sh/tSZhA/cfd3866d2e.png https://puu.sh/u1VwL/4b321f6f8e.png Installation : If you don't have any other mods just drag and drop the two file below. data/scripts/entity/sectoroverview.lua data/scripts/player/mods/sovloader.lua Thanks to Tarantel data/scripts/lib/defaultscripts.lua If you have other mods and they use the same file (defaultscripts.lua), you'll need to add this line to it : ship:addScriptOnce("data/scripts/entity/sectoroverview.lua") Here in image : For server host : The clients will need the script too. For the near future : - Add more entities (gates, ships, asteroid, players around) in new tabs and be able to sort them. - Add a grouping system to see you friends quickly on the galaxy map when you click on them. (this will be a work around until the alliance update) - The text formatting could be better. For the far future : - Get rid of the window and have an HUD like feeling - Add keybinding to cycle through the lists/categories Known Issue : - This script is attached to a ship. So in order to have the icon on the top right, you need to create a new ship. Fixed in 0.3 You'll have the icon when you move to a new sector. - Since the script is attached to a ship, if you remove the script while a ship has the script, the server won't start because it can't find the script. If you want to remove you'll need to keep the file but empty the content. Version History : 0.3 Add players on Galaxy map 0.2 Add Gates list 0.1 Initial release with station list Link to comment Share on other sites More sharing options...
eastwood6510 Posted February 8, 2017 Share Posted February 8, 2017 Nice mod! Link to comment Share on other sites More sharing options...
Devious Posted February 8, 2017 Share Posted February 8, 2017 Loving the mod so far :) Could you also include gates in the overview? Link to comment Share on other sites More sharing options...
shulrak Posted February 8, 2017 Author Share Posted February 8, 2017 Loving the mod so far :) Could you also include gates in the overview? Sure, I forgot about those. :) I think I'll add them as soon as possible, I know they are annoying to find. Link to comment Share on other sites More sharing options...
JayNic Posted February 8, 2017 Share Posted February 8, 2017 Love this idea! I'm sorry, I'm a bit noob with the game, and haven't found the documentation on how to install these... When you say it has to be on the client and the server - what does that mean / where do I need to put them? I've dumped them where you mentioned, but I don't see the button. Sorry for the noob question, and feel free to point me to the documentation I've missed (if it exists yet) Link to comment Share on other sites More sharing options...
shulrak Posted February 8, 2017 Author Share Posted February 8, 2017 Sorry, I'll add more easier explanation in the main topic If you play solo, you don't have to worry about it, just copy/paste into the directories. If you play multiplayer on a dedicated server, you'll need to have thoses files on the server. If you don't see the button, it's maybe because your are in a drone or you didn't create a new ship. Please let me know if it's the issue, else we'll need to investigate together ;) Link to comment Share on other sites More sharing options...
Tarantel Posted February 8, 2017 Share Posted February 8, 2017 Here is a way to insert the Mod with no new ship needs to be created Name this script sovloader.lua if onServer then package.path = package.path .. ";data/scripts/player/?.lua" function initialize() Player():registerCallback("onSectorEntered", "enteredSector" ) end function enteredSector() --Get the players index local sector = Sector() local ships = {sector:getEntitiesByType(EntityType.Ship)} --Get the players ship for _, ship in pairs(ships) do local faction = Faction(ship.factionIndex) if faction.isPlayer then if not ship:hasScript("data/scripts/entity/sectoroverview.lua") then ship:addScriptOnce("data/scripts/entity/sectoroverview.lua") end end end end end Add the sovloader.lua to server.lua after line 49 player:addScriptOnce("story/spawnadventurer.lua") add player:addScriptOnce("player/sovloader.lua") Link to comment Share on other sites More sharing options...
Kane Hart Posted February 8, 2017 Share Posted February 8, 2017 Nice in one my videos I think I was hoping to see a mod like this someday :) Glad it's happening! Link to comment Share on other sites More sharing options...
shulrak Posted February 8, 2017 Author Share Posted February 8, 2017 @Tarantel Thank you very much ! I tried and it works. I'll incorporate on the main thread. Link to comment Share on other sites More sharing options...
Kane Hart Posted February 10, 2017 Share Posted February 10, 2017 finally got around to installing this :) Going to have it in my LP Series from now on thanks :) Link to comment Share on other sites More sharing options...
Kane Hart Posted February 10, 2017 Share Posted February 10, 2017 I decided to remove this before I have issues. Looking forward for this not to be really attached to the ship but also so it's not required to have a blank file down the road if I remove it for whatever reasons. I never did get to work well anyways I mean I did with a new ship but not the method without it as well. Link to comment Share on other sites More sharing options...
shulrak Posted February 10, 2017 Author Share Posted February 10, 2017 I actually decided to get avorion from your let's play so I am glad your are trying out my mod :) Yeah I had issue where the server wouldn't launch because the script was on a ship but couldn't be found because I had it removed. I don't really like it neither, I would like to setup the scripts to only on players, but need to figure out how. Did you try to add the small script from Tarantel ? it solve the problem of founding a new ship and you just need to go to a new sector. Link to comment Share on other sites More sharing options...
Devious Posted February 10, 2017 Share Posted February 10, 2017 Thank you for making this, it seems to be running fine on our server :) Looking forward to gates being added! Link to comment Share on other sites More sharing options...
shulrak Posted February 11, 2017 Author Share Posted February 11, 2017 Hey I've added the gates. :) You'll see a new tab with it. Sorry for the delay, I try to test it as much as I can to check if it doesn't crash anything. Link to comment Share on other sites More sharing options...
Kane Hart Posted February 11, 2017 Share Posted February 11, 2017 Noticed some changes for lua in beta idk if this will help this mod at all: "Implemented a sector.lua script that is always present and that does some sector-static initialization" Link to comment Share on other sites More sharing options...
shulrak Posted February 13, 2017 Author Share Posted February 13, 2017 Update ! I've added a new tab. It is a list of players and you can pin point players on the galaxy map ! https://puu.sh/u1VwL/4b321f6f8e.png Currently the list is not persistenent (you need to add them again if you disconnect) You can add any player of the server, so it might not be good for PvP server for now. I'll add some kind of grouping later. Hope you'll like it ! Link to comment Share on other sites More sharing options...
wildcatluke Posted February 14, 2017 Share Posted February 14, 2017 So I've read through the issues so far and I haven't seen mine listed. I see the button now, and I see the UI but my problem is that my lists are not populating. I attached two screenshots for reference. (Also, sorry if I didn't use the correct format, I don't post to forums often.) Empty Gate List: http://i.imgur.com/80JFrGp.jpg Empty Station List: http://i.imgur.com/lNYJzqW.jpg Link to comment Share on other sites More sharing options...
Kane Hart Posted February 14, 2017 Share Posted February 14, 2017 I only reserve this award for the best! Link to comment Share on other sites More sharing options...
shulrak Posted February 14, 2017 Author Share Posted February 14, 2017 So I've read through the issues so far and I haven't seen mine listed. I see the button now, and I see the UI but my problem is that my lists are not populating. I attached two screenshots for reference. (Also, sorry if I didn't use the correct format, I don't post to forums often.) Empty Gate List: http://i.imgur.com/80JFrGp.jpg Empty Station List: http://i.imgur.com/lNYJzqW.jpg Are you sure you are in a sector with stations/gates ? If yes, I'll look into it this evening I maybe broke something :D @Kane this the best reward I could have hoped for ! Link to comment Share on other sites More sharing options...
wildcatluke Posted February 14, 2017 Share Posted February 14, 2017 So I've read through the issues so far and I haven't seen mine listed. I see the button now, and I see the UI but my problem is that my lists are not populating. I attached two screenshots for reference. (Also, sorry if I didn't use the correct format, I don't post to forums often.) Empty Gate List: http://i.imgur.com/80JFrGp.jpg Empty Station List: http://i.imgur.com/lNYJzqW.jpg Are you sure you are in a sector with stations/gates ? If yes, I'll look into it this evening I maybe broke something :D Yes I moved to different sectors, changed ships, created a new ship, etc. I tried a little bit of everything trying to see if I could do anything to activate it somehow but did not succeed. Any fixes/suggestions would be awesome! Link to comment Share on other sites More sharing options...
shulrak Posted February 15, 2017 Author Share Posted February 15, 2017 So I've read through the issues so far and I haven't seen mine listed. I see the button now, and I see the UI but my problem is that my lists are not populating. I attached two screenshots for reference. (Also, sorry if I didn't use the correct format, I don't post to forums often.) Empty Gate List: http://i.imgur.com/80JFrGp.jpg Empty Station List: http://i.imgur.com/lNYJzqW.jpg Are you sure you are in a sector with stations/gates ? If yes, I'll look into it this evening I maybe broke something :D Yes I moved to different sectors, changed ships, created a new ship, etc. I tried a little bit of everything trying to see if I could do anything to activate it somehow but did not succeed. Any fixes/suggestions would be awesome! This is really weird. Alright then follow this steps : - Launch Avorion, open the Sector Overview, then quit avorion - Go to you %APPDATA%/Avorion folder ( C:\Users\YourName\AppData\Roaming\Avorion ) - You will see a few files beginning with "clientlog" and some dates - Get the latest one (you can sort by latest modified) and attach it here Maybe my script crashed half way through. Link to comment Share on other sites More sharing options...
wildcatluke Posted February 15, 2017 Share Posted February 15, 2017 So I've read through the issues so far and I haven't seen mine listed. I see the button now, and I see the UI but my problem is that my lists are not populating. I attached two screenshots for reference. (Also, sorry if I didn't use the correct format, I don't post to forums often.) Empty Gate List: http://i.imgur.com/80JFrGp.jpg Empty Station List: http://i.imgur.com/lNYJzqW.jpg Are you sure you are in a sector with stations/gates ? If yes, I'll look into it this evening I maybe broke something :D Yes I moved to different sectors, changed ships, created a new ship, etc. I tried a little bit of everything trying to see if I could do anything to activate it somehow but did not succeed. Any fixes/suggestions would be awesome! This is really weird. Alright then follow this steps : - Launch Avorion, open the Sector Overview, then quit avorion - Go to you %APPDATA%/Avorion folder ( C:\Users\YourName\AppData\Roaming\Avorion ) - You will see a few files beginning with "clientlog" and some dates - Get the latest one (you can sort by latest modified) and attach it here Maybe my script crashed half way through. After I dove into the clientlog files I discovered the issue. It was on my end. Somehow I had screwed up the script when I inserted it. Thank you for your help! Link to comment Share on other sites More sharing options...
mathwizi2005 Posted February 27, 2017 Share Posted February 27, 2017 Would it be possible to add this search functionality to the galaxy map as a whole, at least for station finding? (dropdown in galaxy map that highlights discovered sectors with the station you are looking for) I must have spent at least a 5th of my total time in this game just clicking on sector dots looking for the station I need to buy/sell mats from/to. Link to comment Share on other sites More sharing options...
w00zla Posted February 27, 2017 Share Posted February 27, 2017 Would it be possible to add this search functionality to the galaxy map as a whole, at least for station finding? (dropdown in galaxy map that highlights discovered sectors with the station you are looking for) I must have spent at least a 5th of my total time in this game just clicking on sector dots looking for the station I need to buy/sell mats from/to. that would really be great, but from what i've read in the forums and seen in the scripts there is no way of modifying the galaxymap atm :-[ Link to comment Share on other sites More sharing options...
mathwizi2005 Posted February 27, 2017 Share Posted February 27, 2017 Would it be possible to add this search functionality to the galaxy map as a whole, at least for station finding? (dropdown in galaxy map that highlights discovered sectors with the station you are looking for) I must have spent at least a 5th of my total time in this game just clicking on sector dots looking for the station I need to buy/sell mats from/to. that would really be great, but from what i've read in the forums and seen in the scripts there is no way of modifying the galaxymap atm :-[ Well then in the mean time, we could use the existing window the mod added for station searches and use the galaxy map sector select call from the trading system upgrades as an alternative till we get access to the galaxy map (although, I don't think the map can select multiple sectors at once so it may be of limited use.) But yes, given that info, we probably won't be given access to the galaxy map till we get a full API. That or someone would have to entirely recode the galaxy map from scratch to support window overlays or dropdowns as well as multiple sector highlight to support this feature properly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now