SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 09/01/2017, 09:46 PM   #271
Jay_
Beta Tester
 
Jay_'s Avatar
 
Join Date: Jul 2009
Posts: 667
Reputation: 179
Default Re: SampSharp - Write gamemodes in .NET

Same issue afraid. It's frustrating that the SA-MP server doesn't output more detailed error logs.

I'm wondering if it's a problem with mono, I seen your comment here: https://github.com/ikkentim/SampShar...ment-220065296

It seems that the version of mono I downloaded (by following your instructions) doesn't include this .dll out of the box.

Do you know where I may obtain this?
Jay_ is offline   Reply With Quote
Old 10/01/2017, 02:05 AM   #272
LifeIsGood
Little Clucker
 
LifeIsGood's Avatar
 
Join Date: Oct 2016
Location: Los Angeles
Posts: 13
Reputation: 10
Default Re: SampSharp - Write gamemodes in .NET

I'm running it just fine. Window 10 64bit.

If I were to start from scratch, I'd:
http://forum.sa-mp.com/showthread.php?p=3826518

Last edited by LifeIsGood; 11/01/2017 at 07:28 AM.
LifeIsGood is offline   Reply With Quote
Old 10/01/2017, 06:03 AM   #273
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,070
Reputation: 180
Default Re: SampSharp - Write gamemodes in .NET

Ah, the instructions are still assuming you're running 0.6, please try this mono version http://deploy.timpotze.nl/packages/mono-portable46.zip
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 10/01/2017, 09:01 PM   #274
Jay_
Beta Tester
 
Jay_'s Avatar
 
Join Date: Jul 2009
Posts: 667
Reputation: 179
Default Re: SampSharp - Write gamemodes in .NET

Thanks both for the help. LifeIsGood it may be worth you popping that in the Tutorials section!

The plugin is now loading for me - using mono 4.6 indeed done the trick.

I'm still having issues though:



I've enabled the pdb -> mdb conversion for detailed error messages but it seems to be throwing this exception before it starts the conversion process, which makes me worry that it may be a lower level problem.

I'm running a base gamemode which has no logic at the moment, just overrides the OnInitialized event and prints Hello World:

Code:
using SampSharp.GameMode;
using System;

namespace Freeroam
{
    public class Gamemode : BaseMode
    {
     
        protected override void OnInitialized(EventArgs e)
        {
            Console.WriteLine("Hello World");
            base.OnInitialized(e);
        }

    }
}
The gamemode is defined in my server.cfg following convention accordingly as gamemode Freeroam:Gamemode.

Also,I can confirm that post build the .dll files are copying across to the gamemode folder correctly.

Ever seen this one before? I couldn't find any results when searching...
Jay_ is offline   Reply With Quote
Old 11/01/2017, 08:24 AM   #275
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,070
Reputation: 180
Default Re: SampSharp - Write gamemodes in .NET

Seems you're running v0.6.2 of the plugin, am I right? (Or did I forget to update the message in the plugin)

Could you make sure you're running the latest version of the gamemode library and the latest version of the plugin (if the latest version of the plugin doesn't work, try what I suggested before and use v0.7.6119.35177-alpha of the plugin. The latest version of the gamemode library should be just fine to use.

You've confirmed my need to get a stable version of 0.7 and update the docs for that version, I've removed the pdb -> mdb conversion as it often crashed the server for some weird reason. I've been working on a visual studio plugin to do this for you instead (and this VS plugin also enables you to use a debugger with S#)

just yfi: I've been a little idle on the plugin side recently do to work things, but hope to get back to it soon, if you want, you can also join our gitter chat

EDIT: (2017/1/12 22:30) I've released stable version 0.7.6221.37952
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample

Last edited by ikkentim; 12/01/2017 at 08:33 PM.
ikkentim is offline   Reply With Quote
Old 14/01/2017, 12:27 PM   #276
Jay_
Beta Tester
 
Jay_'s Avatar
 
Join Date: Jul 2009
Posts: 667
Reputation: 179
Default Re: SampSharp - Write gamemodes in .NET

Fixed it. Turns out I had different versions of mono in the directory of my env which must've been causing some cross referencing problems. Thanks for the help

Also, nice to see a stable release - good work!

I'm actually surprised (and disappointed in myself) that I didn't notice this project earlier. The sheer effort that's gone into building such a vast and powerful API is phenomenal and quite an achievement that you've come this far. I have an ambition for a SA-MP project that I've always wanted to build, but PAWN simply isn't powerful enough to achieve what I want.

This is a game changer, and I'll be happy to contribute in any possible way going forward.

I've joined the gitter channel - cheers!
Jay_ is offline   Reply With Quote
Old 14/01/2017, 12:53 PM   #277
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,070
Reputation: 180
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Jay_ View Post
Fixed it. Turns out I had different versions of mono in the directory of my env which must've been causing some cross referencing problems. Thanks for the help

Also, nice to see a stable release - good work!

I'm actually surprised (and disappointed in myself) that I didn't notice this project earlier. The sheer effort that's gone into building such a vast and powerful API is phenomenal and quite an achievement that you've come this far. I have an ambition for a SA-MP project that I've always wanted to build, but PAWN simply isn't powerful enough to achieve what I want.

This is a game changer, and I'll be happy to contribute in any possible way going forward.

I've joined the gitter channel - cheers!
Good to see you solved it! And I'm enormously happy that people appreciate this project If you need anything, just ask
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 15/01/2017, 10:23 AM   #278
cawfee
Little Clucker
 
cawfee's Avatar
 
Join Date: Oct 2011
Location: United States
Posts: 24
Reputation: 15
Default Re: SampSharp - Write gamemodes in .NET

Incredible work
__________________



Last edited by cawfee; 15/01/2017 at 11:35 AM.
cawfee is online now   Reply With Quote
Old 15/01/2017, 11:34 PM   #279
WooTFTW
Huge Clucker
 
WooTFTW's Avatar
 
Join Date: May 2011
Location: = GetPlayerPos(WooTFTW);
Posts: 263
Reputation: 37
Default Re: SampSharp - Write gamemodes in .NET

Great work, love it.
WooTFTW is offline   Reply With Quote
Old 25/02/2017, 09:44 PM   #280
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,070
Reputation: 180
Default Re: SampSharp - Write gamemodes in .NET

We've moved from Gitter to Slack! If you want to get in touch with other users of SampSharp, or if you have questions, feel free to join!

__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write on the map hejsan123 Scripting Help 3 23/09/2012 08:35 AM
How to write something in a VAR? Ihsan_Cingisiz Help Archive 4 29/05/2010 07:24 PM
How Do You Write This? sidhu123 Everything and Nothing 2 12/09/2009 04:05 AM
Write something in big and to the top TimBuk.Ekh Help Archive 3 18/04/2009 07:19 PM


All times are GMT. The time now is 05:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.