26.02.2016, 11:05
[Plugin] SampSharp - Write gamemodes in .NET
25.03.2016, 18:03
Hello!
I've started developing the next version of my gamemode for v0.7.0 both because the architecture between this and previous versions seems quite different and to help contribute to the plugin by testing it - however I am running into a couple of problems, for example, Console.WriteLine does not output to the console.
I realize that 0.7.0 is in development - but I wanted to make sure that the issue isn't down to misconfiguration on my part when building the plugin rather than cutting my losses.
Are you able to write to console with the latest build from Git?
I've started developing the next version of my gamemode for v0.7.0 both because the architecture between this and previous versions seems quite different and to help contribute to the plugin by testing it - however I am running into a couple of problems, for example, Console.WriteLine does not output to the console.
I realize that 0.7.0 is in development - but I wanted to make sure that the issue isn't down to misconfiguration on my part when building the plugin rather than cutting my losses.
Are you able to write to console with the latest build from Git?
03.04.2016, 16:21
Project alive?
03.04.2016, 16:28
The status in the original post is still up to date.
04.04.2016, 22:00
Quote:
Any way to use EntityFramework? I very like it
Actually I get After download and add MonoPosixHelper (I find only old version) |
If you're on windows, did you download the mono standalone package ? http://sampsharp.timpotze.nl/installation#install-mono
05.04.2016, 13:53
No, no, no.
I get this only when I trying to using EntityFramework with SampSharp.
Is any way to use EF with this plugin?
I get this only when I trying to using EntityFramework with SampSharp.
Is any way to use EF with this plugin?
05.04.2016, 19:46
07.04.2016, 14:07
How did you do that?
08.04.2016, 11:36
When I tested it, EF did not work, but I've read mono updated their version of EF since.
Personally, I use and prefer NHibernate in combination with FluentNHibernate. It works out of the box and is supposedly much faster. https://github.com/ikkentim/SampShar...NHibernateTest
Personally, I use and prefer NHibernate in combination with FluentNHibernate. It works out of the box and is supposedly much faster. https://github.com/ikkentim/SampShar...NHibernateTest
23.04.2016, 10:57
hi, could you please check your nuget rep?
screenshot
screenshot
23.04.2016, 15:14
Please change your target framework to .net 4.5.
23.04.2016, 15:46
Still can't download it, shows the same error
23.04.2016, 17:02
(
Последний раз редактировалось SomeDevil; 24.04.2016 в 14:09.
)
Also, is it possible to disable mono library on windows os and use .net CLR? Or remove one of the packages in mono and use standard?
25.04.2016, 22:14
You have to use mono. Ill check the nuget problem later.
Edit: could you also try .net 4.5.1 or 4.5.2?
Edit: could you also try .net 4.5.1 or 4.5.2?
29.04.2016, 14:45
In PlayerClickTextDraw
Код:
[28/04/2016 18:39:44] Exception thrownOnPlayerClickTextDraw: System.MissingMethodException: No constructor found for SampSharp.GameMode.Display.TextDraw::.ctor(System.Int32) at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00180] in C:\buildroot\release\repos\mono\mcs\class\corlib\System\Activator.cs:293 at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in C:\buildroot\release\repos\mono\mcs\class\corlib\System\Activator.cs:224 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in C:\buildroot\release\repos\mono\mcs\class\corlib\System\Activator.cs:219 at SampSharp.GameMode.Pools.IdentifiedPool`1[SampSharp.GameMode.Display.TextDraw].Create (Int32 id) [0x00000] in <filename unknown>:0 at SampSharp.GameMode.Pools.IdentifiedPool`1[SampSharp.GameMode.Display.TextDraw].FindOrCreate (Int32 id) [0x00000] in <filename unknown>:0 at SampSharp.GameMode.BaseMode.OnPlayerClickTextDraw (Int32 playerid, Int32 clickedid) [0x00000] in <filename unknown>:0
29.04.2016, 15:09
Whoops... I'll fix it in the next version. As that release is a little while away, I'll post a temporary fix later when I've got the time.
Edit: FYI this issue is caused by textdraws created outside of SampSharp.
Edit: FYI this issue is caused by textdraws created outside of SampSharp.
30.04.2016, 10:57
(
Последний раз редактировалось Buero; 01.05.2016 в 11:20.
)
13.05.2016, 18:52
30.05.2016, 07:06
Does Entity Framework work with this plugin? I tried using it but I keep getting an error.
30.05.2016, 07:15
I wasn't successful either. NHibernate is supposedly much faster so I've been using that. I'll look in the near future into why EF doesn't seem to be compatible. It's most likely related to the mono version used.
« Next Oldest | Next Newest »
Users browsing this thread: 10 Guest(s)