SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Kart Releases & Mods > Miscellaneous

Reply
 
Thread Tools
Colorable Signs Details »»
Colorable Signs
Version: V2, by Chaobrother Chaobrother is offline
Developer Last Online: Jan 2020

Category: Version: SRB2 Kart Rating: (2 votes - 2.80 average)
Released: 09-01-2019 Last Update: Never Installs: 0
SOCs Scripts Re-Useable Content Sprites/Graphics

Colorable Signs is a basic resource wad which turns the majority of arrow midtextures available in patch.kart, textures.kart, and srb2.srb in to colorable paper sprite variants. This wad comes in two variants. K_ColoredArrows and KL_ColoredArrows. K_ColoredArrows is a basic SOC variant which does not modify the game. KL_ColoredArrows is a game modifying script that has the same arrows as the SOC but offers more functionality to manipulate the arrows. Both scripts can be loaded without conflict. K_ColoredArrowsTestMap is showcase of the SOC and Lua versions of the script. It replaces MAP01. Operation of the scripts are detailed below.

Spoiler: SOC Usage

The SOC signs will take the color of the balloon (thing type 462) closest to them. The ideal usage is to place one balloon somewhere outside of the map so that all arrows share the same color. It is recommended to only add the states, sprites, objects of signs that are actually in your maps to save on file size.
Thing Types
  • Thing type 2222 – Colorable SD2 Sign
  • Thing type 2223 – Colorable Crimson Core Sign
  • Thing type 2224 – Half Scale Colorable SD2 Sign
  • Thing type 2225 – Colorable Kodachrome Void Sign
  • Thing type 2226 – Colorable Basic Arrow
  • Thing type 2227 – Colorable Basic Arrow 2
  • Thing type 2228 – Colorable Double Triangle Arrow
  • Thing type 2229 – Colorable Small Chevron
  • Thing type 2230 – Colorable Sonic Riders Arrow 1
  • Thing type 2231 – Colorable Sonic Riders Arrow 2
  • Thing type 2232 – Colorable Sonic Riders Arrow 3
  • Thing type 2233 – Colorable Peach Gardens Arrow
Sprite Prefix - SDAR


Spoiler: Lua Usage

The Lua signs offer more functionality in a smaller amount of Thing Types at the expense of modifying the game when used. Record Attack will be disabled for levels that use this script unless the map provides its own custom data or is loaded alongside of a map pack that has its own custom data.
The color of any Lua signs is determined by the mapthing’s angle/360. Overflow is accounted for. If the color is invalid, then a warning will show in a console with the position of the violating sign. The violating sign will be a default green color.
The scale of any Lua sign is determined by the object flags. Extra makes the sign twice as large, Special halves scale and Ambush quarters scale. These flags can be combined.
Thing Type 2234 – Lua Colorable Multi Arrow is the condensed version of 11 of the signs in the SOC version. The parameter value of the arrow determines the type of sign:
  • 0 = SD2 Arrow
  • 1 = Kodachrome Void
  • 2 = Basic Arrow
  • 3 = Basic Arrow without background
  • 4 = Double Triangle Arrow
  • 5 = Small Chevron
  • 6 = Sonic Riders 1
  • 7 = Sonic Riders 2
  • 8 = Sonic Riders 3
  • 9 = Peach Gardens
Any unused parameter defaults to the SD2 Arrow.

Thing Type 2235 – Lua Colorable Crimson Core Arrow has the same angle and flag operations as the Multi-Arrow. The parameter value * 2 determines the delay to give the sign before it starts animating.
Sprite Prefix - SDAR


Spoiler: Sign Mimicry

The signs can mimic their midtexture counterparts if a particular color is used. Imperfect mimicries are noted.
  • SD2 Arrow: Red (balloon angle 23) – It is slightly darker than the normal version.
  • Crimson Core: Raspberry (balloon angle 21)
  • Kodachrome Void: Skunk (balloon angle 5)
  • Basic Arrow: Crimson (balloon angle 24)
  • Basic Arrow Without Background: Ketchup (balloon angle 29) – The middle is slightly darker than the normal version.
  • Double Triangle Arrow: Tea (balloon angle 54)
  • Small Chevron: Raspberry (balloon angle 21)
  • Sonic Riders 1: Blue (balloon angle 84) – Some of the gradient was lost due to skin color limitations.
  • Sonic Riders 2: Green (balloon angle 60)
  • Sonic Riders 3: Green (balloon angle 60)
  • Peach Gardens

Download Now

File Type: zip K_ColoredArrows_V2.zip (63.0 KB, 58 views)

Screenshots

Click image for larger version

Name:	SignComparison.gif
Views:	1088
Size:	28.1 KB
ID:	21450   Click image for larger version

Name:	Colorable Soc Signs.png
Views:	780
Size:	51.4 KB
ID:	21614   Click image for larger version

Name:	Colorable Lua Signs.png
Views:	780
Size:	63.6 KB
ID:	21615   Click image for larger version

Name:	Sign Rainbow.png
Views:	785
Size:	49.9 KB
ID:	21616  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 09-01-2019   #2
D00D64
Worst Ranked 'Kart Player
Moderator
 
D00D64's Avatar
Default

I'd say your wad needs to be "KL_" for its Lua content, but since this is an asset wad, I guess it doesn't matter too much. Welcome to releases!
__________________
The least skilled player on the Kart Krew dev team, but I try my best. Maybe someday...

My awful Twitter account

My also awful YouTube channel
D00D64 is offline   Reply With Quote
Old 09-04-2019   #3
Charybdizs
it's lamp for supper, kids
Judge
 
Charybdizs's Avatar
Default

You rock! I am all on board with this! I was actually wanting some sort of ability to color remap textures for this purpose exactly, but I'm not a coder and couldn't implement this sort of thing myself.

I would have recolored them all as manual new textures, and meant to do so, but in the case of my crimson core arrows, I was like, "do I really want this many alt colors of an 11 frame texture bloating up the resource wads and filesize?"

This is a wonderfully hacky way to do this! It had me jawdrop! I have one criticism, though. Why use the balloon object? That means this won't work in any levels with balloons used, such as balloon panic, or monster monarch, or w/e. Why not just make a custom object to serve the same purpose? ^^
__________________
A dome structure? something that could be filled with diatomaceous earth?
Charybdizs is offline   Reply With Quote
Old 09-04-2019   #4
Lach
nanananananananananananan a
Developer
 
Lach's Avatar
Default

Quote:
Originally Posted by D00D64 View Post
I'd say your wad needs to be "KL_" for its Lua content, but since this is an asset wad, I guess it doesn't matter too much.
There is no Lua, it's done entirely with SOC. Mappers are able to use this without forgoing Record Attack eligibility!

Also, Chaobrother—while the filesize is already tiny and doesn't warrant any update, you should consider looking into the condensed naming system. Each sprite in this WAD seems to have left- and right-side variants, which you can actually merge into one lump using these conventions! For instance, the lump labelled SDARAL can be renamed to SDARALAR, allowing you to remove SDARAR.
Lach is offline   Reply With Quote
Old 09-04-2019   #5
D00D64
Worst Ranked 'Kart Player
Moderator
 
D00D64's Avatar
Default

Oh wow, I didn't even notice this was all SOC, I'm so used to Lua things that I didnt even think of it. Neato!
__________________
The least skilled player on the Kart Krew dev team, but I try my best. Maybe someday...

My awful Twitter account

My also awful YouTube channel
D00D64 is offline   Reply With Quote
Old 09-06-2019   #6
Chaobrother
 
Chaobrother's Avatar
Default

Charybdizs: The Balloon object is the most flexible way to get any skin color without modifying the game to my knowledge.

With that being said V2 is now out! Most of the vanilla Kart have been added and a much more flexible Lua version of this script is now included.
Chaobrother is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.