Duke4.net Forums: EDuke32 2.0 and Polymer! - Duke4.net Forums

Jump to content

  • 213 Pages +
  • « First
  • 137
  • 138
  • 139
  • 140
  • 141
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

EDuke32 2.0 and Polymer!  "talk about the wonders of EDuke32 and the new renderer"

User is offline   Daedolon 

  • Ancient Blood God

#4136

View PostHelixhorned, on 22 December 2013 - 10:59 AM, said:

That's easily accomplished with CON's eventloadactor or EVENT_LOADACTOR. You'd only need to research a bit whether the tag you want to put the skill into isn't used in other (hard-coded or CON, if applicable) effects.


I think he speaks mainly as a mapper, not a modder.

For MetHy: I think it should be possible to make the additional platforms destructible and have some kind of skill level controlled explosions (somehow, I think I could find a way) to blow them up before the player gets to them.
0

User is offline   MetHy 

#4137

Well it was just an example. I was just thinking such an in-built feature could be interesting. For example in E1M3 in Doom they use it to add "lamp" sprites in a pitch dark corridor to guide the player through in easier difficulties.

This post has been edited by MetHy: 22 December 2013 - 01:46 PM

1

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4138

Would it be posible to separates the shade and fog colors? I feel like using the same color for both is very limitating, especially for realistic environments. I am not 100% sure, but as far I know it would be technically possible with the way lookup palette works.

I also would like to request the ability to have a black fog (0, 0, 0) that uses a shade table generated by the engine. Otherwise I am forced to have a shade table with the same shade values as Duke 3D palette files...

This post has been edited by Fox: 22 December 2013 - 03:08 PM

0

User is offline   MusicallyInspired 

  • The Sarien Encounter

#4139

Oooooohhh maps that have varying methods of completion based on difficulty would be AWESOME! Replay value would be sweet and would actually encourage people to try other difficulty levels that they're not used to. You'd have to figure out how to beat a level all over again!
0

User is offline   Helixhorned 

  • EDuke32 Developer

#4140

View PostMetHy, on 22 December 2013 - 01:45 PM, said:

I was just thinking such an in-built feature could be interesting.

Hard-coding such functionality may entail backward compatibility issues. Suppose the interface is "for every sprite with zvel >= 1 and zvel <= 4, that number is checked against the skill". While to my knowledge, zvel is never used as a tag in vanilla Duke, large mods such as WGR2 definitely use all available sprite members for custom effects. To combat that, you could make that behavior conditional to only a few selected tile numbers, but who's to decide which ones those are? Doing that in a CON mutator in a whitelist approach is the only sensible option.

It's understandable to not want to include custom CONs with a map though. The traditional approach of some maps to ship modified {GAME,USER,DEFS}.CON files is inadequate: it forces the user to either copy them to the game directory and delete them afterwards (clumsy) or provide the root one at the command line (which Windows users shy away from). Mutators are definitely preferred, but also suffer from the increased "installation" complexity.

So... what I'm thinking about is to enable auto-loadable CON or Lua mutators on a per-map basis, like already there for some other file types such as music. That should be doable in the Lunatic build, since the Lua state is recreated with each new game.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4141

It has been suggested before for Eduke32 to automatically load MYMAP.CON and MYMAP015.art, and if save files can store the con I suppose it can be loaded with a user map.

This post has been edited by Fox: 23 December 2013 - 08:28 AM

0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4142

View PostFox, on 22 December 2013 - 03:03 PM, said:

Would it be posible to separates the shade and fog colors? I feel like using the same color for both is very limitating, especially for realistic environments. I am not 100% sure, but as far I know it would be technically possible with the way lookup palette works.

I also would like to request the ability to have a black fog (0, 0, 0) that uses a shade table generated by the engine. Otherwise I am forced to have a shade table with the same shade values as Duke 3D palette files...

To further expand on this subject, here is a photo that show what I am talking about:

Posted Image

This kinda of thing is quite not possible if both shade and fog must use the same values.
2

User is offline   TerminX 

  • el fundador

  #4143

The whole way fog works is by generating new shade tables that are used in place of the traditional "fade to black" tables you get by default. What you are asking for is not possible.
0

User is offline   Daedolon 

  • Ancient Blood God

#4144

View PostFox, on 24 December 2013 - 11:17 AM, said:

To further expand on this subject, here is a photo that show what I am talking about:


Makes me want to work further on my Blood map(s). It's almost sad how much ingenuity went into the design of the features of Blood. I just wish some of them could be back-portable somehow.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4145

Alternatively I could create 32 pals that replace the texture shading (sorta like I already did in Duke Nukem 64 Mod for the Nightvision) and use in conjuction with any fog. But that's just conceptual.
0

User is offline   Helixhorned 

  • EDuke32 Developer

#4146

View PostFox, on 27 December 2013 - 09:45 PM, said:

Alternatively I could create 32 pals that replace the texture shading (sorta like I already did in Duke Nukem 64 Mod for the Nightvision) and use in conjuction with any fog. But that's just conceptual.

Not conceptual any more: :wub:
Attached Image: capt0036.png

See r4236. I'll leave the documentation for the new year, but in the meantime feel free to look into the commented test/shadexfog.lua.
3

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4147

Thanks! I tought it should be possible in some way if I can do it with palettes (even if it is impractical).

Quote

Failed attempt at recreating the base shade table. It is NOT a linear ramp
of the base palette colors to (0,0,0). That is, it's not created by
build/util/transpal.exe!

Not really sure what you meant here, but I am not asking for a black fog (0, 0, 0) that mimics the original Duke 3D shade table, but rather for one that works in the same way as any custom fog. Think of it as if I would use 1, 1, 1 as a replacement if I can't use 0, 0, 0. :wub:

This post has been edited by Fox: 31 December 2013 - 06:22 AM

0

User is offline   Helixhorned 

  • EDuke32 Developer

#4148

View PostFox, on 31 December 2013 - 04:49 AM, said:

Not really sure what you meant here, but I am not asking for a black fog (0, 0, 0) that mimics the original Duke 3D shade table, but rather for one that works in the same way as any custom fog.

Yup, I understand that. The Lunatic manual now has a subsection documenting how the classic renderer uses shade tables. It's required reading for anyone wishing to discuss effects such as these. Also... Mapster32 didn't start with the Lunatic build before, d'oh. It should be fixed now, so you can get to experimenting with the editor.

I wanted to exactly reproduce the shade table provided with Duke3D, but failed -- transpal.exe generates a table giving a similar, but noticeably different result. For example, the fading happens slightly faster in the PALETTE.DAT table, but it's not only a matter of a factor. It's surprising as I expected that program to be what was run by 3DR/Ken to generate it.
1

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4149

I am quite sure the shade table from Duke 3D was created with a slightly different palette (the one used in these early screenshot in PCX format).
0

User is offline   LeoD 

  • Duke4.net topic/3513

#4150

make USE_OPENGL=0 fails to build:
src/defs.c: In function 'defsparser':fs.o...
src/defs.c:1284:38: error: 'HUDFLAG_HIDE' undeclared (first use in this function)
                             flags |= HUDFLAG_HIDE; break;
                                      ^
src/defs.c:1284:38: note: each undeclared identifier is reported only once for each function it appears in
src/defs.c:1286:38: error: 'HUDFLAG_NOBOB' undeclared (first use in this function)
                             flags |= HUDFLAG_NOBOB; break;
                                      ^
src/defs.c:1288:38: error: 'HUDFLAG_FLIPPED' undeclared (first use in this function)
                             flags |= HUDFLAG_FLIPPED; break;
                                      ^
src/defs.c:1290:38: error: 'HUDFLAG_NODEPTH' undeclared (first use in this function)
                             flags |= HUDFLAG_NODEPTH; break;
                                      ^
src/defs.c:1243:61: warning: variable 'flags' set but not used [-Wunused-but-set-variable]
                     int32_t ftilenume = -1, ltilenume = -1, flags = 0, fov = -1;
                                                             ^
Failed building ../source/eobj_win/defs.o from src/defs.c!
make[1]: *** [../source/eobj_win/defs.o] Error 1
make: *** [enginelib] Error 2

0

User is offline   Helixhorned 

  • EDuke32 Developer

#4151

View PostFox, on 02 January 2014 - 12:39 AM, said:

I am quite sure the shade table from Duke 3D was created with a slightly different palette (the one used in these early screenshot in PCX format).

No, it's not that either. Look at a plot of the color of palookup[s][223] against the shade s:

Attached Image: shadecolor_223_rgb.png

You'd expect the colors to distribute around the dotted lines if it were a linear ramp. Now compare this with a plot showing the colors of the base palette split by R/G/B, recently added to the wiki. In the second plot, color index 223 has been moved to 159. The bottom line is, they have been created using a different computation method than taking close colors of linearly-blended ones.

View PostLeoD, on 02 January 2014 - 05:17 AM, said:

make USE_OPENGL=0 fails to build:

Fixed in r4241. Thanks.
0

User is offline   Daedolon 

  • Ancient Blood God

#4152

View PostHelixhorned, on 02 January 2014 - 09:18 AM, said:



How did you calculate that?

And can you make a "perfect" palette (for the 256 colours anyway) that fixes those gradients?
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4153

I have some questions about multiplayer. How exactly the player ID works in regards of players joining or leaving a game?
0

User is offline   Helixhorned 

  • EDuke32 Developer

#4154

View PostDaedolon, on 02 January 2014 - 09:21 AM, said:

How did you calculate that?

Using some home-brewed Octave code, found here. It's all data plotting though, no real calculation involved. If you want to reproduce it, you'll have to compile Octave from source. The official binary packages don't ship with classdef support yet, but it has recently been merged into the default branch.

Quote

And can you make a "perfect" palette (for the 256 colours anyway) that fixes those gradients?

Well, you can create one whose colors will be closest to linearly-blended ones (for a given distance function; in transpal.exe it's the squared Euclidean distance, with a weighting on the color components). However, it turns out that it's not even desirable. Try running the following from the latest Lunatic Mapster32's OSD, with quotes entered as shown:
lua "shadexfog=reload'shadexfog'"
lua "shadexfog.create0(100)"


Now, switch to the newly created pal with
lua "shadexfog.challpal(100)"


You'll notice that the result is quite inferior to what the shipped shade table provides. I think it's been generated similar to this: Assume that the base palette contains all color ramps in consecutive blocks (like in the rearranged base palette colors plot on the wiki) and for a color index i, let b(i) denote the least color index belonging to the same ramp as i (the "base" color index of that ramp). Then, for a shade s and a color index i, palookup[s][i] = b(i) + round((s/32)*(i - b(i))). In a sense, this is a good thing, as it means that shaded versions of a color stay within their ramp.

edit: corrected the formula
0

User is offline   Hendricks266 

  • Weaponized Autism

  #4155

Fox mentioned that the shade tables could have been generated from an older palette version that can be found in PCX prototype screenshot collections. Have you tried running your script(s) on it/them?
0

User is offline   Helixhorned 

  • EDuke32 Developer

#4156

I think it's unlikely for the mentioned reasons. Wouldn't you expect to see basepal(palookup[][]) to spread around the dotted line in the earlier plot if that were the case? What you see instead is that it follows the R/G/B ramp itself! I haven't run transpal.exe/shadexfog.create0 (these two only differ by a small amount -- maybe I got some rounding wrong or the like) on it though. Is there a PALETTE.DAT available for it? I just don't feel like coding these couple of utility lines right now.

edit+edit2: I mean, the "PALETTE.DAT" without the shade and translucency table of course with the palette from the picture, but the original shade and translucency tables, so that I can load it into Mapster32 and re-run shadexfog.create0 on it. Yes, I'm really, really a bit lazy here...
edit3: To be exact, I also mean "around the dotted lines of the linear ramp, but starting at the color of the other palette". Sorry for the sloppy wording in this post, I hope you can "fill in the gaps" by now.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4157

I checked it, and I couldn't find any old screenshot with a different palette. I figured out the palette I was thinking of was from this picture, which I don't know where it came from:

Posted Image

The most notable difference is that the darkest shade for colors like red or blue is not pitch black like the final version.
0

User is offline   Hendricks266 

  • Weaponized Autism

  #4158

I extracted the .pal from this image using IrfanView, and I used bsuite to insert it into a PALETTE.DAT. http://hendricks266....ke3d_unk_proto/

Here's LameDuke's: http://hendricks266....uke3d_lameduke/

I would add Redneck Rampage and PaintBrawl but I don't have the data for those with me at the moment. IIRC at least RR uses the same color arrangement but different specific color values.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4159

Is it possible to make the Pistol / Expander auto-aim accuracy adjustable with ANGRANGE or ZRANGE? Right now there is no way to modify that behavior.
0

User is offline   TerminX 

  • el fundador

  #4160

They have a weapon flag set on them to change the autoaim behavior, unset the flag and they should act like regular weapons.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4161

enum weaponflags_t {
    WEAPON_SPAWNTYPE1           = 0x00000000, // just spawn
    WEAPON_HOLSTER_CLEARS_CLIP  = 0x00000001, // 'holstering' clears the current clip
    WEAPON_GLOWS                = 0x00000002, // weapon 'glows' (shrinker and grower)
    WEAPON_AUTOMATIC            = 0x00000004, // automatic fire (continues while 'fire' is held down
    WEAPON_FIREEVERYOTHER       = 0x00000008, // during 'hold time' fire every frame
    WEAPON_FIREEVERYTHIRD       = 0x00000010, // during 'hold time' fire every third frame
    WEAPON_RANDOMRESTART        = 0x00000020, // restart for automatic is 'randomized' by RND 3
    WEAPON_AMMOPERSHOT          = 0x00000040, // uses ammo for each shot (for automatic)
    WEAPON_BOMB_TRIGGER         = 0x00000080, // weapon is the 'bomb' trigger
    WEAPON_NOVISIBLE            = 0x00000100, // weapon use does not cause user to become 'visible'
    WEAPON_THROWIT              = 0x00000200, // weapon 'throws' the 'shoots' item...
    WEAPON_CHECKATRELOAD        = 0x00000400, // check weapon availability at 'reload' time
    WEAPON_STANDSTILL           = 0x00000800, // player stops jumping before actual fire (like tripbomb in duke)
    WEAPON_SPAWNTYPE2           = 0x00001000, // spawn like shotgun shells
    WEAPON_SPAWNTYPE3           = 0x00002000, // spawn like chaingun shells
    WEAPON_SEMIAUTO             = 0x00004000, // cancel button press after each shot
    WEAPON_RELOAD_TIMING        = 0x00008000, // special casing for pistol reload sounds
    WEAPON_RESET                = 0x00010000  // cycle weapon back to frame 1 if fire is held, 0 if not
};


This post has been edited by Fox: 04 January 2014 - 07:27 AM

0

User is offline   Helixhorned 

  • EDuke32 Developer

#4162

View PostFox, on 04 January 2014 - 06:58 AM, said:

Is it possible to make the Pistol / Expander auto-aim accuracy adjustable with ANGRANGE or ZRANGE? Right now there is no way to modify that behavior.

What kind of modification do you have in mind? You can now have arbitrary values for these two, where formerly you were forced to used powers of two. How to disable spead follows from this commit message:

r3715 said:

Generalize ZRANGE and ANGRANGE to accept any nonnegative number.

Numbers 0 and 1 mean 'no spread', but the latter does one krand() call.
Negative numbers are reserved for potential future use.


It's the projectile flags that toggle this behavior: PROJECTILE_ACCURATE has to be unset to enable spreading.

If you want to research this in detail yourself, player.c:P_PreFireHitscan() is a good starting point.
0

User is offline   Helixhorned 

  • EDuke32 Developer

#4163

View PostHendricks266, on 03 January 2014 - 08:14 AM, said:

I extracted the .pal from this image using IrfanView, and I used bsuite to insert it into a PALETTE.DAT. http://hendricks266....ke3d_unk_proto/

Doesn't look as if it's been extracted properly. Open it with a hex editor -- you'll only see values 0xC, 0xD and 0xE.

I'm done with attempting to recreate the base shade table for now though. My guess is that maybe the software they did the art with had that capability in some form.
0

User is offline   DavoX 

  • Honored Donor

#4164

This question has nothing to do with anything but is it possible to keep a single zip file for all the necesary items to run eduke32 and mapster32 on the synthesis page? I've recently checked and mapster32 is on one file and eduke32 is on another... it's pretty confusing now.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#4165

View PostHelixhorned, on 05 January 2014 - 05:53 AM, said:

What kind of modification do you have in mind?

To be specific, I want to remove Eduke32 specific behavior regarding the Pistol / Expander accuracy when auto-aim is off for Duke 64. But it's not that important (since I probably would make it an option anyway).

This post has been edited by Fox: 05 January 2014 - 09:24 AM

0

Share this topic:


  • 213 Pages +
  • « First
  • 137
  • 138
  • 139
  • 140
  • 141
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options