dbm
New Member
Posts: 11
|
Post by dbm on Dec 21, 2018 9:23:57 GMT
Hello,
First, I would like to personally thank you for your guide. I have searched up and down and have performed this process a couple of times, following your guide to setup a ranked LAN server, and it has been absolutely invaluable.
Now, I have a setup as follows:
The BF2142 server is a standalone server machine and also hosts the FESL/master server, web server, and SQL DB - Game is run from my desktop, a separate machine, on the same network - Logging in and creating accounts and soldiers works perfect, but I cannot for the life of me get the server to track statistics nor allow me to select unlocks (using the precreated "ServerAdmin" soldier).
Testing with the precreated account/soldier, the game server still shows the 0th rank icon in-game (co-op, and any other mode for that matter), even though it's a rank 5. In addition, I cannot select any unlocks within the server (as if it were Singleplayer). Unlocks were successfully chosen from the in-game menu however, when not joined to any server. As mentioned, login and creating accounts works fine, so I can see there doesn't seem to be an issue with the database.
However I do notice that despite the game server running (on "Internet" mode instead of LAN), the "lastupdate" column in the "servers" table within the database still says "0000-00-00 00:00:00", as if the server was never synced or something. So I don't know what the problem is. The server DOES show up on the "Internet" list of servers however, so perhaps that is working as designed... (I did update the IP of the server in the database and executables as well)
Anyway, I'm wondering if there is a specific process I need to accomplish to successfully get statistics to be tracked? I read your guide over many times, following it to the T, but still am clueless how to get stats tracked. I even watched your video and noticed that your rank showed up fine even in co-op. Mine doesn't do that, and still shows the 0th rank (even for the precreated account) and does NOT allow any customization. I have already ensured that sv.MaxAllowedUnlocks is -1 to no avail.
- I also turned off the firewall for debugging purposes, and still no change. - Game server, game client, and appropriate web directory is "mirrored" (same files as required) - The ONLY thing that I am concerned might be an issue, is that I am using the stock BF2142 1.51 installation from Origin, which I modified as directed by your guide (hex-edited the EXE, placed files in the dir, etc). Not sure if the installation MUST be the original DVD version and THEN patched accordingly.
- Server is running Windows Server 2008 R2 - Client is running Windows 8.1
I even messed around with trying to get the server to start "ranked" and have _heard_ that ranked and unranked server files are the same executables, with the difference being the "snapshot.py" which reports the stats to the master server. Anyhow, the server still starts in "NON RANKED" mode, but I'm not sure if that is acceptable or not in this case, since I know much of this is emulated.
Thanks in advance.
|
|
|
Post by Phantomeis on Dec 27, 2018 22:26:53 GMT
Happy new christmas year. That sounds like a broken medal_data.py file. I attached a working one in this post, copy and overwrite it in C:\xampp\htdocs\py\python\bf2\stats\ and the bf2142 server\python\bf2\stats\ directories. we are currently (well, after the holidays) working on this files, because even little changes can mess up the snapshots the masterserver and the gameserver are using.
This file is vanilla, so no easy stats/more points or other gimmiks, plain old bf2142. i guess i have to reupload the guide's files then too.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 2, 2019 23:54:05 GMT
Happy New year to you too, and many thanks! I will try this and report back 😊
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 3, 2019 1:02:15 GMT
Happy new christmas year. That sounds like a broken medal_data.py file. I attached a working one in this post, copy and overwrite it in C:\xampp\htdocs\py\python\bf2\stats\ and the bf2142 server\python\bf2\stats\ directories. we are currently (well, after the holidays) working on this files, because even little changes can mess up the snapshots the masterserver and the gameserver are using.
This file is vanilla, so no easy stats/more points or other gimmiks, plain old bf2142. i guess i have to reupload the guide's files then too.
Just wanted to update and let you know that I tried this to no avail Replaced the files both on the standalone server, in-game server, and the web server. A few notes to clarify my situation: - I do get notified of awards, such as badges and medals, but they don't save at the end of the round - My rank shows as rank 0 in-game (scoreboard) even though my rank is 37 in the database (for testing) - During a round if I earn enough points (40) to rank up, I am notified of the promotion from rank 0 to rank 1 - I cannot select ANY unlocks. It is as-if I am playing in SinglePlayer, without any ability to select unlocks - I'm testing all of this in Suez Canal's Co-Op mode (32 bots I believe per side). I noticed that with the video you show in your Guide, that your rank shows up correctly in-game, and you're able to select unlocks. So I wonder if I am doing something significantly wrong lol. Any ideas? Thanks again
|
|
|
Post by Phantomeis on Jan 4, 2019 18:20:32 GMT
okay, finding the error now could be a bit lengthy (as the guide is). so lets start with the host files. your server machine should have all entries bound to 127.0.0.1, your client machine should have all entries bound to the servermachines IP. restart both computers after a change or copy the hosts file to desktop and back into its place, since windows needs one of the changes to happen to register a change in the file. next thing are the mod folders. are the folders 100% the same for your client and the server? if you doubt it, just copy the client folder into the servers mod folder. Is the serverlauncher or ccDaemon starting with the mod? there is a config.xml inside the ccdaemon-folder. you can open it by right clicking the "start CCDaemon" button inside the graphical tool i provided in the guide. mine reads as follow: <?xml version="1.0" standalone="yes"?> <dsdDaemonInfo xmlns="http://bf2cc.com/dsdDaemonInfo.xsd"> <DaemonInfo> <DaemonInfoID>1</DaemonInfoID> <GameFolder>E:\Program Files (x86)\Electronic Arts\Battlefield 2142 Server\</GameFolder> <GameExec>Bf2142_w32ded.exe</GameExec> <GameExecArgs /> <AutoRestart>false</AutoRestart> <StartupProfile>The_game</StartupProfile> <DaemonIP>127.0.0.1</DaemonIP> <DaemonPort>4712</DaemonPort> <ModName>remastermp</ModName> <NetSettingsLocked>false</NetSettingsLocked> <DemoRecordingLocked>false</DemoRecordingLocked> <PlayerLimit>64</PlayerLimit> <DaemonArgsPassed /> </DaemonInfo> </dsdDaemonInfo> is the map you start with ccDaemon or the serverlauncher really the map you wanted? sometimes the server just starts minsk for me instead of my playlist. this would be a bug in the modmanager then, buti hope its not. if you can confirm or did some suggestions please try this: start xampp, start apache and mysql, start fesl, start ccdaemon and change the networkmode to LAN using ccClient, boot up the server. Do not start the myphpadmin/mysql browser thing!start your client and login. can you see your unlocks inside the BFHQ? log into your server, if then no unlocks are present, the server<->fesl communication is blocked, but to be sure, try starting the client on the servers machine. you may copy the folder from origin, patch 1.51 removed the copyprotection and i may give you the registry keys if needed. last but not least start the myphpadmin, click the bf2142 table on the left, click "rights" on the top right and look if there is a user called "bf2142" with ALL PRIVILEGES set to yes.
we also can try to reinstall everything with teamviewer/other remote software if you like. But i have only time starting from next week monday UTC 19:00.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 6, 2019 0:37:33 GMT
Thanks for your response. Since I have made so many changes for debugging and troubleshooting, I will follow your setup guide and start over, and then attempt these troubleshooting steps. One thing I notice though, is that throughout your guide, there are references to "remastermp" and some additional mods and maps that don't seem to be included with the downloads in your guide Perhaps I missed something. But at any rate, I do like that your files are vanilla. This way I can attempt a default installation and then customize later. I did use your custom GUI to start things originally but I eventually just started them manually since I knew where everything was from doing the installation so many times. Luckily, I haven't had any issues with the incorrect map starting or some such, so I suppose that's good. The unlocks DO show up in BFHQ, both with your provided "admin" account, so thank you very much for that!!! (That made testing so much easier) I also checked the database and indeed all rights/privileges are granted to the bf2142 user as they should be. My config.xml for the ccDaemon is as follows: <?xml version="1.0" standalone="yes"?> <dsdDaemonInfo xmlns="http://bf2cc.com/dsdDaemonInfo.xsd"> <DaemonInfo> <DaemonInfoID>1</DaemonInfoID> <GameFolder>C:\services\gamesvr\bf2142\srv2\</GameFolder> <GameExec>Bf2142_w32ded.exe</GameExec> <GameExecArgs>+ranked 1 +provider 10011 +region US +type 1</GameExecArgs> <AutoRestart>true</AutoRestart> <StartupProfile>ranked_maps</StartupProfile> <DaemonIP>0.0.0.0</DaemonIP> <DaemonPort>4712</DaemonPort> <ModName>bf2142</ModName> <NetSettingsLocked>false</NetSettingsLocked> <DemoRecordingLocked>false</DemoRecordingLocked> <PlayerLimit>64</PlayerLimit> <DaemonArgsPassed>-ranked +provider 10011 +region US +type 1 -allow64titan</DaemonArgsPassed> </DaemonInfo> </dsdDaemonInfo> And many thanks for offering to help me remotely with this. I will start over with your guide and then check the things that you mentioned here again, and will report back my results. Thanks again
|
|
|
Post by Phantomeis on Jan 6, 2019 2:57:14 GMT
Good luck with that! Well like the name of the board suggest, this project originates from Project Remaster, a mod that remasters BF2142 in textures, animations, bots on all mapsizes and more. EDGECOM ported the mod for MP use, we support both Project Remaster MP (remastermp for short) and the BF2142 server (ranked server/fesl, call it what you like). My guide is universal, works vanilla and with every mod- but personally i think Project Remaster (MP) is the way to go, because HD textures, weapons and bigger maps/ai logic freshen up the gameplay, the game aged a bit
btw: you dont need the ranked parameters, FESL always saves server stats no matter if the server is unranked or ranked; only difference is that ranked servers can show up in the server browser if they are allowed in your DB and are switched to Internet-mode.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 10, 2019 23:29:19 GMT
Good luck with that! Well like the name of the board suggest, this project originates from Project Remaster, a mod that remasters BF2142 in textures, animations, bots on all mapsizes and more. EDGECOM ported the mod for MP use, we support both Project Remaster MP (remastermp for short) and the BF2142 server (ranked server/fesl, call it what you like). My guide is universal, works vanilla and with every mod- but personally i think Project Remaster (MP) is the way to go, because HD textures, weapons and bigger maps/ai logic freshen up the gameplay, the game aged a bit
btw: you dont need the ranked parameters, FESL always saves server stats no matter if the server is unranked or ranked; only difference is that ranked servers can show up in the server browser if they are allowed in your DB and are switched to Internet-mode.
Sorry for the late reply. And thank you! Ah, gotcha. That makes sense then. I was certainly going to consider trying some mods, but I figured best for me to get the stock BF2142 working first haha. And thanks for the tip regarding the ranked parameters, good to know --- So, I did everything again from scratch and one thing I always previously did was skip the "In-Game Server" setup/config. This time I did everything, just to see if it would help make a difference. Luckily, there were a couple of differences. When creating a co-op LAN server from WITHIN the game (in-game server): - Finally, my rank DOES appear correctly during a game - Also, unlocks are available to select during a game However, the above does NOT work when using the STANDALONE game server. With the standalone game server, it behaves the same way as my previous attempts. Unfortunately, even with the IN-GAME server, end of round stats are still not saving to the master server for some reason. I checked the web server logs, and it appears that the web server **is** receiving the stats, but for some reason the master server / FESL is not saving the stats to the database. BFHQ works correctly in-game as usual, and does detect proper stats from the database, so it appears that READING to the database is not an issue. Creating accounts from within the game works as well-- and the accounts DO appear in the database-- so WRITING to the database also seems to be okay. Which leaves me baffled... what the heck could possibly be the issue? LOL Also for the record, on the FESL-and-standalone-game-server, the firewall is disabled, so all listening applications and ports are automatically allowed for the time being. No big deal for now since it's behind the LAN firewall anyway. Any ideas on something I might have missed? If you'd like me to provide specific logs or some such, please let me know and I'll be happy to provide them. Thanks again!
|
|
|
Post by Phantomeis on Jan 12, 2019 6:33:35 GMT
its definitive a defective script. i tested your szenario and came to the same result as you did. nothing wrong on your part, i have to look (deeper) into this.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 12, 2019 22:39:51 GMT
its definitive a defective script. i tested your szenario and came to the same result as you did. nothing wrong on your part, i have to look (deeper) into this. Oh, ok.
Well thank you for the confirmation, and good luck. I look forward to hearing if you're able to work it out
|
|
|
Post by Phantomeis on Jan 16, 2019 1:18:15 GMT
www34.zippyshare.com/v/uvqEBHfE/file.htmlthis is a new download for the guide. please uninstall xampp and remove the C:\xampp folder. reinstall xampp like in the guide, drop the folder etc. also re-dropp the standalone/ingame server folder into the servers. this should fix the DB and the scripts for standalone/ingame.
can you test this?
|
|
snazz
New Member
Posts: 24
|
Post by snazz on Jan 17, 2019 10:15:24 GMT
On my standalone server the stats are saving to the database and I can see my rank insignia on the scoreboard - but nothing is showing in BFHQ and the debriefing progress bar resets at the end of every round.
I reinstalled xampp and applied the latest files (xampp, server & client) to no avail.
|
|
|
Post by Phantomeis on Jan 17, 2019 23:23:35 GMT
i can confirm with three ppl now that my new files do work. So for Snazz, your hosts file targets 127.0.0.1 to the hosts entries? you do copy paste the hostfile from its place to desktop and then back into its place? (because windows...) server is authorized to your LAN IP, the standalone/ingameserverfiles got copied again? if you are running standalone, try to reinstall that too and drop the wokringdir/standalone_server stuff again. does FESL show that you logged/disconnected into your soldier? Do you use the admin account and the soldier "ServerAdmin" and actually spent the 5 unlockpoints on whatever to trigger a change in BFHQ and ingame?
the EndofRound screen always counts your score from 0 on, thats a bug but sadly i cannot fix it for now. But after a game or a rankup you may disconnect from the server and logout into the soldier-selection menu, log back in and you should get a notification for rankup and get your awards/stats showing up. its like a forced stats update.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Jan 22, 2019 12:17:13 GMT
Apologies for the delayed reply. Large snow storm here in upstate New York, and some problems with the home plumbing have been keeping me busy. The server I have is getting colocated hopefully this week, if everything goes as planned. Once all that is done I will be able to test this and will report results back.
|
|
dbm
New Member
Posts: 11
|
Post by dbm on Feb 1, 2019 2:51:11 GMT
Just wanted to post an update. My server is now colocated so I am going to work on getting the FESL working first + patched client, and then afterwards I'll work on doing the scripts that you've included. I'll report back my results as soon as I'm done
|
|