Raised This Month: $ Target: $400
 0% 

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Wliu
Veteran Member
Join Date: Apr 2013
Old 09-01-2015 , 20:55   Re: New API and Syntax
Reply With Quote #591

Bailopan: Would you consider allowing try/catch for things like CreateNative()? I get a lot of errors related to that in FF2, and it's always been an installation error of some kind (eg duplicate plugins), so I'd like to just catch it and tell them to reinstall FF2 instead of having them complain that FF2 is broken.

Obviously an arguable use case, so yeah.
__________________
~Wliu
Wliu is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-01-2015 , 20:59   Re: New API and Syntax
Reply With Quote #592

The "correct" fix is probably to just make the error message more useful.
__________________
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-02-2015 , 06:39   Re: New API and Syntax
Reply With Quote #593

Quote:
Originally Posted by asherkin View Post
The "correct" fix is probably to just make the error message more useful.
Ya that would be best choice cause it would then better tell us how the native failed to be created.
__________________
WildCard65 is offline
BAILOPAN
Join Date: Jan 2004
Old 09-02-2015 , 15:03   Re: New API and Syntax
Reply With Quote #594

What does the error message currently say?
__________________
egg
BAILOPAN is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-02-2015 , 17:07   Re: New API and Syntax
Reply With Quote #595

Quote:
Originally Posted by BAILOPAN View Post
What does the error message currently say?
"Fatal error creating dynamic native!"
__________________
WildCard65 is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 09-02-2015 , 19:49   Re: New API and Syntax
Reply With Quote #596

Forwards will fail with Native "Call_StartForward" reported: Invalid forward handle 0 (error 4).
In addition, despite CreateNative reporting it as a fatal error, the plugin continues to run.
__________________
~Wliu
Wliu is offline
BAILOPAN
Join Date: Jan 2004
Old 09-02-2015 , 20:04   Re: New API and Syntax
Reply With Quote #597

Okay. Feel free to file a bug, that can be improved.
__________________
egg
BAILOPAN is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-03-2015 , 07:07   Re: New API and Syntax
Reply With Quote #598

Quote:
Originally Posted by BAILOPAN View Post
Okay. Feel free to file a bug, that can be improved.
Done: https://bugs.alliedmods.net/show_bug.cgi?id=6410
__________________
WildCard65 is offline
R1KO
Member
Join Date: Sep 2013
Old 09-03-2015 , 15:22   Re: New API and Syntax
Reply With Quote #599

trie, menus, panels created through metodmap too often give errors Invalid handle 0 (error 4).
R1KO is offline
Send a message via Skype™ to R1KO
BAILOPAN
Join Date: Jan 2004
Old 09-03-2015 , 16:38   Re: New API and Syntax
Reply With Quote #600

@R1KO: You might want to make sure you have the latest SM build. Earlier versions of the compiler had bugs with property accessors.
__________________
egg
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 13:21.


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