Raised This Month: $12 Target: $400
 3% 

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
BAILOPAN
Join Date: Jan 2004
Old 12-12-2014 , 21:13   Re: New API and Syntax
Reply With Quote #241

@ClassicGuzzi It's pretty stable and I'd love to see it out soon so I can start doing 1.8 work. From talking with psychonic it sounds like Q1 2015 is likely, but obviously holiday season is not productive

Currently, I believe 1.7-compiled plugins do not work on 1.6. However that's due to a very early change in float semantics and has nothing to do with transitional syntax.

The webcompiler is still 1.6. I can add a 1.7 mode though.
__________________
egg
BAILOPAN is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 12-12-2014 , 21:23   Re: New API and Syntax
Reply With Quote #242

Quote:
Originally Posted by BAILOPAN View Post
@ClassicGuzzi It's pretty stable and I'd love to see it out soon so I can start doing 1.8 work. From talking with psychonic it sounds like Q1 2015 is likely, but obviously holiday season is not productive

Currently, I believe 1.7-compiled plugins do not work on 1.6. However that's due to a very early change in float semantics and has nothing to do with transitional syntax.

The webcompiler is still 1.6. I can add a 1.7 mode though.
Thanks for the quick response! I think that I'll update my servers to 1.7 pretty soon then.

Also, I don't use the web-compiler that much, is just that it's a great tool for sharing plugins! Don't worry about it until 1.7 becomes the stable branch.
ClassicGuzzi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-13-2014 , 02:12   Re: New API and Syntax
Reply With Quote #243

Quote:
Originally Posted by BAILOPAN View Post
@ClassicGuzzi It's pretty stable and I'd love to see it out soon so I can start doing 1.8 work. From talking with psychonic it sounds like Q1 2015 is likely, but obviously holiday season is not productive

Currently, I believe 1.7-compiled plugins do not work on 1.6. However that's due to a very early change in float semantics and has nothing to do with transitional syntax.

The webcompiler is still 1.6. I can add a 1.7 mode though.
So, is there an automated script for converting .inc files now?

For instance, Timers still don't have a transitional syntax / methodmap.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 12-13-2014 , 15:58   Re: New API and Syntax
Reply With Quote #244

Quote:
Originally Posted by Powerlord View Post
So, is there an automated script for converting .inc files now?

For instance, Timers still don't have a transitional syntax / methodmap.
something like this?
PHP Code:
methodmap Timer Handle
{
 
Create() = CreateTimer();

__________________
nergal is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-13-2014 , 18:22   Re: New API and Syntax
Reply With Quote #245

Quote:
Originally Posted by nergal View Post
something like this?
PHP Code:
methodmap Timer Handle
{
 
Create() = CreateTimer();

What about Trigger and Kill?

The rest of the inc file also needs to be converted as well. The name of the existing Timer funcenum/union/whatever the current name is for union (iirc it just recently changed) typeset would need to be changed during this conversion as it'd conflict with the new methodmap name.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-13-2014 at 18:31.
Powerlord is offline
BAILOPAN
Join Date: Jan 2004
Old 12-13-2014 , 20:17   Re: New API and Syntax
Reply With Quote #246

I decided not to update the timer API for 1.7. It's not very OO-like to begin with and it would need many, many plugin updates. I think it's fine as-is, for now. The other Handle types were much bigger wins.
__________________
egg

Last edited by BAILOPAN; 12-13-2014 at 20:19.
BAILOPAN is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-13-2014 , 20:50   Re: New API and Syntax
Reply With Quote #247

Quote:
Originally Posted by BAILOPAN View Post
I decided not to update the timer API for 1.7. It's not very OO-like to begin with and it would need many, many plugin updates. I think it's fine as-is, for now. The other Handle types were much bigger wins.
Oh right, we never figured out how to replace the "any" type in the Timer code since 1.7 has no version of "any"
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
BAILOPAN
Join Date: Jan 2004
Old 12-13-2014 , 21:05   Re: New API and Syntax
Reply With Quote #248

Hrm... 1.7 has the "any" type. Not sure where that misconception came from as I don't think I mentioned removing it or it being a reason for not doing something.
__________________
egg
BAILOPAN is offline
Blocker2
Junior Member
Join Date: Dec 2011
Location: Australia
Old 12-13-2014 , 22:54   Re: New API and Syntax
Reply With Quote #249

This only works in the sourcemod 1.7 developer branch right? If you run a 1.6 stable branch on your server and create a plugin using the new style you'll get an error? What is the difference between the developer branch and the stable branch anyway?
Blocker2 is offline
BAILOPAN
Join Date: Jan 2004
Old 12-13-2014 , 23:00   Re: New API and Syntax
Reply With Quote #250

The development branch is where new development occurs. They rotate about once a year. Yes, transitional syntax is only available in the 1.7 compiler.

A plugin compiled on 1.7 will probably not run on 1.6, but for different reasons (floating-point semantics got a subtle change).
__________________
egg

Last edited by BAILOPAN; 12-13-2014 at 23:01.
BAILOPAN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode