These are chat archives for ikkentim/SampSharp

23rd
Jan 2017
Oleg
@5LICK
Jan 23 2017 09:07 UTC
@NewbProgramming It is wrapper for textdraws?
Tim Potze
@ikkentim
Jan 23 2017 09:09 UTC
method chaining for objectcreation is not really a thing in c#, but you already have Property setters in constructors :)
new TextDraw { Text = “something”, Size = new Vector2(1,2), Color=Color.Black};, practically the same
@NewbProgramming maybe you should look into extension methods, the above(your screenshot)^ would probably have been much easier with extension methods
Oleg
@5LICK
Jan 23 2017 09:47 UTC
Better to use sampsharp timers or something other?
Tim Potze
@ikkentim
Jan 23 2017 09:48 UTC
sampsharp timers
Oleg
@5LICK
Jan 23 2017 09:50 UTC
Ok, thanks
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 14:15 UTC
@5LICK Sort of, it is supposed to make working with TextDraws easier (I copied Unity3D UI architecture).
@ikkentim I like the method chaining better :P Thanks for the suggestion though.
Chaining code.
blob
A good example of Method chaining in .NET is DateTime, DateTime is my favorite class in the entire framework, so well thought out.
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 14:20 UTC
I admittedly use it unnecessarily sometimes.
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 14:25 UTC
I was thinking of doing the jQuery animation system too with the chaining.
Tim Potze
@ikkentim
Jan 23 2017 14:26 UTC
animations in textdraws are kinda a no go in samp
the slightest lag renders it useless
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 14:27 UTC
Thanks for letting me know, I'll file that as a useless fun project I'll do when I'm bored :P
http://api.jquery.com/animate/ For those who never used jQuery :D
Oleg
@5LICK
Jan 23 2017 15:01 UTC
@ikkentim Can you tell me a little bit, about IdentifiedPool?
If i have "loot objects" in the world, i need to use IdentifiedPool?
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 16:30 UTC
@ikkentim For the TextDraw streamer, how many players do you think is best before I convert PTD to TD?
I was thinking > 3 players.
=
I mean >=
Diego Cea López
@dcealopez
Jan 23 2017 17:04 UTC
Hey. Does anyone have a 32-bit version of the latest libSampSharp.so library for the linux server? I'm getting a ELFCLASS64 error.
Oleg
@5LICK
Jan 23 2017 17:33 UTC
@Bravo-81 Yes, i have
But i have some problems with linux version, when i statred my gamemode. If you too, please tell about this
issue ikkentim/SampSharp#174
Tim Potze
@ikkentim
Jan 23 2017 18:30 UTC
@5LICK identified pool is basically for the internal objects, for objects which have a native handle (such as player(playerid) vehicle(vehicle) textdraw(textdrawid), etc.) You probably shouldn't use it
@NewbProgramming it doesn't really matter that much, PlayerTextDraw class internally destroys and creates textdraws to preserve pool size. If you have like a time in the corner or a message everyone sees, that's fine to use global textdraws for
Diego Cea López
@dcealopez
Jan 23 2017 19:35 UTC
@5LICK I got the same thing as you. The player gets set out of bounds when spawning, just set their position to other coordinates and that will do the trick for now.
Btw thanks for the compiled library.
Tim Potze
@ikkentim
Jan 23 2017 19:36 UTC
quite weird that it happens :/ I really need to look at what it's caused by
Jay
@LVPJay
Jan 23 2017 20:46 UTC
So I've been thinking of how I'm going to handle database communication, been looking quite a bit at MySQL connector and nHibernate
and then it hit me
are there any reservations of just using plain old MSSQL with EF?
I'm developing a content managed (Umbraco) website in ASP.Net MVC too, so it would allow me to tie everything together quite nicely
I wish you could load balance SA-MP servers
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:29 UTC
@LVPJay If you mean use SQL with Entity Framework, of course you can, all the .NET NuGet packages are usable.
Jay
@LVPJay
Jan 23 2017 22:30 UTC
ok
thats cool
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:30 UTC
Last week I was experimenting with sending Tweets from in-game using Tweetinvi
Jay
@LVPJay
Jan 23 2017 22:31 UTC
nice
@NewbProgramming do you run a SA-MP server coded in .Net?
I'd be interested to take a look
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:33 UTC
@LVPJay Nah, I'm just messing about with it, I want to though.
I will actually, I just can't decide what to make.
Jay
@LVPJay
Jan 23 2017 22:36 UTC
we should start a community project
open souce
I'm in a pretty similar situation
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:37 UTC
Sure what would we make?
Jay
@LVPJay
Jan 23 2017 22:38 UTC
My idea was to create a mini-missions style server, with dynamic mission "game" handling, but I'd be open to change
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:39 UTC
I'm down for it.
Jay
@LVPJay
Jan 23 2017 22:39 UTC
I think regardless of the gamemode, the real way to get a serious edge on the competition is to create a fully localised/multi-language gamemode
that plus the fact I'm a SA-MP Beta Tester gives us a great marketing edge :D
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:40 UTC
I only know English, but sure I'm still down.
Jay
@LVPJay
Jan 23 2017 22:41 UTC
I'll set something up where we can brainstorm some ideas :)
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 22:41 UTC
Alright :D
I have to go for now, probably won't be back for an hour or so
I drive around picking up my family members and dropping them off wherever
Michael Kilpatrick
@NewbProgramming
Jan 23 2017 23:48 UTC
Alright I'm back