KoffeinFlummi / AGM

Authentic Gameplay Modification for A3 | THIS PROJECT IS NO LONGER BEING WORKED ON. ALL ISSUES AND PULL REQUESTS WILL BE IGNORED.
Other
125 stars 84 forks source link

Improved Marker System #1258

Closed KoffeinFlummi closed 9 years ago

commy2 commented 9 years ago

c/p stuff here, because the other issue is resolved:

The display is "RscDisplayInsertMarker" idd is 54 idc's are [1,2,101,102,1000,1001,1100,1101,2400]

Where: 1 -> OK 2 -> Cancel 101 -> custom text 102 -> marker shape

The loaded gui script ui_f.pbo\scripts\GUI\RscDisplayInsertMarker.sqf contains only the script that expands the (not "localze'd") info box.


http://killzonekid.com/arma-scripting-tutorials-automatic-marker-resizing/ https://community.bistudio.com/wiki/cfgMarkers

(allMapMarkers select 0) setMarkerType "hd_dot"

commy2 commented 9 years ago

None of this is working yet. I'm doing the rsc stuff for now.

http://i.imgur.com/SILttcN.png

nicolasbadano commented 9 years ago

Great!

On Tue, Oct 7, 2014 at 10:35 PM, commy2 notifications@github.com wrote:

None of this is working yet. I'm doing the rsc stuff for now. [image: http://i.imgur.com/SILttcN.png] https://camo.githubusercontent.com/ab2025ecf299b938908aa670ee8406d0b77f635f/687474703a2f2f692e696d6775722e636f6d2f53494c7474634e2e706e67

— Reply to this email directly or view it on GitHub https://github.com/KoffeinFlummi/AGM/issues/1258#issuecomment-58292499.

commy2 commented 9 years ago

https://github.com/KoffeinFlummi/AGM/commit/5112fcff85feb3206f778afca1c52bac57a7f6fe

[{hint str _this}] call AGM_Core_fnc_addMapMarkerCreatedEventhandler;

=> E.g.: ["_USER_DEFINED #0/1"]
nicolasbadano commented 9 years ago

This is only executed on the client which created the marker, right?

commy2 commented 9 years ago

No, it's for everyone.

commy2 commented 9 years ago

I implemented something. Not sure how reliable it works in MP though.

commy2 commented 9 years ago

Seems to work in 2 player LAN on one PC.

commy2 commented 9 years ago

http://i.imgur.com/CHgEWuK.png

CorruptedHeart commented 9 years ago

https://github.com/KoffeinFlummi/AGM/blob/master/AGM_Explosives/ExplosivesUI.hpp#L13-L22 for the new UI slider rather than Operation Flashpoint version but perhaps it is by design.

commy2 commented 9 years ago

So RscXSliderH instead of RscSlider ?

CorruptedHeart commented 9 years ago

Yes

commy2 commented 9 years ago

http://i.imgur.com/hgfn2r6.png

Kinda weird. Looks like you fill something up, instead of rotation.

CorruptedHeart commented 9 years ago

Yeah, the old one seems more suited then.

Trigger81 commented 9 years ago

look really nice. Why not in Version 0.94?

jonpas commented 9 years ago

Have to agree, this has to be in 0.94, except if it's connected to the problem in briefing screen?

commy2 commented 9 years ago

My stuff is mostly done and will be in v0.94. However I think @esteldunedain has some more advanced stuff that won't make it in time. I just snatched the feature, because I had my own ideas,,,

commy2 commented 9 years ago

This is only executed on the client which created the marker, right?

I figured out, that the onUnload event script can contain information about the latest placed marker if used with spawn. Using this I could add a less performance demanding and only locally triggered "onMarkerCreated" eventhandler. The event script would run in suspendable non-sheduled enviroment though. Dunno if we will ever need that though,,,

Kinda like http://killzonekid.com/arma-scripting-tutorials-whos-placingdeleting-markers/, but less complicated.

bux commented 9 years ago

Would it be possible to redraw the marker when changing the rotation value?

commy2 commented 9 years ago

Not that easily. The "preview" marker isn't an actual marker, but a control of the insert marker dialog. And for some reason, you can't rotate controls. http://feedback.arma3.com/view.php?id=19273

Drezzo commented 9 years ago

Unfortunately this conflicts with another map marker system ss 2014-10-13 at 04 20 52

At the moment my group prefers the sweet marker system mod http://www.armaholic.com/page.php?id=27014 but we don't want to remove the maptools and other features of agm_maps. Any chance the markers could be moved into their own pbo or a way that would make players choose which one to use?

commy2 commented 9 years ago

Working.

Bugs go here: https://github.com/KoffeinFlummi/AGM/issues/1351 Compatibility: https://github.com/KoffeinFlummi/AGM/issues/1389