These are chat archives for ikkentim/SampSharp

14th
Jan 2017
Oleg
@5LICK
Jan 14 2017 00:22
Need to add into instructions about - mono, because need put mono portable folder and mono.dll to the server folder (i used Starting Development tutorial)
Its for windows
Oleg
@5LICK
Jan 14 2017 00:32
Also i wrote base code for my game mode, and it is looks like good with SampSharp and OOP :)
Michael Kilpatrick
@NewbProgramming
Jan 14 2017 16:52
:D
Glad to hear what gamemode you making?
Jay
@LVPJay
Jan 14 2017 16:53
I'm starting a "Mini-Missions" style gamemode
only it'll be slightly better than the current mini-missions, and they won't have simple DM/race objectives
this c# API is awesome
Tim Potze
@ikkentim
Jan 14 2017 16:58
:) o/
I once had a successful cnr server, but was sick of pawn, that's when I went and made SampSharp, but haven't had time since to write the gamemode in c# :/ hope to get to it at some point :p
Jay
@LVPJay
Jan 14 2017 17:01
we should start a community project
I think given the SA-MP hosted list nowadays it's quite difficult to compete. But one idea I had that I think would give a project an edge over its competitors would be if it's fully localised, supporting as many languages as possible, and C# makes it a lot easier to do
Tim Potze
@ikkentim
Jan 14 2017 17:04
Yea, I'm rewriting the plugin atm, and want to also implement per-call-to-native codepage selection
Michael Kilpatrick
@NewbProgramming
Jan 14 2017 17:05
So on Ubuntu 64, you can write the plugin and compile it. But I am using WINE to do that haha.
Tim Potze
@ikkentim
Jan 14 2017 17:05
That would be useful too for that, though I don't yet know how to properly switch between them on a per user basis, maybe add like another SendClientMessage command with codepage option
Michael Kilpatrick
@NewbProgramming
Jan 14 2017 17:13
I haven't decided what I wanted to officially release yet, I was thinking of making a Freeroam and you can start singleplayer like mini-missions with all the different vehicle types. Like if you go into a Bus you can press 2 and start a bus route, if you go into a garbage truck, press 2, pick up garbage, etc.
Then players can spend their earned cash on attachments or player vehicles.
I wrote a FCNPC class which just Invokes the FCNPC plugin, so I might add that aspect of scripts too.
Jay
@LVPJay
Jan 14 2017 17:21
you should release that as a standalone library
nuget package
I'm thinking of porting the Debug filterscript
Michael Kilpatrick
@NewbProgramming
Jan 14 2017 17:26
I don't like how SampSharp handles "Extensions", no offense ikkentim. :P I could just release it as a Class you add to the files of your project and it's just as good.
I'm just a lazy person.
Tim Potze
@ikkentim
Jan 14 2017 17:29
The extensions system is quite easy to use, and most importantly, it can handle callbacks. If you don't need the callbacks, you can ignore the extension system
By the way, if anyone needs a key my sampsharp NuGet repo to add packages, just ask
Jay
@LVPJay
Jan 14 2017 17:48
what do you guys use for timers
Jay
@LVPJay
Jan 14 2017 17:54
oh, .Net has a built in timer class that I've never used. cool
Oleg
@5LICK
Jan 14 2017 19:15
i will try run my gamemode on the linux, but when i entered to the game i saw this:
123.png
on the windows all works
in the server logs, all fine
Tim Potze
@ikkentim
Jan 14 2017 19:19
Then your position is out of bounds
Oleg
@5LICK
Jan 14 2017 19:19
hmm, i will try change player spawn
Tim Potze
@ikkentim
Jan 14 2017 19:21
@LVPJay don't use that timer ! For some reason if crashes after a while? Use the timer provided by sampsharp, which will also guarantee it's on the samp thread
Oleg
@5LICK
Jan 14 2017 19:39
strange, i changed spawn for player but still same problem
but on the windows my gamemode works
Tim Potze
@ikkentim
Jan 14 2017 19:40
Odd, are you running the game trough wine? Maybe it's a wine problem
Oleg
@5LICK
Jan 14 2017 19:42
no, now i running on vds in docker
also i got same, when run the server using virtual box
i'm installed mono 4.6 and compiled .so plugin on the 32 bit linux
and i running server in the 32bit system
Tim Potze
@ikkentim
Jan 14 2017 19:48
Maybe it's an endianness issue :/
Could you create an issue on github?
Oleg
@5LICK
Jan 14 2017 19:50
ok
Oleg
@5LICK
Jan 14 2017 20:34
I created issue, and i tried update sampgdk version, because i had similar problem on linux when i tested sampgdk plugin
It did not help :)
Oleg
@5LICK
Jan 14 2017 22:01
i have some logs http://pastebin.com/UYVAEQhC
it happen when i connecting to the server
or spawning
Tim Potze
@ikkentim
Jan 14 2017 22:15
This was still in docker, right?
Oleg
@5LICK
Jan 14 2017 22:33
yes
Oleg
@5LICK
Jan 14 2017 22:39
i will try without docker