Can't enter more than 1 player in my OpenMP server...
# support-forum
o
Hi there. Opened ports recently to try and test a gamemode with some people and when we try to join, the second user (ID 1) is always kicked. (Regardless if its me or them) Tried: - Shutting down my Windows Firewall - Updating Open.MP to the latest version I did not touch anything in the code since we last worked together. The log around when it happens is this:
Copy code
[14:20:59] [Info] Samuel_Contreras used a command
[14:35:13] [Info] [connection] incoming connection: 127.0.0.1:60938 id: 1
[14:35:13] [Info] [join] Emmet_Jackson has joined the server (1:127.0.0.1)
[14:35:23] [Info] [part] Emmet_Jackson has left the server (1:2)
EDIT: Forgot server.cfg
Copy code
echo Executing Server Config...
lanmode 1
rcon_password reborn0001
maxplayers 20
password
port 7777
hostname SAMP Server
gamemode0 roleplay
filterscripts Mapeos
announce 1
query 1
plugins crashdetect sscanf streamer mysql
chatlogging 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 330.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language Español
connseedtime 300000
sleep 5
cookielogging 1
db_logging 1
db_log_queries 1
minconnectiontime 0
logqueries 0
ackslimit 5000
messageslimit 1000
messageholelimit 5000
long_call_time 1000000
crashdetect_log cdt.txt
g
>openmp >server.cfg ?
d
delete server.cfg and put from server rc2 config.json
o
Moved server.cfg and tried settting up the config.json but i don't see where the gamememode and that stuff is located
are you refering at the edds solution?
g
server.cfg does not work with open.mp 👍
its easy to find it tho
Copy code
c
"pawn": {
        "legacy_plugins": ["mysql", "crashdetect", "streamer", "samp_bcrypt"], 
        "main_scripts": [
            "base 1"
        ],
        "side_scripts": ["filterscripts/android-check"]
    },
that's mine config.json
o
wow, didn't know, like, i used the server.cfg before with open.mp but not the RC2 version. tried setting it up like this
Copy code
"pawn": {
        "legacy_plugins": ["mysql", "sscanf", "crashdetect", "streamer"],
        "main_scripts": [
            "roleplay"
        ],
        "side_scripts": ["filterscripts/Mapeos"]
    },`
but i receive this
Copy code
*** Streamer Plugin v2.9.4 by Incognito loaded ***

[2023-03-23T13:11:02-0300] [Info] [debug] Long callback execution detected (hang or performance issue)
[2023-03-23T13:11:02-0300] [Info] [debug] AMX backtrace:
[2023-03-23T13:11:02-0300] [Info] [debug] #0 000a532c in public OnFilterScriptInit () at c:\Users\aleja\Desktop\RCRP\RCRPv3.0\filterscripts\Mapeos.pwn:3761
[2023-03-23T13:11:02-0300] [Info] Invalid/unsupported P-code file format
[2023-03-23T13:11:02-0300] [Info] Legacy Network started on port 7777

```at this random line that i never touched ```SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0x00000000);
do i have to have the new compiler? i have the 3.10.10 version
g
use the QAWNO compiler
that come with the rc2 release. its the 3.10.11
o fuck
o
i use VSCode and i set it up to run with the pawn compiler, a really long time ago and i don't remember how i did it, can you suggest me some tutorial to do it again? thought about directly throwing the pawncc.exe of the qawno folder and the rest of files too into the pawno folder but i feel like that's not the way.
g
no dont throw the pawncc there, the qawno folder that comes with the release has all the includes u need for openmp. and those plugins aswell (sscanf needs to be in components folder not in plugins!). about the vscode u need to create a tasks.json and set a keybind to build the project. i use it the tasks.json like this:
Copy code
c
{
    "version": "2.0.0",
    "tasks":
    [
      {
        "label": "build",
        "type": "shell",
        "command": "${workspaceRoot}\\qawno\\pawncc.exe",
        "args": ["'${file}'", "'-D${fileDirname}'", "'-;+'", "'-(+'", "'-d3'"],
   
        "group":
        {
          "kind": "build",
          "isDefault": true
        },
   
        "isBackground": false,
   
        "presentation":
        {
          "reveal": "always",
          "panel": "dedicated"
        },
        
        "problemMatcher": "$pawncc"
      }
    ]
  }
so i use the pawncc that comes with the openmp release. if u need the keybind, there's this video.

https://www.youtube.com/watch?v=5kXraHjoNU4

its in PT-BR, but it's easy to understand it.
o
where do you have to create the tasks file? in the qawno folder?
g
create a folder in the root folder called .vscode and create a tasks.json there
like this
i can't send you the key bind because i'm not on my PC rn.
but follow the video and just copy what he's doing. the codes will be in the description
o
the keybind i have it already if i'm correct, but if it changes doing this, then i'll have to see that video
g
probably not
if its f5 then it's right, and will build normaly using qawno compiler
o
i read something a while ago that has something to say with the a_samp include and the ysfomp include, you have to delete both and add only the one and thats it?
g
idk about the "ysfomp" but i use #include
all of those omp_... its in the open.mp
and about the crashdetect, use this one:
o
that one goes in plugin or components?
well, i updated the nex-ac and this compiler and it drops me these random errors
Copy code
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\a_zones.inc(421) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\sscanf2.inc(873) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2457) : warning 214: possibly a "const" array argument was intended: "button2"
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2457) : warning 214: possibly a "const" array argument was intended: "button1"
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2457) : warning 214: possibly a "const" array argument was intended: "info"
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2457) : warning 214: possibly a "const" array argument was intended: "caption"
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2976) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2976) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2978) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\nex-ac.inc(2978) : warning 219: local variable "lights" shadows a variable at a preceding level
g
plugins
this isnt the includes fault, its probably tags that u used on SA:MP that needs to be converted to open.mp
like this
or like this TEXT_DRAW...
o
i updated YSI too and it says this: `` C:\Users\aleja\Desktop\Nico\SA-MP Proyects\Roleplay\qawno\include\YSI_Coding\y_malloc\..\..\YSI_Server\y_thirdpartyinclude\y_thirdpartyinclude_entry.inc(506) : user error: Re-download
github.com/Zeex/amx_assembly/archive/refs/heads/master.zip
and extract it to
include\
.`` I do exactly what it asks me, pick the amx assembly-master folder and extract it to qawno\include and does not work, doing it that way, extracting all the folder files to the include folder, or the include folder outside qawno, nothing works
is there documentation about what tags to put? because i don't really remember what alignment was some random textdraw that i have, i imagine that yeah
g
what i did was textdraws, keys, and weapons
weapon:
keys:
key aswell
SetObject aswell.
WEAPON, WEAPON_SLOT, KEY, FIGHT_STYLE is the ones i know about
o
g
use ysi nightly build
o
well, thanks, now i will seat and take my time to do all those tag changes and solve all those errors and then if it nothing works, i'll text again
g
👍
it went well?
f
where are the list of all tags?
l
Quero entra para uma favela como faz
g
?
in the openmp includes
3 Views