Author Topic: nDOOM - Work in progress  (Read 103061 times)

0 Members and 3 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nDOOM - Work in progress
« Reply #120 on: January 16, 2011, 02:50:54 pm »
Would he be allowed to distribute patches?

SirCmpwn

  • Guest
Re: nDOOM - Work in progress
« Reply #121 on: January 16, 2011, 02:54:10 pm »
As a moderator, I am well aware of the rules.  The file is freeware.
Also, I'm trying to post an updated version, the last one had problems with floor textures.
EDIT: Here's a link.
« Last Edit: January 16, 2011, 02:57:06 pm by SirCmpwn »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nDOOM - Work in progress
« Reply #122 on: January 16, 2011, 02:55:24 pm »
Ah ok, I thought they were copyrighted. That's good, then.

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: nDOOM - Work in progress
« Reply #123 on: January 21, 2011, 04:17:19 pm »
SirCmpwn, I was thinking of something like that myself, after I've finished working on this, but you obviously outran me. Good job! Better contrast and stuff is always nice.

Omnimaga, I made sure to steer clear of any legal troubles by only distributing the demo version, and not the full game. I might be largely ignorant of licences and legality usually, but this one thing I did check.

One small issue:  When using the clickpad hardware, I can't get the game to load, but when I switch to the touchpad, everything works fine.
Hmm, that's not a small issue, that's huge! Does it freeze the calculator? Reset once you run it? Or just not run at all? I've never encountered anything like that, but then again I don't have a Clickpad...

I've been playtesting it along with friends in school (only at lunches and free periods, I swear! ;D), and the most important features that are still missing are the map and save/load game support. I'll work on them this weekend.

Sorry again for only replying on weekends.

SirCmpwn

  • Guest
Re: nDOOM - Work in progress
« Reply #124 on: January 21, 2011, 04:40:50 pm »
Of course, sound support would be spectacular ;)

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: nDOOM - Work in progress
« Reply #125 on: January 21, 2011, 04:45:29 pm »
One small issue:  When using the clickpad hardware, I can't get the game to load, but when I switch to the touchpad, everything works fine.
Hmm, that's not a small issue, that's huge! Does it freeze the calculator? Reset once you run it? Or just not run at all? I've never encountered anything like that, but then again I don't have a Clickpad...

If freezes on the "Loading" screen when I run it using the clickpad.  I have to pull the keypad and pull a battery to get it to go back to normal.  Its been a little while since I tested it, as I have not used my Nspire much, but when I get a chance, I will test it again!


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: nDOOM - Work in progress
« Reply #126 on: January 21, 2011, 08:06:13 pm »
Quote
I've been playtesting it along with friends in school (only at lunches and free periods, I swear! ), and the most important features that are still missing are the map and save/load game support. I'll work on them this weekend.

XD

I have to test it in my touchpad too. Unfortunately, I lack a Clickpad.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nDOOM - Work in progress
« Reply #127 on: January 23, 2011, 02:03:31 pm »
I've been playtesting it along with friends in school (only at lunches and free periods, I swear! ;D)
Lies, we all know everyone play games in classes ;D jkjk

Anyway I can't wait for new progress. I hope to see new one soon :D

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: nDOOM - Work in progress
« Reply #128 on: January 24, 2011, 03:06:56 pm »
First of all, many thanks to Omnimaga for this spiffy new subforum!

In other news, the new release won't be out yet, but rest assured, I am working on it; However, I've hit some strange crashes and it's generally taking longer than it should.

If freezes on the "Loading" screen when I run it using the clickpad.  I have to pull the keypad and pull a battery to get it to go back to normal.  Its been a little while since I tested it, as I have not used my Nspire much, but when I get a chance, I will test it again!
Looking at the input code, I've found the ESC key was mapped to both right strafe and exit on the Clickpad :banghead:. Since there's a crash on exit, that might've been it.
Unfortunately, it could also be related to some other strange issue. What OS are you using, by the way? I've only ran this on 2.0.1 CAS and 2.1 CAS (I don't have access to any other Nspires).

I've managed to fix all the originally-alloca statements (the memory wasn't getting freed due to an extremely embarassing bug...), checked that every malloc() has an equivalent free() statement and that all files are getting closed, but the crash-on-exit still remains.
Although now, it's giving me an unaligned_write_word error instead of an invalid processor mode. I don't think that's particularly helpful, though.

Except for unfreed memory and open files, are there any other things that might be causing a crash on exit? As you might have guessed from looking on my code, I'm not very good at this C thing (give me assembly or python any time!).

Offline uncfreak2007

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: nDOOM - Work in progress
« Reply #129 on: January 25, 2011, 06:02:34 pm »
I've tested it on my Nspire Touchpad and it appears to work great the only error I've encountered is that it crashes when I hit ESC. I've also found that is easier to see when the colors are reversed. Would there be any way for it to stay reversed permanently?

Offline ase1590

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: nDOOM - Work in progress
« Reply #130 on: January 28, 2011, 05:47:08 pm »
Tried it on the Touchpad, but cant find the Use key.
I tried looking through source, but couldn't find any mention of it being there, unless I overlooked it.

edit:unless this is it, but I cant tell if it is for the touch or the click, unless it's universal.


Code: [Select]
if (isKeyPressed(KEY_NSPIRE_CTRL)) {
event.type= ev_keydown;
event.data1 = ' ';
D_PostEvent(&event);
} else {
event.type= ev_keyup;
event.data1 = ' ';
D_PostEvent(&event);

finally had time to try it, yup that was it, disregard post.
« Last Edit: January 28, 2011, 06:00:44 pm by ase1590 »

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: nDOOM - Work in progress
« Reply #131 on: January 28, 2011, 05:53:17 pm »
Good news!

I updated my version of this yesterday and I tried it with the clickpad keypad again - and it works fine!  I guess I must have been using an old version or something by mistake! :)


Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: nDOOM - Work in progress
« Reply #132 on: January 29, 2011, 06:28:19 pm »
Good news!

I updated my version of this yesterday and I tried it with the clickpad keypad again - and it works fine!  I guess I must have been using an old version or something by mistake! :)
That's great to hear! I was beginning to worry there for a bit.

I've tested it on my Nspire Touchpad and it appears to work great the only error I've encountered is that it crashes when I hit ESC. I've also found that is easier to see when the colors are reversed. Would there be any way for it to stay reversed permanently?
Yeah, sorry about that crash on exit. I've been trying to fix it since day one... About the colours, I agree, but I've experimented with a permanently reversed palette and it just looks weird (hard to describe, just looks wrong in some way). Because of that, I'll try improving the palette instead of just leaving it reversed.

Meanwhile, I also have good news! The automap is now fully functional. Like everything else in this game, it's a bit hard to see, but still helpful enough. I'll work on making the player arrow bigger, so its direction is more obvious.
No save support yet, but I've got intriguing news regarding the crash-on-exit (note: may turn out to be nothing)... if I run include the "intmask= TCT_Local_Control_Interrupts(0);" line at the beginning of my code, random pieces of my code that worked before start to crash (the PC register somehow gets reset to 0x0000).
Also, I've run the crash-on-exit through a debugger, and it definitely crashes after all nDoom code has finished execution - meaning some memory critical to the OS (or possibly the exit routine of ndless?) is getting corrupted.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nDOOM - Work in progress
« Reply #133 on: January 31, 2011, 01:49:53 pm »
Good to hear! :D I'm glad this is progressing still :). I'M not sure if I'll have time to try it due to not knowing how to setup an emu with Ndless 1.7 on it and not having time to spend an hour figuring out how to, but hopefully I'll be able to try new versions eventually. That is certainly gonna be a good POTY contender if finished.

Good luck with the bugs.

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: nDOOM - Work in progress
« Reply #134 on: February 04, 2011, 02:55:08 pm »
OK, here's the latest release, and also the last pre-beta version; All that remains to be added are savegames, and we're out of alpha!

There are two main features to this release: One, there's no more crash on exit. You can run it as much as you want, and the calculator doesn't restart or explode or anything... at least so far.

And the second feature is something everyone will celebrate: Improved palette!

The difference might look big on the emulator, but on real hardware it's completely incredible! I mean really, a complete transformation, leaping from an image barely visible at the best of times to something that can even be played in a dark room illuminated only by the computer's LCD monitor!

The culprit? Palette data was shifted by one bit.
Yes, really. Turns out, I did all my colour->grayscale conversions accurately, but misread Hackspire and thought palette data was stored in bits 0-3, when in fact it was in 1-4. Essentially, this meant only 8 colours were being used. Fixing this doubled the amount of colours displayed, improving things immensely.

Next feature? Savegames, and improved Clickpad controls. After that, we're out of alpha!

Code: (Current controls) [Select]
Action          | Touchpad | Clickpad
________________|__________|____________________________
Forward/Back    | 8/5      | Clickpad up/down
Strafe left     | 7/4      | Esc
Strafe right    | 9/6      | Home
Turn left       | ^        | Clickpad left
Turn right      | x^2      | Clickpad right
Shoot           | =/trig   | Clickpad centre
Melee           | EE/PI    | 1
Weapons 1       | A/B/C    | 2/3/4
Weapons 2       | H/I/J    | 5/6/7
Quit            | Esc/Home | enter (why can't the ON key be mapped?)
Use             |        Ctrl
Map             |         Tab
Contrast        |         +/-

An updated GIF (as well as finally using this new subforum; making new threads etc.) will come along with the beta. Meanwhile, enjoy this release!
« Last Edit: February 04, 2011, 02:55:20 pm by Mrakoplaz »