Jump to content

  •  

Reins

Member Since 05 Jun 2013
Offline Last Active Jun 04 2017 09:59 AM
-----

Posts I've Made

In Topic: Dastgir's Services

01 June 2017 - 05:12 AM

currently interested on your services but i can't message you lol


In Topic: Multiple Layering in ACT Editor how?

22 February 2017 - 02:07 PM

run this script on act editor - credits goes to tokei

int count = act.GetAllFrames().Count + 1;
int index = 0;

TaskManager.DisplayTaskC("Rendering frames...", "Please wait...", () => index, count, new Action<Func<bool>>(isCancelling => {
try {
foreach (var action in act) {
foreach (var frame in action) {
if (frame.Layers.Count <= 1) {
index++;
continue;
}
if (isCancelling()) return;

var image = frame.Render(act);
var box = ActImaging.Imaging.GenerateFrameBoundingBox(act, frame);
int relativeIndex = -1;

for (int i = 0; i < act.Sprite.Images.Count; i++) {
if (image.Equals(act.Sprite.Images[i])) {
if (isCancelling()) return;
relativeIndex = act.Sprite.AbsoluteToRelative(i, act.Sprite.Images[i].GrfImageType == GrfImageType.Indexed8 ? 0 : 1);
}
}

if (relativeIndex < 0) {
relativeIndex = act.Sprite.InsertAny(image);
}

int offsetX = (int) ((int) ((box.Max.X - box.Min.X + 1) / 2) + box.Min.X);
int offsetY = (int) ((int) ((box.Max.Y - box.Min.Y + 1) / 2) + box.Min.Y);
var layer = new Layer(relativeIndex, image);

layer.OffsetX = offsetX;
layer.OffsetY = offsetY;

frame.Layers.Clear();
frame.Layers.Add(layer);
index++;
}
}

// Removes unused sprites - old way, older versions have a bug
for (int i = act.Sprite.Images.Count - 1; i >= 0 ; i--) {
if (act.FindUsageOf(i).Count == 0) {
var type = act.Sprite.Images[i].GrfImageType;
var relativeIndex = act.Sprite.AbsoluteToRelative(i, type == GrfImageType.Indexed8 ? 0 : 1);
act.Sprite.Remove(relativeIndex, type);

if (type == GrfImageType.Indexed8) {
act.AllLayers(layer => {
if ((layer.IsIndexed8() && type == GrfImageType.Indexed8) ||
(layer.IsBgra32() && type == GrfImageType.Bgra32)) {
if (layer.SpriteIndex == relativeIndex) {
layer.SpriteIndex = -1;
}
}
});
}

act.Sprite.ShiftIndexesAbove(act, type, -1, relativeIndex);
}
}
}
finally {
index = count;
}
}));


In Topic: VPS

18 January 2017 - 03:19 PM

ok ang manilahosting sir . active staff sila :)

true... been there.

naka host ka sa kanila ngayon? kamusta ping?


In Topic: Positioning Headgears to front and back HELP

11 December 2016 - 03:40 PM

just use Act Editor by tokei its pretty easy to edit there


In Topic: Mad Bunny Shield sprite not showing

11 November 2016 - 01:01 PM

Check your iteminfo, and see what the classnum says 

It should be

ClassNum = 6

 

oke done, i add custom shield with mad bunny sprite.. Thank for your reply

>Enable custom shield at nemo?

yea, already done, thanks for your reply

 

check pm =) i have some questions to you