These are chat archives for ikkentim/SampSharp

2nd
Oct 2016
Tim Potze
@ikkentim
Oct 02 2016 10:37
Ill explain in a few, need lunch :)
Tim Potze
@ikkentim
Oct 02 2016 13:01
I'm releasing a new build today after which you can use the debugger
Has anyone had this issue, or is able to reproduce this issue? ikkentim/SampSharp#153
SomeDevil
@SomeDevil
Oct 02 2016 13:02
I'm using tons of it and it works fine, but I didn't check in "public override void OnSpawned"
Tim Potze
@ikkentim
Oct 02 2016 13:03
Should work just fine there if it works in pawn ¯_(ツ)_/¯
shruggie breaks in gitter :(
SomeDevil
@SomeDevil
Oct 02 2016 13:03
:(
p.s. EF also works
Tim Potze
@ikkentim
Oct 02 2016 13:04
Sweet :)
SomeDevil
@SomeDevil
Oct 02 2016 13:05
so you can close that issue also :D
Tim Potze
@ikkentim
Oct 02 2016 13:05
:)
thanks for checking/sharing
Tim Potze
@ikkentim
Oct 02 2016 13:20
does anyone know that the default text draw font is?
"diploma"(0), "normal"(1), "slim"(2) or "pricedown"(3)?
Tim Potze
@ikkentim
Oct 02 2016 17:06
(if anyone needs the linux plugin https://s3-eu-west-1.amazonaws.com/sampsh/ikkentim/SampSharp/260/260.1/bin/libSampSharp.so , is the latest build )
Tim Potze
@ikkentim
Oct 02 2016 18:42
A new pre-release is being build. With this release you can use the visual studio extension https://github.com/ikkentim/SampSharp-visualstudio
Follow the readme to start using it. Please note: the VS extension is still in beta. If you experience any problems, please open an issue so I can look into it! Thanks :)
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 18:43
How's it going Tim Potze?
Tim Potze
@ikkentim
Oct 02 2016 18:45
Also please note you'll need to latest version of mono to use the VS extension! You can download it here: http://deploy.timpotze.nl/packages/mono-portable46.zip . Simply extract the contents of the archive to your server folder. After you have changed the project type to a sampsharp type (see readme in the repo), you need to specify the location of the mono runtime in the project settings of your gamemode. Need help? Post here! :)
@NewbProgramming I'm fine :) Trying to fix an annoying crash when shutting down the server :/
after updating nuget package
:(
Tim Potze
@ikkentim
Oct 02 2016 19:03
hmm . let me update the streamer wrapper real quick
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:04
Do you know Lua @ikkentim ?
Tim Potze
@ikkentim
Oct 02 2016 19:07
Only the slightest bit, not much
@SomeDevil new build of the streamer wrapper is coming up
SomeDevil
@SomeDevil
Oct 02 2016 19:08
thanks!
Tim Potze
@ikkentim
Oct 02 2016 19:09
It's up
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:10

@ikkentim
I find this very interesting:
http://pastebin.com/raw/Da89FmBn

Using LuaInterface ;) so many possibilities.

Tim Potze
@ikkentim
Oct 02 2016 19:11
:)
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:13
In C# should I write String as String or string, they seem to be the same, are they?
Tim Potze
@ikkentim
Oct 02 2016 19:13
Both the same, most people agree string is the most convenient (don't need to press shift as much :P )
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:13
Alright thank you.
Int32 is the same as int?
Tim Potze
@ikkentim
Oct 02 2016 19:14
yup
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:14
Okay
Tim Potze
@ikkentim
Oct 02 2016 19:14
byte -> Byte, int -> Int32, string -> String, float -> Single, short -> Int16, all just shorthands
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:15
Gotcha thanks for that.
In C# it says 25,000,000 ticks have gone by, in Lua it says 500,000 ticks have gone by... that's a really big difference... thought Lua and C# were both compiled down to machine code.
Tim Potze
@ikkentim
Oct 02 2016 19:17
neither are
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 19:19
LuaJIT?
SomeDevil
@SomeDevil
Oct 02 2016 19:22
huh. after update something spams my server console
Tim Potze
@ikkentim
Oct 02 2016 19:22
:O what does it spam?
I did some debugging, did i break something?
SomeDevil
@SomeDevil
Oct 02 2016 19:23
noghing
[19:18:46]
[19:18:47]
[19:18:48]
[19:18:49]
[19:18:50]
[19:18:51]
just empty messages
Tim Potze
@ikkentim
Oct 02 2016 19:23
:|
SomeDevil
@SomeDevil
Oct 02 2016 19:23
every second
Tim Potze
@ikkentim
Oct 02 2016 19:23
I'll look for log calls
Tim Potze
@ikkentim
Oct 02 2016 19:29
:| found it... i committed debugging code
A new build is coming up...
Tim Potze
@ikkentim
Oct 02 2016 19:45
Done
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 20:11
Familiar with JSON?
SomeDevil
@SomeDevil
Oct 02 2016 20:12
yep
Michael Kilpatrick
@NewbProgramming
Oct 02 2016 20:16

http://pastebin.com/raw/Da89FmBn

Made a ToLON (Lua Object Notation) function for C# haha.

{ ["Hello"] = "Hello", ["Array"] = { 1 = 1, 2 = 2, 3 = 3 } }, { ["print"] = LuaNativeFunction, ["tick"] = LuaNativeFunction }
Oh I messed up on converting the string value, fixed it
{ ["Hello"] = "World", ["Array"] = { 1 = 1, 2 = 2, 3 = 3 } }, { ["print"] = LuaNativeFunction, ["tick"] = LuaNativeFunction }
Now it works as intended.
^.^
Now to work on converting it back to a LuaTable.