PDA

View Full Version : So when do I get a WhackED update?!!? :)


XDelusion
May 30th, 2003, 09:50 PM
I NEED I NEED I NEED

------------------
Satan's Girl Scouts

http://files.frashii.com/~sp00nz/Doom/

"There is no emotion; there is peace."
"There is no ignorance; there is knowledge."
"There is no passion; there is serenity."
"There is no death; there is the Force."

Exl
May 31st, 2003, 02:18 AM
I can't remember if I have bored people with this before but I'm rewriting WhackEd from scratch. Once I get all the original DEH stuff working I'll probably do some sort of test-release, then I'll try adding BEX support for 1.0. Of course, feel free to mess around with the current version of the source...

------------------
WhackEd 1.23.199 (http://home.wanadoo.nl/dennis.meuwissen/whacked)

Here's to the ways of life -- death, decay and cheese!

ToXiCFLUFF
May 31st, 2003, 03:54 AM
Exl, I downloaded Whacked again and it installed fine and everything, but when I run it it loads for a bit and then I get a:

Run time error "76"
Path not found

error.... any idea on how I can fix this?

Exl
May 31st, 2003, 04:36 AM
Blame my crappy config coding. http://forums.newdoom.com/UBB/wink.gif
Try looking in whacked.ini and see if you find a pathname that is wrong. Just load it up in some text editor like notepad and change it, it shouldn't be too hard to figure out.
If all else fails, delete the whacked.cfg file and start WhackEd to get the options dialog with a more user-friendly way of setting the uh... settings.

------------------
WhackEd 1.23.199 (http://home.wanadoo.nl/dennis.meuwissen/whacked)

Here's to the ways of life -- death, decay and cheese!

Doom_Dude
May 31st, 2003, 05:09 AM
I look forward to the next WhackED! I've had no problems with the current version actually but a new version is always cool. http://forums.newdoom.com/UBB/biggrin.gif

------------------
Vilecore@The Megawad (http://megawad.newdoom.com)
http://megawad.newdoom.com/sig/vilesig1.GIF
The NewdooM Community Project (http://megawad.newdoom.com/ndcp)

XDelusion
May 31st, 2003, 11:27 AM
I LOVE it, but am forced to use a classic version because it keeps saying it is not compatable with my Deh files, even if they were just made and saved in Whacked.

------------------
Satan's Girl Scouts

http://files.frashii.com/~sp00nz/Doom/

"There is no emotion; there is peace."
"There is no ignorance; there is knowledge."
"There is no passion; there is serenity."
"There is no death; there is the Force."

DarkWolf
May 31st, 2003, 11:53 AM
May I suggest registry keys Exl? They're a hell of a lot easier to call and save. Plus it doesn't matter what directory the user has the program in, it should always be able to find the keys.

------------------
-DarkWolf

Aliotroph?
May 31st, 2003, 12:06 PM
But then you gotta make sure you uninstall stuff properly or you get a cluttered chunk of the registry since VB is only allowed into one area (at least in VB5/6 have no idea bout .NET).

Where that config code is shouldn't it say something like:

On Error GoTo Bad_Path
...
...
...
Bad_Path:
(popup a config dialog of some kind here)

Yeah, I'm lazy and oldschool with my gotos. http://forums.newdoom.com/UBB/tongue.gif

------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)

Aliotroph?.postCount++;

DarkWolf
May 31st, 2003, 12:12 PM
Our VB programming book used gotos. http://forums.newdoom.com/UBB/smilies/cwm6.gif

There are commercial programs that don't strip their keys fully when uninstalling. If WhackEd doesn't make any weird dependencies in the registry, then there really isn't any harm in leaving the keys there. It's when you have this program associated with this file and you get rid of the program and not the association that problems arrive.

------------------
-DarkWolf

Aliotroph?
June 1st, 2003, 01:06 AM
Yeah there is a problem. It's called giant uslessly cluttered registry. I hate that.

Gotos are fun. It's like programming in assembly and messing with your head over the confusing structure of your code. http://forums.newdoom.com/UBB/tongue.gif

------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)

Aliotroph?.postCount++;

Gherkin
June 1st, 2003, 02:18 AM
Gotos are the evil himself. If you structure your code correctly, you can do it all without any goto (as it should be). Unfortunately, the On Error statement doesnt give you much of a choice. You could use On Error Resume Next, but that would require you to check for errors after each statement, or else you'll never know where the error ocurred. So On Error Goto # is still the bext way to go for your own error trapping. Personally I would prefer some sort of On Error Call [errorhandler function].
Â*


------------------
Doom Connector (http://www.doomconnector.com) - Your first class ticket to hell online! Â*Â* [statistics (http://www.xodemultimedia.com/connector_server.php)]

Exl
June 1st, 2003, 06:43 AM
I chose to use a INI file since they are easy to modify by the user (in case something got screwed up or just because it's faster than to start the program, go into the options manu and browse, browse, browse...). With the rewrite I still use INI files, but intsead of using the Windows API calls for it, I wrote a class for it. And here's the link with the goto's, it uses plenty of them. I'm gonna dump that class and search for one that's already been written somewhere online, which can at least work with decent config. files...

------------------
WhackEd 1.23.199 (http://home.wanadoo.nl/dennis.meuwissen/whacked)

Here's to the ways of life -- death, decay and cheese!

DarkWolf
June 1st, 2003, 06:54 AM
<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">quote:</font><hr width="100%" size="1" noshade><font face="Trebuchet MS, Arial, Helvetica, serif" size="2">Yeah there is a problem. It's called giant uslessly cluttered registry. I hate that.</font><hr width="100%" size="1" noshade></BLOCKQUOTE>

Since when is Window's registry not cluttered? Maybe after a fresh install of Windows.

------------------
-DarkWolf

ToXiCFLUFF
June 1st, 2003, 07:08 AM
I musta just written a typo in the whacked.ini, because I had opened it up before. Deleted and started it again now, though, and it works perfectly :)

Gherkin
June 1st, 2003, 07:21 AM
Take a look into this Exl;
http://www.xodemultimedia.com/temp/clsconfiguration.zip

Its the Class which I use in all my applications for configuration files. It can read and write them, you can get parts of (or the entire) the configurtion as Dictionary objects, optionally by reference. You can see what your configs will be like if you look at Doom Connector's connector.cfg or mapnames.cfg. (DC even uses this configuration in a string without whitespace to pass the game settings between clients)

Read the huge comment block in the Class module's declarations section for information on how it works. You need the "Microsoft Scripting Runtime" reference (scrrun.dll) for the Dictionary object (which is much like Collection, but faster and more flexible).
Â*


------------------
Doom Connector (http://www.doomconnector.com) - Your first class ticket to hell online! Â*Â* [statistics (http://www.xodemultimedia.com/connector_server.php)]

Exl
June 1st, 2003, 08:06 AM
Damnit, I forgot about that class of yours... http://forums.newdoom.com/UBB/smilies/cwm3.gif
Anyway, I assume it would be allright if I would incorporate that one into WhackEd2 under the GPL license, right?

------------------
WhackEd 1.23.199 (http://home.wanadoo.nl/dennis.meuwissen/whacked)

Here's to the ways of life -- death, decay and cheese!

Gherkin
June 1st, 2003, 08:32 AM
Even if it wasnt GPL, go right ahead http://forums.newdoom.com/UBB/wink.gif

If I may give you a tip: Write a setting "type" in the root of all your configurations which you set to something like "WackED Configuration" and verify that when loading the file (give warning when its different). So people cant accedentially mix up config files (and crash your app) that have a different purpose.

Its not a requirement, just something I thought up to prevent confusion.


------------------
Doom Connector (http://www.doomconnector.com) - Your first class ticket to hell online! Â*Â* [statistics (http://www.xodemultimedia.com/connector_server.php)]

Exl
June 1st, 2003, 10:15 AM
Okay then, thanks man! I owe you one! http://forums.newdoom.com/UBB/wink.gif

------------------
WhackEd 1.23.199 (http://home.wanadoo.nl/dennis.meuwissen/whacked)

Here's to the ways of life -- death, decay and cheese!