Entradas

Mostrando entradas de mayo, 2014

CLEO Shader API - Introduction

Imagen
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;

$INCLUDE command

Imagen
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

Declare a New Custom Variable with const-end

Imagen
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

Imagen
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; Low Level Struct High Level Struct the difference between both are; one uses labels and the other don't. cleaner code in High Level Struct 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 li...

Sanny Builder & CLEO

In order to create CLEO mods, you need; Sanny Builder   |->  Go Official Page CLEO 4 (recomended)   |-> Go Official Page here is one of the Best tutorials ever created for CLEO mods Basic CLEO Script Tutorial there are so many, but I recomend this one. remember to keep up to date all files ;)