martes, 20 de mayo de 2014

CLEO Shader API - Introduction

yes, exactly as it sounds. and No I'm not using MTA for this...

first, the autor of this CLEO Shader-API is DK22Pac

you can follow the link, and you will find basic information. unfortunately is not quite enough. :/
that's why I'm going to talk about this, in this week.

here you can see what I have done with this;


domingo, 18 de mayo de 2014

$INCLUDE command

Sometimes, is usefull to hide some part of the code, to avoid confusion, and also to make it cleaner... or to hide some important code that we will use through the code.
the Include command looks like;
{$INCLUDE [NAME OF FILE]}
or it can also looks like;
{$I [NAME OF FILE]}
the $I is the same as $INCLUDE

the file we are going to Include must go, in the same place, where we keep our script.cs

sábado, 17 de mayo de 2014

Declare a New Custom Variable with const-end


let's jump directly to the example;
CODE

when you compile the Script, automatically Sanny builder will going to replace each custom variable (NEW_ACTOR) for the variable 15@.
with this, we save time. Because, in case we want to replace the variable 15@ for 10@.
then we don't have to change the variable throughout the script.
we only need to declare inside const - end that NEW_ACTOR is equal to 10@

for example;
we can also store a File Path, and it works in the same way as above.

this works for everything.
we can store coords;

Sanny Builder Syntax

Let's talk a little bit about SB syntax, some people has asking me, why my cleo-scripts looks so different than yours?.  That's because I'm using another syntax to write the cleo script.
Sanny Builder has two kind of syntax;
  1. Low Level Struct
  2. High Level Struct
the difference between both are;
  1. one uses labels and the other don't.
  2. cleaner code in High Level Struct
  3. more readable in High Level Struct
Low Level Struct, uses;
:label  -  else_jump @label  - jf @label   -  jump @label
High Level Struct, uses;
while true - end
while - end
repeat - until
for - end
if - then - end
if - then - else - end
now, I'm going to show you how to use High Level Struct instead Low Level Struct.

for example;
Command: while true - end
Left side: High Level Struct
Right side: Low Level Struct
the red lines, indicate the Flow of the Game

Command: while - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

Command: repeat- until
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the new direction of the flow (momentaneously) because of a process.
the red lines, indicate the Flow of the Game.

Command: for - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

as we can see, the process will repeat (in this case) 10 times, then display the new number, and continue.

Command: if - then - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.

Command: if - then - else - end
Topside:  High Level Struct
Underside:  Low Level Struct
the blue lines, indicate the Flow of the Game.
the red lines, indicate the new direction of the flow (momentaneously) because of a process.


couldn't be simpler.

Hope you like it ;)

miércoles, 14 de mayo de 2014

Sanny Builder & CLEO

In order to create CLEO mods, you need;
  1. Sanny Builder   |-> Go Official Page
  2. CLEO 4 (recomended)   |-> Go Official Page
here is one of the Best tutorials ever created for CLEO mods
there are so many, but I recomend this one.

remember to keep up to date all files ;)