Page 11 of 14

Posted: Sat Apr 12, 2008 5:30 pm
by ChristopheF
Paul, would it be possible to add a setting in the config.txt file so that the 'Hide task bar' option could be enabled by default when running the game? Currently I have to hide it each time I start the game.
Thanks!

Stupid german

Posted: Sat Apr 12, 2008 6:34 pm
by Werwolf
Hi guys,
this is my first post in this forum, and i must say: i like it. (not my post, the forum ;) )
I have read this thread from the first to the last page, but i can't find a hint for my problem.
my phone is a "Treo 750" with Windows Mobile 5.
I can start the game with csbwince2002.exe but the screen will not fit.
have anyone a config-file for the "Treo" for me?
And, YES, you can see it: i am a stupid german man!! my school-english is more than 25 jears ago. so, don't be too hard to me...an please answer in easy englisch words ;)

best regards
Werwolf

Posted: Sat Apr 12, 2008 7:28 pm
by Paul Stevens
I have to hide it each time I start the game
Poor Christophe. :cry:

Sure....I think I can do that.


Try CSBwinCE10_6 and see if your
'Save and Quit' -> Credits problem
is better. It certainly is better for me.

Three changes in the queue:

1 - Resample 6000s/s -> 11025 s/s
2 - Auto-hide-taskbar
3 - Explain/fix scrolling vs overlapped text.

Any others I have forgotten?

Can someone else help our new friend
with the "Won't fit on screen" Problem?
Youse guys are more expert than I.

Posted: Sat Apr 12, 2008 10:31 pm
by T0Mi
hello werwolf,

if it's the Palm Treo 750(V) you are using I fear there are some bad, bad news for you:
from what I've seen it just can display 240x240 pixels, but you'll need at least 320x240 pixels to play it properly.
If it wasn't 80 pixels missing I'd say after some minor changes to the config it should be possible to play at least Dungeon Master and Chaos Strikes Back, because the text on the bottom (saying "needs an empty flask in hand for potion", etc) is not really important, but even complete removal of the text will only provide 30 pixels. If your Treo has the 320x200 it will be possible to make it run perfectly on your device. You may send a PM (yes, I'm a dull german too! :-)) if you have any questions.

T0Mi

Posted: Sat Apr 12, 2008 11:16 pm
by Paul Stevens
240x320 works very well.

240x240 is a bit too small. But you might
be able to overlap some controls with the
viewport and move back and forth like
the windows on your desktop.

What size is your display?

Posted: Sun Apr 13, 2008 1:26 am
by ChristopheF
Werwolf, please try these settings, I tried to optimize the layout for 240x240 screen:

Code: Select all

; Portrait - compressed for 240x240 pixels
windowTop = 0
windowLeft = 0
windowRight = 240
windowBottom = 240
CEDisplay HFULL_VCENTER     0   0   0   0 240 200 0 0 0  0
CEDisplay HCENTER_VFULL    40   0   0   0 240 200 0 0 0  1
CEDisplay PRISON_DOOR      80   0   0   0 240 200 0 0 0  2
CEDisplay PORTRAIT_A        0   0   0   0  64  29 1 0 0  6
CEDisplay PORTRAIT_B       69   0  60   0  64  29 1 0 0  5
CEDisplay PORTRAIT_C      138   0 120   0  64  29 1 0 0  4
CEDisplay PORTRAIT_D      207   0 180   0  64  29 1 0 0  3
CEDisplay VIEWPORT          0  33   8 104 224 136 0 1 1  7
CEDisplay SPELL_CONTROLS  233  33 154  31  87  42 0 1 0  8
CEDisplay ATTACK_CONTROLS 233  77  67  29  87  46 0 0 0  9
CEDisplay TURN_LEFT       233 124   0  29  23  22 0 0 0 11
CEDisplay MOVE_FORWARD    265 124  22  29  22  22 0 0 0 10
CEDisplay TURN_RIGHT      297 124  44  29  23  22 0 0 0 12
CEDisplay SLIDE_LEFT      233 146   0  51  23  23 0 0 0 14
CEDisplay MOVE_BACKWARD   265 146  22  51  22  23 0 0 0 13
CEDisplay SLIDE_RIGHT     297 146  44  51  23  23 0 0 0 15
CEDisplay SCROLLING_TEXT    0 169   0  74 153  30 0 0 0 16
CEDisplay MARCHING_ORDER  281   0 202  74  39  29 0 0 0 17
CEDisplay OVERLAPPEDTEXT    0 169   0  85 240  30 0 0 0 16
There are still two issues:
- you need a way to hide the menu bar. Paul, is this possible? In that case, how would the user be able to show the menu while playing?
- the text does not display correctly. I'm not sure how to handle this

Posted: Sun Apr 13, 2008 2:59 am
by Paul Stevens
Do you have room for a itsy-bitsy
square in the lower left or lower
right for a 'show-menu' button?
Perhaps by putting the text above
the controls or something?

I don't even know how to hide the
menu bar but I can give it a try.

Posted: Sun Apr 13, 2008 7:49 am
by Werwolf
Thanks for your answers!

I think i have overlook a fault. I copy the code from ChristopheF in my config.txt. But if i try to start the game, a window with an error-message appears: "Bad Config Line".
I think i don't have to copy and paste the code in my "config.txt"
Please can you tell me what i have to do???

Excused my bad english^^


Werwolf

Posted: Sun Apr 13, 2008 9:49 am
by T0Mi
Please check your private messages.
We could discuss in german more effectively, making it work step by step. I'm sure, there will be a solution for you.

T0Mi

Posted: Sun Apr 13, 2008 2:30 pm
by ChristopheF
Werwolf, you need to use the latest version of CSBwin for Pocket PC in order to use the options I posted. Download it from here: http://www.dianneandpaul.net/CSBwin/CSBwinCE10_5.zip
Unpack the archive and put the files in the folder where you have the other required files (dungeon, graphics, etc.)

Posted: Sun Apr 13, 2008 3:04 pm
by ChristopheF
I just tried version 10.6 and it does fix the 'Save and quit' -> Credits bug. Thanks Paul !

Here are screenshots of layouts that I made:
1) Landscape - Original game layout: This layout has small changes from the one supplied by TOMi so that it looks exactly like the original game. There is still an issue with text that Paul is investigating.
Image
2) Landscape - Layout for left handed player: the same layout as the previous one, but with the spell area, attack area and movement buttons on the left side of the screen. In that way, I can use the stylus with my left hand without hiding the dungeon from my view, and use my right hand to move by using the directional pad.
Image
3) Portrait: An alternative to the default layout supplied by Paul. This one does not compress/hide anything from the original layout, pieces have just been moved around to fit the 240x320 resolution. I'm not sure of the usability of this one.
Image
4) Portrait - compressed for 240x240 pixels: This is a test I made for Werwolf to see if we can fit all the game in such a small screen resolution. With some compression of the portraits and movement buttons, this can be done.
But as I said earlier, this will require hiding the menu bar.
Paul, as you can see, there are 8 pixels on each side of the viewport, so maybe we can just move the viewport to the left so that we have a 16 pixels wide area on the right where you could put a vertical 'show menu' button (or just a small icon).
Image


Question for Paul: how can I show/hide/move the counter that we see in the lower left screenshot of the portrait layout?

Here are the configurations:

Code: Select all

; Landscape - Original game layout
;windowTop = 0
;windowLeft = 0
;windowRight = 320
;windowBottom = 240
;CEDisplay HFULL_VCENTER     0   0   0   0 320 200 0 0 0  0
;CEDisplay HCENTER_VFULL     0   0   0   0 320 200 0 0 0  1
;CEDisplay PRISON_DOOR       0   0   0   0 320 200 0 0 0  2
;CEDisplay PORTRAIT_A        0   0   0   0  67  29 0 0 0  6
;CEDisplay PORTRAIT_B       69   0  69   0  67  29 0 0 0  5
;CEDisplay PORTRAIT_C      138   0 138   0  67  29 0 0 0  4
;CEDisplay PORTRAIT_D      207   0 207   0  67  29 0 0 0  3
;CEDisplay VIEWPORT          0  33   0  33 224 136 0 1 1  7
;CEDisplay SPELL_CONTROLS  233  33 233  33  87  42 0 1 0  8
;CEDisplay ATTACK_CONTROLS 233  77 233  77  87  46 0 0 0  9
;CEDisplay TURN_LEFT       233 124 233 124  29  22 0 0 0 10
;CEDisplay MOVE_FORWARD    262 124 262 124  28  22 0 0 0 11
;CEDisplay TURN_RIGHT      290 124 290 124  30  22 0 0 0 12
;CEDisplay SLIDE_LEFT      233 146 233 146  29  23 0 0 0 14
;CEDisplay MOVE_BACKWARD   262 146 262 146  28  23 0 0 0 13
;CEDisplay SLIDE_RIGHT     290 146 290 146  30  23 0 0 0 15
;CEDisplay SCROLLING_TEXT    0 169   0 169 320  31 0 0 0 16
;CEDisplay MARCHING_ORDER  281   0 281   0  39  29 0 0 0 17
;CEDisplay OVERLAPPEDTEXT    0 169   0 169 320  31 0 0 0 16

; Landscape - Layout for left handed player
windowTop = 0
windowLeft = 0
windowRight = 320
windowBottom = 240
CEDisplay HFULL_VCENTER     0   0   0   0 320 200 0 0 0  0
CEDisplay HCENTER_VFULL     0   0   0   0 320 200 0 0 0  1
CEDisplay PRISON_DOOR       0   0   0   0 320 200 0 0 0  2
CEDisplay PORTRAIT_A        0   0   0   0  67  29 0 0 0  6
CEDisplay PORTRAIT_B       69   0  69   0  67  29 0 0 0  5
CEDisplay PORTRAIT_C      138   0 138   0  67  29 0 0 0  4
CEDisplay PORTRAIT_D      207   0 207   0  67  29 0 0 0  3
CEDisplay VIEWPORT          0  33  97  33 224 136 0 1 1  7
CEDisplay SPELL_CONTROLS  233  33   0  33  87  42 0 1 0  8
CEDisplay ATTACK_CONTROLS 233  77   0  77  87  46 0 0 0  9
CEDisplay TURN_LEFT       233 124   0 124  29  22 0 0 0 10
CEDisplay MOVE_FORWARD    262 124  29 124  28  22 0 0 0 11
CEDisplay TURN_RIGHT      290 124  57 124  30  22 0 0 0 12
CEDisplay SLIDE_LEFT      233 146   0 146  29  23 0 0 0 14
CEDisplay MOVE_BACKWARD   262 146  29 146  28  23 0 0 0 13
CEDisplay SLIDE_RIGHT     290 146  57 146  30  23 0 0 0 15
CEDisplay SCROLLING_TEXT    0 169   0 169 320  31 0 0 0 16
CEDisplay MARCHING_ORDER  281   0 281   0  39  29 0 0 0 17
CEDisplay OVERLAPPEDTEXT    0 169   0 169 320  31 0 0 0 16
;
; Portrait
;windowTop = 0
;windowLeft = 0
;windowRight = 240
;windowBottom = 320
;CEDisplay HFULL_VCENTER     0   0   0   0 240 200 0 0 0  0
;CEDisplay HCENTER_VFULL    40   0   0   0 240 200 0 0 0  1
;CEDisplay PRISON_DOOR      80   0   0   0 240 200 0 0 0  2
;CEDisplay PORTRAIT_A        0   0   8   0  67  29 0 0 0  6
;CEDisplay PORTRAIT_B       69   0 165   0  67  29 0 0 0  5
;CEDisplay PORTRAIT_C      138   0   8  30  67  29 0 0 0  4
;CEDisplay PORTRAIT_D      207   0 165  30  67  29 0 0 0  3
;CEDisplay VIEWPORT          0  33   8 106 224 136 0 1 1  7
;CEDisplay SPELL_CONTROLS  233  33 145  63  87  42 0 1 0  8
;CEDisplay ATTACK_CONTROLS 233  77   8  60  87  46 0 0 0  9
;CEDisplay TURN_LEFT       233 124  76   7  29  22 0 0 0 10
;CEDisplay MOVE_FORWARD    262 124 105   7  28  22 0 0 0 11
;CEDisplay TURN_RIGHT      290 124 133   7  30  22 0 0 0 12
;CEDisplay SLIDE_LEFT      233 146  76  29  29  23 0 0 0 14
;CEDisplay MOVE_BACKWARD   262 146 105  29  28  23 0 0 0 13
;CEDisplay SLIDE_RIGHT     290 146 133  29  30  23 0 0 0 15
;CEDisplay SCROLLING_TEXT    0 169   8 243 153  30 0 0 0 16
;CEDisplay MARCHING_ORDER  281   0 100  69  39  29 0 0 0 17
;CEDisplay OVERLAPPEDTEXT    0 169   8 254 240  30 0 0 0 16

; Portrait - compressed for 240x240 pixels
;windowTop = 0
;windowLeft = 0
;windowRight = 240
;windowBottom = 240
;CEDisplay HFULL_VCENTER     0   0   0   0 240 200 0 0 0  0
;CEDisplay HCENTER_VFULL    40   0   0   0 240 200 0 0 0  1
;CEDisplay PRISON_DOOR      80   0   0   0 240 200 0 0 0  2
;CEDisplay PORTRAIT_A        0   0   0   0  64  29 1 0 0  6
;CEDisplay PORTRAIT_B       69   0  60   0  64  29 1 0 0  5
;CEDisplay PORTRAIT_C      138   0 120   0  64  29 1 0 0  4
;CEDisplay PORTRAIT_D      207   0 180   0  64  29 1 0 0  3
;CEDisplay VIEWPORT          0  33   8 104 224 136 0 1 1  7
;CEDisplay SPELL_CONTROLS  233  33 154  31  87  42 0 1 0  8
;CEDisplay ATTACK_CONTROLS 233  77  67  29  87  46 0 0 0  9
;CEDisplay TURN_LEFT       233 124   0  29  23  22 0 0 0 11
;CEDisplay MOVE_FORWARD    265 124  22  29  22  22 0 0 0 10
;CEDisplay TURN_RIGHT      297 124  44  29  23  22 0 0 0 12
;CEDisplay SLIDE_LEFT      233 146   0  51  23  23 0 0 0 14
;CEDisplay MOVE_BACKWARD   265 146  22  51  22  23 0 0 0 13
;CEDisplay SLIDE_RIGHT     297 146  44  51  23  23 0 0 0 15
;CEDisplay SCROLLING_TEXT    0 169   0  74 153  30 0 0 0 16
;CEDisplay MARCHING_ORDER  281   0 202  74  39  29 0 0 0 17
;CEDisplay OVERLAPPEDTEXT    0 169   0  85 240  30 0 0 0 16

Posted: Sun Apr 13, 2008 5:24 pm
by T0Mi
Nice work there Christophe!

When all these layouts are included in the config as shown, this will be truely a step forward.

I hope via PM I can help werwolf better than here on the forum.
In german it's actually a lot easier (for him and me).

Sadly, the new CSBwin10_06 does crash like the others (exept CEtest11025_10_5) did before,
the resampling doesn't work around my hyper-sensitive OS, so it seems this is not the trick.

Posted: Sun Apr 13, 2008 6:27 pm
by Paul Stevens
CSBwin10_06 does crash like the others
The resampling is not implemented yet.
It is one of four things in my list of
things to do.

1 - Resample 6000s/s -> 11025 s/s
2 - Auto-hide-taskbar
3 - Explain/fix scrolling vs overlapped text.
4 - Hide Menu

Posted: Sun Apr 13, 2008 6:31 pm
by Paul Stevens
Christophe::::

Beautiful layouts. When we get that
menu bar thing worked out (we will need
an additional area descriptor for the
'show menu' button) then I'll include
all this with the standard config release.

Posted: Sun Apr 13, 2008 7:48 pm
by ChristopheF
One thing that might also be interesting to include in the default config.txt file is the ability to use the directional pad to move in the dungeon.
I have these lines in my config file for this purpose:

Code: Select all

; Coordinates of movement buttons on Atari ST screen
;   Turn left       f6 87
;   Move forward   114 87
;   Turn right     132 87
;   Step Left       f6 9c
;   Move backward  114 9c
;   Step Right     132 9c
; Scan codes of directional pad on Pocket PC
;   Up     000026
;   Right  000027
;   Left   000025
;   Down   000028
;   Enter  00000d

mscan 1 000026 114 87 L ; Up    = Move forward
mscan 1 000027 132 87 L ; Right = Turn right
mscan 1 000025  f6 87 L ; Left  = Turn left
mscan 1 000028 114 9c L ; Down  = Move backward
mscan 1 00000d 114 9c R ; Enter = Switch between inventory view and dungeon view
On my Pocket PC, when I change the screen orientation (320x240 landscape <-> 240x320 portrait), the directional pad automatically changes its behavior so that I do not have to change anything in the config file (the 'up' key in portrait mode behaves like a 'left' key when in landscape mode). I hope this is the case on every Pocket PC or users will have to manually change the configuration themselves in the file. Anyway, I think it is better to have these lines in the default file so that users know they can configure this if needed.

Posted: Sun Apr 13, 2008 8:42 pm
by Werwolf
mscan 1 000026 114 87 L ; Up = Move forward
mscan 1 000027 132 87 L ; Right = Turn right
mscan 1 000025 f6 87 L ; Left = Turn left
mscan 1 000028 114 9c L ; Down = Move backward
mscan 1 00000d 114 9c R ; Enter = Switch between inventory view and dungeon view
With this lines in my config now i can use my pad! Thanks!!
And many many thanks to TOOMi who helps me very much (more?) ;)

regards

Werwolf

Posted: Sun Apr 13, 2008 9:17 pm
by Paul Stevens
CSBwinCE10_7

can hide the menu and the task bar.

Remaining to do:

1 - Resample 6000s/s -> 11025 s/s
2 - Auto-hide-taskbar
3 - Explain/fix scrolling vs overlapped text.

Posted: Sun Apr 13, 2008 11:23 pm
by ChristopheF
Version 10.7 works for me. However, when the menu bar is hidden, if you use 'Save and quit', you then have no way to exit the game.

Posted: Mon Apr 14, 2008 6:34 pm
by T0Mi
in Start/Settings/personal/buttons

there should be an option to assign the task manager to one of the (hard)buttons of the PPC, making it possible to close (or activate) any running program.
In general I found this to be a handy option, because almost any program stays alive after closing it the usual way (tapping "X"), eating up memory and thus has to be closed manually with the task manager.

Posted: Tue Apr 15, 2008 12:53 am
by T0Mi
based on Christophes compressed portrait for 240x240 pixels this is the final version for Werwolf:

Image

Code: Select all

;Name srcx srcy dstx dsty width height copymode palette overlay z_order
windowTop = 0
windowLeft = 0
windowRight = 240
windowBottom = 240
CEDisplay HFULL_VCENTER     0   0   0   0 240 200 0 0 0 0
CEDisplay HCENTER_VFULL    40   0   0   0 240 200 0 0 0 1
CEDisplay PRISON_DOOR      80   0   0   0 240 200 0 0 0 2
CEDisplay PORTRAIT_A        0   0   0 137  64  28 1 0 0 6
CEDisplay PORTRAIT_B       69   0  60 137  64  28 1 0 0 5
CEDisplay PORTRAIT_C      138   0 120 137  64  28 1 0 0 4
CEDisplay PORTRAIT_D      207   0 180 137  64  28 1 0 0 3
CEDisplay VIEWPORT          0  33   8   0 224 136 0 1 1 7
CEDisplay SPELL_CONTROLS  233  33 153 167  87  42 0 1 0 8
CEDisplay ATTACK_CONTROLS 233  77  65 165  87  45 0 0 0 9
CEDisplay TURN_LEFT       233 124   0 166  22  21 0 0 0 11
CEDisplay MOVE_FORWARD    267 124  22 166  19  21 0 0 0 10
CEDisplay TURN_RIGHT      298 124  41 166  22  21 0 0 0 12
CEDisplay SLIDE_LEFT      233 147   0 187  22  23 0 0 0 14
CEDisplay MOVE_BACKWARD   267 147  22 187  19  23 0 0 0 13
CEDisplay SLIDE_RIGHT     298 147  41 187  22  23 0 0 0 15
CEDisplay SCROLLING_TEXT    0 169   0 210 153  30 0 0 0 16
CEDisplay MARCHING_ORDER  281   0 202 210  39  29 0 0 0 17
CEDisplay OVERLAPPEDTEXT    0 169   0 210 200  30 0 0 0 16

Posted: Tue Apr 15, 2008 2:10 am
by Paul Stevens
Good work, guys!

I should point out that the WindowRight
and WindowBottom are pixel numbers,
not widths and heights. They are the
rightmost and bottommost pixels and
probably ought to be 239 instead of 240,
and so on. The numbers in the CEdisplay
are widths and heights and are given
correctly.

My next task is to try and resample
audio to 11025s/s.

Posted: Tue Apr 15, 2008 5:48 pm
by Werwolf
based on Christophes compressed portrait for 240x240 pixels this is the final version for Werwolf:
YES !!! And i must say it works VERY fine!

TOMi was very patient with me :roll:
But he never gives up and spend me a nice Time with this great game.
Also many thanks to Christophe and (of curse) Paul!

Puh, a long and extreme difficulty Text for me :wink:

cu

Werwolf

Posted: Wed Apr 16, 2008 2:31 am
by Paul Stevens
CSBwinCE10_8 attempts to resample audio
to 11025s/s. It is not perfect; it discards
a few samples at the end. But, if it works
for TOMi, then I will polish it up.

It also fixes Christophe's Save and Quit
problem.

Posted: Wed Apr 16, 2008 7:21 pm
by Paul Stevens
CSBwinCE10_9 has HideMenu and HideTaskBar
options in config.txt. It also includes
those screen configurations described in
previous posts.

Posted: Thu Apr 17, 2008 9:16 pm
by T0Mi
Again: thanks for all the work you're putting into this!

Sadly I have to tell, that none of the versions work for me.

In case you still want to find out why an outdated version works all fine,
while a version based upon it doesn't, we can carry this out using PMs. I will help in any way I can.

For me there is also an easy and obvious workaround:
After updating my OS to a more recent version and trying out if it works then, I will most likely get a new PPC.
I had that in mind anyway as there are a few very nice machines out already, having large screens with a 640x400 resolution.
(From what I've seen the needed modifications to the source code to reactivate the option to select screen size x 2 can be done even by me.)

Still, this will take it's time. I'm very much into building my own custom right now, which gives me lots of fun (never have done anything like that before).

greetings
T0Mi

Posted: Fri Apr 18, 2008 5:23 pm
by Paul Stevens
Christophe wrote:clarify how to use SCROLLING_TEXT and OVERLAPPEDTEXT ?
This is a bit backwards.....But there are
historical reasons.

Normally, we use the CEdisplay definition for the
'Scrolling Text' and we wrap text output at 153
pixels in width.

In the Menu you can select 'Overlap Text'. Then
we use the CEdisplay definition for Overlapped
Text and wrap text output at 240 pixels.

What we should do is allow the config.txt file to
define the text-wrapping length so that on the
larger screens you can use the full 320 pixels.
And get rid of the overlapped text business. It
was for a rather special case before we were
able to modify the screen configuration.

To-do list:

1) Try something else to make sounds work for TOMi
2) Modify text wrapping in config.txt.

Posted: Sat Apr 19, 2008 6:01 pm
by Paul Stevens
Christophe:

In the 'Portrait' definitions (240x320) you
put the text at X=8. That causes a few
pixels to go off the right edge. Did you do
this for a reason?

Posted: Sat Apr 19, 2008 10:23 pm
by Paul Stevens
CSBwinCE11_0.exe has no 'Overlapped Text'
definitions. You will get an error unless you
remove it from config.txt. The width of the
text area is determined by the width of the
'Scrolling text' definition. 'Overlapped text'
has been removed from the menu.

This version also has one more attempt to
fix TOMi's problem with the sound. If this
does not work then I am at a loss as to what
to try next.

To-do list:

<void>

Posted: Sun Apr 20, 2008 10:11 am
by T0Mi
This seems to be it! :D

It runs stable, it has the right sample rate and it plays the sounds nicely except for a little "chrck" after every sound.

well done!

Posted: Sun Apr 20, 2008 12:24 pm
by zoom
unbelievable how this topic went up and down and up again!
:shock: 8)