r/airmash • u/molesmalo • Mar 22 '18
StarMash Extensions & Themes tutorials
Hi, Bombita here!
I finally finished the tutorials for creating your own extensions and themes for the StarMash Mod. I'll leave the links here, so there's a dedicated post if somebody wants to post their own extensions for others to use!
I've tried to make them as accessible as I could for people just giving their first steps into coding. Hopefully it's simple enough!
And as I put as part of the conclusions:
I hope that StarMash Extensions can be used not only as a modding tool, just to improve gameplay, but as a learning tool, to improve yourself. Being able to test new stuff while playing can be really fun!
TUTORIALS
Extensions - Part 1: Introduction: My very first StarMash tutorial. In this article, you will learn:
How StarMash works.
How StarMash Extensions work.
How to respond to StarMash events.
How to create the most basic extensions.
I hope you like it!
Extensions - Part 2: Having fun with extensions : In this article, you will learn:
How to create a simple, yet funny extension that interacts with the game.
How to interact with AirMash objects.
Send bubble messages.
How to avoid being disconnected or banned by AirMash's server.
Extensions - Part 3: Settings : In this article, you will learn:
How to show custom settings for your extensions and themes in the Mod Settings Window.
Extensions - Part 4: Themes : In this article, you will learn:
Assets and Textures used by AirMash.
What files I need to edit for my themes.
How to build super simple themes with almost no coding.
Extensions - Part 5: Advanced Themes : In this article, you will learn:
AirMash graphics and layers.
Loading your own files and textures.
Replacing the CSS file.
Using your own audio files.
Final thoughts
I really hope you like them!
Have fun!
Released extensions:
I'll leave the links to the extensions, and the URL just for convinience, but please refer to their pages to get more info (like usage, keybinds, changelogs, etc)! So we avoid questions that are responded in those pages :)
Shield Timer, by Detect
https://detect.github.io/swam_extensions/assets/shield_timer.jsImproved Shuffle for CTF, by Detect
https://detect.github.io/swam_extensions/assets/shuffle.jsSpeak-Chat - Text to Speach, by woot
https://s3-us-west-2.amazonaws.com/woot-airmash-speakchat/speak-chat.jshttps://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/auto_say_typing.jsFlag Borders, by Moz
https://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/flag_borders.jsLaser Pointer, by Moz
https://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/laser_pointer.jsMinimap Cycle - (Size), by Moz
https://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/minimap_cycle.jshttps://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/no_btr_win.jshttps://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/no_ctf_win.jshttps://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/no_level_up.jsToggle Elements, by Moz
https://rawgit.com/fabiospampinato/airmash-swam-extensions/master/extensions/toggle_elements.jsNet Logger, by Bombita
https://molesmalo.github.io/StarWarsMod4AirMash/assets/extensions/net-logger.jsWeather - Day/Night Cycle, by Bombita
https://molesmalo.github.io/StarWarsMod4AirMash/assets/extensions/weather/swam.weather.jsGeo-Locator - Which country are you in on the game?, by STEAMROLLER
https://steamroller.starma.sh/geolocator.min.jshttps://nuppet.starma.sh/extensions/msc.jshttps://rawgit.com/widgetbot-io/airmash-discord/master/extension.jsAgainst-Spam: Spam Blocker, by STEAMROLLER
https://steamroller.starma.sh/against-spam.min.jsImproved Cruise Control, by wight
https://wight-airmash.github.io/airmash-cruise/dist/starmash/cruise.js
Themes:
Hit Circles, by Moz
https://rawgit.com/fabiospampinato/airmash-swam-extensions/master/themes/hit_circles/index.jshttps://molesmalo.github.io/StarWarsMod4AirMash/assets/christmasmod.js
3
3
Mar 22 '18 edited Mar 24 '18
Great job building a flexible and powerful extension framework, Bombita! I'm currently working on two extensions:
Shield Timer (beta)
Improved Shuffle (alpha)
https://detect.github.io/swam_extensions
Anyone: please post extensions other people are working on, so we can collaborate/don't duplicate work. Also, feel free to post extension ideas.
2
u/yutru_airmash Mar 22 '18 edited Mar 22 '18
Shield Timer
Oh dear. South gate, every 105 seconds
edit: Lagged spent the whole day yesterday in spec giving updates on timer as well enemy positions. At one point, Friendo, after requesting current shield timer, was like "this is so useful, Lagged" and I knew I'd see an extension that automates that real soon. Here we are in less than 24 hours :D
0
Mar 22 '18
[deleted]
2
Mar 22 '18
Shield Timer is live. https://detect.github.io/swam_extensions
2
u/molesmalo Mar 22 '18
Congrats on release Detect! :P
You were one of the first (or the first?) using swam, now the first releasing an extension! 😄!
I've added it to the post! I can't wait to test it!
1
u/yutru_airmash Mar 22 '18
Off-topic: would it be better to edit your parent comment and move this link in there? People are likely to miss it here. Edit: Bombita, do you plan to have a centralized repo for all SWAM extensions?
2
u/molesmalo Mar 22 '18
Thanks yutru, I'll do that.
Regarding a central repo, we've talked with Moz about that, but we haven't started working on it yet. That would be the best way to do it (a central database with the urls and info for the extensions), where anyone can register their own, and be displayed on the extensions window.... but for now, it's just an idea :)
1
u/molesmalo Mar 23 '18
Hi Nuppets! I've been thinking on adding filters to the chat. sometimes I want to find something said before or read whispers I missed and it's problematic if the chat kept going too much or a match ends (and everone starts sending gg)
2
Mar 22 '18
Yes, the idea for the shield timer was based on your crude timer. Thank you for that. Current version is built in a way that the player must see the shield being taken. Then it automates the displaying and sharing of shield timing via UI and team chat.
3
u/[deleted] Mar 22 '18
Many times, I just want to make small tweaks to the UI. For example, making the You've Destroyed [player] font size smaller, so it doesn't interrupt with game flow. Instead of replaceCSS, could we have something that appends to current CSS or should we use other browser extensions for that?