[XP] Palette Script

Started by Wecoc, July 28, 2014, 11:31:05 am

Previous topic - Next topic

Wecoc

Palette Script
Authors: Wecoc
Version: 1.1
Type: Misc Add-on
Key Term: Misc Add-on



Introduction

This script allows to obtain and modify a bitmap palette in-game.
This new property will be stored in $game_system so it will be saved when you save the game.



Features


  • Gets the palette of any type of graphic

  • Graphics are not modified, only its display on the game




Screenshots

Spoiler: ShowHide

Default Aluxes with an alternative palette changed in-game




Demo

Palette Script v1.1

Instructions

Configuration and callers on the script. It's easy to use!

whitespirits

Is is possible to get a RMX-OS addon for this?

Wecoc

July 28, 2014, 02:57:33 pm #2 Last Edit: July 28, 2014, 03:01:06 pm by Wecoc
Quote from: whitespirits on July 28, 2014, 01:39:59 pm
Is is possible to get a RMX-OS addon for this?


I don't know exactly how RMX-OS works but I think it would be so hard, if it's even possible.

RMX-OS does not change so much the Cache, so probably you could use this script anyway within the RMX-OS but others would no see the change.

Out of RMX-OS, this script changes the display of a certain graphic from the Cache, if you change the palette of any thing, every time you display that, it will have the modified palette. The only way to have the same graphic with both palettes is with a copy of the file in its folder (so it's not really the same). Those are not good news for a online system.

Maybe you can do this for RMX-OS with an entirely new approach.

(I did this in that way so get_pixel is only used once)

KK20

LMAO: ShowHide

Have you ever considered using a DLL since Ruby's set/get pixels are pretty slow (and you did state a maximum palette size of 64 to prevent lag)?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Wecoc

I thought that, and it would be great to implement. In normal graphics there is no lag but with big ones it's a problem. But I'm not an expert of this type of things, and I don't know a good dll to use a faster get/set pixel instead of the default.

MetalZelda