These are chat archives for ikkentim/SampSharp

13th
Jan 2017
Oleg
@5LICK
Jan 13 2017 10:17
When i stop my server (send signal SIGSEGV), i see gdb debug info, it is normally or i have some errors?
Tim Potze
@ikkentim
Jan 13 2017 10:18
Not sure, what's the output?
Oleg
@5LICK
Jan 13 2017 10:19
Debug info from gdb:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
i think it just debug information?
I pressed Ctrl+C
Tim Potze
@ikkentim
Jan 13 2017 10:20
should be all right i think
So don't worry about it I guess
Oleg
@5LICK
Jan 13 2017 10:21
good, all works for me :)
Oleg
@5LICK
Jan 13 2017 10:59
I read docs about controllers and services, it is architecture like a controller, service, dao ? (just without dao)
Tim Potze
@ikkentim
Jan 13 2017 11:19
It's a "use it if you like architecture" you're not strictly bound to it, but you can use it if you want. A controller is in my eyes meant to do part of what you would otherwise do within your gamemode class. e.g. if you have some kind of vehicles system (you load/save them from/to your database) you create a VehicleController (and override BaseVehicleController) and load the vehicles from there.
A service is generally meant for accessing logic from anywhere (as long as you have access to the game mode instance). For example if you have a bank in your game, you can create a bank service so you can access it from bank buildings and atm objects (just an example)
Oleg
@5LICK
Jan 13 2017 11:26
wow, it is very good, it will make my life easy :)
Tim Potze
@ikkentim
Jan 13 2017 11:26
I'll also implement some inversion of control in the next version (0.8)
For improved modularity
Oleg
@5LICK
Jan 13 2017 11:27
Cool, i will be wait this too
Tim Potze
@ikkentim
Jan 13 2017 11:27
Thats will still take a while though, just finised 0.7 :o
Oleg
@5LICK
Jan 13 2017 15:48
Can you give example how use services?
then you can
gameMode.Services.GetService<IVehicleFactory>().Create(vehicletype, position, rotation, color1, color2, respawnDelay, addAlarm);
Oleg
@5LICK
Jan 13 2017 16:02
thanks
Michael Kilpatrick
@NewbProgramming
Jan 13 2017 17:01
Tim Potze
@ikkentim
Jan 13 2017 18:51
If you haven't yet seen this visual studio (2015) extension, check it out :) https://github.com/ikkentim/SampSharp-visualstudio
Michael Kilpatrick
@NewbProgramming
Jan 13 2017 19:09
Will it work on 2017 RC?
Ehh you know what I'll try it out before I ask.
Tim Potze
@ikkentim
Jan 13 2017 19:10
I'll probably have to recompile or check a tickbox it for that. I dont have 2017 yet because i dont want to uninstall 2015, and I at least have to test it... :/
Michael Kilpatrick
@NewbProgramming
Jan 13 2017 19:11
Oh alright it's fine then, I have both versions installed (y)
Tim Potze
@ikkentim
Jan 13 2017 19:11
:o is that possible, I'll need to try that when I've the time
Michael Kilpatrick
@NewbProgramming
Jan 13 2017 19:12
Yeah.
blob
Tim Potze
@ikkentim
Jan 13 2017 19:13
neat
(afk)
Oleg
@5LICK
Jan 13 2017 20:04
I installed SampSharp-visualstudio extension, how use it?