Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Wecoc on July 28, 2014, 11:31:05 am

Title: [XP] Palette Script
Post by: Wecoc on July 28, 2014, 11:31:05 am
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




Screenshots

Spoiler: ShowHide
(http://s8.postimg.org/8tgwm1lxt/Aluxes.png)
Default Aluxes with an alternative palette changed in-game




Demo

Palette Script v1.1 (http://share.cherrytree.at/showfile-15981/palette_script_11.zip)

Instructions

Configuration and callers on the script. It's easy to use!
Title: Re: [XP] Palette Script
Post by: whitespirits on July 28, 2014, 01:39:59 pm
Is is possible to get a RMX-OS addon for this?
Title: Re: [XP] Palette Script
Post by: Wecoc on July 28, 2014, 02:57:33 pm
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)
Title: Re: [XP] Palette Script
Post by: KK20 on July 28, 2014, 11:40:45 pm
LMAO: ShowHide
(http://puu.sh/avsha/315cce6e70.png)

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)?
Title: Re: [XP] Palette Script
Post by: Wecoc on August 01, 2014, 10:30:22 am
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.
Title: Re: [XP] Palette Script
Post by: MetalZelda on August 03, 2014, 10:57:32 am
(http://puu.sh/avsha/315cce6e70.png)

hahahahahahahahahahahhaha