CoDScript Sublime Text Syntax and auto-completion

broken avatar :(
Created 1429 days ago
by Ray1235
0 Members and 1 Guest are viewing this topic.
2,873 views
broken avatar :(
×
broken avatar :(
The OG Polish Modder
Location: pl
Date Registered: 19 June 2013
Last active: 130 days ago
Posts
1,666
Respect
Forum Rank
Zombie Destroyer
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
#RyukoRocks
Signature
[FS] Social Networking, Lead Animator and Scripter
[You are not allowed to view external links. Register or Login to see them]
[You are not allowed to view external links. Register or Login to see them]
×
Ray1235's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
[You are not allowed to view external links. Register or Login to see them]
Spent few hours to make a CoDScript Sublime Text Syntax, which is an updated version of the one that is on the internet (forgot who originally made it). Function list thanks to DUKIP
It also includes some useful auto-completions, like infinite loop and NewHudElem with text. Need ideas for more of them, please suggest them in topic.

Install:
Open packages directory

Copy the archive contents there

It will appear as CoDScript2 in Syntax menu
Known issues:
- Currently it contains mostly SP functions but I doubt anyone scripts for MP anymore
Last Edit: June 24, 2015, 04:59:10 pm by Ray1235
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 60 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Dude, so awesome. Been wanting this and haven't had time to look into it.

Quick question, I usually use ctrl+/ to comment things out, using c++ syntax in sublime, but when switching to codscript syntax, it no worky anymore. Any advise? Its why I stopped using the old version actually.


Edit: Also, would you know how to add a for loop auto complete? Where it then multi cursor selects the var, say players?
Nvmind mind on this one, used your stuff and made it myself. Thanks again! You wouldn't know how to add a hint or default text would you?
Editing the CoDScript2.sublime-completions
Added this after FlagEnemyUnattackable line
{ "trigger": "for(", "contents": "for(${1})" },
and added this after "newHUDElem\tText with a comma at the end of the previous line of course.
{ "trigger": "for\tText: Global", "contents": "for(i=0;i<${1}.size;i++){\n\t${1}[i] thread ${2};\n}" }

Adding all kinds, this is fun.
Sorry but you are not allowed to view spoiler contents.
Last Edit: June 24, 2015, 06:30:32 pm by MakeCents
broken avatar :(
×
broken avatar :(
The OG Polish Modder
Location: pl
Date Registered: 19 June 2013
Last active: 130 days ago
Posts
1,666
Respect
Forum Rank
Zombie Destroyer
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
#RyukoRocks
×
Ray1235's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Quick question, I usually use ctrl+/ to comment things out, using c++ syntax in sublime, but when switching to codscript syntax, it no worky anymore. Any advise? Its why I stopped using the old version actually.
Will look into this, will release a fix when I find out.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 60 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Will look into this, will release a fix when I find out.

cool, I copied the whole C.tmLanguage over to the Codscript one and it worked, so I know its in there, lol. I didn't leave it that way of course cause it breaks the auto complete and who knows what else.
Last Edit: June 24, 2015, 06:15:39 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 60 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Will look into this, will release a fix when I find out.
I got it to work for commenting, and I made a gsc and a csc separate auto complete with full common function lists. Here is the file to add to your packages to get commenting to work. The auto complete I am still working on when I get time. PM me if interested.
[You are not allowed to view external links. Register or Login to see them]


Answer found here:
[You are not allowed to view external links. Register or Login to see them]
Last Edit: June 26, 2015, 12:16:53 pm by MakeCents

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...