Mancubus
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > A Doom equivalent to Quake Injector
Pages (3): « 1 2 [3]  
Author
All times are GMT. The time now is 13:28. Post New Thread    Post A Reply
MTrop
Member


Posts: 423
Registered: 12-05


Updated the Assistant to version 0.8.3 BETA.

Get it here: http://mtrop.net/downloads/hosted/i...-0.8.3-beta.zip

Changes:

  • Changed: Analyzer no longer cancels outright if it finds what it presumes to be unplayable.
  • Changed: No more looping through checking if the configuration is incorrect on launch.
  • Fixed: Open Location didn't work with relative paths. Now it does.
  • Fixed: Last file opened is now remembered in file choosers, even after close.


EDIT: Fixed typo that I just noticed now.

Last edited by MTrop on 05-17-12 at 15:28

Old Post 05-17-12 04:14 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
DuckReconMajor
Forum Legend


Posts: 4226
Registered: 01-09


Awesome.

Old Post 05-17-12 11:30 #
DuckReconMajor is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


I've noticed that there are some files on idGames that have text files with weird control characters in them that are causing problems with dumping to XML. They are mostly older files, so it isn't that terrible, but they do exist and I need some sample sets in order to figure out how to handle them.

So, if any of you guys find files that give you an error message like "not XML or malformed XML," tell me so that I can fix it.

Old Post 05-17-12 21:03 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
qoncept
Member


Posts: 434
Registered: 12-11


I'd start with this and see if it covers everything.

string.replaceAll("[\u0000-\u001f]", "");

Old Post 05-17-12 22:17 #
qoncept is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


I'd rather it be done on the web side. The problem is that the API can generate bad XML, not that the client is misinterpreting it.

The problem is that newlines need to be preserved in CDATA fields and I might have to just filter out a small range of characters, not the whole lower range.

EDIT: Fixed it. I just filtered out the control characters before I put the data into XML fields except for carriage return and line feed. Everything should be fine, now.

Last edited by MTrop on 05-18-12 at 06:13

Old Post 05-18-12 02:11 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


Updated the Assistant to version 0.8.4 BETA.

Get it here: http://mtrop.net/downloads/hosted/i...-0.8.4-beta.zip

Changes:

  • Game detection is now more accurate, opting for a "heat map" or "closest match" type of identification rather than a straight-up "it must be this" type of detection.
  • Changed code in Port guessing algorithm that kept calling the game guessing algorithm. This should make things a lot quicker.


Just wondering - should I make this a separate thread so that discussion could be moved there?

Old Post 05-22-12 08:29 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
K!r4
Senior Member


Posts: 1324
Registered: 05-07


It may be more practical if you plan to add changelogs and latest versions to the OP.

Old Post 05-22-12 10:15 #
K!r4 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8885
Registered: 06-06


Sounds like a lot of work. How are you handling non-standard text files? How are you handling non-standard storage in the ZIP?

So far I've been using Doomworld's own random file selector, or dumping /idgames to my hard-drive, if I wanted to go alphabetically.

So what is this application useful for? Being able to read the text files without having to click on links and change the browser page? Doing the downloads and unzipping them for you?

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 05-22-12 12:00 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05



printz said:
How are you handling non-standard text files? How are you handling non-standard storage in the ZIP?


I don't handle the text files. That's handled implicitly by idGames. I just read the metadata from the API that I put up in mid-April, because the file's TXT is already parsed at that point.

If you what you mean by "non-standard storage" is folder structure inside the ZIP, it's irrelevant if WADs and Dehacked patches can still be found. They are unzipped to a temporary directory during Doom's execution, and the unzipped contents are cleaned up after it is done running (but not the ZIPs, should you want to run it again and not re-download).


So far I've been using Doomworld's own random file selector, or dumping /idgames to my hard-drive, if I wanted to go alphabetically.


If you've already downloaded all of idGames to a local system, then this wouldn't be as useful, but why bother with the dump if you aren't going to play it all? Why keep or download the crap WADs? And you have to keep your local copy up to date if you want to play the Newstuff, whereas with this, you just go to the page, click, and run.


So what is this application useful for? Being able to read the text files without having to click on links and change the browser page? Doing the downloads and unzipping them for you?


The latter, plus figuring out what game and port to use for the WAD files contained inside the WAD/PK3, and it doesn't use TXT content at all for this type of detection. It will also include Dehacked patches in case they are loose in ZIP and not embedded in the WAD. No command-line, no mess, no problem. Just click and run. You could download and run Batman Doom without caring about its installation, because the ZIP contains the assets and the patch (you might need to force it to use Boom, because it will detect Doom 2 as the port - nothing Boom-required is in Batman Doom).

Granted, it's geared way more towards single-player than multiplayer. You're better off using something different for setting up multiplayer games. ...At least at the moment.

Old Post 05-22-12 16:24 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Retog
Member


Posts: 504
Registered: 03-12


This would be a nice thing to see but I personally prefer looking through the archives.
I think it would be a nice addition.

Old Post 05-26-12 20:38 #
Retog is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Retog
Member


Posts: 504
Registered: 03-12


I just read the forum properly, sorry.
It is great to see a beta :)

Old Post 05-26-12 20:40 #
Retog is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Siggi
Member


Posts: 388
Registered: 10-04


I had a look at this last night, seems pretty awesome. :)

It would be really win if these idgames protocol links appeared in the actual /newstuff reviews.

For example...



Doom: RV-007's Doom 1 and 2 Animilation Players Scaled v16 - RV-007
Doom/Doom 2 - GZDoom - N/A - 17304232 bytes - http://www.doomworld.com/idgames/images/protocol.png - (img)
Reviewed by: The Green Herring
This is a set of high-resolution player skins consisting of five anime girls created using a pornographic PC game, as the author's strange warning about "adulterated content" indicates. Whether or not the author knows that people usually call it "adult content," or, God forbid, "pornography," is a topic for another time. It also goes without saying that admitting that said content "might thread towards pedophilia" is not the best way to endear yourself to your audience.



Or something similar.

Old Post 05-29-12 14:31 #
Siggi is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 579
Registered: 05-02


I've been playing with the /idgames API in a project (http://imgur.com/F306h), and I noticed that requesting http://www.doomworld.com/idgames/ap...tfiles&limit=10 returns a bunch of <vote> sections inside <content>, even through you'd expect it to return <file> sections (like the API docs at http://www.doomworld.com/idgames/api/ state). Is this a bug or a "feature"?

Also woo, thread necro-ing.

Old Post 10-16-12 01:28 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


Whoops! You're right!

Hang on, gotta fix...

EDIT: I've sent the fix to Bloodshedder. He'll apply it soon.

Last edited by MTrop on 10-16-12 at 03:39

Old Post 10-16-12 03:26 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 579
Registered: 05-02


Awesome, thank you! That simplifies my code a bit.

Old Post 10-16-12 10:46 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 309
Registered: 07-12


awesome! there are not other words!

Old Post 10-16-12 14:18 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


Maybe this would be a good time to finally add search support to the API.

Comments?

Old Post 10-16-12 15:31 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 579
Registered: 05-02


I assumed there was no search support because of server load reasons.

How I would expect it to work would be to send a request with action=search&search=Community%20Chest&limit=10&type=filename where type could be replaced with one of the other search types now exposed through the /idgames webpage (like author, credits, full textfile). Then it returns a regular response with matching <file>s inside the <contents> section. Sorting could be done clientside.

A more generic search type would be nice too, because having to specify what type of database columns to search is not common from an end-user's point of view.

Another feature might be integration with /newstuff reviews (from the past and present), somehow. Adding the screenshots and using the /newstuff review text as a "primary" review or something to that effect. But thats probably a much bigger chunk of work.

Old Post 10-16-12 18:10 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


The Newstuff parts would be the really hard part. Other than forum posts and hyperlinks, there is nothing that links those files to the Newstuff Chronicles that I know of, and would require deeper inspection to attempt to match them. There would have to be a table that links the two to speed up the search, but then each review is just a chunk of text in a larger entry, so it would still need to be scanned. It would require a bit of an overhaul to get that to work efficiently.

The generic search is very doable, however. It just needs to perform well.

Last edited by MTrop on 10-16-12 at 18:51

Old Post 10-16-12 18:35 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 309
Registered: 07-12


just one question, when i open the idgames-protocol.exe it give me only the possibility to directly input an idgame file id... it is supposed to do so? i have to insert a command line or something to activate some other funcions?

Old Post 10-16-12 18:48 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05



Cacowad said:
just one question, when i open the idgames-protocol.exe it give me only the possibility to directly input an idgame file id... it is supposed to do so? i have to insert a command line or something to activate some other funcions?


It will ask you for an id if no URL or id was provided as a parameter.

That EXE is for associating with "idgames" protocol URLs. Run idgames-registry.exe to add support for those links. It will create a REG file that it will attempt to merge into the Windows Registry. A UAC window should pop-up telling you that it will want to elevate privileges in order to do this.

There are other ways to associate idgames URLs via your Internet browser, but this ensures that it works at the OS level. Read the readme file for more details about the rest of the EXEs.

Old Post 10-16-12 18:57 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 309
Registered: 07-12


well, i readed them when i downloaded it, i have done everything was needed to do, but i moved the files in c:\doom\wadfinder , maybe is this the problem? i'm running a windows xp edition, so it asked me only if i wanted to do so, nothing else. there is a way to undone the merge and redo it all or to do it in another way at the os level?

Last edited by Cacowad on 10-16-12 at 20:15

Old Post 10-16-12 19:56 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


If you move the program after you ran idgames-registry, then it won't work. Move the idGames Assistant to the directory that you want it to be, then run idgames-registry again. It sets the path to idgames-protocol based on the directory that idgames-registry.exe is in.

Old Post 10-16-12 21:54 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 309
Registered: 07-12


sorry to bother you again, i have done everything you said, but still don't run, i have downloaded the latest version avabile and this is the content of temp.reg found in
C:\Documents and Settings\Administrator\Dati applicazioni\idGames\temp

code:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\idgames] "URL Protocol"="" @="URL:idGames Protocol" [HKEY_CLASSES_ROOT\idgames\DefaultIcon] @="idgames-protocol.exe,1" [HKEY_CLASSES_ROOT\idgames\shell] [HKEY_CLASSES_ROOT\idgames\shell\open] [HKEY_CLASSES_ROOT\idgames\shell\open\command] @="\"C:\\Doom\\wadfinder\\idgames-protocol.exe\" %1"


i don't understand why it does not work properly...

ah another thing i noticed, this program prevent the use of the iwad(s) it use from being used by another application (doombuilder 2 and xwe this time), i had to copy my doom2.wad in another dyrectory to make them work again.

Old Post 10-17-12 10:32 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MTrop
Member


Posts: 423
Registered: 12-05


Did you check the registry to see if those keys were actually added? Windows XP may have some protection measure in place that may keep other programs from merging keys into the registry.

Also, does anybody know if this is the correct series of keys for Windows XP association with protocols? Does the first line need to be changed in the REG file? Does a computer restart need to occur?

I also don't remember if it exclusively opens files for writing, especially the IWAD, which would block its use in other programs. There might be a handle that it isn't closing, or Windows XP may be more strict in file locking policy. I'll have to look into it.

Old Post 10-17-12 15:18 #
MTrop is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 309
Registered: 07-12


ok, i have checked the registry and all the data was added correctly, i have also checked the microsoft support page and i apparently found no error... i'm little confused... well i still have to go on the idarchive pages but it is still a good tool.

Old Post 10-18-12 17:08 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 13:28. Post New Thread    Post A Reply
Pages (3): « 1 2 [3]  
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > A Doom equivalent to Quake Injector

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.