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)


  Closed TopicStart new topicStart Poll

 Introducing Point

 A C-Like Compiler for VC (and soon SA)
 
jonc  
Posted: Thursday, Jun 16 2005, 07:46
Quote Post


Snitch
Group Icon
Group: Members
Joined: Nov 2, 2004

XXXXX



I've been quietly working on a legitimate compiler for GTA -- with if, do, while, for, real variable types, full expressions -- and it is nearing completion of the Vice City feature set. I'm now beginning on the new features Rockstar introduced in San Andreas. So it isn't ready for prime time yet, but I thought I'd give you all a heads up.

You can read more about it and download an alpha here:
http://www.joncaruana.com/projects/point/

The biggest change is it uses an XML file to define opcodes that can provide much better documentation than GTAMA or Barton's editor included. Since CyQ, in anticipation of this project, hasn't written a SA Assembler and Barton is retired, I hope this can become the primary tool for modding SCM files in the future.
Users WebsitePM
  Top
 

 
Y_Less  
Posted: Thursday, Jun 16 2005, 14:10
Quote Post


629
Group Icon
Group: Members
Joined: Mar 14, 2004

en.gif

Member Award




This loks ace, I will have to try it out. If it uses XML for the OpCodes, does that mean you can use either of the existing formats?
Users WebsitePM
  Top
 

 
jonc  
Posted: Thursday, Jun 16 2005, 16:12
Quote Post


Snitch
Group Icon
Group: Members
Joined: Nov 2, 2004

XXXXX



No, it means you can use neither. But I have an importer for what little information VC-DB has. Hopefully opcodes can be added to it directly for SA if I can finish it soon enough that people start using it when discovering opcode names and such.
Users WebsitePM
  Top
 

 
random_download  
Posted: Thursday, Jun 16 2005, 19:57
Quote Post


:o
Group Icon
Group: Members
Joined: Mar 7, 2004

uk.gif

XXXXX



Looks nice, but I can't get it to work right, I run 'Point.exe test.sand /out:test.scm' from a batch file, and it seems to work but it never actually creates the .scm file :S
Users WebsitePMMSN
  Top
 

 
jonc  
Posted: Friday, Jun 17 2005, 01:04
Quote Post


Snitch
Group Icon
Group: Members
Joined: Nov 2, 2004

XXXXX



Is default.ide in the current directory? If not, make sure to give it the path with /ide. Otherwise, what is the exact output it gives and what is the contents of the file you are trying to compile?

Also it isn't documented anywhere I guess but you'll need /target:vice, but that isn't the issue you are having as that would make the float values weird when loaded into the game.
Users WebsitePM
  Top
 

 
random_download  
Posted: Friday, Jun 17 2005, 15:24
Quote Post


:o
Group Icon
Group: Members
Joined: Mar 7, 2004

uk.gif

XXXXX



Yes, I have got default.ide in the dir, the code is just copied and pasted off your site. The program closes before I can read what it says, but I managed to grab a screenshot just before it closes. There is a line at the end that says "During function call 'create_player' is undefined", so I guess that is the reason why. As I said the code is just copied from your site
CODE
Player player;

// these will automatically initialize before our start thread begins
int f1=0,f2=1;

start thread fibwait {
// Some standard initialization
player=create_player(0,811.875,-939.9375,35.75);

Yet at the top the var player is indeed defined. I tried doing "Player player=create_player(0,811.875,-939.9375,35.75);" but got the same error.
Users WebsitePMMSN
  Top
 

 
jonc  
Posted: Friday, Jun 17 2005, 16:17
Quote Post


Snitch
Group Icon
Group: Members
Joined: Nov 2, 2004

XXXXX



Heh, yeah, I forgot to change the example code. create_player should be CreatePlayer and likewise for the other function calls with underscores in them. I'll update the code on the site when I get home from work.

And there is an undocumented parameter /wait that will make it keep the window open, or you can launch it from the command line.
Users WebsitePM
  Top
 

 
random_download  
Posted: Sunday, Jun 19 2005, 08:30
Quote Post


:o
Group Icon
Group: Members
Joined: Mar 7, 2004

uk.gif

XXXXX



How do models work? doing:
ProtoType Model = PGA;
or
ProtoType Model = #PGA;
or
ProtoType Model = 95;
doesn't seem to work.
Users WebsitePMMSN
  Top
 

 
jonc  
Posted: Sunday, Jun 19 2005, 17:51
Quote Post


Snitch
Group Icon
Group: Members
Joined: Nov 2, 2004

XXXXX



Sorry I forgot to include prototypes in an example.

You don't need to declare prototypes, when you need to use it simply pass one of these:

CODE
CreateSomething(prototypeof(XYZ),...);
CreateSomething(prototypeof(92),...);


You should also be able to do this, but I've actually never tried it:

CODE
Prototype x = prototypeof(XYZ);

CreateSomething(x,...);


One of my goals was to eliminate all the weird symbols MB and even GTAMA used, so in this one spot it is slightly more verbose.
Users WebsitePM
  Top
 

 
random_download  
Posted: Sunday, Jun 19 2005, 20:50
Quote Post


:o
Group Icon
Group: Members
Joined: Mar 7, 2004

uk.gif

XXXXX



Thanks, my test script works now smile.gif only bad thing it seems is that functions are case sensitive eg. Wait(0); works but wait(0); doesn't. Other than that this compiler is amazing tounge.gif
Users WebsitePMMSN
  Top
 

 
ghost_master2000  
Posted: Wednesday, Jun 22 2005, 07:47
Quote Post


Li'l G Loc
Group Icon
Group: Members
Joined: Jun 27, 2002

XXXXX



hmmm... this looks good, adn I'm very interested in using this, but being lazy like I am I think I'm gonna wait till there is an IDE for it.

I liked how in GTAMA you could start a function adn a window would pop up with a list of functions that woudl complete it. IF this had an interface similar to that of visual C++, with the dropdown lists of functions and variables for completion I would be all over it. I know, I know, I'm lazy and all, i don't feel like relearning all the function names and such, but once it has that, I'll be spitting out mission scripts like the chick in excorcist spits out puke.
PM
  Top
 

 
tomworld10  
Posted: Friday, Jan 27 2006, 13:15
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Jun 29, 2005

Member Award




Hi,

Thanks for the update !!!!


Have fun
PMXbox Live
  Top
 

 
kornman00  
Posted: Monday, Jan 30 2006, 08:00
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 28, 2005

XXXXX



Thats pretty cool, good job smile.gif
PM
  Top
 

 
funtikar  
Posted: Thursday, Mar 8 2012, 02:48
Quote Post


Hater Play
Group Icon
Group: Members
Joined: Apr 10, 2009

my.gif

XXXXX



What happened to this? Did anyone made any working mission with it?
Users WebsitePMYahoo
  Top
 

 
The_Sorrow  
Posted: Thursday, Mar 8 2012, 10:05
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



QUOTE (funtikar @ Thursday, Mar 8 2012, 02:48)
What happened to this? Did anyone made any working mission with it?

You sir are a moron.

The topic is 6 years old, The creator hasn't been on in 6 years either and i doubt anyone even knows about its existence these days, want to make missions?

Use Sanny Builder
Users WebsitePMMSN
  Top
 

 

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

0 Members:

Topic Options Closed TopicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG