Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Need for Speed World
You last visited: Today at 22:31

  • Please register to post and access all features, it's quick, easy and FREE!




NFS Offline Server wine

Discussion on NFS Offline Server wine within the Need for Speed World forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
NFS Offline Server wine

UPDATED
Now it works with wine 2.14-staging and server thanks to the cracked nfsw.exe 1.9.3, procedure as follows.

Installed:
jdk8-openjdk 8.u144-1
jre8-openjdk 8.u144-1
jre8-openjdk-headless 8.u144-1
and dependencies:
java-runtime-common 2-2
java-environment-common 2-2

clean 32-bit wineprefix
winetricks directx9 d3dx9_43

Copy nfsw.exe from 1.9.3 server to game Data folder and overwrite, for easier usage you can make a script for server:

Server.sh
Code:
#!/bin/bash
cd "/your/server/location/1.9.3"
java -jar nfsw1930.jar &
sleep 3
cd "/your/game/location/sdx/Data"
wine nfsw.exe US http://127.0.0.1:7331/soapbox/Engine.svc a 1
Make it executable:
chmod +x Server.sh

And now it should work fine.

ORIGINAL POST

Hi, anyone managed to run NFS Offline Server with native windows libs (python, java etc.) in wine?

So, basically, everything works, launcher, game, entering game etc., I can drive about, go to races etc., but powerups do not work untill i choose language for chat (in game), when i do choose, powerups work, but after ~5-8 seconds game freezes.

I can't remmember, there was 3 cmd windows in background when server starts? Because I get only 2. I want to run it with wine python (for obvious reasons) and java.

For anyone interested, here's what I did:
1. Created 32 bit prefix (WinXP).
2. Installed Net.Framework 3.5 (no SP) using winetricks (added 2.0 etc. automatically).
3. Installed ie8 using winetricks, python 2.7 (provided from server readme) with "wine msiexec /i".
4. Changed prefix to Win7, installed Java 8u66 (tried also 8u121, same), registered java env. to my version as suggested on winehq appdb for Java 8.
5. Installed DirectX9 via winetricks.
6. Started launcher, imported persona, carslots etc., started server (2 windows, started sucessfully), started game.

Tried reverting to WinXP (it works the same), tried using both native and builtin libs.



leipero is offline  
Old 02/12/2017, 12:17   #2
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
Forget all phyton and mitmproxy stuff. Use 1.9 server with Oracle java8 directly on linux/mac.

Install only directx with winetricks.

You can launch game without launcher. Just passing nfsw parameters with wine command.

I don't know about the server editor.


Nilzao is offline  
Thanks
1 User
Old 02/12/2017, 13:39   #3
 
elite*gold: 0
Join Date: Mar 2016
Posts: 174
Received Thanks: 262
The game has always frozen on Mac after choosing language. Not sure why.
leorblx is offline  
Old 02/12/2017, 17:24   #4
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Quote:
Originally Posted by Nilzao View Post
Forget all phyton and mitmproxy stuff. Use 1.9 server with Oracle java8 directly on linux/mac.

Install only directx with winetricks.

You can launch game without launcher. Just passing nfsw parameters with wine command.

I don't know about the server editor.
I wasn't aware there's 1.9 server that require only Java. However, i have a problem with it, it gives me error "Login failed, Game will be..." and only output i see in terminal:
POST: GetPermanentSession
POST: SecureLogout
However, server connects to:
2017-02-12 17:22:07.425:INFO::main: Logging initialized @138ms
Starting offline server
2017-02-12 17:22:07.930:INFOejs.Server:main: jetty-9.3.z-SNAPSHOT
2017-02-12 17:22:07.968:INFOejs.ServerConnector:main: Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:7331}
2017-02-12 17:22:07.969:INFOejs.Server:main: Started @683ms

I'm running server with: java -jar '/location/file.jar'
and game with: wine '/location/nfsw.exe' US a 1
Changing to 0.0.0.0:7331 makes no difference.

In wine however (with Windows Java), 1.9 works, i can run the game, editor works also. But same problem as with 1.8 server, powerups do not work, and as soona s chat is selected game freezes after 5-8 secs.

PS: Server Editor works even without framework.

Quote:
Originally Posted by leorblx View Post
The game has always frozen on Mac after choosing language. Not sure why.

Same thing here, even with 1.9 version, except that when i press chat in 1.8 powerups do work untill game freezes, in 1.9 they do not work.


leipero is offline  
Old 02/12/2017, 17:37   #5
 
elite*gold: 0
Join Date: Oct 2015
Posts: 297
Received Thanks: 116
Quote:
Originally Posted by leipero View Post
I wasn't aware there's 1.9 server that require only Java. However, i have a problem with it, it gives me error "Login failed, Game will be..." and only output i see in terminal:
POST: GetPermanentSession
POST: SecureLogout
However, server connects to:
2017-02-12 17:22:07.425:INFO::main: Logging initialized @138ms
Starting offline server
2017-02-12 17:22:07.930:INFOejs.Server:main: jetty-9.3.z-SNAPSHOT
2017-02-12 17:22:07.968:INFOejs.ServerConnector:main: Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:7331}
2017-02-12 17:22:07.969:INFOejs.Server:main: Started @683ms

I'm running server with: java -jar '/location/file.jar'
and game with: wine '/location/nfsw.exe' US a 1
Changing to 0.0.0.0:7331 makes no difference.

In wine however (with Windows Java), 1.9 works, i can run the game, editor works also. But same problem as with 1.8 server, powerups do not work, and as soona s chat is selected game freezes after 5-8 secs.

PS: Server Editor works even without framework.




Same thing here, even with 1.9 version, except that when i press chat in 1.8 powerups do work untill game freezes, in 1.9 they do not work.
What windows are you using? (there is no need for compatibility mode in nfsw)
SpeedyDanny is offline  
Old 02/12/2017, 17:55   #6
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Quote:
Originally Posted by SpeedyDanny View Post
What windows are you using? (there is no need for compatibility mode in nfsw)
For this, I'm using Windows XP (and Win7) prefix in wine on Linux.
leipero is offline  
Old 02/12/2017, 19:16   #7
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
Quote:
Originally Posted by leipero View Post
I'm running server with: java -jar '/location/file.jar'
and game with: wine '/location/nfsw.exe' US a 1
Changing to 0.0.0.0:7331 makes no difference.
You need to launch 1.9 with java -jar inside the dir.

java -jar file.jar
Nilzao is offline  
Thanks
1 User
Old 02/13/2017, 09:57   #8
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Quote:
Originally Posted by Nilzao View Post
You need to launch 1.9 with java -jar inside the dir.

java -jar file.jar
Thanks, it works like that, I've completely forgot that. However, game still freezes (after chat is enabled language selected) in ~5-8 seconds? Powerups now work (at first with open jdk, with Oracle java they did not work), but chat lang have to be selected for them to work.

This is the error server gives me when game freezes:
POST: GetPersonaBaseFromList
POST: UpdatePersonaPresence
GET: NewsArticles
GET: gettreasurehunteventsession
POST: -1681514783
xmppClients doesn't contain personaId 100
POST: 1805681994
xmppClients doesn't contain personaId 100
Connection with client closed

Any ideas?
leipero is offline  
Old 02/13/2017, 10:38   #9
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
You having problems with the xmpp handshake.

To fix the freeze thing you can try edit GetChatsession.xml file changing port and start netcat to listen in that port.

The powerups will fail, but if works, game will not freeze.
Nilzao is offline  
Thanks
1 User
Old 02/13/2017, 16:06   #10
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Quote:
Originally Posted by Nilzao View Post
You having problems with the xmpp handshake.

To fix the freeze thing you can try edit GetChatsession.xml file changing port and start netcat to listen in that port.

The powerups will fail, but if works, game will not freeze.
It works only if I change port to 7731, if it's changed to any other(?) port (for example 5520) this is what i get:
leipero is offline  
Old 02/13/2017, 17:01   #11
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
To use in port 5520 need netcat listening.

nc -l 5520
Nilzao is offline  
Old 02/13/2017, 17:45   #12
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Yeah, it works even without netcat, but, from the screenshot above, it actually reconnects, I just needed to wait a bit (also have to wait with nc), and it also works with Open-JDK8, so no need for Oracle Java .

So i will experiment now a bit, is there a solution for powerups?
leipero is offline  
Old 02/13/2017, 19:54   #13
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
Again... you having trouble with xmpp connection and handshake.

With nc in any port, the game have to enter freeroam without this connect fail msg.

When nfsw connects to you nc server, you will se the xmpp hello packet tag.

Good to know it works on open jdk8, i never tested.
Nilzao is offline  
Old 02/14/2017, 07:32   #14
 
elite*gold: 0
Join Date: Jul 2015
Posts: 61
Received Thanks: 14
Ok, but why? I don't get it.

Well, I'm doing something wrong maybe, but with "nc -l 5520" (changed port to 5520 in GetChatInfo.xml) it's same thing, it still waits and eventually reconnects. The only way i can manage to enter without waiting (and without powerups) is by changing port to 7331 in GetChatInfo.xml.

I'm not getting that for some reason. This could be the problem with wine and how it handles connections? (I don't know, I'm just guessing, since leorblx have the same problem on MacOS).

Yeah it actually works as well as with Oracle Java, same performance, I remmember trying server 1.2 (way back) with OpenJDK and performance was terible compared to Oracle Java, now it's about the same .
leipero is offline  
Old 02/14/2017, 10:31   #15
 
elite*gold: 0
Join Date: Jun 2015
Posts: 331
Received Thanks: 605
Try higher port number. The limit is near 60000.

Try above 20000 can be your firewall blocking.

What linux distribution are you using?


Nilzao is offline  
Reply



« Exception caught in server 18 | NFS:W Offline Xbox Controller Doesn't Work »

Similar Threads
[How-To] auf einem p server spielen (Linux) mit wine
07/07/2010 - Metin2 PServer Guides & Strategies - 6 Replies
Hi, da ich keinen anderen Thread zu dem Thema gefunden habe, dachte ich mir ich mach den Thread auf... Worum geht es? Wie der Titel schon sagt, wie man auf einem Metin2 P-Server mit Wine spielen kann... LINUX: Schritt 1.) Ihr ladet euch Wine runter... CODE--> sudo apt get install wine
Wine zone help
06/29/2007 - Conquer Online 2 - 3 Replies
i went to wine zone once when i was a noob a few years ago, never went back. i was thinking, can some1 post a map of wine zone for me and maybe can point out the best spwan spot for lvlin a archer ty
p. wow server mit wine auf linux .. suchen profi
03/28/2006 - WoW Private Server - 3 Replies
Hallo, hat hier jemand Interesse an eiem Projekt zu helfen. Wir brauchen noch einen spezialisten, der uns hilft auf unseren root, mit linux WINE zu installieren und die wow emu zum laufen zu bekommen. Bitte meldet euch hier im Topic oder per icq: 213-814-211



All times are GMT +2. The time now is 22:31.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.