September 20, 2020, 05:22:58 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]

Author Topic: [Client-Side] MapStuffs v1.1  (Read 2096 times)

FlareFireburst

  • Junior Member
  • **
  • Karma: 35
  • Offline Offline
  • Posts: 197
  • (ಠ ∩ಠ)
    • YouTube
[Client-Side] MapStuffs v1.1
« on: November 16, 2015, 08:13:37 pm »

MapStuffs is a WIP plugin that allows players to replace sprites and sounds on certain maps.
For example:

...On MvM maps, you could set the character sprites to Mecha sprites, then have the original sprites be used afterwards on other maps.
(The weird shoulder thing that happens in the second half of the gif is due to the sprites using the same transparency color as the shoulders...  :z8:)

I plan on adding support for music to play during specific maps as well.

So, how can this be used? Well, map-makers can provide links to custom sprites/sounds/etc. in order to enhance the map in various ways. An example is making a feudal-age Japanese-styled map, and making the characters and weapons into Samurais and crossbows, respectively, as well as including custom music. Or, as shown above, using MvM sprites on MvM maps.

(click to show/hide)

TODO:
  • Add support for Spriteloader by loading from the Sprites folder instead of originals :c8:
  • Add custom sounds support :c8:
  • Add custom music
  • Provide options ingame
  • Add button to reload sprites ingame

Sprite Packs:
(click to show/hide)
« Last Edit: November 17, 2015, 05:12:07 pm by FlareFireturkey »
Logged

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: [Client-Side] MapStuffs v1.0
« Reply #1 on: November 17, 2015, 10:18:48 am »

Very interesting..
Logged

<3 Bustatunez

FlareFireburst

  • Junior Member
  • **
  • Karma: 35
  • Offline Offline
  • Posts: 197
  • (ಠ ∩ಠ)
    • YouTube
Re: [Client-Side] MapStuffs v1.1
« Reply #2 on: November 17, 2015, 03:29:25 pm »

UPDATE: Added support for custom sounds and the plugin now reads the Sprites/Sounds folders first (if there is one) before loading old sprites in, allowing you to keep your original sprites in one place.

Edit: Added a new sprite pack as well.
« Last Edit: November 17, 2015, 05:12:35 pm by FlareFireturkey »
Logged

ZaSpai

  • Ray Bann's Minion
  • *
  • Karma: 14
  • Offline Offline
  • Posts: 2239
  • "Eeh?! We're just allies!"
Re: [Client-Side] MapStuffs v1.1
« Reply #3 on: November 17, 2015, 06:10:54 pm »

All I know is that Schaden will be jumping in joy since that adcp map he made van now have custom music or something lol
Logged
Right behind you when you most expect it | classicwell master race

Fuzion

  • Lucky Member
  • *******
  • Karma: 22
  • Offline Offline
  • Posts: 921
  • Blind asian.
Re: [Client-Side] MapStuffs v1.1
« Reply #4 on: November 17, 2015, 09:13:24 pm »

O_O
Will definetly use.
Logged

Atlus

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 511
  • Jihad me at Hello
Re: [Client-Side] MapStuffs v1.1
« Reply #5 on: November 18, 2015, 11:26:01 pm »

Quote
Gang Garrison 2 Folder/Plugins/MapStuffs/2cp_kulay/PyroBlueRunS_N.png

So if this is how the plugin works, if you want to make it so the sprite is always changed, would you have to manually add it to every map?
Logged
I was Nacirema (American backwards)
America is already backwards, silly.

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Client-Side] MapStuffs v1.1
« Reply #6 on: November 19, 2015, 03:27:25 am »

So if this is how the plugin works, if you want to make it so the sprite is always changed, would you have to manually add it to every map?
If you want to make it so the sprite is always changed you could just use a regular spriteloader plugin.
Though you do have a point, if I want to use the same sprite for several maps, I shouldn't have to duplicate it for every map. A centralized sprite folder with configuration files sounds better.

You could do something like this

Folder structure
Code: [Select]
Plugins/MapStuffs/sprites <-- contains all sprites
Plugins/MapStuffs/mapConf <-- contains all map configurations

sprites folder contents
Code: [Select]
./PyroBlueRunS_N_mvm.png
./thisSpriteCouldHaveAnyFileNameItWouldntMatter.png

mapConf/2cp_kulay.(ini? txt? conf?)
Code: [Select]
<spriteName> : <fileName>
PyroBlueRunS_N : PyroBlueRunS_N_mvm.png
PyroRedRunS_N : thisSpriteCouldHaveAnyFileNameItWouldntMatter.png

FlareFireburst

  • Junior Member
  • **
  • Karma: 35
  • Offline Offline
  • Posts: 197
  • (ಠ ∩ಠ)
    • YouTube
Re: [Client-Side] MapStuffs v1.1
« Reply #7 on: November 19, 2015, 10:23:34 am »

If you want to make it so the sprite is always changed you could just use a regular spriteloader plugin.
Though you do have a point, if I want to use the same sprite for several maps, I shouldn't have to duplicate it for every map. A centralized sprite folder with configuration files sounds better.
I actually think that would work like a charm. I'll put it in when I've got some time to work on it, what with school and all, and update it soon. Thanks!

Edit: Apparently, INI files need to be stored in the same folder as the game. Which is stupid. Guess I'll need to figure out another means of storing the config...

Edit 2: Okay, so plain text files (maybe with a custom extension...) look like the way to go since they don't need to be in the same folder and can be used similar to an INI file.
« Last Edit: November 19, 2015, 11:02:15 am by FlareFireturkey »
Logged

aronhun

  • Full Member
  • ***
  • Karma: 10
  • Offline Offline
  • Posts: 350
  • Happily retired
Re: [Client-Side] MapStuffs v1.1
« Reply #8 on: November 20, 2015, 04:46:31 pm »

Very good it's even better than the hud that you just made, and I just posted to it about 2 minutes ago.

FlareFireburst

  • Junior Member
  • **
  • Karma: 35
  • Offline Offline
  • Posts: 197
  • (ಠ ∩ಠ)
    • YouTube
Re: [Client-Side] MapStuffs v1.1
« Reply #9 on: November 20, 2015, 05:02:47 pm »

Very good it's even better than the hud that you just made, and I just posted to it about 2 minutes ago.
Double thanks!

Also, I may have made YB's system a bit more efficient and compact.

Instead of making a seperate text/INI file for each map, the structure would be like this:

GG2 Folder/MapStuffs.ini
Inside is set up like this:
Code: [Select]
[ctf_truefort]
-sprite_name- = -new_sprite_name-
-sprite_name_old- = -original_sprite_name-
[gen_destroy]
-sprite_name- = -filename-
-sprite_name_old- = -filename-
The "MapStuffs" folder will become the dedicated folder for sprites and sounds.

However, due to the fact that I'm going on vacation this next week, I won't be able to work on anything or visit the forums until afterwards. So, hopefully the update will be sent out following next week.
Logged
Pages: [1]
 

Page created in 0.029 seconds with 36 queries.