These are chat archives for ikkentim/SampSharp

1st
Nov 2016
Tim Potze
@ikkentim
Nov 01 2016 07:12
Sounds all right
Florian van Dillen
@fvandillen
Nov 01 2016 15:45
Let's say I would want to store a Vector3 in my database with nHibernate, how would I do that?
Currently, it complains about not knowing what data type to use.
Tim Potze
@ikkentim
Nov 01 2016 15:45
1 sec
public class Vector3ComponentMap : ComponentMap<Vector3>
{
    public Vector3ComponentMap()
    {
        Map(v => v.X);
        Map(v => v.Y);
        Map(v => v.Z);
    }
}
same for vector2, but change accordingly, ofcourse.
for any structure really
Florian van Dillen
@fvandillen
Nov 01 2016 15:47
Oh so you have to map it as a component in order for it to be recognised by nhibernate in other classmaps?
Tim Potze
@ikkentim
Nov 01 2016 15:47
will create a Position_x, Position_y Position_z field if i remember correctly
yes
Florian van Dillen
@fvandillen
Nov 01 2016 15:47
Awesome! Gonna try it
Tim Potze
@ikkentim
Nov 01 2016 15:48
just looked back, Component(x => x.Position).ColumnPrefix("Position");
note you need to use a prefix to add a prefix, is not done automatically
and use Component instead of Map
Florian van Dillen
@fvandillen
Nov 01 2016 15:49
I have to add the component to whatever classmap i'm using the Vector3 in?
Got it, thx
Tim Potze
@ikkentim
Nov 01 2016 15:49
no problem
Florian van Dillen
@fvandillen
Nov 01 2016 15:54
Why would this cause a NativeNotImplemented exception? http://prntscr.com/d1qjnx
Tim Potze
@ikkentim
Nov 01 2016 18:51
Hmm did a native name change? are you on the latest streamer version?
2.8.2 is the latest version
Florian van Dillen
@fvandillen
Nov 01 2016 20:19
Let me check out nuget
I'm on streamer 0.7.6119.34390
Tim Potze
@ikkentim
Nov 01 2016 20:22
plugin, not wrapper :)
Florian van Dillen
@fvandillen
Nov 01 2016 20:22
Whoops
HA
Sometimes the framework makes me forget it doesn't actually to everything
Tim Potze
@ikkentim
Nov 01 2016 20:33
gj
Florian van Dillen
@fvandillen
Nov 01 2016 20:42
Okay good job, server now won't even start after using the new plugin lol
Michael Kilpatrick
@NewbProgramming
Nov 01 2016 22:21
BasePlayer.All
Returns all connected players correct?