Re: SAMP.NET (DotNet / Mono hook) 0.1 ALPHA [Download Available] -
Yasahiro - 18.05.2012
A download link is available!
I've not
thoroughly tested everything, so please report bugs and I'll try and get them fixed ASAP.
Re: [DEV] .NET (dot net) / Mono plugin -
samiras - 20.05.2012
Amazing man; amazing
However I guess you have forgot to implement enough functions. Like GetPlayerVehicle
Can you also upload a zip file that contain source code ? (I dislike svn clients)
Still lots of function are missing; AddVehicleComponent
Re: [DEV] .NET (dot net) / Mono plugin -
Yasahiro - 20.05.2012
Quote:
Originally Posted by samiras
However I guess you have forgot to implement enough functions. Like GetPlayerVehicle
|
Quote:
Originally Posted by samiras
Still lots of function are missing; AddVehicleComponent
|
I'm aware I missed a lot of functions. I'm still working on it, it's still in alpha of course. I just wanted to get a release out to show people that I am actually working on it
Quote:
Originally Posted by samiras
Can you also upload a zip file that contain source code ? (I dislike svn clients)
|
Sure, I'll put up a download for the source a bit later (Y)
Re: [DEV] .NET (dot net) / Mono plugin -
Whiteagle - 21.05.2012
Yasahiro,
I've been testing it out and only found a little problem.
When i start the server i get a list with all the functions saying "not found" in front of them, this occurs when the plugin loads.
The problem: (Note that this occurs with every single function, but i only quoted a few as example, also it does not appear in the server log file)
Код:
[...]
::SetWorldTime - not found
::TextDrawCreate - not found
::TextDrawLetterSize - not found
::TextDrawAlignment - not found
::TextDrawColor - not found
::TextDrawUseBox - not found
::TextDrawSetShadow - not found
::TextDrawSetOutline - not found
::TextDrawBackgroundColor - not found
::TextDrawFont - not found
::TextDrawShowForPlayer - not found
::TextDrawHideForPlayer - not found
::TextDrawSetString - not found
::GetPlayerState - not found
::SetPlayerTime - not found
::IsPlayerConnected - not found
Note: You should add into your post that you need Mono installed & you need to have the mono path added to your system in order to run the server, a lot of people will get a sample mono error and they wont know what to do.
Other than that I'm having an excellent experience,
I've been extending the API as i go trough and need more functions and made the Natives class public and it's awesome! (But note that the error explained above happens with your original release too).
If you need a commiter hand let me know.
Also I will try to rebuild the hook to see if the error explained above goes away, but currently I'm having some unresolved external symbols error (after adding the libraries) and did'nt had time to look at it yet.
Congratulations for this awesome, awesome wrapper and Thank you!
Re: SAMP.NET (DotNet / Mono hook) 0.1.1 ALPHA [Download Available] -
Yasahiro - 21.05.2012
Quote:
Originally Posted by Whiteagle
The problem: (Note that this occurs with every single function, but i only quoted a few as example, also it does not appear in the server log file)
|
The only reason I can think that's happening is the game mode isn't compiled, or isn't being used by the server. When I tested it, I only had the "not found" output if the methods didn't exist as part of InvokeFunction in the PAWN script. The reason it doesn't save in the server log is because it uses C++ std::cout to write to the console as opposed to using logprintf. Though, it's a good thing I kept it in as it helped you to find out that error.
Quote:
Originally Posted by Whiteagle
Note: You should add into your post that you need Mono installed & you need to have the mono path added to your system in order to run the server, a lot of people will get a sample mono error and they wont know what to do.
|
Good find, I shall test and confirm it on a machine that doesn't have Mono. Thanks for pointing that out.
Re: SAMP.NET (DotNet / Mono hook) 0.1.1 ALPHA [Download Available] -
Whiteagle - 21.05.2012
Quote:
Originally Posted by Yasahiro
The only reason I can think that's happening is the game mode isn't compiled, or isn't being used by the server. When I tested it, I only had the "not found" output if the methods didn't exist as part of InvokeFunction in the PAWN script. The reason it doesn't save in the server log is because it uses C++ std::cout to write to the console as opposed to using logprintf. Though, it's a good thing I kept it in as it helped you to find out that error.
Good find, I shall test and confirm it on a machine that doesn't have Mono. Thanks for pointing that out.
|
Hello,
Thanks for the answer!
Actually my gamemode is compiled & set as the server gamemode.
I added a printf in the gamemode main and I get the printf after the error messages.
I'll check the plugin code tomorrow and try to figure out what's causing this.
Thank you,
Diogo Raminhos.
Re: [DEV] .NET (dot net) / Mono plugin -
samiras - 22.05.2012
Any news about next release date ?
Re: [DEV] .NET (dot net) / Mono plugin -
Yasahiro - 22.05.2012
Quote:
Originally Posted by samiras
Any news about next release date ?
|
Just released 0.2 alpha. Not a major update, but I did include vehicle components and player vehicles. I shall get to work on implementing as much more as I can.
Re: [DEV] .NET (dot net) / Mono plugin -
samiras - 23.05.2012
Quote:
Originally Posted by Yasahiro
Just released 0.2 alpha. Not a major update, but I did include vehicle components and player vehicles. I shall get to work on implementing as much more as I can.
|
Interesting ! Thank you for your good activity and the source code.
Re: [DEV] .NET (dot net) / Mono plugin -
samiras - 05.07.2012
Finally a new release.
What about remote script load functionality; Is it on your list ?
Going to test new version. Thank you
Re: [DEV] .NET (dot net) / Mono plugin -
Yasahiro - 05.07.2012
Quote:
Originally Posted by samiras
Finally a new release.
What about remote script load functionality; Is it on your list ?
Going to test new version. Thank you
|
Sorry about the delay, I have been working non-stop to get a Linux version working

Indeed the remote script load functionality is on my list of features, I'll see if I can implement it in the next update for you.
I can't guarantee this update is working properly on all systems since there was big changes I made, so be gentle.
Re: [DEV] .NET (dot net) / Mono plugin -
Romanius - 05.07.2012
Quote:
Originally Posted by Yasahiro
Sure I'll work on adding debug information.
Also, what's the value of playerSpawns[0]?
|
PHP код:
private Vector3[] playerSpawns = new Vector3[]
{
new Vector3(1958.3783f, 1343.1572f, 15.3746f),
new Vector3(2199.6531f, 1393.3678f, 10.8203f),
new Vector3(2483.5977f, 1222.0825f, 10.8203f),
new Vector3(2637.2712f, 1129.2743f, 11.1797f),
new Vector3(2000.0106f, 1521.1111f, 17.0625f),
new Vector3(2024.8190f, 1917.9425f, 12.3386f),
new Vector3(2261.9048f, 2035.9547f, 10.8203f),
new Vector3(2262.0986f, 2398.6572f, 10.8203f),
new Vector3(2244.2566f, 2523.7280f, 10.8203f),
new Vector3(2335.3228f, 2786.4478f, 10.8203f),
new Vector3(2150.0186f, 2734.2297f, 11.1763f),
new Vector3(2158.0811f, 2797.5488f, 10.8203f),
new Vector3(1969.8301f, 2722.8564f, 10.8203f),
new Vector3(1652.0555f, 2709.4072f, 10.8265f),
new Vector3(1564.0052f, 2756.9463f, 10.8203f),
new Vector3(1271.5452f, 2554.0227f, 10.8203f),
new Vector3(1441.5894f, 2567.9099f, 10.8203f),
new Vector3(1480.6473f, 2213.5718f, 11.0234f),
new Vector3(1400.5906f, 2225.6960f, 11.0234f),
new Vector3(1598.8419f, 2221.5676f, 11.0625f),
new Vector3(1318.7759f, 1251.3580f, 10.8203f),
new Vector3(1558.0731f, 1007.8292f, 10.8125f),
//new Vector3(-857.0551f, 1536.6832f, 22.5870f), Out of Town Spawns
//new Vector3(817.3494f, 856.5039f, 12.7891f),
//new Vector3(116.9315f, 1110.1823f, 13.6094f),
//new Vector3(-18.8529f, 1176.0159f, 19.5634f),
//new Vector3(-315.0575f, 1774.0636f, 43.6406f),
new Vector3(1705.2347f, 1025.6808f, 10.8203f),
};
Re: [DEV] .NET (dot net) / Mono plugin -
Simon - 05.07.2012
Quote:
Originally Posted by Romanius
PHP код:
private Vector3[] playerSpawns = new Vector3[]
{
new Vector3(1958.3783f, 1343.1572f, 15.3746f),
new Vector3(2199.6531f, 1393.3678f, 10.8203f),
new Vector3(2483.5977f, 1222.0825f, 10.8203f),
new Vector3(2637.2712f, 1129.2743f, 11.1797f),
new Vector3(2000.0106f, 1521.1111f, 17.0625f),
new Vector3(2024.8190f, 1917.9425f, 12.3386f),
new Vector3(2261.9048f, 2035.9547f, 10.8203f),
new Vector3(2262.0986f, 2398.6572f, 10.8203f),
new Vector3(2244.2566f, 2523.7280f, 10.8203f),
new Vector3(2335.3228f, 2786.4478f, 10.8203f),
new Vector3(2150.0186f, 2734.2297f, 11.1763f),
new Vector3(2158.0811f, 2797.5488f, 10.8203f),
new Vector3(1969.8301f, 2722.8564f, 10.8203f),
new Vector3(1652.0555f, 2709.4072f, 10.8265f),
new Vector3(1564.0052f, 2756.9463f, 10.8203f),
new Vector3(1271.5452f, 2554.0227f, 10.8203f),
new Vector3(1441.5894f, 2567.9099f, 10.8203f),
new Vector3(1480.6473f, 2213.5718f, 11.0234f),
new Vector3(1400.5906f, 2225.6960f, 11.0234f),
new Vector3(1598.8419f, 2221.5676f, 11.0625f),
new Vector3(1318.7759f, 1251.3580f, 10.8203f),
new Vector3(1558.0731f, 1007.8292f, 10.8125f),
//new Vector3(-857.0551f, 1536.6832f, 22.5870f), Out of Town Spawns
//new Vector3(817.3494f, 856.5039f, 12.7891f),
//new Vector3(116.9315f, 1110.1823f, 13.6094f),
//new Vector3(-18.8529f, 1176.0159f, 19.5634f),
//new Vector3(-315.0575f, 1774.0636f, 43.6406f),
new Vector3(1705.2347f, 1025.6808f, 10.8203f),
};
|
Class scope variables cannot currently be initialized in class scope (I haven't tested with the latest version 0.6). You are most likely getting a null pointer error due to this, initialize that array in your Load() method.
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
Yasahiro - 05.07.2012
Quote:
Originally Posted by Simon
Class scope variables cannot currently be initialized in class scope (I haven't tested with the latest version 0.6). You are most likely getting a null pointer error due to this, initialize that array in your Load() method.
|
I'm aware of the problem, and I've not had chance to fix it yet. I'm not quite sure why it's happening to be honest, but I'll do some troubleshooting. Fortunately there are workarounds for now though
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
Gogeta - 06.07.2012
Nice job hard working i dont know how u understant them
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
samiras - 10.07.2012
private Vector3[] playerSpawns = new Vector3[]
An idea to fix the problem for Yasahiro
Don't bother to implement the vector. Simply use provided vector and point3d in .net library
http://msdn.microsoft.com/en-us/libr...d.point3d.aspx
Not only Point3d but lot's of other useful structures.
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
Yasahiro - 18.07.2012
Quote:
Originally Posted by samiras
private Vector3[] playerSpawns = new Vector3[]
An idea to fix the problem for Yasahiro
Don't bother to implement the vector. Simply use provided vector and point3d in .net library
http://msdn.microsoft.com/en-us/libr...d.point3d.aspx
Not only Point3d but lot's of other useful structures.
|
Due to platform-dependant reasons I don't have access to the System.Windows.Media namespace. And then if I wanted to include a 2D point, I'd have to use the provided Point in the System.Drawing namespace. Not very organised.
But this has given me an idea to make separate classes for Size, Location and Rotation and whatnot.
Side-note to anyone:
After browsing the forum, I found another plugin that allows use of coloured text in the console log.
Would this be useful to implement into SAMP.NET?
You guys could just use
Код:
Console.ForegroundColor = ConsoleColor.Something
but that doesn't affect using the native logprintf(). And Console.Write() doesn't write to the log file which is annoying.
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
Romanius - 18.07.2012
Quote:
Originally Posted by Yasahiro
Side-note to anyone:
After browsing the forum, I found another plugin that allows use of coloured text in the console log.
Would this be useful to implement into SAMP.NET?
You guys could just use
Код:
Console.ForegroundColor = ConsoleColor.Something
but that doesn't affect using the native logprintf(). And Console.Write() doesn't write to the log file which is annoying.
|
No.
......
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
samiras - 22.07.2012
Quote:
Originally Posted by Romanius
No. ......
|
+1
Never waste your time on such things... I would like to see full-working plugin before any additional feature..
I really need it man (I'm know you are working on this but maybe you dedicate more time)
If only you could port ALL of sa-mp functions in the OOP environment... Then I could start to write an open source game mode for dedicate on this plugin to show the power of this plugin to everybody.
Re: SAMP.NET (DotNet / Mono hook) 0.6 BETA -
VIRUXE - 06.08.2012
How can we help?