Jump to content

bobisback

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by bobisback

  1. I have re-uploaded without the turret value fixes. If you would like to read up on these changes and reincorporate them please see this thread and merge the files: http://www.avorion.net/forum/index.php/topic,4362.msg23191.html Here is a better implementation of this mod that is client side only, going to see if he wants to incorporate my hotkey changes and we can merge them: https://www.avorion.net/forum/index.php/topic,4421.0.html
  2. Nice change I figured out the same thing right after I bought this game. Please keep in mind this is not a client side fix! The function invokeClientFunction is called by the server and the function BuildTurret is run on the server. So the build button not resetting values will only work if installed on server. In fact the invokeClientFunction change does not even need to be on client. P.S I also made a mod that did a simular thing as this but I also allow the user to hold ctrl, shift, or alt, while hitting the plus and minus buttons on the turret factory to give +5, +10, +50 respectively. If you wanna combine my changes as well into yours and we can just have it all in one place I would be cool with that. Edit: So since you are saving the values and setting them after the refresh it may still work on client-side. Just keep in mind that invokeClientFunction does not work on just client.
  3. Honestly probably going to revert those changes anyway. I only put them in on a request and so far I am not to happy with them. Nor do I truly understand the code behind it, me being a programmer by trade that breaks a major rule of mine.
  4. Easier Turret Factory This mod makes some simple QoL changes to how the turret factory functions to allow the user to build turrets in an easier way. This mod does two primary things, first it allows the user to hold ctrl, shift, or alt, while hitting the plus and minus buttons on the turret factory to give +5, +10, +50 respectively. This mod also only refreshes the UI when you build a new turret instead of resetting all the values for everything. So once you have the turret you want, you can just keep clicking build until there are no more resources left. The changes are pretty simple, but unfortunately will not work unless loaded on the server and the client. Installation instructions - Download the mod from the bottom of this post. - Extract the contents to your root Avorion folder. Aka: "\Steam\steamapps\common\Avorion" - Assuming the file structure stayed in tact it should ask to overwrite turretfactory.lua, just click yes to replace the file. How to use Once installed all turret factories will now have the ability to change different amounts by holding down ctrl, shift, or alt and clicking the plus or minus. Also when you build the turret it will not reset any values. Files changed Overwritten Avorion\data\scripts\entity\merchants\turretfactory.lua Known Issues If you hold more then one down at a time you can get weirdness. Don't really care tbh lol Inside the technical changes The biggest change was changing the line in the buildTurret function that looks like this: invokeClientFunction(player, "onShowWindow") to this: invokeClientFunction(player, "refreshUI"). I also added in some code to handle the key presses. Credits _OMAR_ For turret fix code Rinaldo (Rinart73) For code help Dirtyredz For code help Edit: Removed turret values fix. Easier_Turret_Factory.zip
  5. @_OMAR_ Good work on this! Can I put this into a mod I am about to release?
  6. Thanks for the awesome mod! Quick question, When building ships on an alliance shipyard it uses personal resources. Any reason for this? A bit annoying. Thanks, Bob
  7. Thanks for the awesome mod! Quick question, Is there any way to request traders or change price margin like in the default game? Thanks, Bob
  8. Is the code for this still floating around somewhere? Thanks, Bob
×
×
  • Create New...