Discord Module
Hello! I got a Discord module for a server script on GTAV. Unfortunately, it doesn't run on Ubuntu... Everything works fine on Windows. I have the correct path and permissions.
Code:
Error on startup:
26 Replies
idk try to output file path somehow and see if it's correct
What does this method do?
Helpers.FormatString("DiscordBot{0}",just string.Format? Also you might wanna use
AppContext.BaseDirectory
over Directory.GetCurrentDirectory();
GitHub
V/Source/DiscordBot at main ยท OwlGamingCommunity/V
OwlGaming roleplay script for RAGE Multiplayer on GTA 5. - OwlGamingCommunity/V
GitHub
V/Source/DiscordBotShared at main ยท OwlGamingCommunity/V
OwlGaming roleplay script for RAGE Multiplayer on GTA 5. - OwlGamingCommunity/V
GitHub
V/Source/owl_core/Server/DiscordIntegration.cs at main ยท OwlGamingC...
OwlGaming roleplay script for RAGE Multiplayer on GTA 5. - OwlGamingCommunity/V
This is all code ๐
I can pay for your helpp
Try changing the
to
It might simply be a working directory issue
Same :/
Could you change it to this next?
same error ๐ฆ
Can you screenshot your output folder?
Windows
Linux:
@arion ๐
That explains why
You built the project on windows
try rebuilding it for linux
On windows it looks for
DiecordBot.exe
on Linux it looks for DiscordBot
which is an elf binary (Linux program)
either build it on Linux using dotnet build
or build it on windows for Linux using dotnet build --os linux
Okay, but I have a few items in my solution. How to make it compile exactly only DiscordBot? ๐
from the command line you can do the same commands, just
cd
into that folder (The DiscordBot folder) and build it from theretry going to
C:\Users\eoeo2\Desktop\RageMP\Output\Debug\netcoreapp3.1\linux-x64\
and see if your binary is there now
if it is, move that into the previous directoryRobi jebany
what?
Shiii, nothing xD Sorry.
I must set directory?
or just move the contents of the folder. You should be able to figure out the rest, its not really C# advice anymore
@arion It's works! Thanks! ๐