SLumpEd (v0.5 release page 12)
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.
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.
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49224
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Bio Hazard wrote:WTF so many parenthesis!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
Should work fine.Code: Select all
#define max(a,b) (a>b?a:b) #define min(a,b) (a<b?a:b)
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.
- chaoscentral
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
- Contact:
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
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

Last edited by chaoscentral on Fri Aug 11, 2006 6:01 am, edited 1 time in total.
- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- sirjuddington
- Posts: 1030
- Joined: Wed Jul 16, 2003 4:47 am
- Location: Australia
- Contact:
Hmm, well that's strange. Sounds like the wad is corrupted somehow.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
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.
- Krillancello
- Posts: 309
- Joined: Sat Nov 27, 2004 12:39 am
- Location: Teh Intarwebivurs
Resetting the date did fix the clock skew complaint. (Damn random complaints about stuff that DOES work.)Bio Hazard wrote:WTF rebuild your kernel for clock skew? Just reset the date.
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
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

Edit:
Have you tried making it so the directories don't all appear together at the top, similar to this: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.
- 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
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).
- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- chaoscentral
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
- Contact:
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
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

- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- 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:
@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!
- sirjuddington
- Posts: 1030
- Joined: Wed Jul 16, 2003 4:47 am
- Location: Australia
- Contact:
They are all together because it makes things easier in generalKrillancello wrote:Have you tried making it so the directories don't all appear together at the top, similar to this:Or are they all together because that's the way you wanted to do it?
- 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

I need it for my project too, so expect it in the next versionCutmanmike wrote:Any chance of a acs compiler?

Ok shouldn't be too hard to do.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)
Yeah, probably a good ideachaoscentral 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

It can already open them, saving and all the rest is coming in the next version.Tormentor667 wrote:Would it be possible to add PK3 support
I'm not quite sure what you mean here..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)
- 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
- sirjuddington
- Posts: 1030
- Joined: Wed Jul 16, 2003 4:47 am
- Location: Australia
- Contact:
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

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

- chaoscentral
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
- Contact:
- Shadelight
- Posts: 5113
- Joined: Fri May 20, 2005 11:16 am
- Location: Labrynna