These are chat archives for ikkentim/SampSharp

12th
Jan 2017
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 00:01
Remember you can change 'MyGamemode' to what you want to call your gamemode, so like 'LFRP' or something. Keep it English alphanumeric though and it's case sensitive.
Oleg
@5LICK
Jan 12 2017 00:30
good tutorial :)
@NewbProgramming ok, i can translate this tutorial and some descriptions about SampSharp for russian community
Oleg
@5LICK
Jan 12 2017 00:39
i continue try to run SampSharp gamemode on 64bit linux OS, and i have some problems with libmonosgen-2.0. For linux 32bit all works fine.
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 01:06
That's fine cause the SA-MP server is 32 bit anyways :P
64 bit variables need to be converted and .NET does that for us.
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 01:12
But if you really want to pursue that error further, I was getting that error because I had the wrong mono version.

Try using

sudo apt-get install mono-complete

and

sudo apt-get install mono-complete:i386

then

mono --version

Should be version 4.6.2

Michael Kilpatrick
@NewbProgramming
Jan 12 2017 01:20
The only reason I would see making the server run on 64bit is if you use more than 4gb of memory, which on a SA-MP server is impossible unless you're just fucking reckless :P but with .NET even if you're reckless there's still systems running to optimize the program, I.E. constant garbage collection.
I'll try my own tutorial on Ubuntu64 and come back to you, you should have the freedom of using 64bit :P
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 01:50
Hmmm appears SA-MP server wont even run for me... Not even a SA-MP server without SampSharp.
All my Terminal commands says the file doesn't exist...
blob
See :P What a head scratcher.
Tim Potze
@ikkentim
Jan 12 2017 09:03
is your finder window in desktop/Test/env/plugins? or did you just select that folder
Oleg
@5LICK
Jan 12 2017 09:44
i had yesterday same problem
you can try this, this is for 32bit compatibility
dpkg --add-architecture i386

apt-get update
apt-get install libc6:i386 zlib1g:i386

apt-get install lib32stdc++6
Oleg
@5LICK
Jan 12 2017 10:07
i used deb package libmonosgen-2.0-1 (i386) and intall it, after run server on 64 bit, i got this http://pastebin.com/EJG0m98Z
Tim Potze
@ikkentim
Jan 12 2017 10:07
libmonosgen should normally come with mono-complete :o
Oleg
@5LICK
Jan 12 2017 10:08
yes, but mono-complete i cant install with i386 architecture :(
maybe need use only 32 bit linux :)
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 10:29
@ikkentim
I went into the folder, rightclicked a blank space, Open in Terminal, and tried the command 'nohup ./samp03svr &' so I can see output on the console.
What's the equivalent of 'cd <dir>' for Linux?
Tim Potze
@ikkentim
Jan 12 2017 10:31
cd <dir> .
Same
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 10:31
No brainer, hahaha
I'll try it that way
blob
nohup.out is blank so that's not useful haha.
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 10:36
I was going to make a Twitter bot in WinForm today but if you have any ideas of what to do , I will take time to try your suggestions :thumbsup:
I could try making a separate console application with MonoDevelop, with the sole purpose of starting the sa-mp server in the background and redirecting the output to the console app.
I'll do that real quick.
Michael Kilpatrick
@NewbProgramming
Jan 12 2017 10:51
blob
Program works on the 32-bit Ubuntu haha.
Oh well, don't need 64 bit anyways :P
Oleg
@5LICK
Jan 12 2017 11:27
Yes, on 64bit linux, we have problems with x86 compatibility, because samp server is x86 and all dependencies should be for x86 architecture. In this case mono can't install correct architecture (i386)
Or we can do something wrong :)
Tim Potze
@ikkentim
Jan 12 2017 14:27
On windows I've got some awesome VS15 integration for S# :)
Zierk59
@Zierk59
Jan 12 2017 14:28
Is there way to change default message when command isn't exists ("SERVER: Unknown command")?
Tim Potze
@ikkentim
Jan 12 2017 14:30
Easiest way: override OnPlayerCommandText in your gamemode and call base.OnPlayerCommandText(player, e) if it returns false, return true instead and show your custom message
Zierk59
@Zierk59
Jan 12 2017 14:43
Thank you again :smile:
Tim Potze
@ikkentim
Jan 12 2017 14:43
np
Tim Potze
@ikkentim
Jan 12 2017 21:10
Released stable version 0.7.6221.37952
Oleg
@5LICK
Jan 12 2017 21:37
Cool! I can try stable version for write my mode:)