Shared intel rigns with allies, is it possible?

Everything about mods can be found here.

Moderator: Morax

Re: Shared intel rigns with allies, is it possible?

Postby ZLO_RD » 13 Nov 2018, 00:44

Uveso wrote:Range rings are only displayed for selected units.

huh what? i just have all rings for all units always enabled
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO

Re: Shared intel rigns with allies, is it possible?

Postby keyser » 13 Nov 2018, 01:21

I wish devs would do more UI enhancements and less balance fixes.


for the 2556464 times, it's not same dev working on the same stuff; balance fixes are mainly done by none dev.

Also i asked hussar, and he said something like it would require too much to computer. It is well known that's displaying range slows down the game, although displaying only radar/smd would already be a big achievement.
Zockyzock:
VoR is the clan of upcoming top players now
keyser
Councillor - Game
 
Posts: 1870
Joined: 17 May 2013, 14:27
Has liked: 424 times
Been liked: 540 times
FAF User Name: keyser

Re: Shared intel rigns with allies, is it possible?

Postby nine2 » 13 Nov 2018, 01:38

Regarding it's too slow:

- Only display radar and smd as you say
- Only display the 10 biggest radar ranges from the team
- Have a switch to turn it off

Could get fancy and have some icon you hover over that shows all-intel-ranges-on-demand ... ie they only display when your cursor is over it, there is no way to turn it hard-on.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Shared intel rigns with allies, is it possible?

Postby Franck83 » 13 Nov 2018, 02:11

The CPU cost is that it calculates all bp ranges depending on all radar units at each tick or each 2 ticks.

So you can simply add a cooldown. For example, after 3s with no zoom changes, you can draw your radar layer. Then at zoom change or screen scrolling, you erase your radar layer.

So it calculates maximum once per 3s, so no CPU power cost.

Instead of a cooldown, you can trigger the draw of the radar layers with a shortcut.
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 538
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 114 times
Been liked: 122 times
FAF User Name: Franck83

Re: Shared intel rigns with allies, is it possible?

Postby Myxir » 13 Nov 2018, 19:22

one option how to do it (maybe not the best, idc):

1. hook unit.lua in the sim layer
- when a unit is created, inform allies of id + tier + interesting ranges (intel, direct fire), ... via sync tables
- when a unit dies, or alliance breaks, send an info to remove the unit by id
2. in the usersync, upon receiving that info, send it to a new module/file where it is managed
3. upon receiving that info, create range rings (although the "additional camera stuff" solution for rings isn't beautiful, it works)
keep track of created rings so you can remove them once e.g. the unit dies
4. add UI options
- filter by tier / type
- update rings when changing options

note that this applies to static stuff, if the unit is moving around, you also need to update range ring positions
(and the UI might become horribly slow)
Unhappy with balance http://i.imgur.com/q5G2BlM.png
User avatar
Myxir
Evaluator
 
Posts: 791
Joined: 09 Apr 2012, 14:01
Has liked: 94 times
Been liked: 306 times
FAF User Name: Washy (irc)

Re: Shared intel rigns with allies, is it possible?

Postby Uveso » 13 Nov 2018, 23:01

Franck83 wrote:
5. If you don't want a flickering rangering, then you need to refresh the circle every 2 ticks.


Will a 2 ticks refresh fix this issue ? viewtopic.php?f=41&t=16506


nope. This only works static.
You can't use this with mobile objects.

UI refresh cycle and gfx FPS are not sync.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Previous

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest