04-20-2017, 12:02 AM
Still a little for my taste, but I'll let the other decide. I really like the gradient though.
Random Chitchat 2017
|
04-20-2017, 12:02 AM
Still a little for my taste, but I'll let the other decide. I really like the gradient though.
04-20-2017, 05:39 AM
(This post was last modified: 04-20-2017, 03:49 PM by ShadowCone.)
@Mathias please please ask before changing such things. Imo the black was a lot better, such things shouldn't be a one man decision!
Edit: yes, discussing it in the website github where only a few people see it is like discussing it in private or not discussing it at all.
04-21-2017, 08:18 AM
Love the new cuberite forum color.
04-27-2017, 12:23 AM
(This post was last modified: 04-27-2017, 03:20 AM by Seadragon91.)
What's the correct way to call a static function?
Code: Class:Function() Code: Class.Function() Edit: Or should both cases be allowed? I also find that some stack traces are not easy to understand.
04-27-2017, 07:06 AM
ToLua++ generates the "Class:Function()" bindings. For some manual bindings, I used to provide the "super-static" form of "Class.Function()", however, if no-one objects, I'd like to remove those as they are non-consistent and confusing.
What do you mean by stack traces and what's confusing about them? How about an example? I know that calling a static function in a wrong way gives a weird error message, along the lines of "Class was expected, got Class". That's just ToLua++, I guess we could change that, after all we have our own modifications already in place there.
04-28-2017, 07:26 PM
(This post was last modified: 04-28-2017, 07:37 PM by Seadragon91.)
In the api doc the functions for this classes has to be called with an dot.
cStringCompression ItemCategory cCryptoHash Could break plugins, without any warning. For the stack traces, yes I mean that with "class expected". Edit: What's about a addition to plugin APIDump (or directly in Cuberite), that could check the whole plugin folder for deprecated functions? And also printing out the replacement.
04-28-2017, 09:43 PM
It's possible to change to one API style and still keep the old style for a while, and print a warning when it is used, so that plugins get fixed soon. Of course, it would mean a lot of manual API implementations.
How would you detect deprecated function usage? I don't think we can do some kind of Lua static analysis. And there are trivial examples to break even the naive approach to detecting deprecated static function calls: local pm = cPluginManager pm.AddHook(...)
05-02-2017, 07:25 PM
Working on adding missing checks for spawning entities and see that cEntity.html#INVALID_ID has value 0, I always expected it to be -1 and the APIDoc has entries with -1.
What value now 0 or -1?
05-02-2017, 07:50 PM
How about INVALID_ID?
05-05-2017, 05:59 AM
Today @Seadragon91 and me take turns breaking builds Now we need @bearbin to fix our mess
|
« Next Oldest | Next Newest »
|