These are chat archives for ikkentim/SampSharp

19th
May 2016
Florian van Dillen
@fvandillen
May 19 2016 10:27
Aye, thx!
Sweet, I hope to accelerate my development now and have a beta out ASAP
Tim Potze
@ikkentim
May 19 2016 10:31
Well, I'm decelerating. I'm in my final 4 weeks of "afstuderen" (whatever you call that in English)
Florian van Dillen
@fvandillen
May 19 2016 10:32
Doesn't seem to compile, btw
Added the newest sampsharp.gamemode.dll, yet it does not resolve the stuff it needs
DynamicCheckpoint.Internal.cs(31,14,31,26): error CS0246: The type or namespace name 'NativeMethodAttribute' could not be found
Tim Potze
@ikkentim
May 19 2016 10:33
Have you got the latest framework from master?
Florian van Dillen
@fvandillen
May 19 2016 10:33
Yup, i've added the reference to that .dll manually
Tim Potze
@ikkentim
May 19 2016 10:33
You probably don't
Florian van Dillen
@fvandillen
May 19 2016 10:34
version 7.x.x.x
Let me check though
Tim Potze
@ikkentim
May 19 2016 10:34
Sash.gamemode.api should contain that missing class
Florian van Dillen
@fvandillen
May 19 2016 10:36
Works, thx. Referenced the old build.
Now referencing the master one which works.
Trying to upload and run now
Runtime throws an error
[19/05/2016 12:38:04] Exception thrownInitialize:
System.TypeInitializationException: The type initializer for 'SampSharp.Streamer.Streamer' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: native
  at SampSharp.GameMode.API.NativeILGenerator..ctor (INative native, System.Type[] parameterTypes, System.Type returnType) <0x3cb1be0 + 0x0006f> in <filename unknown>:0 
  at SampSharp.GameMode.API.NativeObjectILGenerator..ctor (INative native, System.Type nativeObjectType, System.String[] identifiers, System.Type[] parameterTypes, System.Type returnType) <0x3cb1a98 + 0x000af> in <filename unknown>:0 
  at SampSharp.GameMode.API.NativeObjectProxyFactory.CreateInstance (System.Type type, System.Object[] arguments) <0x3cadb30 + 0x00cb3> in <filename unknown>:0 
  at SampSharp.GameMode.API.NativeObjectProxyFactory.CreateInstance[T] (System.Object[] arguments) <0x3ca9698 + 0x00023> in <filename unknown>:0 
  at SampSharp.Streamer.Streamer..cctor () <0x3cd61f0 + 0x0003f> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at SampSharp.Streamer.StreamerExtension.LoadServices (SampSharp.GameMode.BaseMode gameMode) <0x3cd6170 + 0x0000b> in <filename unknown>:0 
  at SampSharp.GameMode.BaseMode.LoadServicesAndControllers () <0x3cd5e48 + 0x00073> in <filename unknown>:0 
  at SampSharp.GameMode.BaseMode.Initialize () <0x3cd0e88 + 0x0003b> in <filename unknown>:0
Never mind, I should recompile my gamemode as well
I used Streamer.load(controllers) before, that doesn't exist anymore. What should I use now?
Tim Potze
@ikkentim
May 19 2016 10:53
Noting
Should work out of the box
Florian van Dillen
@fvandillen
May 19 2016 10:53
Oh that's convenient!
Does that also count for regular gamemode controllers?
Tim Potze
@ikkentim
May 19 2016 10:54
No
SampSharp.timpotze.nl
check the stuff about extensions
Florian van Dillen
@fvandillen
May 19 2016 10:56
Aye
It doesn't run though
No errors, but instead hangs.
Tim Potze
@ikkentim
May 19 2016 10:58
:(
Florian van Dillen
@fvandillen
May 19 2016 10:58
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[12:57:21] 
[12:57:21] Server Plugins
[12:57:21] --------------
[12:57:21]  Loading plugin: SampSharp
[12:57:21] 
[12:57:21] SampSharp Plugin
[12:57:21] ----------------
[12:57:21] v0.7.0, (C)2014-2016 Tim Potze
[12:57:21] 
[12:57:21]   Loaded.
[12:57:21]  Loaded 1 plugins.

[12:57:21] 
[12:57:21] Filterscripts
[12:57:21] ---------------
[12:57:21]   Loaded 0 filterscripts.

[12:57:21]   Filterscript 'empty.amx' loaded.
[12:57:22] Gamemode
[12:57:22] ---------------
[12:57:22] Loading gamemode: RockStars6:GameMode
[12:57:22] Creating domain sashDomainForBoot0...
[12:57:22] Loading image...
[12:57:22] Creating gamemode instance...
[12:57:22]   Loaded.
[12:57:22]
Tim Potze
@ikkentim
May 19 2016 10:58
Do you know
Florian van Dillen
@fvandillen
May 19 2016 10:58
Spikes to 99% CPU
Tim Potze
@ikkentim
May 19 2016 10:58
Where?
Florian van Dillen
@fvandillen
May 19 2016 10:58
On my VPS
Tim Potze
@ikkentim
May 19 2016 10:59
Where in the code :p
Florian van Dillen
@fvandillen
May 19 2016 10:59
No, it doesn't even get to the OnInitialised function
Changed nothing inside that function FYI
Tim Potze
@ikkentim
May 19 2016 10:59
hmm, must be the extension detection I think --
Florian van Dillen
@fvandillen
May 19 2016 11:00
No console commands are received either
Tim Potze
@ikkentim
May 19 2016 11:00
in StreamerExtension.cs, could you remove the attribute above the namespace?
Florian van Dillen
@fvandillen
May 19 2016 11:00
Yes, sec
No change
Same effect and same log
Tim Potze
@ikkentim
May 19 2016 11:09
:( I'll check in a bit
Florian van Dillen
@fvandillen
May 19 2016 11:09
haha, sure, i'm in college anyway
Tim Potze
@ikkentim
May 19 2016 11:09
actuallly done have my server stuff here so can only look and guess
Florian van Dillen
@fvandillen
May 19 2016 11:09
Doing all this coding during a lecture lol
Tim Potze
@ikkentim
May 19 2016 11:10
I'll try debugging in the evening
Tim Potze
@ikkentim
May 19 2016 12:39
This message was deleted
I think I’ve done something wrong in LoadExtensions, I’ll test in the evening
To come back to automatic loading of controllers, I’ve thought about it, but decided against it because of controller overloading, but I might actually have a solution for it, I’ll look into it.
Tim Potze
@ikkentim
May 19 2016 16:14
Most funky exception ever: System.TypeInitializationException: The type initializer for 'SampSharp.Streamer.World.DynamicWorldObject'1' threw an exception. ---> System.ArgumentException: Duplicate type name within an assembly.
Florian van Dillen
@fvandillen
May 19 2016 16:15
Ew lol
Tim Potze
@ikkentim
May 19 2016 16:17
Ah think I found it, I think my native object proxy builder doesn't play nicely with generic types
Tim Potze
@ikkentim
May 19 2016 16:28
Oh wow streamer 2.8 is very breaking
Arguments changed...
So im currently using 2.7.9
But it's still crashing on weird things -.- got to do some digging