These are chat archives for ikkentim/SampSharp

3rd
Oct 2016
SomeDevil
@SomeDevil
Oct 03 2016 10:34
got my hands on your vs extension
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:34
What does the extension do?
SomeDevil
@SomeDevil
Oct 03 2016 10:34
enables native VS debugging
with breakpoints, etc.
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:35
That sounds pretty useful
SomeDevil
@SomeDevil
Oct 03 2016 10:35
oh yea it is
had to debug everything with console.writeline or player.sendclientmessage before
:D
SomeDevil
@SomeDevil
Oct 03 2016 10:41
"you need to specify the location of the mono runtime in the project settings of your gamemode." @ikkentim how do I do it?
ok nvm. found it
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:42
What kind of gamemode are you making with the C# gamemode plugin?
SomeDevil
@SomeDevil
Oct 03 2016 10:47
roleplay
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:49
Cool
SomeDevil
@SomeDevil
Oct 03 2016 10:49
and you?
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:50
Just messing around with it, I'm a little confused on how to handle the callbacks and use SA-MP functions.
SomeDevil
@SomeDevil
Oct 03 2016 10:52
well, you can ask anything if you want to, I'll try to help
@ikkentim Debug output shows The program 'PL.dll' has exited with code 0 (0x0). any ideas?
debugging windows appears for a few seconds and then disappears
but server is still running
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:55
Can you list all the callbacks that you can override in the BaseMode class?
Tim Potze
@ikkentim
Oct 03 2016 10:55
No idea:/ seriously only tested it for a few minutes, will be doing some more testing this week
In vs type override and it should suggest names
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 10:56
Thanks
OnPlayerCleanup == OnPlayerDisconnect?
Pretty slow
So if I wanted to override OnPlayerCommandText, do I leave out base.OnPlayerCommandText to prevent the command from going through?
SomeDevil
@SomeDevil
Oct 03 2016 11:18
@ikkentim ok. for some reason it isn't building my startup project when I use your extension
.dll file is not getting created
being*
Tim Potze
@ikkentim
Oct 03 2016 11:24
:/ I’ll look at it tomorrow night or maybe tonight
@NewbProgramming yes
Tim Potze
@ikkentim
Oct 03 2016 11:25
ah, thanks, i had that before, I’ll look into it :)
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 11:27
So @ikkentim can we set the ConsoleColor?
Tim Potze
@ikkentim
Oct 03 2016 11:27
Don’t know, not really imporatant for the purpose of sampsharp really
Yeah it works
It is useful, to display errors from a debugger for example, would be easier to read DarkMagenta than a sea of white errors (y) from the console at least.
SomeDevil
@SomeDevil
Oct 03 2016 11:31
it's better to store/review errors in DB or log files
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 11:31
True.
I still think this is useful >.< >.< >.< just because it's cool.
blob
Console.ReadLine kinda works, you have to double press enter and it doesn't retrieve the string.
Just messing around btw, I know there's no use for console.readline here >.<
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 11:48
How does a timer work?
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 11:59
I may just use OnTick
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 12:12
@ikkentim Looks like you fixed the crashing when closing the server with the latest update
Tim Potze
@ikkentim
Oct 03 2016 12:14
the crashes were fixed but it still hangs in a few cases. I’m atm at work so can’t reply much.
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 12:15
@ikkentim Oh alright, let me know when you are ready to reply, I don't want to bug you
Michael Kilpatrick
@NewbProgramming
Oct 03 2016 17:29
How do you SetSpawnInfo to NO_TEAM? I know I can do 255, but is there like a macro or something?
Figured it out BasePlayer.NoTeam
Tim Potze
@ikkentim
Oct 03 2016 19:28
My server keeps shutting down right after attaching a debugger. So nice when you don't understand your own stuf :|
Tim Potze
@ikkentim
Oct 03 2016 19:36
Ah I see, I broke the plugin like a jackass
SomeDevil
@SomeDevil
Oct 03 2016 20:02
Separate core logic into SampSharp.Core 0.8.0 milestone
does that mean, that you won't fix it in 0.7? :s
i mean shutting down server
Tim Potze
@ikkentim
Oct 03 2016 20:03
It's a pretty big feature.
Has nothing to do with the shutting down not working bug :)
(i think)
SomeDevil
@SomeDevil
Oct 03 2016 20:03
"Game modes should be properly un/reloadable"
i thought itš related
it's
Tim Potze
@ikkentim
Oct 03 2016 20:04
Yea, like you unload the gamemode, replace the DLLs, then reload the dlls again, without having the players disconnect. that's what that is.
SomeDevil
@SomeDevil
Oct 03 2016 20:04
ah, ok, got it
would be pretty nice
Tim Potze
@ikkentim
Oct 03 2016 20:05
There's already a failed attempt for it to work in the plugin, but it's very crash-y
SomeDevil
@SomeDevil
Oct 03 2016 20:05
:D
Tim Potze
@ikkentim
Oct 03 2016 20:07
just fyi, i create issues when ideas pop into my head. If they appear unrealistic/undoable i remove them later. But I think this one will make it in in the next version (after 0.7 full release)