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.
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 ServerConnector@8155d0b{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
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.
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 ServerConnector@8155d0b{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)
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
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?
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 .
[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