Author Topic: (SD #28 CXJ) This server does not allow wine  (Read 246 times)

Offline Traace

  • *
  • Registered: 11/01/2019
(SD #28 CXJ) This server does not allow wine
« on: 11 01, 2019, 05:14:32 pm »
Hi, I dont have any windows machine.

But I created a wine wrapper in OSX. MTA works well but whenever I try to connect to CIT2 I get kicked because this server does not allow wine.

I understand that wine can get abused to bypass bans.
So, can a Admin please add my OSX client serial to the whitelist? I have a playtime of 248 Hours and don't like to stop yet :)

Offline Pilovali

  • VPN Guy
  • L3 Staff
  • ***
  • IT guy
  • Registered: 05/06/2013
    YearsYearsYearsYearsYears
  • Group: KLM
  • Ingame: KLM-P|Pilovali
  • Squad: Vendetta
Re: (SD #28 CXJ) This server does not allow wine
« Reply #1 on: 11 01, 2019, 05:54:29 pm »
I talked to Arran about it. Looks like he can only disable it for the whole server and he doesn't want that, cus evaders can use it.
There is no such thing as whitelisting yet.

The only thing that you can do is use Bootcamp on your Mac.

T-Mobile NL Customer Expert | ServiceDesk Engineer | IT guy | YouTube to MP3, DNS server, VPN and more go to pilovali.nl | Introduction

Offline Traace

  • *
  • Registered: 11/01/2019
Re: (SD #28 CXJ) This server does not allow wine
« Reply #2 on: 11 01, 2019, 07:21:26 pm »
Thanks for looking into it Pilovali & Arran :) I understand its important to keep them out in general. I'll ask in MTA forum if they can implant a whitelist feature in future versions.

Have a great day !
« Last Edit: 11 01, 2019, 07:24:02 pm by Traace »

Offline Traace

  • *
  • Registered: 11/01/2019
Re: (SD #28 CXJ) This server does not allow wine
« Reply #3 on: 13 01, 2019, 01:17:19 pm »
Hi,

its me again. I contacted MTA developers to request a white list feature. Its possible to white list via script already.

Please take a look at the 3rd example here https://wiki.multitheftauto.com/wiki/OnPlayerACInfo

Here is a edited Script, working for WINE detection:
Code: [Select]
-- List of serials which are allowed to use WINE
allowWINE = { ["MTA_SERIAL_ID"] = true,
            ["ANOTHER_SERIAL_ID"] = true,
            ["EVEN_ANOTHER_SERIAL_ID"] = true }

function handleOnPlayerACInfo( detectedACList, d3d9Size, d3d9MD5, d3d9SHA256 )
    for _,acCode in ipairs( detectedACList ) do
        if acCode == 28 then
            local serial = getPlayerSerial(source)
            if not allowWINE[serial] then
                kickPlayer( source, "This server does not allow wine for you. Please contact a Admin" )
            end
        end
    end
end
addEventHandler( "onPlayerACInfo", root, handleOnPlayerACInfo )

-- Ensure no one gets missed when the resource is (re)started
addEventHandler( "onResourceStart", resourceRoot,
    function()
        for _,plr in ipairs( getElementsByType("player") ) do
            resendPlayerACInfo( plr )
        end
    end
)

In order for this to work, it's important that you don't add SD #28 detection into mtaserver.conf, as this is a custom re-implementation.

Please Arran, Pilovali can you take a look?
« Last Edit: 13 01, 2019, 06:02:25 pm by Traace »

Offline Zelda

  • Regular Community Member
  • **
  • 1.3.4 LUA Programmer
  • Registered: 26/05/2014
    YearsYearsYearsYears
  • Group: Cnr/Mw/Some RP
  • Ingame: Zelda
Re: (SD #28 CXJ) This server does not allow wine
« Reply #4 on: 13 01, 2019, 11:07:25 pm »
Quote
allowWINE = {["123456789123456789"] = true, }

Here you place your MTA serial using /serial in the game.

Possibly this will give you permission, in such case that Arran agree to add this is very risky since we do not know your intentions.

Offline Pilovali

  • VPN Guy
  • L3 Staff
  • ***
  • IT guy
  • Registered: 05/06/2013
    YearsYearsYearsYearsYears
  • Group: KLM
  • Ingame: KLM-P|Pilovali
  • Squad: Vendetta
Re: (SD #28 CXJ) This server does not allow wine
« Reply #5 on: 13 01, 2019, 11:10:54 pm »
I didn't ask Arran yet, but I don't think he doesn't want to add it for the very very minimal amount of players using a non-Windows OS.
Just use Bootcamp for MTA. You'll get more FPS than using Wine.

T-Mobile NL Customer Expert | ServiceDesk Engineer | IT guy | YouTube to MP3, DNS server, VPN and more go to pilovali.nl | Introduction

Offline Traace

  • *
  • Registered: 11/01/2019
Re: (SD #28 CXJ) This server does not allow wine
« Reply #6 on: 14 01, 2019, 07:52:53 am »
45 fps is recommended anyway, I get that on wine easy. Even with a Intel HD 3000.

Buying a windows license just for MTA is to much & I would have to migrate my data all the time...