EDuke32 2.0 and Polymer! "talk about the wonders of EDuke32 and the new renderer"
#1368 Posted 21 April 2010 - 12:44 AM
Rewrote the mouse and keyboard input recently, replacing the old DirectInput based crap altogether (except for joysticks). This should fix the mouse input problems that pop up when the fps is too low. Since the raw input API is only available on XP or newer, Windows 2000 support has been dropped and there is now no way to ever run EDuke32 on anything earlier than XP other than digging old source revisions out of svn.
The old config file format (eduke32.cfg) has been deprecated now as well. All it will contain when I am done are things used by the startup window; everything else will be configured through settings.cfg (previously called eduke32_binds.cfg).
I think I'm also going to switch to MSVC for official (non-synthesis) builds. I'm a bit sick of the fact that gcc hasn't been able to correctly compile EDuke32 since before version 4.4.0, on Windows OR Linux. Besides, VS2010 is pretty spiffy.
The old config file format (eduke32.cfg) has been deprecated now as well. All it will contain when I am done are things used by the startup window; everything else will be configured through settings.cfg (previously called eduke32_binds.cfg).
I think I'm also going to switch to MSVC for official (non-synthesis) builds. I'm a bit sick of the fact that gcc hasn't been able to correctly compile EDuke32 since before version 4.4.0, on Windows OR Linux. Besides, VS2010 is pretty spiffy.
#1369 Posted 21 April 2010 - 05:36 AM
why is this happening?
same thing with E1L1 and probably others
same thing with E1L1 and probably others
#1370 Posted 21 April 2010 - 10:49 AM
DeeperThought, on Apr 15 2010, 12:05 PM, said:
I'm guessing that TerminX would be reluctant to do that without a good reason, since it would increase the amount of memory used. I'm curious: what are you trying to do that requires more bits?
<x coordinate> x 65536 x <current scale> / 100
And if <current scale> is 100, them the maximum for x coordinate is 327, which unfortunatelly I have already bypassed.
Another thing I trying to do is an GTA like map with an big image used as the map that would move in the screen. Since I would use player posx and posy, it turns something very limited.
So far the way I go through it is multipling not by 65536, but (for example) 256 in the multiplication process, and before using rotatesprite16 command I multiply by 256... it works, but I think it kills the purpose of rotatesprite16...
#1371 Posted 21 April 2010 - 02:39 PM
TX, on Apr 21 2010, 03:44 AM, said:
I think I'm also going to switch to MSVC for official (non-synthesis) builds. I'm a bit sick of the fact that gcc hasn't been able to correctly compile EDuke32 since before version 4.4.0, on Windows OR Linux. Besides, VS2010 is pretty spiffy.
Is there any feature/compatibility/other advantage that would give over gcc 4.3.3?
#1372 Posted 21 April 2010 - 03:59 PM
ozz, on Apr 22 2010, 01:36 AM, said:
why is this happening?
same thing with E1L1 and probably others
same thing with E1L1 and probably others
It's the way Polymer renders walls...
(At a guess) Because the wall is in an invalid space Polymer won't draw because it thinks the player will never see the wall.
This post has been edited by The Commander: 21 April 2010 - 03:59 PM
#1373 Posted 21 April 2010 - 07:55 PM
Hendricks266, on Apr 21 2010, 02:39 PM, said:
Is there any feature/compatibility/other advantage that would give over gcc 4.3.3?
I just wonder if it would mean dropping non-windows (Linux, etc.) support.
#1374 Posted 21 April 2010 - 09:13 PM
Tetsuo, on Apr 21 2010, 10:55 PM, said:
I just wonder if it would mean dropping non-windows (Linux, etc.) support.
No.
#1375 Posted 21 April 2010 - 10:07 PM
The Commander, on Apr 22 2010, 09:59 AM, said:
It's the way Polymer renders walls...
(At a guess) Because the wall is in an invalid space Polymer won't draw because it thinks the player will never see the wall.
(At a guess) Because the wall is in an invalid space Polymer won't draw because it thinks the player will never see the wall.
Interesting , i've only noticed this in newer versions of polymer, may have always been like that, not positive though ...
anyway is there anyway to fix this in future eduke releases?
#1376 Posted 22 April 2010 - 03:21 PM
ozz, on Apr 22 2010, 06:07 PM, said:
Interesting , i've only noticed this in newer versions of polymer, may have always been like that, not positive though ...
anyway is there anyway to fix this in future eduke releases?
anyway is there anyway to fix this in future eduke releases?
Plagman is the only one that can answer that.
#1377 Posted 22 April 2010 - 06:55 PM
The Commander, on Apr 21 2010, 08:59 PM, said:
It's the way Polymer renders walls...
(At a guess) Because the wall is in an invalid space Polymer won't draw because it thinks the player will never see the wall.
(At a guess) Because the wall is in an invalid space Polymer won't draw because it thinks the player will never see the wall.
#1378 Posted 22 April 2010 - 09:41 PM
Fox, on Apr 23 2010, 02:55 PM, said:
More specifically, it will determine which sector can be seen based on floor and ceiling z coordinates. If you look at it in Build, you can see that if it wasn't an paralaxed sky, you would never see that sector. But that's the issue, it's a paralaxed sky. 
Yeah, thats another way of explaining it.
#1379 Posted 25 April 2010 - 03:54 PM
TX, on Apr 21 2010, 03:44 AM, said:
I think I'm also going to switch to MSVC for official (non-synthesis) builds. I'm a bit sick of the fact that gcc hasn't been able to correctly compile EDuke32 since before version 4.4.0, on Windows OR Linux. Besides, VS2010 is pretty spiffy.
The free VS2010 Express Edition I hope.
#1380 Posted 25 April 2010 - 04:15 PM
EDuke32 should continue to build with the free versions of VS.
#1381 Posted 26 April 2010 - 03:00 AM
GCC 4.4.x - 4.5.0 fix by Plagman
r1624: %esi gets modified by swapchar2 but isn't listed as an output operand for the GCC extended assembly version. This causes the compiler to fail to restore it after swapchar2 executes, causing crashes if used in a loop. This change fixes the security camera crash when using GCC 4.4.x or 4.5.0.
r1624: %esi gets modified by swapchar2 but isn't listed as an output operand for the GCC extended assembly version. This causes the compiler to fail to restore it after swapchar2 executes, causing crashes if used in a loop. This change fixes the security camera crash when using GCC 4.4.x or 4.5.0.
#1382 Posted 26 April 2010 - 12:20 PM
Hail to the Plagman. (Could not get the MinGW version of gcc 4.5 to compile it, though.)
#1383 Posted 26 April 2010 - 12:49 PM
maybe you forgot to compile and install in mingw the libogg and libvorbis libraries
#1384 Posted 26 April 2010 - 12:50 PM
MinGW 4.5.0 is what I was working against when I fixed that, so I know it works; what errors are you running into?
#1385 Posted 26 April 2010 - 01:49 PM
Quick question:
Ok a long time ago for the polymer trailer we seen the Pig Recon Patrol Vehicle casting spotlight lighting, i was thinking if this feature can still be done in polymer. If so how?
Ok a long time ago for the polymer trailer we seen the Pig Recon Patrol Vehicle casting spotlight lighting, i was thinking if this feature can still be done in polymer. If so how?
#1386 Posted 26 April 2010 - 02:12 PM
supergoofy, on Apr 26 2010, 10:49 PM, said:
maybe you forgot to compile and install in mingw the libogg and libvorbis libraries
No. Please note that there are new versions (libogg-1.2.0, libvorbis-1.3.1). Seems to me that there are less crashes for me since I use them. (Although there haven't been many before that anyway.)
Plagman, on Apr 26 2010, 10:50 PM, said:
MinGW 4.5.0 is what I was working against when I fixed that, so I know it works; what errors are you running into?
There were some strange assembler related error messages IIRC. But I have deleted that stuff some weeks ago after deciding to wait for the TDM version. Maybe I will give it another try in the not so far future now that i know that others have succeded in using it.
#1387 Posted 28 April 2010 - 01:34 AM
Has anyone run into this problem ....
its quite odd ... it only ever happens on the 3rd or 4th time you load a level , say you die 2-3 times and load the same level on any episode on any level..
its causes the frame rate to drop below 5 fps and becomes incredibly unstable
its quite odd ... it only ever happens on the 3rd or 4th time you load a level , say you die 2-3 times and load the same level on any episode on any level..
its causes the frame rate to drop below 5 fps and becomes incredibly unstable
#1388 Posted 28 April 2010 - 01:44 AM
I would try deleting the texture cache but for some reason its disappeared and nowhere to be found in the eduke folder
??
#1389 Posted 28 April 2010 - 06:05 AM
Changing the texture quality in the options will reset the cache if you can't find it.
#1390 Posted 28 April 2010 - 09:43 AM
that did work to reset the textures... however the problem still happens on the 3rd - 4th time... the textures go screwy just shows maps and games runs very slow... possible windows 7 eduke issue??
#1391 Posted 28 April 2010 - 12:40 PM
I suspect if there were Windows 7 issues I would have noticed them during the 16 months I've been running Windows 7.
#1392 Posted 28 April 2010 - 04:02 PM
I've had something kind of similar happen in the past. However instead of just textures going a bit iffy, models tended to have pieces missing (possibly with some goofed up textures like above), along with the same unplayably slow framerate.
In my case, it turned out that it was a side-affect of running the game with some specific high-poly models at too-high a resolution and with too much AA applied. Not sure why it caused everything to stuff up, but just reducing the amount of AA I had applied, or dropping the resolution a bit would always take care of it.
Though to be honest I've never seen anything of mine just start showing normal maps. But the low performance + buggered textures would indicate that it's possibly a similar problem. I haven't yet pushed the resolution / AA high enough again to try and replicate this, but I have since also changed videocards (this happened on my 2900xt, which I changed to a 3870 and now a 3870x2).
In my case, it turned out that it was a side-affect of running the game with some specific high-poly models at too-high a resolution and with too much AA applied. Not sure why it caused everything to stuff up, but just reducing the amount of AA I had applied, or dropping the resolution a bit would always take care of it.
Though to be honest I've never seen anything of mine just start showing normal maps. But the low performance + buggered textures would indicate that it's possibly a similar problem. I haven't yet pushed the resolution / AA high enough again to try and replicate this, but I have since also changed videocards (this happened on my 2900xt, which I changed to a 3870 and now a 3870x2).
#1393 Posted 28 April 2010 - 11:53 PM
Interesting .... its possible its something I've done , maybe I've added a texture that's too big as I tend to experiment with my hrp' hmmm ... i might explain why its only happened in the last few weeks ... just couldn't be bothered saying anything till now, or it could be something else altogether
#1394 Posted 29 April 2010 - 12:18 AM
I fixed it!
turning off "Pre load map textures" fixed the problem... how odd
turning off "Pre load map textures" fixed the problem... how odd
#1396 Posted 01 May 2010 - 10:01 AM
#1397 Posted 02 May 2010 - 04:32 PM
The latest revision (1625) fails compiling with MinGW, gcc 4.3.3.
EDuke32
D polymer/eduke32/makemsc.bat
D polymer/eduke32/makew.bat
U polymer/eduke32/Makefile
U polymer/eduke32/Makefile.msvc
A polymer/eduke32/eduke32.vcxproj
U polymer/eduke32/eduke32.sln
D polymer/eduke32/build/makemsc.bat
D polymer/eduke32/build/makew.bat
D polymer/eduke32/build/makegnu.bat
U polymer/eduke32/build/include/build.h
A polymer/eduke32/build/include/mutex.h
U polymer/eduke32/build/include/dxdidf.h
U polymer/eduke32/build/include/baselayer.h
A polymer/eduke32/build/include/rawinput.h
U polymer/eduke32/build/include/polymost.h
U polymer/eduke32/build/include/cache1d.h
U polymer/eduke32/build/include/malloc.c.h
U polymer/eduke32/build/include/winlayer.h
A polymer/eduke32/build/include/scancodes.h
U polymer/eduke32/build/include/osd.h
U polymer/eduke32/build/include/m32script.h
U polymer/eduke32/build/Makefile.msvc
U polymer/eduke32/build/Makefile.deps
U polymer/eduke32/build/src/build.c
A polymer/eduke32/build/src/mutex.c
U polymer/eduke32/build/src/sdlayer.c
U polymer/eduke32/build/src/engine.c
U polymer/eduke32/build/src/baselayer.c
A polymer/eduke32/build/src/rawinput.c
U polymer/eduke32/build/src/polymost.c
U polymer/eduke32/build/src/cache1d.c
U polymer/eduke32/build/src/winlayer.c
U polymer/eduke32/build/src/a.masm
U polymer/eduke32/build/src/nedmalloc.c
U polymer/eduke32/build/src/compat.c
U polymer/eduke32/build/src/osd.c
U polymer/eduke32/build/src/mdsprite.c
U polymer/eduke32/build/Makefile
U polymer/eduke32/MakeDistributions
U polymer/eduke32/source/config.c
U polymer/eduke32/source/jmact/keyboard.h
U polymer/eduke32/source/jmact/control.c
U polymer/eduke32/source/gamestructures.c
U polymer/eduke32/source/m32def.c
U polymer/eduke32/source/global.c
U polymer/eduke32/source/m32exec.c
U polymer/eduke32/source/enet/include/enet/enet.h
U polymer/eduke32/source/enet/include/enet/callbacks.h
U polymer/eduke32/source/sounds.c
U polymer/eduke32/source/funct.h
U polymer/eduke32/source/gamedef.c
U polymer/eduke32/source/macros.h
U polymer/eduke32/source/m32vars.c
U polymer/eduke32/source/gamedef.h
U polymer/eduke32/source/sector.c
U polymer/eduke32/source/sounds_mapster32.c
U polymer/eduke32/source/gameexec.c
U polymer/eduke32/source/namesdyn.c
U polymer/eduke32/source/sounds_mapster32.h
U polymer/eduke32/source/duke3d.h
U polymer/eduke32/source/premap.c
U polymer/eduke32/source/player.c
U polymer/eduke32/source/m32structures.c
U polymer/eduke32/source/gamevars.c
U polymer/eduke32/source/game.c
U polymer/eduke32/source/astub.c
U polymer/eduke32/source/menus.c
U polymer/eduke32/source/savegame.c
U polymer/eduke32/source/actors.c
U polymer/eduke32/source/osdcmds.c
A polymer/eduke32/eduke32.vcxproj.filters
A polymer/eduke32/eduke32.vcxproj.user
Updated to revision 1625.
Build started using "gcc -fomit-frame-pointer -funswitch-loops -O2 -W -Wall -Wim
plicit -Werror-implicit-function-declaration -funsigned-char -fno-strict-aliasin
g -DNO_GCC_BUILTINS -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib/i
nclude -Isource/enet/include -D_FORTIFY_SOURCE=2 -fjump-tables -fno-stack-protec
tor -fno-pic -DUNDERSCORES -I../sdk/dx/include -DHAVE_INTTYPES -DRENDERTYPEWIN=
1 -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DPOLYMER"
Built object obj_win/game.o
Built object obj_win/actors.o
Built object obj_win/anim.o
Built object obj_win/config.o
Built object obj_win/gamedef.o
Built object obj_win/gameexec.o
Built object obj_win/gamevars.o
Built object obj_win/global.o
Built object obj_win/menus.o
Built object obj_win/namesdyn.o
Built object obj_win/player.o
Built object obj_win/premap.o
Built object obj_win/savegame.o
Built object obj_win/sector.o
Built object obj_win/rts.o
Built object obj_win/osdfuncs.o
Built object obj_win/osdcmds.o
Built object obj_win/grpscan.o
Built object obj_win/sounds.o
Built object obj_win/util_lib.o
Built object obj_win/file_lib.o
Built object obj_win/control.o
Built object obj_win/keyboard.o
Built object obj_win/mouse.o
Built object obj_win/mathutil.o
Built object obj_win/scriplib.o
Built object obj_win/animlib.o
Built object obj_win/gameres.o
Built object obj_win/winbits.o
Built object obj_win/startwin.game.o
Built object obj_win/music.o
Built object obj_win/midi.o
Built object obj_win/mpu401.o
Changing dir to /c/source/eduke32/polymer/eduke32/build
Built object ../eobj_win/a.o
Built object ../eobj_win/a-c.o
Built object ../eobj_win/baselayer.o
Built object ../eobj_win/cache1d.o
Built object ../eobj_win/compat.o
Built object ../eobj_win/crc32.o
Built object ../eobj_win/defs.o
Built object ../eobj_win/engine.o
Built object ../eobj_win/polymost.o
Built object ../eobj_win/hightile.o
Built object ../eobj_win/textfont.o
Built object ../eobj_win/smalltextfont.o
Built object ../eobj_win/kplib.o
Built object ../eobj_win/quicklz.o
Built object ../eobj_win/md4.o
Built object ../eobj_win/osd.o
Built object ../eobj_win/pragmas.o
Built object ../eobj_win/scriptfile.o
src/nedmalloc.c: In function 'nedblksize':
src/nedmalloc.c:522: warning: unused variable 'mspace'
src/nedmalloc.c: In function 'RemoveCacheEntries':
src/nedmalloc.c:684: warning: unused parameter 'p'
src/nedmalloc.c: In function 'threadcache_malloc':
src/nedmalloc.c:786: warning: unused parameter 'p'
src/nedmalloc.c: In function 'ReleaseFreeInCache':
src/nedmalloc.c:873: warning: unused parameter 'mymspace'
src/nedmalloc.c: In function 'threadcache_free':
src/nedmalloc.c:909: warning: suggest parentheses around + or - inside shift
src/nedmalloc.c: In function 'nedpmallinfo':
src/nedmalloc.c:1452: warning: missing initializer
src/nedmalloc.c:1452: warning: (near initialization for 'ret.ordblks')
src/nedmalloc.c: In function 'nedpmallopt':
src/nedmalloc.c:1469: warning: unused parameter 'p'
Built object ../eobj_win/nedmalloc.o
Built object ../eobj_win/mutex.o
Built object ../eobj_win/mdsprite.o
Built object ../eobj_win/glbuild.o
Built object ../eobj_win/polymer.o
In file included from src/winlayer.c:41:.
include/rawinput.h:14:1: warning: "VK_LBUTTON" redefined
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/
windows.h:55,
from src/winlayer.c:17:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/winuser.h:1850:1: warn
ing: this is the location of the previous definition
In file included from src/winlayer.c:41:
include/rawinput.h:15:1: warning: "VK_RBUTTON" redefined
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/
windows.h:55,
from src/winlayer.c:17:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/winuser.h:1851:1: warn
ing: this is the location of the previous definition
In file included from src/winlayer.c:41:
include/rawinput.h:16:1: warning: "VK_CANCEL" redefined
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/
windows.h:55,
from src/winlayer.c:17:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/winuser.h:1852:1: warn
ing: this is the location of the previous definition
In file included from src/winlayer.c:41:
include/rawinput.h:17:1: warning: "VK_MBUTTON" redefined
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/
windows.h:55,
from src/winlayer.c:17:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../..
/../../include/winuser.h:1853:1: warn
ing: this is the location of the previous definition
src/winlayer.c: In function 'idle_waitevent':
src/winlayer.c:827: error: 'WM_INPUT' undeclared (first use in this function)
src/winlayer.c:827: error: (Each undeclared identifier is reported only once
src/winlayer.c:827: error: for each function it appears in.)
src/winlayer.c:827: error: 'PM_QS_INPUT' undeclared (first use in this function)
Failed building ../eobj_win/winlayer.o from src/winlayer.c!
make[1]: *** [../eobj_win/winlayer.o] Error 1
make: *** [enginelib] Error 2

Help
Duke4.net
DNF #1
Duke 3D #1


