ItsMods

Full Version: the big show-what-you're-working-on thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
I`m using ms sql due to having most experience with it
[Image: JtC89.jpg]
started on the initializing part of the SQLStats plugin Smile

This is real learning while doing programming so this will take a while to complete.
but ive got the basics coverred and a nice properly pooling C# MSSQL class allready Smile

[attachment=1918]

It will all go into seperate structs and threads later. first a working concept, then optimize Smile

too bad players cant join since steam updated MW3 Big Grin
*update*


[attachment=1921]

now all we need is a working addon Troll


master131 Wrote:This is a little preview for a plugin I'm working on. What it's designed to do is provide access to functions/methods, variables, fields and properties through text chat, just like a scripting language. You can create/assign variables values and they are all dynamically typed which means the types are figured out automatically. You can do stuff like:
Code:
self.Other.EnableNoclip(true)
dvarVariable = 'camera_thirdPerson'
setDvar(dvarVariable, '1')
self.Other.SetPlayerModel('vehicle_hummer_destructible')

The syntax is basically like C# except that you use ' instead of " (since MW3 removes them) and you can only execute 1 command at a time. None of the things are hardcoded which means if the Server Addon were to update with new structures/classes or functions, they'll still be supported.

Feel free to make suggestions guys. There are some known limitations like not being able to nest functions calls for example, this won't work:
Code:
self.Other.FreezeControls(CheckFreeze())

Also, indexers are not supported (that is, someArray[index]). Overloaded functions will also cause some problems if their arguments are the same length because LiveScript will execute the first overload it finds and can't tell which one you want since types are dynamically typed. Also I should note that the 'self' keyword refers to your own ServerClient struct.

Finally, note that I'm not using some C# code compiler (like CSharpCodeProvider) to do all of this (although it *might* make it easier), I'm actually parsing all this stuff manually.
(04-20-2012, 13:23)master131 Wrote: [ -> ]I Love Nyan Cat

Thats really nice Big Grin

[Image: sptbZNggBw.png]
finally got the damn SQL to actually log shit and not instacrash on playerconnect/PreMapChange Fuck yea!


[attachment=1931]
after removing the use of Threading from all plugins server runs stable again \o/

and statlogger seems completed \o/
[attachment=1936]
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19