PDA

View Full Version : ScoreDoom 2.0 Beta. Now with Online Hi Score Tables


ddraigcymraeg
February 12th, 2009, 07:22 PM
ScoreDoom has been updated to support online hi scores.

You can download from here directly:
Please read the BETA-README.TXT contained therein (which Im posting below anyways :-)
http://files.filefront.com/gzscoredoomBETA20rar/;13273379;/fileinfo.html

Online hi score tables can be accessed at:
http://www.scoredoom.com/wad_main.php

Any feedback is welcome. BTW, I need to tweak the network I/O code at the start and finish of every level, where scoredoom communicates with the hi score server, so dont be surprised if the game seems to freeze at these times if you have a slow connection or latency.


For scoredoom 1.x:

http://www.doomworld.com/vb/wads-mods/43533-scoredoom-v1-99r3b/



ScoreDoom2.0 Beta Readme
========================

2.0 supports online hi score tables for single player. Scoredoom
will grab the wad hi score and level hi score and the current leaders from
the hi score server for current the wad/wads and episode you are playing.
If you beat the hi score, your name and will be posted for others to see and beat,
both in the game and on an HTML page @ http://www.scoredoom.com

You should read this to get started, and if you are having difficulties getting it to
work.

1.Configuration to use Online Hi Scoring
----------------------------------------
In order to use this feature, in the zdoom-<yoursername>.ini file,
you will need to set sd_global_hiscores=true.

You should also change the sd_hiscoreserver_pwd value to something other
than 'changeme', and not more than 16 characters long, though its not
essential. For this beta, if you decide to use a pwd other than 'changeme'
you must change this value before actually starting a level with sd_global_hiscores=true,
or you will have to use 'changeme' with your username, since the hi score server
will associate your playername with the pwd sent at the start of the level.

Also in the zdoom-<yoursername>.ini file, you must make sure that queryiwad=true.


2.Anti-Cheating Dos and Donts
-----------------------------
Scoredoom 2.0 is very stringent in checking for any potential actions which could lead
to unfairly posting a new hi score (like using the console). If Scoredoom detects an illegal
action it will notify you with a siren noise and automatically revert to local hi scoring.
You will need to restart Scoredoom, even to play with a previous OK saved game.
If you dont see any green player names in the bottom R.H.S. of the HUD, it means online hi
scoring has been disabled. You can check the console to see why.

i.Startup
---------
cfg file and autoexec files are not allowed.
'+' commands in the command line are not allowed.
patch files must be loaded with -deh (i.e. -deh x.deh b.bex etc...)
pk3 files, zip files and raw lumps are allowed, but they will give a different MD5 value used
by the hi score server (see section iv below).


ii.During Gameplay
------------------
Use of the console at any time is not allowed.
Once the game has been started you may use the menu options (setting compatibility options etc...),
but soon as a level is started, you should only being using the main menu, to load saved games,
start a new one, exit and to save a game.

iii. Hiscore Server Problems
----------------------------
Online scoring will be disabled if you have problems logging onto the hi score server, or if the
server gives back an error.


iv. MD5 file checking
---------------------
The executable does an MD5 checksum of itself (gzscoredoom.exe) and of the gzscoredoom.pk3, as well
as any wads and patches applied. The hash generated by the iwads, pwads and patches is used as a
key on the hi score server. It is important that the files are not tampered with, and the wads not contained in any
archive files (zips, pk3s) and that the wad order is maintained. (see section 3)


v. Saved Games
--------------
When online hi scoring is enabled, any loaded save games will be checked to see if they were saved ok (w.o. 'any cheating'),
else the save game will cause scoredoom to flag for cheating.


3.The Hi Score Server Explained
-------------------------------
The hi scores can be viewed in html format from a link off of http://www.scoredoom.com
The main hi score table has the 'officially recognized' wad configurations. These are based on the md5 hash for that wads (and patches)
in that wad configuration. Scoredoom sends the hi score server the md5 value which the server uses to validate. Similar to
previous versions of scoredoom, the wad and patch order is important here too. The main hi score table has a field called
'Wad Configuration' showing the command line and wad order to use. You can view each wad configuration'swad level hi score table
by clicking on the blue name link.

If the server does not find a valid md5 hash in the main table, it will look in the 'public' hi score table and add/update it there.
This public hi score table has the wad configurations added by players. This could be due to entirely different wads being played,
the wad order being incorrect, or different versions of wads. You can view each wad configuration's wad level hi score table by clicking
on the blue hyperlink.

ddraigcymraeg
February 15th, 2009, 08:20 PM
The beta has been updated.
There were some major holes in the anti-cheat prevention which have been patched. This version should be close, if not totally anti-cheat using standard doom & zdoom features.

My versions of plutonia and tnt for some reason had different md5 hashes from what they should be (very odd), but the proper md5 hashes have been added to the hi score server, so final doom based hi scoring will show up ok now.

download from usual: http://www.scoredoom.com

ddraigcymraeg
February 22nd, 2009, 02:13 PM
ScoreDoom has been officially updated to support online hi score tables, as well as some other enhancements

For what that means in detail, go to http://www.scoredoom.com
You can download it there as well as view the hi scores tables.

Just a few points when using Online Hi Scoring, and especially if you are getting the annoying purple *online hi scoring disabled* messages:

1. The 'Extra PWADS & Patches' on the main hi score table gives the wad & patch order necessary. If using the add-on pack, it should be in the 'skins' subdirectory. For instance tnt.wad requires the tnt31.wad fix, and HR.wad requires the HRMUS.WAD.

2. The final release versions of all the iwads are used by the hi score server (v1.9). You can check your iwad version with an mdr5summer and verifying against this page: http://doom.wikia.com/wiki/Doom_files

3. md5 checks are done on the pwads too, so you should use a version untampered with, like with all the files.

4. Anti-cheating is much better enforced than with the 2.0betas, and I'm confident that I have stopped any type of cheating when using the many standard zdoom options/functionality/bindings/aliases/cheats. (I've been wrong too many times in the past, so please PM if you are able to find a way to cheat! ;-)

4. The Hi Score Server is configured to auto-add player names it does not recognize. Though the client defaults the password to 'changme', which will be added. To change this on the server, go to http://www.scoredoom.com/player.php Then go to the 'ScoreDoom Setup' menu and change it there. (The doom font doesnt seem to distinguish between upper and lower case letters, so be careful)

5. http://ww.scoredoom.com goes into much more detail into the dos and donts of using Online Hi Scoring with gzscoredoom.

6. The Hi Score Server is configured to auto-add wad configuration hashes to a secondary 'public' hi score table if it doesnt recognize the md5 hash for the wad being sent (potentially due to points 1->3 above where the player thought they were configured ok)

I plan to eventually release the server files so people can run their own private pwd protected servers, after tweaking the html/php/css some more.

Thats about all I can think of. Again, its worth reading http://www.scoredoom.com for more info.

Just a little bit of history with this...
I wanted to implement something like this from the get-go when I started the mod, but due the difficulty of stopping cheating with extremely versatile zdoom engine (and online cheating in general), I decided against it... Until recently when Edward850 suggested I should add this feature, using md5 checking, something I didnt think of.
If it turns to be impossible to stop cheating, allowing people to run their own pwd protected servers with other trusted players hopefully will compensate some ;P


For the scoredoom 1.x thread:

http://www.doomworld.com/vb/wads-mods/43533-scoredoom-v1-99r3b/

ddraigcymraeg
February 25th, 2009, 02:55 PM
After some feedback, I've updated to 2.1...
download from the usual url: http://www.scoredoom.com
You will need this version to use online hi scoring. Also you will need the 2.1 add-on pack to post scores for add-on pack levels supported by the hi score server.

This will be my last version for the foreseeable future, due to other responsibilities. I will try and fix any critical bugs, if found though.

I plan to also add more wads to the scoredoom 'official' hi score table. Especially smaller wads with 1 or several maps (like Deus Vult), which I think online hi scoring lends probably itself to better.

Due to time constraints I will probably release the hi score server code 'as is' very soon. It has all the features that I want for my own use. Like I mentioned this will allow private hi score servers to be password protected from untrusted players/cheaters, which is probably the way to go, since its ultimately impossible to stop a dedicated hacker/cheater, unless you pay for ssl certs and add even more encryption etc...

Anyways, sorry for the waffling, here is the list of major changes in 2.1:

Changes in 2.1
**************
Now enforces any dmflags set in a wad level's MAPINFO, if found.
A dialogue box is now disabled on first run instructing the player to change their player name & scoredoom online server password.
Refinement of the anti-cheat code, since some people complained:
(i)Toggling the console is allowed now.
(ii)Usage of certain menu options will now *not* disable online hi scoring before the first level is played.
(iii)An extra check for sv_cheats during the game.

AScriptedMarine class is finally fixed (for example, in the Sonic Doom intro, you will now see a proper marine and not a rocket! ;-)
+gennodes 1 is allowed on the command line, which allows levels like Hellfact.wad MAP04 to be played wihout resorting to cheating.
+compatflags is also allowed.

Hi Score Server code has been updated to not post TITLEMAP level scores :-)

----------

ddraigcymraeg
February 28th, 2009, 06:15 PM
Uploaded the hi score server files 'as is' for people interested in running their own private hi score servers (with restrictions: see readme).

After playtesting with online hi scoring, I decided to revert to THE oldskool chain bonuses (+5 minimum instead of +12 minimum) since Doom's inherent randomness can make missing chain bonuses too punishing the way it was in 2.1, which can result in a save-game fest.

Other than that, SD2.2 supports new monsters from Realm 667's beastiary.

download from usual : http://www.scoredoom.com



---------------

ddraigcymraeg
March 11th, 2009, 08:15 PM
Updated to SD 2.3
Get from the usual place: http://www.scoredoom.com

SD now supports two online modes 'Regular' & 'Hardcore'.
Regular mode is the same as 2.2b, whereas Hardcore mode only allows autosaves... so each level needs to be played from start to finish w.o. any saving allowed to post a score.

The hi score server has separate hi score tables for both modes. 2.2b is still supported by the server.

Taking a hiatus from the mod for the forseeable future, but will eventually get around to fixing any reported bugs ;-)