Skip to content

Unique maps for markers#3601

Closed
SzwedzikPL wants to merge 7 commits into
acemod:masterfrom
SzwedzikPL:uniquemaps
Closed

Unique maps for markers#3601
SzwedzikPL wants to merge 7 commits into
acemod:masterfrom
SzwedzikPL:uniquemaps

Conversation

@SzwedzikPL
Copy link
Copy Markdown
Contributor

@SzwedzikPL SzwedzikPL commented Mar 19, 2016

When merged this pull request will:

  • Add unique maps system for markers
  • Can be disabled by settings module (wip)

Demo: https://www.youtube.com/watch?v=fV-k580Ld2A

Todo

  • Proper briefing markers handling
  • Copy markers from other unit map
  • Copy markers from map in player inventory
  • Settings module
  • Public API functions for mission-makers
  • Proper MP testing (im testing on local dedicated for now)
  • Proper polyline markers handling

The polyline markers for now are quite impossible to handle by scripts. There's no way to add polyline marker. It's needed becouse we need to delete and add markers based on what map you have. I hope BI will add tools (proper script support) to allow us to do this.

@nicolasbadano nicolasbadano added the kind/feature Release Notes: **ADDED:** label Mar 19, 2016
@nicolasbadano nicolasbadano added this to the 3.6.0 milestone Mar 19, 2016
@nicolasbadano
Copy link
Copy Markdown
Contributor

Thank you for making the PR @SzwedzikPL. I'll review and provide feedback soon.

@thojkooi
Copy link
Copy Markdown
Contributor

You have a finite map ids but never release any. This results in a growing registery of ids and the risk of long sessions running out of map ids.

@SzwedzikPL
Copy link
Copy Markdown
Contributor Author

New map is generated only if not unique map is taken by player.

@nicolasbadano
Copy link
Copy Markdown
Contributor

New map is generated only if not unique map is taken by player.

@SzwedzikPL, I think @Glowbal is refering to public servers, in which you may have a large number of players connecting and disconnecting between server restarts. In that case, you may very well run out of map ids.

To be honest, I don't see any good way to if a given map will no longer be needed and releasing it's id. Maybe the best solution would be that if you need a new unique map and there's no more left, just reset and use the oldest one that was abandoned. Or something along those lines.

@SzwedzikPL
Copy link
Copy Markdown
Contributor Author

I think public servers should just disable this option. I don't see any benefits of this solution on public server. We can make unique maps disabled by default to make this easier for them.

Comment thread addons/markers/XEH_PREP.hpp Outdated
PREP(sendMarkersJIP);
PREP(setMarkerJIP);
PREP(setMarkerNetwork);
PREP(initInsertMarker);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functions should be in alphabetical order


params ["_item"];

_item == "ItemMap" || _item call FUNC(isUniqueMap)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole function could be replaced with isKindOf.

@thojkooi thojkooi modified the milestones: 3.7.0, 3.6.0 May 7, 2016
@SzwedzikPL
Copy link
Copy Markdown
Contributor Author

I've added note about polyline markers

@jonpas
Copy link
Copy Markdown
Member

jonpas commented Jun 9, 2016

Would this work by making maps magazines? That way you have unique items and don't risk running out of IDs.

@jonpas jonpas mentioned this pull request Jun 9, 2016
6 tasks
@SzwedzikPL
Copy link
Copy Markdown
Contributor Author

Would this work by making maps magazines? That way you have unique items and don't risk running out of IDs.

Is this possible to make magazine a usable map? (i mean map that you can put on map slot in inventory)

@jonpas
Copy link
Copy Markdown
Member

jonpas commented Jun 9, 2016

I am not sure, but you could do something similar to ACRE2. Hide the inventory UI for map and track that in the background on inventory change events maybe.

@nicolasbadano
Copy link
Copy Markdown
Contributor

TBH @jonpas, I much rather keep the current methodology. It's much simpler,
and running out of ids isn't really an important concern.

On Wed, Jun 8, 2016 at 10:10 PM, jonpas notifications@github.com wrote:

I am not sure, but you could do something similar to ACRE2. Hide the
inventory UI for map and track that in the background on inventory change
events maybe.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3601 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AHUcRy9TMh25K-TxaOsfZ9v6flkJtv0mks5qJ2f1gaJpZM4H0fdE
.

@@ -1,20 +1,59 @@
// by commy2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T_T

@thojkooi thojkooi modified the milestones: 3.7.0, Backlog Sep 4, 2016
@bux
Copy link
Copy Markdown
Member

bux commented Oct 27, 2017

@SzwedzikPL Status on this one?
Can we close the pull request? (your branch lives on in your fork)

@BaerMitUmlaut
Copy link
Copy Markdown
Member

Map drawing still has absolutely no script support.

@bux
Copy link
Copy Markdown
Member

bux commented Apr 20, 2020

I'll close this. 4 years and no updates.

@bux bux closed this Apr 20, 2020
@BrettMayson
Copy link
Copy Markdown
Member

Hold my beer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants