PES2017 settings Error

Questions about Wine on Linux
Locked
fatdog1
Newbie
Newbie
Posts: 2
Joined: Mon Dec 04, 2017 4:08 pm

PES2017 settings Error

Post by fatdog1 »

Code: Select all

PES2017]$ ./settings
wine-2.4 (Staging)
csmt: on
#######################
game: PES 2017 Settings
version: 1.03.00/2.00
#######################
home: /home/lordinger/PES2017/home


Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
   at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.ComboBox.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.TabPage.set_Visible(Boolean value)
   at System.Windows.Forms.TabControl.UpdateTabSelection(Boolean updateFocus)
   at System.Windows.Forms.TabControl.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TabControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
   at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.TabControl.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.set_Visible(Boolean value)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Settings.Program.Main()
wine: Unhandled page fault on read access to 0x00000004 at address 0x7e96dbb6 (thread 0009), starting debugger...
winedbg: Internal crash at 0x7e869bb6


Settings

Code: Select all

#!/bin/bash

### Wine standalone script
### Version 1.3.5
### Created by Kron
### Latest version - https://yadi.sk/d/IrofgqFSqHsPu

# Forbid root rights
if [ ! "$ROOT" ] && [ "$EUID" == "0" ]
then
echo "##########################################################################"
echo "НЕ ЗАПУСКАЙТЕ НИКАКИЕ СКРИПТЫ ЧЕРЕЗ КОМАНДУ sudo ИЛИ ОТ ПОЛЬЗОВАТЕЛЯ root!"
echo "##########################################################################"
exit
fi

## Variables

# User
export USER="$(id -u -n)"

# Directory
export SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
export DIR="$(dirname "$SCRIPT")"
export RHOME="$HOME"
export HOME="$DIR/home"

# Wine binaries
export USESYSWINE="no"
export WINETRICKS="$DIR/winetricks"

if [ "$USESYSWINE" == "yes" ]
then if [ -f "$DIR/syswine" ]
	then source "$DIR/syswine"
     fi

     if [ ! -f "$WINE" ]
     then if [ -f "/usr/bin/wine" ]
	then export WINE="/usr/bin/wine"
	       export REGEDIT="/usr/bin/regedit"
          elif [ -f "/usr/bin/wine-development" ]
	  then export WINE="/usr/bin/wine-development"
	       export REGEDIT="/usr/bin/regedit-development"
          elif [ -f "/usr/local/bin/wine" ]
	  then export WINE="/usr/local/bin/wine"
	       export REGEDIT="/usr/local/bin/regedit"
          fi

	  if [ "$WINE" ]
	  then rm -f "$DIR/syswine"
	       echo "export WINE='$WINE'" >> "$DIR/syswine"
	       echo "export REGEDIT='$REGEDIT'" >> "$DIR/syswine"
          fi
     fi
elif [ -f "$DIR/syswine" ]
then rm "$DIR/syswine"
fi

if [ ! "$WINE" ]
then export WINE="$DIR/wine/bin/wine"
     export REGEDIT="$DIR/wine/bin/regedit"
fi

# Wine
export WINEPREFIX="$DIR/prefix"

#######################
export WINEDEBUG="-all"
#######################

export WINE_VER="$("$WINE" --version)"
export WINEDLLOVERRIDES="mshtml="
export UPDATEPREFIX="yes"

################
export CSMT="on"
################

# Game
####################################
export GAME_NAME="PES 2017 Settings"
export GAME_VER="1.03.00/2.00"
export EXE="Settings.exe"
export GAME_FOLDER="$WINEPREFIX/drive_c/game"
#############################################

# Screen
####################
export WINDOWED="no"
export RESOLUTION="800x600"
export FIXRES="no"
##################

# Sound
####################
export USEALSA="yes"
####################

# Cores
export CORES="$(getconf _NPROCESSORS_ONLN)"

## Actions

# Exit if the files do not exist
if [ ! -f "$WINE" ] || [ ! -f "$WINETRICKS" ] || [ ! -d "$GAME_FOLDER" ]
then clear
	echo "Отсутствуют(ет):"
	echo

	if [ ! -f "$WINE" ]
	then echo "$WINE"
	fi

	if [ ! -f "$WINETRICKS" ]
	then echo "$WINETRICKS"
	fi

	if [ ! -d "$GAME_FOLDER" ]
	then echo "$GAME_FOLDER"
	fi

	exit
fi

# Create a home directory
if [ "$HOME" == "$DIR/home" ] && [ ! -d "$HOME" ]
then mkdir "$HOME"
fi

# Copy pulse config
if [ "$HOME" == "$DIR/home" ]
then if [ ! -d "$HOME/.config" ]
     then mkdir -p "$HOME/.config"
     fi

     if [ ! -d "$HOME/.pulse" ]
     then cp -R "$RHOME/.pulse" "$HOME"
     fi

     if [ ! -d "$HOME/.config/pulse" ]
     then cp -R "$RHOME/.config/pulse" "$HOME/.config"
     fi
fi

# Update prefix
if [ "$UPDATEPREFIX" == "yes" ]
then if [ ! -d "$WINEPREFIX/drive_c/users/$USER" ]
    then "$DIR/wine/bin/wineboot" -u

	# Disable d3d10 and d3d11
	"$WINETRICKS" d3d10=disabled d3d11=disabled

	# Disable GStreamer
	"$WINETRICKS" winegstreamer=disabled
    fi
fi

# Turn sound
if [ "$USEALSA" == "yes" ] && [ ! -f "$DIR/alsa" ]
then "$WINETRICKS" sound=alsa
	echo > "$DIR/alsa"
	rm -f "$DIR/pulse"
elif [ "$USEALSA" == "no" ] && [ ! -f "$DIR/pulse" ]
then "$WINETRICKS" sound=pulse
	echo > "$DIR/pulse"
	rm -f "$DIR/alsa"
fi

# Disable CSMT on 1-core CPU
if [ "$CORES" == "1" ]
then export CSMT="off"
fi

# Disable CSMT on non-Staging Wine
if [ "$CSMT" == "on" ] && [[ ! "$WINE_VER" == *"Staging"* ]]
then export CSMT="off"
fi

# Enable/Disable CSMT
if [ -f "$DIR/wine/share/wine/csmt.reg" ] && [ -f "$DIR/wine/share/wine/non-csmt.reg" ]
then if [ -f "$DIR/csmt_on" ] && [ "$CSMT" == "off" ]
     then "$REGEDIT" "$DIR/wine/share/wine/non-csmt.reg"
          rm "$DIR/csmt_on"
     elif [ ! -f "$DIR/csmt_on" ] && [ "$CSMT" == "on" ]
     then "$REGEDIT" "$DIR/wine/share/wine/csmt.reg"
	  echo > "$DIR/csmt_on"
     fi
fi

# Get native screen resolution
if [ "$FIXRES" == "yes" ]
then if [ "$WINDOWED" == "no" ] && [ ! "$1" == "-sw" ] && [ -f "/usr/bin/xrandr" ]
     then export RESOLUTION="$(xrandr -q | awk -F'current' -F',' 'NR==1 {gsub("( |current)","");print $2}')"
     else export FIXRES="no"
     fi
fi

# Info output
clear
echo "$WINE_VER"
echo "csmt: $CSMT"
echo "#######################"
echo "game: $GAME_NAME"
echo "version: $GAME_VER"
echo "#######################"
echo "home: $HOME"
echo

# Start game
cd "$GAME_FOLDER"
if [ "$WINDOWED" == "yes" ] || [ "$1" == "-sw" ]
then "$WINE" explorer /desktop=Game,$RESOLUTION "$EXE"
else "$WINE" "$EXE"
fi

# Restore screen resolution
if [ "$FIXRES" == "yes" ]
then "/usr/bin/xrandr" -s "$RESOLUTION"
fi
can u help me ?
Locked