July 28, 2021, 05:00:19 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: 1 2 [3] 4

Author Topic: Team-only Minimap  (Read 11049 times)

Imp

  • Lucky Member
  • *******
  • Karma: 10
  • Offline Offline
  • Posts: 1195
  • Very Berry Very Scary :0
Re: Team-only Minimap
« Reply #30 on: May 11, 2013, 08:42:42 am »

Maybe let us customize the placement and size, like Lorgan did with the showPing plugin?
Logged
Swingin' Strawberry Banana|Banana Split|Strawberry Explosion|Strikin' Strawberry Kiwi|Rockin' Raspberry|Wild Watermelon

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: Team-only Minimap
« Reply #31 on: May 11, 2013, 08:59:47 am »

I'd like it if you could make the map more medic-friendly.

I don't understand what you mean by "medic-friendly". I find it handy the way it already is. Could you provide a picture of what you would like the minimap to look like? (MSPaint allowed :z5: )

Anyway, I made a new version after reading your comments. Only two things new this time, see spoiler below.
v1.3.1 is now available, download the gml file from this post, as usual, put it in your Plugins folder, enjoy, etc.

(click to show/hide)

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: Team-only Minimap
« Reply #32 on: May 11, 2013, 09:06:15 am »

Awesome, will use.

Could you make a "Max size" option, because atm mapvoting or dirtbowl take up my screen.

Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: Team-only Minimap
« Reply #33 on: May 11, 2013, 09:42:04 am »

Could you make a "Max size" option, because atm mapvoting or dirtbowl take up my screen.

Well the max size actually is the minimap size in the plugin menu :drool:

The problem is that maps are not squares. The plugin allocates a <mapSize> pixel large square, and then the map is scaled to fit that square. Problem is, when you set your minimap to have it working when on truefort, it might cause display issues when on dirtbowl (see image in the spoiler below)

(click to show/hide)

What I could do is allocating a rectangle instead of a square. I'll certainly make it as customizable as Lorgan's showPing so you fellows will be happy :z5:
Well, expect a v1.3.2 soon :hehe:

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Team-only Minimap
« Reply #34 on: May 11, 2013, 10:00:06 am »

you could always make it scrollable
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: Team-only Minimap
« Reply #35 on: May 11, 2013, 10:23:31 am »

There, I slightly changed the file so now the minimap's space is a rectangle instead of a square. You can select its position and its size by clicking "Select minimap position and size", then two points on your screen.

I don't think this deserves to be called 1.3.2 because there's a single change. But I don't want to call it 1.3.1 nor 1.3.1.1, what should I do? :panic:

you could always make it scrollable

Zooming (default: 'R') makes the minimap scroll, it's just centered on your character. What did you mean exactly?
How many times did you change your profile picture this week wareya omg
« Last Edit: May 11, 2013, 10:24:54 am by [FR]YB »
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Team-only Minimap
« Reply #36 on: May 11, 2013, 10:30:13 am »

I meant being able to scroll it inside of its rectangle
like if you could force it to expand to one dimension and scroll along the other
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Catman

  • The Argumental
  • Veteran Member
  • ******
  • Karma: 18
  • Offline Offline
  • Posts: 4381
  • Take on me
    • Yuki Yuki Yuki
Re: Team-only Minimap
« Reply #37 on: May 11, 2013, 11:25:53 am »

It'd be nice if the space we get to see the map in was consistent, so the zoom mode could display just as much as it would in a taller map.
Logged
My style is the best...
...so I challenge you!

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 27
  • Offline Offline
  • Posts: 3657
    • My own website
Re: Team-only Minimap
« Reply #38 on: May 11, 2013, 02:19:40 pm »

i'm assuming it's your plugin that's doing this:
Code: [Select]
ERROR in
action number 1
of Draw Event
for object __newobject815:

Error in code at line 535:
    if(genRed.x/6 < l || genRed.x/6 > l + bgPartWidth || genRed.y/6 < t || genRed.y/6 > t + bgPartHeight) {
                ^
at position 15: Unknown variable x


(happens once when the generator gets destroyed)
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

Wiggles

  • Lucky Member
  • *******
  • Karma: 1
  • Offline Offline
  • Posts: 951
  • nothing he bloops he really bleeps
Re: Team-only Minimap
« Reply #39 on: May 11, 2013, 02:42:13 pm »

I don't understand what you mean by "medic-friendly". I find it handy the way it already is. Could you provide a picture of what you would like the minimap to look like?

You basically fixed it. While healing his team, a medic usually doesn't want to take his focus off where his teammates are. Having to look at the corner makes him do that.

It'd be nice if you could make an option so that if you were healing someone, the map would appear right underneath the "Healing..." window and stay for a second once you've stopped.
Logged


Quote
[19:31] <prime> kawaii desu~~~~~ [19:31] <prime> sugoiii~~
and you say i am a nigga

\esc144aAroundTheWorld\esca

  • stinkier foot
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 2869
Re: Team-only Minimap
« Reply #40 on: July 24, 2013, 03:09:50 pm »

how about the colours of teammates' dots change according to their health (like green for full, yellow for med and red for low) and maybe when teammates are being attacked dots should flash?
anyways good work, will try this right after I post =)
Logged

Catman

  • The Argumental
  • Veteran Member
  • ******
  • Karma: 18
  • Offline Offline
  • Posts: 4381
  • Take on me
    • Yuki Yuki Yuki
Re: Team-only Minimap
« Reply #41 on: August 29, 2013, 01:21:34 pm »

Sentry bubbles appear outside of the map space.

I was also gonna ask if you could implement fixed minimap sizes, because the box is much larger on maps like dustbowl and that means you see more whilst zoomed in whereas smaller maps constrict what you can see when zoomed.
Logged
My style is the best...
...so I challenge you!

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: Team-only Minimap
« Reply #42 on: August 31, 2013, 01:55:56 pm »

Okay it's been a while since I updated that thing, and when I tried to modify it I realized that I did tons of mistakes, generally bad coding (and not just messy coding :p )

So I changed almost everything, but especially two points:
 - the plugin controller now collects the objects to displays in the step event, and only draws them in the draw event (which is the way it should have been the whole time)
 - the old, unique file has been split into multiple files that were put in a folder

Hopefully this will make the code clearer and the bugs rarer.

I added a few features such as scrolling even when not zooming (see how it works in game) and opacity setting.

As usual, feedback and/or bug reports are welcome.

Install
 - Download the attached minimap_v2.zip file
 - Extract it in your Plugins folder
 - You should see "minimap_v2.gml" and a folder called "minimap" containing 6 .gml files.

Note that the plugin will no longer work and even crash your game if you remove the minimap sub-folder without removing the minimap_v2.gml file

maybe when teammates are being attacked dots should flash?
Nope, I think it gives too much information

____
I erased my previous post and reposted this because I fixed a couple bugs and didn't want to double-post. Is this better?

That One Asshole

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 279
  • Guys, Guys, Guys, Guys, Guys, Guys, Listen!
Re: Team-only Minimap
« Reply #43 on: February 17, 2014, 01:12:27 pm »

BEST MOD EVAH!
Logged
My Items
I'm an Idiot

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
Re: Team-only Minimap
« Reply #44 on: April 14, 2015, 11:40:07 pm »

when you're so bored you start caring about things that happen in gg2 part 2

THE LATEST VERSION OF GG2 (2.8.0) SEEMS TO NOT BE COMPATIBLE WITH THE MINIMAP ANYMORE

Due to changes related to background drawing, I suppose
I'll look into it and post a fix as soon as I can

It's actually a really easy fix, paralass means you have not 1 but 8 backgrounds so replace

Code: [Select]
draw_background_part_ext(background_index[0], l, t, bgPartWidth, bgPartHeight, mapx, mapy, zoomscale, zoomscale, c_black, global.yb_minimap_alpha / 100 * 0.4);
draw_background_part_ext(background_index[0], l, t, bgPartWidth, bgPartHeight, mapx, mapy, zoomscale, zoomscale, c_white, global.yb_minimap_alpha / 100 * 0.7);

with

Code: [Select]
for (i = 0; i <= 7; i += 1)
{
    if (background_index[i] != -1)
    {
        draw_background_part_ext(background_index[i], l, t, bgPartWidth, bgPartHeight, mapx, mapy, zoomscale, zoomscale, c_black, global.yb_minimap_alpha / 100 * 0.4);
        draw_background_part_ext(background_index[i], l, t, bgPartWidth, bgPartHeight, mapx, mapy, zoomscale, zoomscale, c_white, global.yb_minimap_alpha / 100 * 0.7);
    }
}


working screenshot with paralas map

download to this extremely lame fix and now im bored again
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Pages: 1 2 [3] 4
 

Page created in 0.052 seconds with 51 queries.