#101 11-06-2012 19:41

Link2012
Registered: 13-05-2011
Posts: 6

Re: Sanny Builder / CLEO discussion

Your guys will release the III\VC CLEO Source Code? and a non-alpha SA Cleo Source? (4.1.1.30f Source?)

I think you use VC++, so why not keep VC++ project files in the source?

Thanks wink

Offline

#102 11-06-2012 22:02

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 446
Website

Re: Sanny Builder / CLEO discussion

Sure, just wait for few years.


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#103 15-06-2012 14:34

user5487
Registered: 14-06-2012
Posts: 2

Re: Sanny Builder / CLEO discussion

hi when i use this cj go forward  , but i dont want he go forward how to fix it ?

//-------------MAIN---------------  lol
thread 'TELEPORTATION' 
wait 0 

:TELEPORTATION_23
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @TELEPORTATION_23 
if 
0AB0:   key_pressed 17 
 else_jump @TELEPORTATION_23 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 
Actor.PutAt($PLAYER_ACTOR, 1@, 2@, 3@)
wait 500 
jump @TELEPORTATION_23

Offline

#104 26-07-2012 13:51

reute70
From: Средняя Волга
Registered: 22-08-2009
Posts: 182

Re: Sanny Builder / CLEO discussion

____________X     Y    Z
                   3.0 or 3 or...
...with_offset 0.0 0.0 0.0

__for gta3

{$CLEO}
wait 100
while true
    wait 0
    if
        Player.Defined($PLAYER_CHAR)
    then
      if
      80DF: not actor $PLAYER_ACTOR driving   //00E0: player $PLAYER_CHAR driving    
      05EE:  key_pressed 0x54 //   T
      then
018C: play_sound 94 at 0.0 0.0 0.0
          0054: store_player $PLAYER_CHAR position_to 0@ 1@ 2@ 
          0170: 3@ = player $PLAYER_CHAR z_angle
            02F6: 7@ = cosine 3@ 
            02F7: 8@ = sinus 3@ 
            7@ *= -1.0 // floating-point values 
            8@ *= 1.0 // floating-point values 
            005B: 0@ += 7@ // floating-point values 
            005B: 1@ += 8@ // floating-point values
02CE: 2@ = ground_z 0@ 1@ 2@
00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
      end
    end
end

Offline

#105 07-07-2013 17:39

NamikazeWilliam
Registered: 06-07-2013
Posts: 3

Re: Sanny Builder / CLEO discussion

Ask, how to make teargas hit effect? With the particle grin

Offline

#106 02-03-2014 21:29

ZAZ
Registered: 05-12-2007
Posts: 55

Re: Sanny Builder / CLEO discussion

script crashes when compiled with sanny 3.1.4 but works when compiled with sanny 3.0.4 (2008)
I wanted to help a member, here
i commented out everthing related to timer codes and status display codes and got it working when compiled with sanny 3.0.4
the taxi mission was playable, of course without timer and status text

but when i compiled it with sanny 3.1.4 it crashed immediately at missionstart
i tested both versions with cleo3 on unmodded game and eu-exe as well with cleo 4.3.15 on modded game with us-exe
with sanny 3.1.4 i tested with normal case and with upper case and also with sascm.ini and classes.db of my old sanny installation

scripts for San Andreas
the mission sniffer
the  Taxi-mission.cm

the errordump of cleo 4.3.15

GTA:SA Crashed, Debug Info Follows:



GTA Info:



Version: US 1.0

Last File Loaded: Taxi-mission.cm

Last Library Loaded: 

Error: Unknown



Assembly Info:



Exception At Address: 0x015619A5

Exception Code: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)



Registers:

EAX: 0x00A8B42C	EBX: 0x0221CD48

ECX: 0x0221CD48	EDX: 0x58542720

ESI: 0x0221CD48	EDI: 0x021C2F44

EBP: 0x0022FB04	ESP: 0x0022FAF8

Last edited by ZAZ (02-03-2014 21:34)

Offline

#107 03-03-2014 08:43

Seemann
Registered: 07-08-2006
Posts: 2,050

Re: Sanny Builder / CLEO discussion

ZAZ, you've found a bug existing in the CLEO Library since CLEO 3!

This crash occurs because when the option "Add extra info" is set, the latest versions of Sanny add a full source code to an output file. This file becomes huge (I've got the one with 111KB of size). So, when the library loads this mission, it copies all the file content in the mission block in the game memory. But it's limited to 69000 bytes! The rest of a mission file code overwrites non-mission data in the game memory, thus causing an error.

The solution for this bug is to decrease size of an output file, for sure. You may add a directive {$NOSOURCE}, so Sanny will not add a full source to it. Or you can just turn off the option "Add extra info" in the Sanny's options.

Thanks for finding this problem.

Offline

#108 04-03-2014 21:56

ZAZ
Registered: 05-12-2007
Posts: 55

Re: Sanny Builder / CLEO discussion

ok, works now, thanks
does adding extra info normally make sense by cleo scripts?

Offline

#109 05-03-2014 15:42

Silent
Registered: 08-05-2010
Posts: 29

Re: Sanny Builder / CLEO discussion

ZAZ wrote:

ok, works now, thanks
does adding extra info normally make sense by cleo scripts?

IMO it never makes sense as you shouldn't decompile your own scripts... ever tongue

Offline

#110 18-03-2014 22:04

fastman92
Registered: 16-02-2011
Posts: 11
Website

Re: Sanny Builder / CLEO discussion

ZAZ wrote:

ok, works now, thanks
does adding extra info normally make sense by cleo scripts?

It makes sense if you want to decompile a CLEO script in editor that's meant to decompile main.scm only - old SCM editors.

They can decompile only main.scm, not just a bunch of opcodes from CLEO struct. These old editors need to read structure of main.scm.

Last edited by fastman92 (18-03-2014 22:04)

Offline

#111 25-03-2014 22:05

ZAZ
Registered: 05-12-2007
Posts: 55

Re: Sanny Builder / CLEO discussion

fastman92 wrote:
ZAZ wrote:

ok, works now, thanks
does adding extra info normally make sense by cleo scripts?

It makes sense if you want to decompile a CLEO script in editor that's meant to decompile main.scm only - old SCM editors.

They can decompile only main.scm, not just a bunch of opcodes from CLEO struct. These old editors need to read structure of main.scm.

decompiling cleoscripts with BW Missionbuilder? I never got that idea

Silent wrote:
ZAZ wrote:

ok, works now, thanks
does adding extra info normally make sense by cleo scripts?

IMO it never makes sense as you shouldn't decompile your own scripts... ever tongue

sometimes i recompile scripts to check if the codes are correct,
especially when i copied and pasted scripts from forum poster, i had nice surprises

anyway, adding extra info doesn't make sense in cleo scripts
it should be disabled by default, can't remember if it is, if yes, please keep in mind for next sannybuilder version

Offline

#112 29-05-2014 18:05

DodoGTA
Registered: 29-05-2014
Posts: 2

Re: Sanny Builder / CLEO discussion

How to save (compile) MAIN.SCM file on GTA Liberty City Stories using Sanny Builder?Seemann,please answer the question or you devil lol

Offline

#113 29-05-2014 21:03

Seemann
Registered: 07-08-2006
Posts: 2,050

Re: Sanny Builder / CLEO discussion

Compiling feature is not implemented for LCS and VCS in Sanny Builder yet.

Offline

#114 07-06-2014 12:21

Wouter0100
Registered: 07-06-2014
Posts: 1

Re: Sanny Builder / CLEO discussion

I'm new in GTA modding, but I've a question. Where is a documentation about all futures? And, is it possible to make a boat go to a specifick cordinate?

Offline

#115 09-06-2014 20:13

Den_spb
From: Ленинград
Registered: 23-11-2008
Posts: 937
Website

Re: Sanny Builder / CLEO discussion

Wouter0100 wrote:

And, is it possible to make a boat go to a specifick cordinate?

02D3: boat $Boat drive_to 10000.0 -100.0 0.0

Boat $Boat goes to coordinates X Y Z.

Offline

#116 05-07-2014 16:08

aszx1
Registered: 04-07-2014
Posts: 2

Re: Sanny Builder / CLEO discussion

Hi,
OMG i cant belive am posting in Seemann thread, okay am a amateur in cleo scripting so i tried to make a script wich when you fire at someone with RPG (at a ped) it will start dancing but i always fail and that is the best i have reached:
{$CLEO .cs}

03A4: name_thread "DNC"

:DNC01
wait 0 ms
if
0256: player $PLAYER_CHAR defined
004D: jump_if_false @DNC01
if and
15@ = -1
02E0: actor $PLAYER_ACTOR firing_weapon_at_actor 15@
//0457: player $PLAYER_CHAR aiming_at_actor 15@
004D: jump_if_false @DNC01
04ED: load_animation "DANCING"
jump @DNC01

So Can someone could help me and make this script for me please
Thanks.
(P.S: the script above doesnt do anything)

Last edited by aszx1 (05-07-2014 16:12)

Offline

Board footer

Powered by FluxBB