IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 PLZ! HELP

 Im Beginner in Sanny Builder 3
 
saed123.  
Posted: Friday, Feb 3 2012, 14:27
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 27, 2011

XXXXX



Im Beginner in Sanny Builder 3 What i do?
There is no Tutorials on youtube.

I dont now any codes.
sad.gif sad.gif sad.gif
PM
  Top
 

 
fastman92  
Posted: Friday, Feb 3 2012, 14:45
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



Decompile data\script\main.scm, decompile scripts of other people (CLEO scripts .cs) and try to write something very simple, for example:

CODE
{$CLEO}
0000: NOP

:dumpscreen
wait 0
if
0AB0:   key_pressed 48   // press zero on left side of keyboard
else_jump @dumpscreen
0A1E: dump_screen 1
wait 500
jump @dumscreen


Virtual key codes here: http://msdn.microsoft.com/en-us/library/ms927178.aspx

For a beginning you must have a clue what the "wait" opcode is:
QUOTE
WAIT opcode stops processing of the current thread and let the GTA SA to process other active SCM threads and execute different actions. The number specifies a minimum number of milliseconds of current thread inactivity. When number of milliseconds is less or equal to zero, then current thread will be executed as soon as possible. GTA SA stops the current thread, executes other actions and comes back to process this thread again until it finds WAIT command again.


Upgrade your opcodes.txt and SASCM.ini: http://gtag.gtagaming.com/opcode-database
CODE
Download Latest .ini
Download Latest opcodes.txt


This post has been edited by fastman92 on Friday, Feb 3 2012, 15:12
Users WebsitePMMSN
  Top
 

 
Swoorup  
Posted: Friday, Feb 3 2012, 14:47
Quote Post


innovator
Group Icon
Group: Members
Joined: Oct 28, 2008

au.gif

XXXXX



Also look on the article on SannyBuilding Help Window.

The coding bible is really helpful
PMMSNYahoo
  Top
 

 
saed123.  
Posted: Friday, Feb 3 2012, 14:57
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 27, 2011

XXXXX



How to save my project as .cs or .scm
PM
  Top
 

 
fastman92  
Posted: Friday, Feb 3 2012, 15:15
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



To make CLEO scripts, put at the beginning of source:
CODE

{$CLEO}

To compile script - press F6. .cs file will be compiled.

Also you may be surprised by "Jump to 0 offset".
Put e.g 0000: NOP before the label then.
It`s because you may not add anything before the first pointed label. BTW there are no labels in compiled SCM anyway. They are just negative offsets relative to the beginning of compiled script.

CODE
{$CLEO}
0000: NOP

:dumpscreen
wait 0
if
0AB0:   key_pressed 48   // press zero on left side of keyboard
else_jump @dumpscreen
0A1E: dump_screen 1
wait 500
jump @dumscreen
Users WebsitePMMSN
  Top
 

 
saed123.  
Posted: Friday, Feb 3 2012, 15:50
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 27, 2011

XXXXX



But how to Learn The Scripting of control and models, time etc........
PM
  Top
 

 
fastman92  
Posted: Friday, Feb 3 2012, 16:03
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



QUOTE (saed123. @ Friday, Feb 3 2012, 16:50)
But how to Learn The Scripting of control and models, time etc........

Decompile data\main.scm and see how R* did it in SCM.
It`d be better if you already started to look how it works instead of posting, really.
Also use opcode searcher to find a opcode. For time, type "time", "hour", "minute".

Part of my car spawner 2.1:
CODE
Model.Load(5@)
   
   while not Model.Available(5@)
   gosub @DisplayVehicleID
   wait 0
   end  
       
4@ = Car.Create(5@, 0.0, 0.0, 0.0)
0085: SpawnedTrailerHandle = 4@ // (int)
0893: put_trailer SpawnedTrailerHandle on_cab SpawnedVehicleHandle
Car.RemoveReferences(SpawnedTrailerHandle)
Model.Destroy(5@)      
Users WebsitePMMSN
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG