Post Reply 
 
Thread Rating:
  • 8 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release GScyntax
03-18-2011, 21:32 (This post was last modified: 03-19-2011 02:03 by SuperNovaAO.)
Post: #1
GScyntax
Checks your GSc-Syntax.

If this tool says that everything is fine, this is not necessarily true (why didn't IW make brackets after function calls necessary, for example, now it's impossible to check if something is a function that returns an object that again could have functions so "self a b c d();" is accepted...)

If it finds an error, that isn't necessarily true either.

Also the tool does not check on functionnames/initialized variables anywhere.

To use, drag a GSc onto the exe and wait.

Download:
.zip  GScyntax_v0.11.zip (Size: 24.94 KB / Downloads: 479)

Bug reports are VERY welcome. Post the code AROUND the place that got detected wrong and the error the tool gave and I will look into it.
Related links

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 26 users say Thank You to SuperNovaAO for this post:
4FunPlayin (03-18-2011), aosma8 (03-19-2011), azeller09 (03-19-2011), barata (03-19-2011), blackout612 (03-18-2011), Bloopbloop (03-19-2011), Cgallagher (03-19-2011), cupis12 (05-26-2011), Cyborgking (07-07-2011), d0h! (03-18-2011), ddaavvee (04-26-2011), faramire (03-19-2011), iAegle (03-18-2011), iPaddie (03-19-2011), Lemon (03-19-2011), met94 (03-18-2011), nick (03-19-2011), OrangePL (03-20-2011), Romuald27 (03-23-2011), rotceh_dnih (03-30-2011), scmogc0 (03-19-2011), Stan75 (03-19-2011), surtek (03-19-2011), timmytimp1 (03-19-2011), Tomsen1410 (03-19-2011), [MPGH]House (03-19-2011)
03-18-2011, 21:43
Post: #2
RE: GScyntax
thanks mr. Awesom-O
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 21:47
Post: #3
RE: GScyntax
Yay now I dont have to restart Black Ops after every Bad Syntax crash Big Grin

(08-10-2011 12:58)Pozzuh Wrote:  
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu
Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 21:55 (This post was last modified: 03-18-2011 22:10 by Pozzuh.)
Post: #4
RE: GScyntax
I can't just drag and drop the file on it, when I do that it just crashes. I have to do it via cmd.exe. Also I think it doesn't ignore text/code in /* and */.
Oh, and good job on the program!

Edit: Drag and dropping seems to work now, i've no idea what I did wrong.

Edit 2: Mhh, I have no idea why but it crashes sometimes... *testing* Tongue

Edit 3:
C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\raw\maps\backup\mp\gametypes>GScyntax.exe _tweakables.gsc
Exception EConvertError in module GScyntax.exe at 000064BE.
'1.0' is not a valid floating point value.
And then it crashes. Also, it's a false positive because this is a stock cod4 .gsc.

Edit 4:
C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\raw\maps\backu
p\mp\gametypes>GScyntax.exe _teams.gsc
Exception EConvertError in module GScyntax.exe at 000064BE.
'0.05' is not a valid floating point value.
It seems to crash with syntax errors about floats? (False positive again)

C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\raw\maps\backu
p\mp\gametypes>GScyntax.exe _shellshock.gsc
Exception EConvertError in module GScyntax.exe at 000064BE.
'0.5' is not a valid floating point value.
Again, it's about a float. And a false positive!

I'm seeing a pattern here Big Grin
Related links

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:03
Post: #5
RE: GScyntax
This is much needed thank you so much

[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:06
Post: #6
RE: GScyntax
It ignores comments.

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:09
Post: #7
RE: GScyntax
(03-18-2011 22:06)SuperNovaAO Wrote:  It ignores comments.

This is nice Big Grin Thanks! can't wait to see how helpful this will be

[Image: shotgun21970001.jpg]
Made By IMTHEBOSS
Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:15
Post: #8
RE: GScyntax
Yes, it's really about the floats (Read my edits above).

Code:
init()
{
    if(1)
    {
        shit = true;
        float = 0.5;
    }
}
Makes it crash.
Remove the float = 0.5; and it doesn't crash. Or add another syntax error in front of the float and it works.
Related links

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:15
Post: #9
RE: GScyntax
Floats worked before. Than I changed it to work with lazy floats (.5) and apparently didn't try it on normal floats.

Also you having 64bit can be the problem

Also read the 1st post about bug reports

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
03-18-2011, 22:23 (This post was last modified: 03-18-2011 22:24 by Pozzuh.)
Post: #10
RE: GScyntax
What do you mean post the code around it?

http://pastebin.com/4vLR3FhE And the small code I posted above.

I also have a suggestion, maybe you can add line numbers on errors.

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder