Help with running XJ Listen server on MacOS

Started by Mint
13/06/2020 19:22
Page 1 of 1
Mint13/06/2020 19:22

Hello everybody, I hope you are doing well!

I have Counter-Strike 1.6 (steam) in a Macbook Air, it runs great in all servers for any mod, including KZ, I can play in KZ servers without a problem.

The thing is, I want to set up the listen server so I can play KZ on my own.

1) I've downloaded the XJ_listenserver_v2.2 file and I placed it in the correct folder.
2) I've edited the liblist.gam file to enable the correct DLL file to run the XJ plugin but it still doesn't work.

My original LIBLIST.GAM file looks like this:

gamedll "dlls\mp.dll"
gamedll_linux "dlls/cs.so"
gamedll_osx "dlls/cs.dylib"


My update to this file was:

gamedll "addons\metamod\dlls\metamod.dll"
gamedll_linux "dlls/cs.so"
gamedll_osx "dlls/cs.dylib"


This doesn't work because I believe the code that will run is the one declared in gamedll_osx.

- My first try: Disable the gamedll_osx line, the result is = the game can't be created.
- My second try: place the metamod.dll rout into gamedll_osx line, the result is = the game can't be created.

I had to keep the line as it was originally.

Do you know if there's a solution for this?

Can we edit the file cs.dylib to run the metamod file and all the AMXX addon and XJ plugin?

Please help me, I really want to do this! :)

Thanks in advance to everyone!
Cheers,
Martin

dEMolite mapper13/06/2020 20:43(edited 13/06/2020 21:03)

you need metamod as dylib and amxmodx.

your game crashes because you are trying to load a windows library on mac. its not support so the game crashes or doesnt start.
same with disabling gamedll_osx, you remove the essential part of the game. there for the engine tries to find the string of the gamedll_osx, but since you disabled it the modstructure can't be loaded therefor the game wont load.


/edit:

there you go:
grab this for metamod: http://www.amxmodx.org/release/metamod-1.21.1-am.zip
then change gamedll_osx "addons\metamod\dlls\metamod.dylib"

then you need to grab this for amxmodx:
https://www.amxmodx.org/amxxdrop/1.9/amxmodx-1.9.0-git5270-base-mac.zip
and this for counter-strike addons for amxmodx
https://www.amxmodx.org/amxxdrop/1.9/amxmodx-1.9.0-git5270-cstrike-mac.zip

Edit the plugins.ini in your metamod folder to pin point metamod to your amxmodx.dylib
After that edit the moduls.ini on your amxmodx install or use the moduls.ini which came with xj pack.
Same with plugins.ini in your amxmodx install and with the amxx.cfg


If that had worked for you, go out. run in circles around your house and shout a thanks out :)

Mint13/06/2020 21:52

Hey dEMolite! Thank you for this, I did all of that but still the game cannot be created.
Somehow, I sense I did something wrong along the way.

Should I remove all the addons as a first step?

I've grabbed the metamod in the first link, replaced it, changed the liblist.gam line, then I downloaded the base amxmodx, and then downloaded the strike amxmodx and combined it with the first one.

AT last, the plugins.ini has 3 lines in which the first line was updated with amxmodx.dylib but the first string in that line says "win32" which I believe is not correct if I had macOS, right?

In any case, I had not removed the XJ Listenserver package at all, should I remove everything and start again?

Damn :(
I've very grateful that you answered with this!

dEMolite mapper13/06/2020 22:58

uh right there is no plugins.ini in the macOs version, sry my fault. i should have checked it first instead of writing some bullshit XD

win32 is not right yep

since we dont have macOS version for HookMod and axn you can remove those entries and tthe plugin.ini should look like this:

osx addons/amxmodx/dlls/amxmodx_mm.dylib

then it should work.
What you could do is also try to start the game with with an empty plugins.ini
Game should fully load with a text in console that metamod has been loaded.

Mint14/06/2020 03:04

Hey! One step closer!
The Metamod loaded properly in my game now! But still the AMX mod and the XJ plugin are not loading.

Could this be for the "osx addons/..." line? Maybe the "osx" is not the correct one?

dEMolite mapper14/06/2020 17:46

i guess its the .ini text formating, which was already mention in the amxmodx forum.

try this one: https://forums.alliedmods.net/showpost.php?p=2451529&postcount=8

Its because windows uses CRF and it can corrupt lines on other operation systems. while they use different file formating

Mint14/06/2020 22:51

YES! Another step closer, it worked this way!
The / worked instead of the \

Now the AMX loaded properly! Still the XJ does not work, I'm going to investigate a little more but if you happen to know what this could be, let me know!

Amazing help dEMolite! <3

Mint14/06/2020 23:30

YYYYYYESSSSS!
I could load it! When I placed the packs you sent me, I forgot to add the .sma files from XJ and some other files, I had only the AMX files by default, after that, I had to edit the CFG to properly load them also, it worked!

This thread must be pinned as the official guide to load XJ listenserver on MAC OSX :)

Thanks a lot dEMolite, you are awesome!
Many thanks!

I have to figure out some things left because even though the timer, checkpoints, gocheck, and LJ stats work, I'm not sure if the timer re-starts every time I push the button because there's no message in the game that lets me know, so far, I know it starts in the first push and it ends when I push the end button, not sure if it restarts if I push it again if not pushing the end button.

Also, I have no stats showing for the prestrafe when I jump, no stats for the bunny jumps, and no stats of each strafe in a LJ, the stats that show in the right of the screen with color.

I got a message everytime I do a CP or a GC which is:
ML_NOTFOUND: FOUND CHECKPOINT
Something like that, even though, it works well.

If you happen to know where I can find this, fix this, or how to activate this besides the commands /speed and /ljstats, let me know <3

But again, so far, you solved something I originally think it was not possible nowadays!

THANK YOU!

Mint14/06/2020 23:48

EDIT

I fixed the issue with the ML_NOTFOUND when placing the .txt file from the XJ Listenserver in this route:
addons/amxmodx/data/lang

Now it displays the message the correct way :)

I found that the timer does not count in-screen when I push the start button, it remains as the original timer as a normal game in CS, as a countdown then it remains in 0:00

I reviewed some files and readme.txt that came with the XJ folder and I did not found other command for the LJ stats or prestrafe, maybe these are not included in this version.

I noticed that the bunny blocks go underground when I jump onto them, this is different than in public servers, is this "changeable"?

In other words, I saw some demos of WRs in youtube, the way the XJ displays in those players are different, for example, when they end the run, it shows the previous world record holder and the time they gained from them.

Evis15/06/2020 00:01

It's because they use the kz-rush/kr1zo/different LAN plugin. XJ plugin unfortunately doesn't have these features (or I couldn't activate them neither).
https://kz-rush.ru/downloads.php

Mint15/06/2020 00:05

Ah, it makes sense Evis, thanks for letting me know.

I'm not changing anything for now because I'm happy enough that I could make this work, so I don't want to f*ck this up haha.

THANKS!
M.

dEMolite mapper16/06/2020 20:34

glad that i could help you :)

Mint20/07/2020 22:29

Hi again guys.
I've tried the KZ Rush lan pack but the only feature that works on my server are the jumpstats, not the timer, checkpoints, gochecks or anything in the menu. I don't know why this happens...

I have now XJ + KZRush combined, so the XJ timer is the one that works along with the CP and GC, but when I make a LJ or any other jump, the stats are provided by the KZRush plugin.

Since most demos are now using KZRush plugin, do you know if there is more plugins that I could give it a try?
Some that are being used nowadays for some players, I don't know.

THANKS!

Page 1 of 1

Please log in to post replies.