SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/04/2018, 10:59 PM   #381
Chaser98
Big Clucker
 
Join Date: Nov 2010
Posts: 51
Reputation: 26
Default Re: SampSharp - Write gamemodes in .NET

Any chance of 0.3-DL compatibility?
Chaser98 is offline   Reply With Quote
Old 25/04/2018, 08:02 PM   #382
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,078
Reputation: 199
Default Re: SampSharp - Write gamemodes in .NET

It works with 0.3DL, but it doesn't have the functions added 0.3DL provides. It is however easily possible to add them, or even add them yourself. If you need any help hop onto our slack group
__________________
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 G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 26/04/2018, 01:26 AM   #383
Chaser98
Big Clucker
 
Join Date: Nov 2010
Posts: 51
Reputation: 26
Default Re: SampSharp - Write gamemodes in .NET

I kinda had a feeling it would. Thanks for the info!
Chaser98 is offline   Reply With Quote
Old 20/11/2018, 07:45 PM   #384
=KempeR=
Huge Clucker
 
=KempeR='s Avatar
 
Join Date: Oct 2011
Location: Kyiv, Ukraine
Posts: 292
Reputation: 7
Default Re: SampSharp - Write gamemodes in .NET

Thanks for the work you've done! Already wanted to create something with it.
__________________
Dafuq am I still doing in SA-MP in 2018?

Sincerely, Kemper
=KempeR= is offline   Reply With Quote
Old 21/11/2018, 06:54 AM   #385
corne
Gangsta
 
corne's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 720
Reputation: 203
Default Re: SampSharp - Write gamemodes in .NET

Considering to use this seeing as I've started to use C# and ASP.NET more often lately. Most of the includes and plugins I use can be replaced with something else in C#, although as far as I know there's no replacement for ColAndreas. Will you implement support for ColAndreas?

EDIT: 0.3.DL support would also be nice
__________________
corne is offline   Reply With Quote
Old 21/11/2018, 08:05 AM   #386
Banditul18
Huge Clucker
 
Join Date: Nov 2014
Location: Brasov,Romania
Posts: 384
Reputation: 32
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by corne View Post
Considering to use this seeing as I've started to use C# and ASP.NET more often lately. Most of the includes and plugins I use can be replaced with something else in C#, although as far as I know there's no replacement for ColAndreas. Will you implement support for ColAndreas?

EDIT: 0.3.DL support would also be nice
As far i know and as ikkentim said, its easy to make a wraper for it(call his functions and what not). Best bet is to join the slack chat as him
Banditul18 is offline   Reply With Quote
Old 16/02/2019, 09:46 PM   #387
Geese
Little Clucker
 
Join Date: Jan 2018
Posts: 1
Reputation: 0
Default Re: SampSharp - Write gamemodes in .NET

When I try to build my server, it creates a .dll file correctly but when loading samp-server.exe; it just loads a default template without any of my console writelines. I believe it is the cfg file I am screwing up but I have messed around with it and done most configurations but it still continues with the template server

Please can I get some advice on how to setup my server.cfg.
Thanks.
Geese is offline   Reply With Quote
Old 18/02/2019, 02:44 AM   #388
RenanMsV
Big Clucker
 
Join Date: May 2016
Posts: 124
Reputation: 4
Default Re: SampSharp - Write gamemodes in .NET

I just tried this. Made my gamemode.

If I got it right, to make it to work I need to:

Open samp_server.exe. <= this will open the server and listen for a gamemode to connect

Run this command in the windows command prompt : dotnet mygamemode.dll <= this will connect my gamemode dll to the server and start the gamemode (need to have all dll dependencies and the MyGameMode.runtimeconfig.json file in the same folder or it will just give an error and not start)

So thats it?
Do I really need to run this dotnet command in the cmd or theres any config in the server.cfg to auto-run that?


Thanks anyway. Great project!
__________________
RenanMsV is offline   Reply With Quote
Old 18/02/2019, 06:28 AM   #389
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,078
Reputation: 199
Default Re: SampSharp - Write gamemodes in .NET

Sorry on phone rn so can’t do more than paste this

(...) hosting a game mode inside the sa-mp server process. If you wish to use this, use the following instructions:
- Download the x86 .NET Core binaries: https://www.microsoft.com/net/downlo...s-x86-binaries
- Compile your game mode with at least SampSharp.Core version 0.8.0-alpha8
- Update the SampSharp plugin to at least 0.8.0-alpha8
- In your server.cfg, set `coreclr` to `path/to/downloaded/dotnet-runtime-2.1.1-win-x86/shared/Microsoft.NETCore.App/2.1.1`
- In your server.cfg, set `gamemode` to `path/to/your/GameMode.dll`
__________________
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 G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 18/02/2019, 02:28 PM   #390
RenanMsV
Big Clucker
 
Join Date: May 2016
Posts: 124
Reputation: 4
Default Re: SampSharp - Write gamemodes in .NET

Great!
Its working.
Side note: I tried with NETCore 2.1.8 (was installed by visual studio 2017) and it didn't work. Then I downloaded the 2.1.1 and its working fine.
Thanks
__________________
RenanMsV 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 09:35 AM
How to write something in a VAR? Ihsan_Cingisiz Help Archive 4 29/05/2010 08:24 PM
How Do You Write This? sidhu123 Everything and Nothing 2 12/09/2009 05:05 AM
Write something in big and to the top TimBuk.Ekh Help Archive 3 18/04/2009 08:19 PM


All times are GMT. The time now is 07:47 AM.


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