Coding

 Reply to this postStart new topic

Offline opcode database

Swoorup
post Jan 23 2012, 10:07 AM
Post #1


The New Guy!

Posts: 8
Joined: 23-January 12



Hello,
Newbie here.
I hope this is an appropriate section to ask question like this.

Is there an offline version of opcode database I could get my hands on?
Go to the top of the page
 
+Quote Post
Jimmy
post Jan 23 2012, 12:38 PM
Post #2


Ameteur Member

Posts: 36
From: India
Joined: 19-January 12



Good to see you after a long time.

Here is what you need.


--------------------


Go to the top of the page
 
+Quote Post
Deji
post Jan 23 2012, 07:40 PM
Post #3


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



There is no offline opcode database.. that's why I created an online one.

One of the main purposes of the opcode database is to improve what you can do when coding in SB3. Download the updated sascm.ini and opcodes.txt files and you basically have the most important parts of the info from the opcode database in Sanny, offline.

Now, if someone would make a new IDE, I could probably aid in allowing the program to connect to the OpcodeDB and constantly have helpful info. Tis' my dream to have up-to-date parameter info and descriptions as soon as you start typing the command smile.gif


--------------------
Go to the top of the page
 
+Quote Post
Swoorup
post Jan 24 2012, 05:09 AM
Post #4


The New Guy!

Posts: 8
Joined: 23-January 12



I was thinking to make one (not a compiler but just a database) but I have not been able to allocate time for it.
Go to the top of the page
 
+Quote Post
Wesser
post Jan 24 2012, 12:57 PM
Post #5


The Assistant

Posts: 84
From: Matera, IT
Joined: 16-June 11



Deji, your posts are inspiring me to continue my NSB project. I took a break because of my real life but now I can dedicate all the time. I'll surely link your website to my IDE. wink.gif
Go to the top of the page
 
+Quote Post
LINK/2012
post Jan 24 2012, 07:02 PM
Post #6


I will kill you

Posts: 126
Joined: 13-May 11



Why no one use point anymore? Thats because it doesn't have support to CLEO? (Don't say "Because the project is abandoned", for me Sanny is abandoned too)

Point C-Like syntax is better than Sanny Delphi syntax for me.

This post has been edited by LINK2012: Jan 24 2012, 07:17 PM
Go to the top of the page
 
+Quote Post
Deji
post Jan 24 2012, 08:12 PM
Post #7


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Link to Point? And possibly an example of syntax?

Sanny is not really abandoned. Apparently Seemann has been separated from his computer with the source or something. Not idea how long for, though. Anyway, SB works great but a new IDE is definitely needed since it was built while knowledge of SCM was still in it's stone age, lol. And yes, SB being able to compile CLEO scripts is quite a big reason to use SB.


--------------------
Go to the top of the page
 
+Quote Post
LINK/2012
post Jan 24 2012, 09:42 PM
Post #8


I will kill you

Posts: 126
Joined: 13-May 11



QUOTE (Deji @ Jan 24 2012, 06:12 PM) *
Link to Point? And possibly an example of syntax?

Sanny is not really abandoned. Apparently Seemann has been separated from his computer with the source or something. Not idea how long for, though. Anyway, SB works great but a new IDE is definitely needed since it was built while knowledge of SCM was still in it's stone age, lol. And yes, SB being able to compile CLEO scripts is quite a big reason to use SB.

http://www.joncaruana.com/projects/point/cli.html

The project wasn't go far, some things to do... but I don't like to write/copy opcodes everytime.
Go to the top of the page
 
+Quote Post
Deji
post Jan 24 2012, 11:21 PM
Post #9


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



At a first glance I have only a few problems with it...
  • It uses OOP. It's okay in most languages, but it definitely doesn't suit SCR. It also seems to be used in a pretty bad way.
  • Most opcodes are named wrong. Of course, the same holds true for Sanny Builder, but Point is even more out of date.
  • Syntax isn't customisable at all and the font isn't monospace... Eww.
  • A new project won't even compile?!


But (again, this is just at first glance - since I'm picky I'd probably find more problems over time) it otherwise seems pretty good... I actually regret not testing it sooner. But at the moment my projects are all in Sanny Builder and the next time I start a project, I'm hoping on that it will be in a new IDE with a compiler which works like R*'s original SCR compiler.


--------------------
Go to the top of the page
 
+Quote Post
Swoorup
post Jan 28 2012, 04:56 AM
Post #10


The New Guy!

Posts: 8
Joined: 23-January 12



I wish SB would be more OOP style. User-defined classes, functions, etc. Had this been, then scripting would be so much easier

EDIT: Hmm, like the sound of you mentioning the features of Point. My question is : Is it still in development?

This post has been edited by Swoorup: Jan 28 2012, 04:58 AM
Go to the top of the page
 
+Quote Post
Silent
post Jan 28 2012, 12:02 PM
Post #11


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



Real SCM wasn't OOP, so it'd be odd.
Go to the top of the page
 
+Quote Post
LINK/2012
post Jan 28 2012, 03:32 PM
Post #12


I will kill you

Posts: 126
Joined: 13-May 11



QUOTE (Swoorup @ Jan 28 2012, 02:56 AM) *
EDIT: Hmm, like the sound of you mentioning the features of Point. My question is : Is it still in development?

Nop
Go to the top of the page
 
+Quote Post
Swoorup
post Jan 28 2012, 04:18 PM
Post #13


The New Guy!

Posts: 8
Joined: 23-January 12



QUOTE
Real SCM wasn't OOP, so it'd be odd.

What did you mean by this? You mean R* used some kind of ASM like compiler?

Because Sanny makes us write codes from top to bottom, it feels as if one's directly writing a asm code.
Go to the top of the page
 
+Quote Post
Silent
post Jan 28 2012, 04:32 PM
Post #14


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



QUOTE (Swoorup @ Jan 28 2012, 05:18 PM) *
What did you mean by this? You mean R* used some kind of ASM like compiler?


Just look at the native code, it's clearly not Object Oriented.



Perhaps the screen doesn't show it well, but there are no car/ped/prop objects.
Go to the top of the page
 
+Quote Post
Swoorup
post Jan 28 2012, 04:52 PM
Post #15


The New Guy!

Posts: 8
Joined: 23-January 12



That looks either VB or Delphi like syntax. But I don't think, just because R* used this type of compiler, one should not necessarily go for the same thing.

The SCM coders of R* were definitely not professional programmers (well I think so).
One could surely make code faster and better using OOP style coding. And furthermore, at the compilation time its basically the same for every compiler!

OFF TOPIC - Silent, which languages are supported in Notepad++ ? Like the syntax highlighting

EDIT: I had been playing around with SCM_HOOK for Vice and I created a race mission with large number of checkpoints. This just depicts the sheer use of const, macros, functions and classes all of which I could not have accomplished in SB tongue.gif.
Now this would be a buggy thing to do in Sanny I believe.
LINK: http://pastebin.com/TjeJCifS



This post has been edited by Swoorup: Jan 28 2012, 05:06 PM
Go to the top of the page
 
+Quote Post
Deji
post Jan 28 2012, 05:32 PM
Post #16


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



It is neither VB or Delphi syntax. It's a completely new language. R*N were badass enough to have their own compiler from as far back as the earliest GTA games and have kept adapting it every game.

How can the R*N team not be professional? I'm pretty sure they're a highly paid lot... Most of the ones coding in the SCM most likely programmed a lot of hardcoded stuff... Pretty sure R*N wouldn't just hire script kiddies to code in a language that pretty much anyone can master. Otherwise, I could qualify to be the leader of said coding department.

OOP definitely was used in the C++. But definitely not for SCM. It's not made to be object oriented and would fail as the real objects aren't even accessible via SCM. There are also many inconsistencies in the way opcodes are used, which would get in the way of making coding in SCM fully object-oriented. Making SCM object-oriented is like using a wrench as a hammer.


Silent created the syntax himself. Custom syntaxes are one of the main features of Notepad++.


--------------------
Go to the top of the page
 
+Quote Post
Wesser
post Jan 29 2012, 10:23 AM
Post #17


The Assistant

Posts: 84
From: Matera, IT
Joined: 16-June 11



Silent, where I can find those source files?
Go to the top of the page
 
+Quote Post
LINK/2012
post Jan 29 2012, 01:48 PM
Post #18


I will kill you

Posts: 126
Joined: 13-May 11



QUOTE (Wesser @ Jan 29 2012, 08:23 AM) *
Silent, where I can find those source files?

main.sc in GTA San Andreas data folder
debug.sc in GTA Vice City data folder, I think that in vice city data have main.sc too, but I don't found it...

Some times ago I read from someone that rockstar dropped main.scm source files in the GTA III 10th iOS Version but I don't found it, someone can confirm, that is true?

Go to the top of the page
 
+Quote Post
Swoorup
post Jan 30 2012, 02:09 AM
Post #19


The New Guy!

Posts: 8
Joined: 23-January 12



I heard someone obtain function labels from libnative.so.
Can someone link me to those files

And yeah vc has both main.sc and debug.sc
Go to the top of the page
 
+Quote Post
Deji
post Jan 30 2012, 06:53 AM
Post #20


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



The mobile version of GTAIII came with an almost full source (only main.sc seems missing), R* treated us.

http://alexander.sannybuilder.com/Files/stuff/gta3scmsrc.zip


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

12 User(s) are reading this topic (12 Guests and 0 Anonymous Users)
0 Members: