SLumpEd (v0.5 release page 12)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

WTF rebuild your kernel for clock skew? Just reset the date.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Bio Hazard wrote:
SlayeR wrote:

Code: Select all

#ifndef max
#define max(a,b) (((a)>(b))?(a):(b))
#endif
#ifndef min
#define min(a,b) (((a)<(b))?(a):(b))
#endif
WTF so many parenthesis!

Code: Select all

#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
Should work fine.

No, it should not! When using #define the worst thing you could do it not use as many parentheses as possible.

Try passing min(c<d, e<f) to your code and watch the mess unfold. The parentheses are there for a good reason.
User avatar
chaoscentral
Posts: 677
Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:

Post by chaoscentral »

my system specs are

P4 Presscott 2.8GHz(OC'd to 3.4GHz)
1GB Ram

and doom2.wad refuses to load, tnt.wad loads fine in about 2 seconds, so I'm wondering whats up with doom2.wad

does it not load due to it being an iwad or something? o well, I'll give that set IWAD thing a try.

EDIT: O ya, one little suggestion, when you fully implement zips, can you have like a directory structure as oppesed to the list that is used? It would make things a bit more readable, because when the table is left at the default width, the filenames are cut off because the directory is shown first

P.S... Tabbed WAD Editor FTW! i<3 SlumpEd :wub:
Last edited by chaoscentral on Fri Aug 11, 2006 6:01 am, edited 1 time in total.
User avatar
Cutmanmike
Posts: 11351
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Ahh I can't wait to try this!
User avatar
sirjuddington
Posts: 1030
Joined: Wed Jul 16, 2003 4:47 am
Location: Australia
Contact:

Post by sirjuddington »

chaoscentral wrote:my system specs are

P4 Presscott 2.8GHz(OC'd to 3.4GHz)
1GB Ram

and doom2.wad refuses to load, tnt.wad loads fine in about 2 seconds, so I'm wondering whats up with doom2.wad

does it not load due to it being an iwad or something? o well, I'll give that set IWAD thing a try.

EDIT: O ya, one little suggestion, when you fully implement zips, can you have like a directory structure as oppesed to the list that is used? It would make things a bit more readable, because when the table is left at the default width, the filenames are cut off because the directory is shown first

P.S... Tabbed WAD Editor FTW! i<3 SlumpEd :wub:
Hmm, well that's strange. Sounds like the wad is corrupted somehow.

As for the tree view suggestion, I tried using a tree view, but it was slow as crap, so I'm just using the list with directories shown like this.
User avatar
Krillancello
Posts: 309
Joined: Sat Nov 27, 2004 12:39 am
Location: Teh Intarwebivurs

Post by Krillancello »

Bio Hazard wrote:WTF rebuild your kernel for clock skew? Just reset the date.
Resetting the date did fix the clock skew complaint. (Damn random complaints about stuff that DOES work.)

As for Graf's comment on using all the parentheses; I would think it would be akin to using the following sort of code in a shell script:

Code: Select all

if [ "${VAR1}" == "${VAR2}" ]; then
Since the variables ($VAR1 and ${VAR1} are the two ways to reference a variable named VAR1 in shell scripts) are double-quoted, they can contain pretty much any character; without the double-quotes, if VAR1 were set to "This is VAR1," the if statement would see three separate entities before the == and probably get confused. I'm not entirely sure about whether there's a correlation or not, though.

And by the way, now that I've actually read the uber-parenthetical statements through without being tired, I've realized I already knew what they do; I remember learning about that construct in another language (either PHP or VB I think, maybe even SQL :?) some time ago.


Edit:
SlayeR wrote:As for the tree view suggestion, I tried using a tree view, but it was slow as crap, so I'm just using the list with directories shown like this.
Have you tried making it so the directories don't all appear together at the top, similar to this:
  • file.pk3/fileA
  • file.pk3/fileB
  • file.pk3/dirA
  • file.pk3/dirA/fileA
  • file.pk3/dirA/fileB
  • file.pk3/dirA/subdirA
  • file.pk3/dirA/subdirA/fileA
  • file.pk3/dirA/subdirA/fileB
  • file.pk3/dirA/subdirC/fileA
  • file.pk3/dirA/subdirC/fileB
  • file.pk3/dirB/subdirA/subdirF/fileA
  • file.pk3/dirB/subdirA/subdirF/fileB
Or are they all together because that's the way you wanted to do it?

Another thing I should note (in general); doom2.wad seemed to take just a few seconds to load for me (at least after I set it as the IWAD for SLumpEd, may have taken longer if I hadn't have done that).
User avatar
Cutmanmike
Posts: 11351
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Well this is certianly making XWE useless. Good job. Btw you might want to have one of those boot up messages asking for an IWAD because I was wondering why all my stuff was black and white when I opened a wad :P
User avatar
chaoscentral
Posts: 677
Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:

Post by chaoscentral »

O ya, I was also wondering, would it be possible to implement batch image offset alignments. So you could easily assign an offset to a range of images, this could be useful for weapon sprites that use the same offset(I ask, because alot of my weapon images have about the same offset for a single weapon)

I also agree with cutman, that a dialog should pop up if the IWAD isnt set. That would have probably stopped my initial post. At least half of it :)
User avatar
Cutmanmike
Posts: 11351
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Crap. Looks like I still have to use XWE...

Any chance of a acs compiler?
User avatar
Tormentor667
Posts: 13554
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Post by Tormentor667 »

@Slayer - I have a few feature requests conc. the developement of the "Monster Resource Wad Next Generation" edition: Would it be possible to add PK3 support and also something like an "Auto Alignment" for sprites? (so everything is set up just as all the sprites are monster sprites and I only have to adjust the projectiles and special things extra) That would be awesome!
User avatar
sirjuddington
Posts: 1030
Joined: Wed Jul 16, 2003 4:47 am
Location: Australia
Contact:

Post by sirjuddington »

Krillancello wrote:Have you tried making it so the directories don't all appear together at the top, similar to this:
  • file.pk3/fileA
  • file.pk3/fileB
  • file.pk3/dirA
  • file.pk3/dirA/fileA
  • file.pk3/dirA/fileB
  • file.pk3/dirA/subdirA
  • file.pk3/dirA/subdirA/fileA
  • file.pk3/dirA/subdirA/fileB
  • file.pk3/dirA/subdirC/fileA
  • file.pk3/dirA/subdirC/fileB
  • file.pk3/dirB/subdirA/subdirF/fileA
  • file.pk3/dirB/subdirA/subdirF/fileB
Or are they all together because that's the way you wanted to do it?
They are all together because it makes things easier in general :P (ie for me and for the user). Most zip managers also do it this way too.
Cutmanmike wrote:Any chance of a acs compiler?
I need it for my project too, so expect it in the next version ;)
chaoscentral wrote:O ya, I was also wondering, would it be possible to implement batch image offset alignments. So you could easily assign an offset to a range of images, this could be useful for weapon sprites that use the same offset(I ask, because alot of my weapon images have about the same offset for a single weapon)
Ok shouldn't be too hard to do.
chaoscentral wrote:I also agree with cutman, that a dialog should pop up if the IWAD isnt set. That would have probably stopped my initial post. At least half of it :)
Yeah, probably a good idea :P
Tormentor667 wrote:Would it be possible to add PK3 support
It can already open them, saving and all the rest is coming in the next version.
Tormentor667 wrote:and also something like an "Auto Alignment" for sprites? (so everything is set up just as all the sprites are monster sprites and I only have to adjust the projectiles and special things extra)
I'm not quite sure what you mean here..
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Post by Ryan Cordell »

For the last one, I'm sure he meant any (selected) sprites to be aligned as if they were monsters.
User avatar
sirjuddington
Posts: 1030
Joined: Wed Jul 16, 2003 4:47 am
Location: Australia
Contact:

Post by sirjuddington »

And another version ;)

New stuff:
- Full zip/pk3 support: directory manipulation, saving, the lot ;)
- Ability to open/edit wadfiles within zip/pk3 files
- Icons for different lump types
- Lump list columns now toggleable (except for the 'name' column)
- Fixed problem with setting offsets for PNG files that didn't
already have them defined (in the grAb chunk)
- Cut/Copy/Paste lumps
- If no IWAD is set, a prompt is shown on startup
- Various editing improvements

SLumpEd v0.3
SLumpEd v0.3 Source

I meant to add acs compilation but I'm not yet sure how I want to implement it. It'll be in the next version though, most likely. Anyhow I couldn't leave zip support only half finished :P
User avatar
chaoscentral
Posts: 677
Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:

Post by chaoscentral »

yayayayayayayayaya i<3 SlumpEd yayayayayayayayayay

[party mode]
*dances... throws XWE out of window...dances*
[/party mode]

Awesome now XWE is gone
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Post by Shadelight »

WOOT! FULL PK3/ZIP SUPPORT! (sorry for the caps! :P)

edit: do you think you can make this thing autoplay music and sounds?
Locked

Return to “Editing (Archive)”