20488 Posts in 3442 Topics - by 6863 Members - Latest Member: schlunzer

Author Topic: [Mod] Compass-like Gate Pixel Icons  (Read 5776 times)

Devious

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Rusty's Galaxies and Community
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #15 on: March 02, 2017, 06:54:51 AM »
Yeah I noticed the freaking out about too many spaces, took a while tho!
I don't know what I've done wrong but I have wiped the server after the patch and gates are still being generated, the odd thing is that the gates we've found all were 1 sector outside the barrier.

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #16 on: March 02, 2017, 04:12:07 PM »
Yeah I noticed the freaking out about too many spaces, took a while tho!
I don't know what I've done wrong but I have wiped the server after the patch and gates are still being generated, the odd thing is that the gates we've found all were 1 sector outside the barrier.

Still happening in beta? Can I get a screenshot for it? I'm assuming they happen at a "corner square"?

Below is a code piece from passagemap.lua, line 157
Code: [Select]
local max = Balancing.BlockRingMax + 1
Before the BlockRingMin was taken into action. BlockRingMin is 147, BlockRingMax is 150. Before a system at the edge of the inner ring could be considered outside even though it is visually inside. With this change above in the beta, another but a similar problem may occur; a system at the edge of the outer ring could be considered inside. Both can result in the same problem - a gate may lead from outside to inside visually, but as far as the game goes, it's well within rules.

Basically the generation rules say that there can be no wormholes/gates from outside to inside, only from outside to outside or inside to inside, but you cannot have a perfect circle with pixels - this is the real thing that is causing the problem.

That +1 is more or less for error correction, but I think instead of BlockRingMax+1, BlockRingMax-1 would solve this issue. In short what I'm saying is, change the +1 in the code above to -1, or even -1.5 as it'd be the average. Anything between 147 and 150. Let me know if this helps (I cannot play Avorion due to HDD failure, so I can only guess at this point  :()

Examples (all are the same, last one is more flexible)
Code: [Select]
    local max = Balancing.BlockRingMin + 1.5or
Code: [Select]
    local max = Balancing.BlockRingMax - 1.5or
Code: [Select]
    local max = (Balancing.BlockRingMax + Balancing.BlockRingMin)/2
« Last Edit: March 02, 2017, 06:31:01 PM by lyravega »
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Gatt

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #17 on: March 02, 2017, 04:39:32 PM »
This is an amazing mod.  So simple yet makes travel so much easier(the gate i wanted was usually the last i picked). Thank you very much

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #18 on: March 02, 2017, 04:40:52 PM »
This is an amazing mod.  So simple yet makes travel so much easier(the gate i wanted was usually the last i picked). Thank you very much
Thank you too :)
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #19 on: June 27, 2017, 12:30:55 AM »
v0.004
-Updated for 0.12+ (download the other attachment that says "0.12+" if you are on that version)

If you encounter any problems with either of my mods (this or Detailed Turret Tooltips), contact me directly on Steam (hint: my steam profile link is below my avatar)
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #20 on: July 17, 2017, 01:35:09 AM »
v0.005
-Fixed German localization
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Dirtyredz

  • Full Member
  • ***
  • Posts: 130
  • David McClain - Dirtyredz
    • View Profile
    • Dirtyredz.com
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #21 on: July 17, 2017, 11:46:32 AM »
Hehe that's funny.  That's fix is exactly what I did to fix your mod a week or so ago.  Nice to see were both thinking alike.
David McClain - Dirtyredz
Programmer, Web Development, Modder
http://www.Dirtyredz.com


lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Compass-like Gate Pixel Icons
« Reply #22 on: July 17, 2017, 05:16:12 PM »
Hehe that's funny.  That's fix is exactly what I did to fix your mod a week or so ago.  Nice to see were both thinking alike.

My old trick didn't work. Even if it worked, I realized I didn't include it at the first place. This is easier :P
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement