This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - MPoupe
Pages: 1 2 [3] 4 5 ... 12
31
« on: July 23, 2012, 01:00:55 pm »
Is it not the BBCode for a list macro?
Probably, I do not know. I use plain text. I like the convertor at old casiocalc, where e.g. [F1] was converted to an image of the F1 button of the calculator.
33
« on: July 23, 2012, 09:55:47 am »
Bug report: Sometimes, black rectangles appear behind the HUD numbers.
This appears when you make screen smaller / larger (by [-] / [ + ] buttons). Or is another case ? I had the same problem. Also I managed to crash the game and it said something about a bad Zmalloc (but I used noclip to go outside the map, so it was pretty legit).
I do not understand. If you use no clip, clipping (by walls) is disabled. Malloc can fail in any case. These 2 are completely independent things. Zmalloc == malloc on heap owned by doom (= memory management handled by doom) BTW: bug in this forum, if you remove spaces from string "[ + ]", you get this: "
34
« on: July 23, 2012, 09:38:26 am »
That's really cool; do you have a list of all syscalls that are implemented? Will there be a linux port?
Look in the header for the syscall list. Currently I debug in Visual Studio, it is much comfortable than in gdb. I tried Eclipse, but it seems Eclipse is not compatible with me :-) So currently I do not plan to port it to Linux, but is should be easy.
35
« on: July 20, 2012, 12:47:23 pm »
I didn't read any readmes myself I just pressed random buttons until something happened. I think the render speed toggle is either sin or cos, not sure which. It'll give you a message.
To save your time: arrows - movement [menu] - exit [exit] - map on/off [optn] - pause [vars] - (hack) switch between smooth and fast movement [F1]~[F6]+[Shift] - select weapon 1 ~ 7 [Exe] - use (open door, use switch) [ 0 ] - step left [.] - step right [->] - idclip [^] - iddqd + idkfa [alpha] - fire [F<->D] - show free memory in the pool [ + ] - larger screen [-] - smaller screen
36
« on: July 19, 2012, 10:35:26 am »
I thought CGDOOM over clocked it for you... If not, I'm still playing the game slower than I should be
No CGDoom doesn't overclock anything.
37
« on: July 17, 2012, 05:18:07 am »
...Hexen and Heretic games are using a modified version of the original Doom engine, and their wads are incompatible with nDoom.... Actually I ported the nDoom, but I tested the non-converted wad files. This is the reason why it didn't work. Thank you for explaining.
38
« on: July 15, 2012, 12:49:37 pm »
Hello, I slightly improved cgdoom. Updated controls: arrows - movement [menu] - exit [exit] - map on/off [optn] - pause [vars] - (hack) switch between smooth and fast movement [F1]~[F6]+[Shift] - select weapon 1 ~ 7 [Exe] - use (open door, use switch) [ 0 ] - step left [.] - step right [->] - idclip [^] - iddqd + idkfa [alpha] - fire [F<->D] - show free memory in the pool [ + ] - larger screen [-] - smaller screen
New features: - use directly flash memory when possible (saved ~ 150 KB in the first room of the attached wad). This doesn't work for areas which are in 2 different areas (file fragmentation). So less fragments -> better. - show only each second frame (smooth mode) or each fourth frame (fast mode), switch by [vars] It seems playable when in smooth mode and overclocked to 87 MHz (94 MHz doesn't work for me) - other wad files may work (I tried full wad from Doom I and Doom II on simulator - worked; another wads (Heretic, Hexen and TNT do NOT work). If you want to use it, try it in simulator first. - support for composite textures was limited to 8KB to save RAM. It seems 8 KB is enough for switches (they use composite textures). Larger composite textures are cripled - see an image.
Notes for simulator: - simulator is much faster than calculator, because your PC is much faster. Run it on as slow PC as possible :-) - on first run it creates flash.bin file to simulate flash for direct access. Can be safely removed later (will recreate). - Important: delete flash.bin if you change doom.wad file !
Todo: - multiple keys at a time (currently I use GetKeyPRGM) - do not use VRAM (do we have some demo code talking directly with LCD registers for MiniSDK ?) Use VRAM as RAM. - Find each usable byte of RAM (do we have any detailed map of memory ?) and use it. Currently I use (except globals & stack):system stack, heap,save VRAM buffer
39
« on: July 09, 2012, 05:05:33 am »
System ERROR ADDRESS (R) TARGET = A1524CCD PC = 00305BA0
Damn stupid bug. Reading word from A1524CCD ;-) Fix: read per bytes.
40
« on: July 02, 2012, 04:41:21 am »
System ERROR ADDRESS (R) TARGET = A1524CCD PC = 00305BA0
I did some deeper research and it seems it is write exception. The (R) probably means real address. I updated my Prizm simulator to map simulated flash into the read only memory (by MapViewOfFile(hMap,FILE_MAP_READ,...); so it throwed an exception on write. I fixed a small bug so then it worked in the simulator, but not in real HW. And I found the source: typedef struct { const short width; // bounding box size const short height; const short leftoffset; // pixels to the left of origin const short topoffset; // pixels below the origin const int columnofs[8]; // only [width] used // the [0] is &columnofs[width] } patch_t;
// posts are runs of non masked source pixels typedef struct { byte topdelta; // -1 is the last post in a column byte length; // length data bytes follows } post_t;
// column_t is a list of 0 or more post_t, (byte)-1 terminated typedef post_t column_t;
//RANGECHECK undefined
#define SHORT(x) LTOH16(x) //swap bytes in word (on Prizm) #define LONG(x) LTOH32(x) //swap bytes in dword (on Prizm) #define SCREEN_COUNT 2 #define ASSERT(x) #define SCREENWIDTH 320 //DOOM screen width
void V_DrawPatchX(int x,int y,int scrn,const patch_t* patch) { int count; int col; const column_t* column; byte* desttop; byte* dest; const byte* source; int w;
y -= SHORT(patch->topoffset); x -= SHORT(patch->leftoffset); #ifdef RANGECHECK if (x<0 ||x+SHORT(patch->width) >SCREENWIDTH || y<0 || y+SHORT(patch->height)>SCREENHEIGHT || (unsigned)scrn>4) { //printf("Patch at %d,%d exceeds LFB\n", x,y ); // No I_Error abort - what is up with TNT.WAD? //printf("V_DrawPatch: bad patch (ignored)\n"); return; } #endif
if (!scrn) V_MarkRect (x, y, SHORT(patch->width), SHORT(patch->height));
col = 0; ASSERT(SCREEN_COUNT > scrn); desttop = screens[scrn]+y*SCREENWIDTH+x;
w = SHORT(patch->width); for ( ; col<w ; x++, col++, desttop++) { column = (const column_t *)((const byte *)patch + LONG(patch->columnofs[col])); // step through the posts in a column while (column->topdelta != 0xff ) { source = (const byte *)column + 3; dest = desttop + column->topdelta*SCREENWIDTH; count = column->length;
while (count--) { *dest = *source; source++; dest += SCREENWIDTH; } column = (const column_t *)( (const byte *)column + column->length + 4 ); } } }
extern int giMaxPatchInFlash; void V_DrawPatch(int x,int y,int scrn,const patch_t* patch) { #ifdef WORK_WITH_COPY if(PTR_TO_FLASH(patch)) { memcpy(VRAM,patch,giMaxPatchInFlash); patch = (const patch_t*)VRAM; } #endif V_DrawPatchX(x,y,scrn,patch); }
The function V_DrawPatchX() is used to draw any entity to the screen buffer (simplest thing is a letter of message "Picked weapon", (called for each letter)). On windows it works (patch points to HW protected readonly memory), on Prizm it throws an access exception. If I copy the buffer to RAM (by wrapper) , then it works (on Prizm). So it seems the compiler generates some writes to read only pointer.
41
« on: June 29, 2012, 09:39:36 am »
That said, CGDoom runs faster than Doom on my 2.9 GHz Windows XP machine (if I run it without DOSbox on the latter)
BTW: that would be also nice project. DOSBox on Prizm :-)
42
« on: June 29, 2012, 04:41:20 am »
I guess the CX really is faster than the Prizm in raw speed. That's too bad, but this is a great achievement anyway Can't wait to try this out! I think the majority of the slowness of CGDoom is not slower CPU in Prizm, but low RAM. Doom (in general) uses big RAM buffer to load pieces of WAD and it tries to keep them here as cache. So if HW has enough RAM, it loads everything in the beginning and then it works with RAM only. CGDoom is not able to keep everything in RAM so it loads parts of WAD for each frame. Imagine Windows 2000 on PC with 16 MB RAM (I have seen it once and it was worse than CGDoom :-) )
43
« on: June 28, 2012, 12:21:22 pm »
By the way be careful when writing to Flash (or to not accidentally do it). On TI calcs, when doing so, it can permanently damage the calc if you overwrite the areas that lets you resend a new OS or boot the calc Another thing: Is CGDoom for a programming contest like the Omnimaga one?
I hope simple memcpy(&flash, something, some value) cannot write to the flash. Because this is the only possibility how to accidentally write to flash in cgdoom. About the contest - I do not think it is simply possible to finish cgdoom in any time. Have working (partially) first room is something very different to have working the whole doom.The original game doesn't allocate 6MB RAM for nothing. I simply have luck with the first room, because it is very simple (from point of view of the RAM requirement). Also I do not program every weekend, there are months, when I do not find a time for programming (for Prizm). I think the theoretical maximum may be to have working this free version of doom (I mean the attached 3 MB wad file). I could probably specialize the game to cooperate with this wad file (and not support any else). BTW: is there somebody who wants cooperate cgdoom development ?
44
« on: June 27, 2012, 10:28:46 am »
Is it possible that you accidentally wrote to flash? I imagine that would generate a system error.
Yes, of course. In reality I do not know exactly, what is happening inside the code :-) But I think problem is in reading (there is "ADDRESS (R)", I hope this means read error and I would get "ADDRESS (W)" on write error.)
45
« on: June 27, 2012, 04:16:29 am »
Hello, I tried to decrease memory usage by direct usage of the flash. But it seems there are some times problems with accessing flash. Exactly I got this error: System ERROR ADDRESS (R) TARGET = A1524CCD PC = 00305BA0 I think this should not happen, because A0000000 ~ A1FFFFFF is flash, so the pointer should be readable. I attach cgdoom version with this problem, please test it if you want. But please expect crash.
It should crash in the very early moment while initialisation. Please post here if you get different behaviour.
Edit: removed attachment, because it has already fixed bug
Pages: 1 2 [3] 4 5 ... 12
|