1. #226

    Default

    Quote Originally Posted by MrTrip
    I had this problem before.

    Run the following

    sudo apt-get remove nvidia* | apt-get purge nvidia*

    envy --uninstall-all

    sudo dpkg-reconfigure xserver-xorg

    startx



    That will bring you back to your x desktop all happy and clean.

    Then I suggest you do

    sudo apt-get remove envy* | apt-get purge envy*

    sudo reboot


    you should be rebooted now sitting at your x desktop with no problems.

    Then install envy AGAIN and try to install the driver AGAIN. It should work nicely for you this time around.
    Gah wish I had read what you wrote a few hours ago instead of dicking around with the xorg.conf.

    It looks like it misidentified my monitor, a dell M992. It only came up with "Plug & Play Monitor" and even when I selected it from a list, it got the available range of resolutions and refreshrates wrong.

    I couldn't figure out how to fix this through the gui so I just manually edited the section for the monitor in xorg.conf, and now I have 3d support.

    I would appreciate it if you took a glance over the end result to check if I am making any huge mistakes:

    Code:
    # xorg.conf (X.Org X Window System server configuration file)
    #
    # This file was generated by failsafeDexconf, using
    # values from the debconf database and some overrides to use vesa mode.
    #
    # You should use dexconf or another such tool for creating a "real" xorg.conf
    # For example:
    #   sudo dpkg-reconfigure -phigh xserver-xorg
    Section "InputDevice"
    	Identifier	"Generic Keyboard"
    	Driver		"kbd"
    	Option		"XkbRules"	"xorg"
    	Option		"XkbModel"	"pc104"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"Emulate3Buttons"	"true"
    EndSection
    
    Section "Device"
    	Identifier	"NVIDIA Corporation NV5 [RIVA TNT2/TNT2 Pro]"
    	Busid		"PCI:1:0:0"
    	Driver		"nvidia"
    	Vendorname	"NVIDIA"
    	Option		"AllowGLXWithComposite"	"True"
    EndSection
    
    Section "Monitor"
    	Identifier	"Configured Monitor"
    	Vendorname	"Dell"
    	Modelname	"Dell M992"
    	Horizsync	30.0-96.0
    	Vertrefresh	50.0-160.0
    	Option		"DPMS"
      modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
      modeline  "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
      modeline  "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
      modeline  "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
      modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
      modeline  "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
      modeline  "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
      modeline  "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
      modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
      modeline  "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
      modeline  "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
      modeline  "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
      modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
      modeline  "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
      modeline  "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
      modeline  "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
      modeline  "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
      modeline  "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
      modeline  "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
      modeline  "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
      modeline  "1400x1050@75" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
      modeline  "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      modeline  "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      modeline  "1600x1200@75" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      modeline  "1600x1200@70" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    	Gamma	1.0
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Device		"Configured Video Device"
    	Monitor		"Configured Monitor"
    	Defaultdepth	24
    	SubSection "Display"
    		Depth	1
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth	4
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth	8
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth	15
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth	16
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth	24
    		Modes		"1280x1024"	"1024x768"	"800x600"	"640x480"
    	EndSubSection
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
      screen 0 "Default Screen" 0 0
    EndSection
    Section "Module"
    	Load		"glx"
    	Load		"GLcore"
    	Load		"v4l"
    EndSection
    Section "ServerFlags"
    EndSection
    In case you need benchmarks, here is my xorg.conf from before I started the upgrades. I had to cut out the other xorg (from after Envy did its thing) because the post was too long.
    Code:
    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the xorg.conf(5) manual page.
    # (Type "man xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    #   sudo dpkg-reconfigure -phigh xserver-xorg
    
    Section "Files"
    	FontPath	"/usr/share/fonts/X11/misc"
    	FontPath	"/usr/share/fonts/X11/cyrillic"
    	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
    	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
    	FontPath	"/usr/share/fonts/X11/Type1"
    	FontPath	"/usr/share/fonts/X11/100dpi"
    	FontPath	"/usr/share/fonts/X11/75dpi"
    	# path to defoma fonts
    	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    EndSection
    
    Section "Module"
    	Load	"i2c"
    	Load	"bitmap"
    	Load	"ddc"
    	Load	"dri"
    	Load	"extmod"
    	Load	"freetype"
    	Load	"glx"
    	Load	"int10"
    	Load	"vbe"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Generic Keyboard"
    	Driver		"kbd"
    	Option		"CoreKeyboard"
    	Option		"XkbRules"	"xorg"
    	Option		"XkbModel"	"pc104"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"CorePointer"
    	Option		"Device"		"/dev/input/mice"
    	Option		"Protocol"		"ImPS/2"
    	Option		"ZAxisMapping"		"4 5"
    	Option		"Emulate3Buttons"	"true"
    EndSection
    
    Section "InputDevice"
    	Driver		"wacom"
    	Identifier	"stylus"
    	Option		"Device"	"/dev/input/wacom"
    	Option		"Type"		"stylus"
    	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
    EndSection
    
    Section "InputDevice"
    	Driver		"wacom"
    	Identifier	"eraser"
    	Option		"Device"	"/dev/input/wacom"
    	Option		"Type"		"eraser"
    	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
    EndSection
    
    Section "InputDevice"
    	Driver		"wacom"
    	Identifier	"cursor"
    	Option		"Device"	"/dev/input/wacom"
    	Option		"Type"		"cursor"
    	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
    EndSection
    
    Section "Device"
    	Identifier	"nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro]"
    	Driver		"nv"
    	BusID		"PCI:1:0:0"
    EndSection
    
    Section "Monitor"
    	Identifier	"DELL M992"
    	Option		"DPMS"
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Device		"nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro]"
    	Monitor		"DELL M992"
    	DefaultDepth	24
    	SubSection "Display"
    		Depth		1
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		4
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		8
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		15
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		16
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		24
    		Modes		"1280x1024" "1024x768" "800x600" "640x480"
    	EndSubSection
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
    	Screen		"Default Screen"
    	InputDevice	"Generic Keyboard"
    	InputDevice	"Configured Mouse"
    	InputDevice     "stylus"	"SendCoreEvents"
    	InputDevice     "cursor"	"SendCoreEvents"
    	InputDevice     "eraser"	"SendCoreEvents"
    EndSection
    
    Section "DRI"
    	Mode	0666
    EndSection
    Right now I don't want to mess with Envy again, since I am actually using the -legacy-envy drivers, but if the NC problems don't go away I'll have to go back to it and do it the way you suggested.

    As for NC in Wine, I am closer: a real error message from Wine! Well, a few, plus some fixmes. The big ones are the lack of MIDI support which popped up when I first started it and also when I clicked on "Configure Hardware", and a problem with Quartz.

    Here is the initial Wine stdout/stderr when I run $ wine NeocronLauncher.exe
    Code:
    fixme:midi:OSS_MidiInit Synthesizer supports MIDI in. Not yet supported.
    fixme:shdocvw:PersistMemory_Load (0x13a830)->(0x43179c 9c)
    fixme:shdocvw:OleControl_FreezeEvents (0x13a830)->(1)
    fixme:shdocvw:OleControl_FreezeEvents (0x13a830)->(0)
    fixme:iphlpapi:NotifyAddrChange (Handle 0x7de899d4, overlapped 0x7de899b8): stub
    fixme:system:SetProcessDPIAware stub!
    fixme:msimtf:CActiveIMM_Create ((nil) {08c0e040-62d1-11d1-9326-0060b067b86e} 0x106ef34)
    fixme:ole:CoCreateInstance no instance created for interface {08c0e040-62d1-11d1-9326-0060b067b86e} of class {4955dd33-b159-11d0-8fcf-00aa006bcc59}, hres is 0x80004002
    fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x13a8cc)->((null) 1 0x32bdac (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 25 2 0x32bdc0 (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 26 2 0x32bdc0 (nil))
    fixme:shdocvw:ClientSite_GetContainer (0x13a8cc)->(0x32bdfc)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->({000214d1-0000-0000-c000-000000000046} 37 0 0x32bec0 (nil))
    fixme:shdocvw:HttpNegotiate_BeginningTransaction (0x13af40)->(L"" L"" 0 0x32bef8)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 29 2 0x32f4f0 (nil))
    fixme:shdocvw:DocHostUIHandler_GetDropTarget (0x13a8cc)
    fixme:shdocvw:ClientSite_GetContainer (0x13a8cc)->(0x32f30c)
    fixme:shdocvw:InPlaceFrame_SetStatusText (0x13a8cc)->(0xb7ea36d1)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 25 2 0x32f240 (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 26 2 0x32f240 (nil))
    fixme:mshtml:HlinkTarget_SetBrowseContext (0x150390)->((nil))
    fixme:msimtf:CActiveIMM_Create ((nil) {08c0e040-62d1-11d1-9326-0060b067b86e} 0x106ef34)
    fixme:ole:CoCreateInstance no instance created for interface {08c0e040-62d1-11d1-9326-0060b067b86e} of class {4955dd33-b159-11d0-8fcf-00aa006bcc59}, hres is 0x80004002
    fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x13a8cc)->((null) 1 0x32dffc (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 25 2 0x32e010 (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 26 2 0x32e010 (nil))
    fixme:shdocvw:ClientSite_GetContainer (0x13a8cc)->(0x32e04c)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->({000214d1-0000-0000-c000-000000000046} 37 0 0x32e110 (nil))
    fixme:shdocvw:HttpNegotiate_BeginningTransaction (0x13af40)->(L"" L"" 0 0x32e148)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 29 2 0x32f4f0 (nil))
    fixme:shdocvw:DocHostUIHandler_GetDropTarget (0x13a8cc)
    fixme:shdocvw:ClientSite_GetContainer (0x13a8cc)->(0x32f30c)
    fixme:shdocvw:InPlaceFrame_SetStatusText (0x13a8cc)->(0xb7ea36d1)
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 25 2 0x32f240 (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 26 2 0x32f240 (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 21 2 (nil) (nil))
    fixme:shdocvw:ClOleCommandTarget_Exec (0x13a8cc)->((null) 28 2 0x32f48c (nil))
    fixme:bidi:mirror stub: mirroring of characters not yet implemented
    Then, after I click "Configure Hardware" (or by running $ wine Client.exe -sysconfig):
    Code:
    fixme:midi:OSS_MidiInit Synthesizer supports MIDI in. Not yet supported.
    Along with the same runtime error.

    For now I am going to try to fix the Quartz er- oh wait... I just looked back at the output and I didn't get the Quartz error the second time I ran it for this post. Gah. Looks like I'm taking steps backwards.

  2. #227

    Default

    By the way, MrTrip, thanks for being so patient and helpful... I probably wouldn't be if someone tried to come to me with problems and they had a 9 year old video card.

    Well at least I'm not trying to run Neocron on my 486... yet...

  3. #228

    Default

    Alright, I lied. I actually did go back and do the Envy thing with a clean xorg.conf and you were right, it worked fine this time, except that it still didn't get my monitor right. However, I fixed that by adding in HorizSync and VertRefresh lines. (and I also added the CompositeGLX thing because I have read a while back that that can increase performance)

    Unfortunately, my the Neocron Configure Configure Hardware dialog still doesn't work. And now there are no Error messages from Wine, just fixmes.

    Oh well, I guess I'll have to continue this tomorrow.

  4. #229

    Default

    Quote Originally Posted by Russeric
    Alright, I lied. I actually did go back and do the Envy thing with a clean xorg.conf and you were right, it worked fine this time, except that it still didn't get my monitor right. However, I fixed that by adding in HorizSync and VertRefresh lines. (and I also added the CompositeGLX thing because I have read a while back that that can increase performance)

    Unfortunately, my the Neocron Configure Configure Hardware dialog still doesn't work. And now there are no Error messages from Wine, just fixmes.

    Oh well, I guess I'll have to continue this tomorrow.
    You should have a nvidia settings program that helps you with your settings. I had to add gksudo to the launch line to get it to save xorg.conf properly.

    Try tinkering with that to see if it makes it work. Good luck!

  5. #230

    Default

    So I was out of constructive things to do now that I got Neocron working in Linux...and I did this ->

    http://digitallyevolved.net/img/misc/ncinlinux.png

    I added a neocron feed to conky haha. Its not perfect, and really not too useful, but I think I'll make a kill counter for it next or something.

    Oh, heres the code to add it to a .conkyrc file

    Code:
    #Neocron Feed
    #${color #F09000}${exec tail -n 5 /home/mrtrip/games/Neocron2/logs/console.log | cut -c23-200 | ~/conky/bin/wordwrap -w 50}
    And here is the wordwrap script to make it look neat

    Code:
    ##########################################################################
    # Shellscript:	wordwrap - wrap lines on word boundaries
    # Author	 :	Heiner Steven <heiner.steven@odn.de>
    # Date	   :	2001-12-10
    # Requires   :	
    # Category   :	Text Utilities
    # SCCS-Id.   :	@(#) wordwrap	1.4 04/09/24
    ##########################################################################
    # Description
    #	A very simple text formatting program. The input is read
    #	word by word.  All words are joined using a space (ASCII
    #	32) character. If "-j" was specified, each line is
    #	filled up to the maximum line length, or the next empty
    #	line before it is printed. Each continued line can be
    #	offset by a number of blanks.
    #
    # Note
    #	o	Leading whitespace is ignored
    #	o	An AWK program actually formats the input. It is written in
    #	a way to be portable to a wide range of AWK dialects.
    #	o  thanks for Samus-Aran for suggesting the "-l" option
    #
    # Caveats
    #	o	Should have an option for keeping whitespace inbetween words
    ##########################################################################
    
    PN=`basename "$0"`			# Program name
    VER='1.4'
    
    # Uncomment the following line to disable the search for the fastest AWK
    #: ${AWK:=awk}
    
    DEFWIDTH=72				# Default line length
    DEFOFFSET=0				# Default continued line offset
    DEFMARGIN=0				# Default left margin
    
    Usage () {
    	echo >&2 "$PN - wrap lines on word boundaries, $VER
    usage: $PN [-j] [-w width] [-o offset] [-l margin] [file ...]
    	-j  join multiple lines up to the maximum line length
    	-l  left margin (default $DEFMARGIN)
    	-o  offset of continued lines (default $DEFOFFSET)
    	-w  max. line width (default is $DEFWIDTH characters)"
    	exit 1
    }
    
    Msg () {
    	for MsgLine
    	do echo "$PN: $MsgLine" >&2
    	done
    }
    
    Fatal () { Msg "$@"; exit 1; }
    
    ##########################################################################
    # searchprog - search program using search PATH
    # usage: searchprog program
    ##########################################################################
    
    searchprog () {
    	_search=$1; shift
    
    	for _dir in `echo "$PATH" | sed "s/^:/.:/;s/:\$/:./;s/::/:.:/g;s/:/ /g"`
    	do
    		[ -x "$_dir/$_search" ] || continue
    		echo "$_dir/$_search"
    		return 0
    	done
    
    	return 1
    }
    
    # isint - is argument a valid integer number?
    isint () {
    	case "$1" in
    		*[!0-9]*)   return 1;;
    	*)		return 0;;
    	esac
    }
    
    set -- `getopt :hjl:o:w: "$@"` || Usage
    [ $# -lt 1 ] && Usage			# "getopt" detected an error
    
    # Search for an AWK implementation, prefer the fastest one
    : ${AWK:=`searchprog mawk || searchprog gawk || searchprog nawk || echo awk`}
    
    LineWidth=
    JoinLines=false
    LeftMargin=
    while [ $# -gt 0 ]
    do
    	case "$1" in
    	-j)	JoinLines=true;;
    	-l)	isint "$2" || Fatal "invalid margin: $2"
    		LeftMargin=$2; shift;;
    	-o)	isint "$2" || Fatal "invalid offset: $2"
    		LineOffset=$2; shift;;
    	-w)	isint "$2" || Fatal "invalid line width: $2"
    		LineWidth=$2; shift;;
    	--)	shift; break;;
    	-h)	Usage;;
    	-*)	Usage;;
    	*)	break;;			# First file name
    	esac
    	shift
    done
    
    : ${LineWidth:=$DEFWIDTH}
    : ${LineOffset:=$DEFOFFSET}
    : ${LeftMargin:=$DEFMARGIN}
    
    $AWK '
    	BEGIN {
    	WORDSEP = " "
    	WORDSEPLEN = length (WORDSEP)
    	maxwidth = '"$LineWidth"'
    	if ( "'"$JoinLines"'" == "true" ) joinlines = 1; else joinlines = 0;
    	line = ""
    	offset = '"$LineOffset"'
    	margin = '"$LeftMargin"'
    	if ( offset >= 1 ) indent = sprintf ("%*s", offset, " ")
    	if ( margin >= 1 ) leftmargin = sprintf ("%*s", margin, "")
    	}
    	{
    		# Special handling: preserve leading whitespace characters
    	if ( line == "" ) {
    		for ( i=1; i<length($0); ++i ) {
    		c = substr ($0, i, 1)
    		if ( c != " " && c != "	" ) break
    		}
    		if ( i > 1 ) line = substr ($0, 1, i-1)
    	}
    
    	for ( i=1; i<=NF; ++i ) {
    		newlen = length (line) + length ($i)
    		if ( line != "" ) newlen += WORDSEPLEN
    		if ( newlen > maxwidth ) {
    			print leftmargin line
    		line = indent $i
    		} else {
    		if ( line != "" ) line = line WORDSEP
    		line = line $i
    		}
    	}
    
    	# No joining of lines: print the current line immediately
    
    	if ( !joinlines || NF == 0 ) {
    		print leftmargin line
    		if ( line != "" && NF == 0 ) print ""	# preserve empty line
    		line = ""
    	}
    	}
    	END {
    	if ( line != "" ) {
    		print leftmargin line
    	}
    	}
    ' "$@"
    Last edited by MrTrip; 17-09-08 at 06:24.

  6. #231
    NeoCrack Baby
    Join Date
    June 2003
    Location
    St. Peters, MO
    Posts
    131

    Default

    Just curious about something.
    Quote Originally Posted by Callstack.log
    //=====================================================
    Exception code: C0000005 ACCESS_VIOLATION
    Fault address: 7D6293CC 01:000193CC C:\WINDOWS\system32\ntdll.dll
    The majority, if not all of my FRE and Client crashing is because of an Access Violation with the NTDLL.DLL file. On linux, since the Windows subsystem is emulated, how often do you crash while playing Neocron on Linux?
    ME=Grand Master Jedi PIMP

  7. #232

    Default

    Quote Originally Posted by Seezur001
    Just curious about something.

    The majority, if not all of my FRE and Client crashing is because of an Access Violation with the NTDLL.DLL file. On linux, since the Windows subsystem is emulated, how often do you crash while playing Neocron on Linux?
    So far for me never. I am able to alt+tab anywhere in the game world (in Windows in an outside environment you are unable to alt+tab in DX9 mode)

    I have yet to fatal in Linux.

    Also, Wine is not an emulator.

    Quote Originally Posted by WineHQ
    Myth 1: "Wine is slow because it is an emulator"

    Some people mean by that that Wine must emulate each processor instruction of the Windows application. This is plain wrong. As Wine's name says: "Wine Is Not an Emulator": Wine does not emulate the Intel x86 processor. It will thus not be as slow as Wabi which, since it is not running on a x86 Intel processor, also has to emulate the processor. Windows applications that do not make system calls will run just as fast as on Windows (no more no less). Some people argue that since Wine introduces an extra layer above the system a Windows application will run slowly. It is true that, in theory, Windows applications that run in Wine or are recompiled with Winelib will not be able to achieve the same performance as native Unix applications. But that's theory. In practice you will find that a well written Windows application can beat a badly written Unix application at any time. The efficiency of the algorithms used by the application will have a greater impact on its performance than Wine.

    Also, and that's what people are usually interested in, the combination Wine+Unix may be more efficient than Windows. Just as before it's just how good/bad their respective algorithms are. Now to be frank, performance is not yet a Wine priority. Getting more applications to actually work in Wine is much more important right now. For instance most benchmarks do not work yet in Wine and getting them to work at all should obviously have a higher priority than getting them to perform well.

    But for those applications that do work and from a purely subjective point of view, performance is good. There is no obvious performance loss, except for some slow graphics due to unoptimized Wine code and X11 driver translation performance loss (which can be a problem sometimes, though).
    I will say that Neocron runs smoother under Wine than it does in native Windows. Leaves us with the idea that Windows is Neocrons biggest issue, not Neocron its self. Neocron just doesn't have all the work arounds built into it to make it run nicer in Windows. IMHO.


    Edit- Just a note for some players, to suppress those annoying fixme: messages do the following

    Code:
    export WINEDEBUG=-all,err+module
    That will stop the fixme:toolhelp:* messages that spam the console.

    Updating wiki...
    Last edited by MrTrip; 17-09-08 at 08:08.

  8. #233

    Default

    Liking the little conky script.
    “Last of the freelance hackers and Greatest swordfighter in the world.”

  9. #234
    Tech Haven Network Brammers's Avatar
    Join Date
    February 2003
    Location
    UK
    Posts
    3,812

    Default

    One question, how does your framerate compare to Windows? Normally I get a fairly rock solid 90FPS in Plaza 1, but under Linux I've noticed it's a lot lower (40FPS round about)

    I don't know if this is down to the drivers, me using 64bit Linux or something else.

  10. #235

    Default

    Quote Originally Posted by Brammers
    One question, how does your framerate compare to Windows? Normally I get a fairly rock solid 90FPS in Plaza 1, but under Linux I've noticed it's a lot lower (40FPS round about)

    I don't know if this is down to the drivers, me using 64bit Linux or something else.
    Ive always had low framerate in Neocron, no matter Windows or Linux. It hovers around 30-40, sometimes around 60. Now CS:S? 100+. Go figure.

  11. #236
    Spermy made my hands messy :'( Asurmen Spec Op's Avatar
    Join Date
    May 2004
    Location
    Not looking at porn >.>
    Posts
    3,522

    Default

    Quote Originally Posted by MrTrip
    So I was out of constructive things to do now that I got Neocron working in Linux...and I did this ->

    http://digitallyevolved.net/img/misc/ncinlinux.png

    I added a neocron feed to conky haha. Its not perfect, and really not too useful, but I think I'll make a kill counter for it next or something.

    Oh, heres the code to add it to a .conkyrc file

    Code:
    #Neocron Feed
    #${color #F09000}${exec tail -n 5 /home/mrtrip/games/Neocron2/logs/console.log | cut -c23-200 | ~/conky/bin/wordwrap -w 50}
    And here is the wordwrap script to make it look neat

    Code:
    ##########################################################################
    # Shellscript:	wordwrap - wrap lines on word boundaries
    # Author	 :	Heiner Steven <heiner.steven@odn.de>
    # Date	   :	2001-12-10
    # Requires   :	
    # Category   :	Text Utilities
    # SCCS-Id.   :	@(#) wordwrap	1.4 04/09/24
    ##########################################################################
    # Description
    #	A very simple text formatting program. The input is read
    #	word by word.  All words are joined using a space (ASCII
    #	32) character. If "-j" was specified, each line is
    #	filled up to the maximum line length, or the next empty
    #	line before it is printed. Each continued line can be
    #	offset by a number of blanks.
    #
    # Note
    #	o	Leading whitespace is ignored
    #	o	An AWK program actually formats the input. It is written in
    #	a way to be portable to a wide range of AWK dialects.
    #	o  thanks for Samus-Aran for suggesting the "-l" option
    #
    # Caveats
    #	o	Should have an option for keeping whitespace inbetween words
    ##########################################################################
    
    PN=`basename "$0"`			# Program name
    VER='1.4'
    
    # Uncomment the following line to disable the search for the fastest AWK
    #: ${AWK:=awk}
    
    DEFWIDTH=72				# Default line length
    DEFOFFSET=0				# Default continued line offset
    DEFMARGIN=0				# Default left margin
    
    Usage () {
    	echo >&2 "$PN - wrap lines on word boundaries, $VER
    usage: $PN [-j] [-w width] [-o offset] [-l margin] [file ...]
    	-j  join multiple lines up to the maximum line length
    	-l  left margin (default $DEFMARGIN)
    	-o  offset of continued lines (default $DEFOFFSET)
    	-w  max. line width (default is $DEFWIDTH characters)"
    	exit 1
    }
    
    Msg () {
    	for MsgLine
    	do echo "$PN: $MsgLine" >&2
    	done
    }
    
    Fatal () { Msg "$@"; exit 1; }
    
    ##########################################################################
    # searchprog - search program using search PATH
    # usage: searchprog program
    ##########################################################################
    
    searchprog () {
    	_search=$1; shift
    
    	for _dir in `echo "$PATH" | sed "s/^:/.:/;s/:\$/:./;s/::/:.:/g;s/:/ /g"`
    	do
    		[ -x "$_dir/$_search" ] || continue
    		echo "$_dir/$_search"
    		return 0
    	done
    
    	return 1
    }
    
    # isint - is argument a valid integer number?
    isint () {
    	case "$1" in
    		*[!0-9]*)   return 1;;
    	*)		return 0;;
    	esac
    }
    
    set -- `getopt :hjl:o:w: "$@"` || Usage
    [ $# -lt 1 ] && Usage			# "getopt" detected an error
    
    # Search for an AWK implementation, prefer the fastest one
    : ${AWK:=`searchprog mawk || searchprog gawk || searchprog nawk || echo awk`}
    
    LineWidth=
    JoinLines=false
    LeftMargin=
    while [ $# -gt 0 ]
    do
    	case "$1" in
    	-j)	JoinLines=true;;
    	-l)	isint "$2" || Fatal "invalid margin: $2"
    		LeftMargin=$2; shift;;
    	-o)	isint "$2" || Fatal "invalid offset: $2"
    		LineOffset=$2; shift;;
    	-w)	isint "$2" || Fatal "invalid line width: $2"
    		LineWidth=$2; shift;;
    	--)	shift; break;;
    	-h)	Usage;;
    	-*)	Usage;;
    	*)	break;;			# First file name
    	esac
    	shift
    done
    
    : ${LineWidth:=$DEFWIDTH}
    : ${LineOffset:=$DEFOFFSET}
    : ${LeftMargin:=$DEFMARGIN}
    
    $AWK '
    	BEGIN {
    	WORDSEP = " "
    	WORDSEPLEN = length (WORDSEP)
    	maxwidth = '"$LineWidth"'
    	if ( "'"$JoinLines"'" == "true" ) joinlines = 1; else joinlines = 0;
    	line = ""
    	offset = '"$LineOffset"'
    	margin = '"$LeftMargin"'
    	if ( offset >= 1 ) indent = sprintf ("%*s", offset, " ")
    	if ( margin >= 1 ) leftmargin = sprintf ("%*s", margin, "")
    	}
    	{
    		# Special handling: preserve leading whitespace characters
    	if ( line == "" ) {
    		for ( i=1; i<length($0); ++i ) {
    		c = substr ($0, i, 1)
    		if ( c != " " && c != "	" ) break
    		}
    		if ( i > 1 ) line = substr ($0, 1, i-1)
    	}
    
    	for ( i=1; i<=NF; ++i ) {
    		newlen = length (line) + length ($i)
    		if ( line != "" ) newlen += WORDSEPLEN
    		if ( newlen > maxwidth ) {
    			print leftmargin line
    		line = indent $i
    		} else {
    		if ( line != "" ) line = line WORDSEP
    		line = line $i
    		}
    	}
    
    	# No joining of lines: print the current line immediately
    
    	if ( !joinlines || NF == 0 ) {
    		print leftmargin line
    		if ( line != "" && NF == 0 ) print ""	# preserve empty line
    		line = ""
    	}
    	}
    	END {
    	if ( line != "" ) {
    		print leftmargin line
    	}
    	}
    ' "$@"
    Hey about your script.
    I notice you always have the 'box' on each line. Is this because NC uses \r\n instead of \n?
    If so(and it looks so) you could do some regex on each line s/\r// (or just do s/\r//g for all of the output of tail)

    Quick Linux related question, why don't Ubuntu users ever just use su? I was confused as hell when installing Ubuntu on my friends system it didn't even ask me to choose a root password.
    Last edited by Asurmen Spec Op; 18-09-08 at 23:44.

    07-14-2008 14:13:43 > Snowcrash is just chilling with us cool people
    07-14-2008 14:13:43 > OOC> KK_Snowcrash : making asurmen drop his pants

    Quote Originally Posted by Nidhogg
    Because you prefer it from behind?

    N

  12. #237
    Tech Haven Network Brammers's Avatar
    Join Date
    February 2003
    Location
    UK
    Posts
    3,812

    Default

    Quote Originally Posted by Asurmen Spec Op
    Quick Linux related question, why don't Ubuntu users ever just use su? I was confused as hell when installing Ubuntu on my friends system it didn't even ask me to choose a root password.
    You can use su, but Ubuntu uses sudo. What sudo does is run the command as root, so long as you have permissions and also know your own user password.

  13. #238
    Spermy made my hands messy :'( Asurmen Spec Op's Avatar
    Join Date
    May 2004
    Location
    Not looking at porn >.>
    Posts
    3,522

    Default

    Quote Originally Posted by Brammers
    You can use su, but Ubuntu uses sudo. What sudo does is run the command as root, so long as you have permissions and also know your own user password.
    Brammers, I assure you I know about sudo. I have sudo installed on my Gentoo Desktop and Laptop(not my server though). Sudo is great for those 'I need to be root to run this command' moments. But there are bunches of times where you need to do more than one thing, and for those times I'd perfer just logging into root over repeatedly sudo-ing or making one long ass command.
    *shrug* some things about Ubuntu just bug the hell out of me.

    07-14-2008 14:13:43 > Snowcrash is just chilling with us cool people
    07-14-2008 14:13:43 > OOC> KK_Snowcrash : making asurmen drop his pants

    Quote Originally Posted by Nidhogg
    Because you prefer it from behind?

    N

  14. #239

    Default

    I pretty much always have to run more than once command as root, so I pretty see sudo as a useless security vulnerability.

  15. #240

    Default

    You realize there is sudo su right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •