CustomGraphicsEngine CSBwin)

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

I cannot explain why most of your cases
worked. There must be something else
going on but I cannot fix something that
works.

The problem was not that SrcX was odd but rather
that it was not a multiple of 16. This was an old
restriction that I have tried to remove. The
documentation still said that SrcX must be a
multiple of 16. I have changed the documentation.

Get CSBwin10002.zip. Your pattern58 and
pattern59 both appear to work. But it does
not explain all your observations.

Edit: *****************
Some of your tests worked because of a
missing pair of parentheses in the check
for multiples of 16!!!!
kentaro-k.21
Artisan
Posts: 178
Joined: Wed Dec 17, 2003 1:39 am
Location: Osaka, Japan
Contact:

Post by kentaro-k.21 »

hi.
i prepared another proper sample for testing CSBwin10002 with non 16 aligned sourceX position (0,33,66,99,132)
it worked well!
http://homepage3.nifty.com/kkdf/images/axyzworked.png
minimal sample (CSBgraphics.dat and dungeon.dat) here if someone have interests for more views: http://homepage3.nifty.com/kkdf/axyzpattern.rar
fyi DL is here if someone have interest for source file/script of this mod, however without documenttation: http://homepage3.nifty.com/kkdf/axyz-seed.rar (you need CSBgraphics.exe and ViewportCompiler.exe utilities for build. they'll be contained in currently latest CustomGraphicsDemo21)
thanks for ggreat update Paul!


but it still has difficulty.
i tested the custom wall set again for checking D2L render result.
here is output of: http://homepage3.nifty.com/kkdf/images/d2l61.png
here is minimal file set to reproduce: http://homepage3.nifty.com/kkdf/20070117.wallset6.rar (D2L wall will be located at game start)
vert green is at 48. vert yellow is at 61. yellow line should be at most left because srcX=61 and dstX=0.
IMHO probably issue at offseting picture. mask offset and rendering seems to look correct.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

but it still has difficulty.
You will notice my lack of surprise.

Oh, well. One at a time unless I start
breaking things as fast as I fix them.
User avatar
zoom
Grand Master
Posts: 1819
Joined: Tue Sep 23, 2003 1:27 am
Location: far away but close enough

Post by zoom »

Don't wanting to disturb , but,
may I insert my idea on a custom
graphic?
I would like to have a larger squares for custom graphics
in the hands shown on the upper screen or in general.

Staves Spears, and all long poled items would slightly overlap.
The range of clicking area would stay the same(still original size16x16), but the items would look larger.(17x17 or the like)

This will likely be a big mess , so no need to implement it, but
thoughts would be fine on that.If I got my idea accross that is..

btw, cool that the custom graphics are there!
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

custom wall set again for checking D2L
CSBwin10003.zip

makes D2L look a lot better.
Awaiting the next problem........
kentaro-k.21
Artisan
Posts: 178
Joined: Wed Dec 17, 2003 1:39 am
Location: Osaka, Japan
Contact:

Post by kentaro-k.21 »

thanks for next update.
i tried CSBwin10003.
right part of D2L and D3L walls seem to hesitate to be appearing. http://homepage3.nifty.com/kkdf/images/lackd2wall.png and http://homepage3.nifty.com/kkdf/images/lackd3wall.png

i highlighted the edge of all walls. update is here: http://homepage3.nifty.com/kkdf/20070118.wallset6.rar
following wall parts seem to be good: D1, D2, D3, D0L, D1L, D3LL, D0R, D1R, D2R, D3R.
just D2L and D3L seem to lack right part.

zoooom:
it is interesting idea.
perhaps the idea may be regarded if you talk about more. e.g. the item can be traditional look when grabbing or stored in inventory bag. and itt needs to be scripted for further tasteful representation like animation when the item is in player's hand.
but it is entirely uncertain whether it'll be realized or not. however it would be worth talking.
User avatar
zoom
Grand Master
Posts: 1819
Joined: Tue Sep 23, 2003 1:27 am
Location: far away but close enough

Post by zoom »

Ah, thanks.
I don't know about scipting that much. I have some rough idea what csbuild does


For starters I will provide a screenshot where I can tell you more.
still to come, it would show you what the bigger items would look like)

Then I could tell you about some ideas, like different graphics for the snake staff.
(1.standard : item picture while held. perhaps a bigger version.
2.action: light spell :eyes of snake glow white
3.attack: brandish :eyes of snake glow red or yellow for 3 s
or for how long the attack would take place

I did not have animation in mind, but it could be done, given
there are many many possible additional pictures for the items .
Like, with four frames you could depict a nice flame weapon.

just right now I thought about some light level filter over the items.
just like the dungeon view, maybe could even use that.
so when it is dark, you do not see your items in hand..

anyway...
I do not know what would be reasonable to do/ easy to implement and wether this would not suck completely or be of great use. I just imagine it to be cool. and I like talking about that stuff! ;)

btw, weird stuff you do with the walls.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

just D2L and D3L seem to lack right part.
D2L will look better if you get
CSBwin10004.zip.

D3L is your fault, IMHO. I added one
bit to your mask and the yellow line on
the right edge appeared. Let me know
if you still think it is my error.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Snake staff - you could fake this (only the glowing eyes) by using a two-picture item. Have no charges in the item, and have an attack temporarily charge the item (for a different graphic) then remove the charges. You would not have the different glows for different attacks, but it would at least give you the partial feature!
kentaro-k.21
Artisan
Posts: 178
Joined: Wed Dec 17, 2003 1:39 am
Location: Osaka, Japan
Contact:

Post by kentaro-k.21 »

i tested CSBwin10004.
D2L is fine now!
D3L is your fault
thanks for reporting. i confirmed it's my fault.
i fixed it. originally the right part of yellow pixel wouldn't be included in D3L rect (x1=0, x2=83, srcX=32). the X of right part might be at 83+32→115. the problem pixel is at (116,yyy). i removed vert line at (116,yyy) to meet the condition of D3L rect, although the pixels are painted in original DM wallset picture.


just an idea for upper item part: http://homepage3.nifty.com/kkdf/images/ifflipweapon.png
i remembered when i saw "Snake staff - " phrase, about that a certain DM-clone may have capacity to display weapon/staff in collect direction against hand direction. but i can't remember name of clone.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

collect direction
Where do you live? Oh! Osaka!
That explains it. :wink:
User avatar
zoom
Grand Master
Posts: 1819
Joined: Tue Sep 23, 2003 1:27 am
Location: far away but close enough

Post by zoom »

flipping the offhand images (mirror) sounds like a good idea, kentaro.
kentaro-k.21
Artisan
Posts: 178
Joined: Wed Dec 17, 2003 1:39 am
Location: Osaka, Japan
Contact:

Post by kentaro-k.21 »

announce:
a custom wallset sample is almost good. almost thanks Paul for recent update of CSBwin!
in this CSBwin sample, you can easily replace dungeon with custom wall/floor/ceil without tweaking any Skin Coding and specific binary file thing. just replace bitmap file, and edit skin map in CSBuild, then launch BUILD-xxx.bat script.

2 types of skin: universal skin and classic skin
universal skin: useful to paint every wall in full scratch, but it is tough work to complete every wall! every wall in wall position(D0R,D0L,D1,D1R,D1L,D2,D2R,D2L,D3R,D3L,D3RR,D3LL) has independent 224x136(viewport size) picture, also independent for even/odd pattern.
classic skin: useful to convert exist skin from graphics.dat easily. their pictures are same format except on file format (can accept bitmap format).

currently i plan 4 skin map available in the sample.

skin001-univWallset1 ... universal test
skin002-univWallset2 ... universal test (outdoor)
skin006-classicWallset1 ... classic test
skin007-classicWallset2 ... classic test (cyan floor, green ceiling, named wall)

some screenshots here.
editing skinmap. assign skin002(outdoor wallset): http://homepage3.nifty.com/kkdf/images/csbuildskmap.png
universal skin002 folder is consisted in many pictures: http://homepage3.nifty.com/kkdf/images/wall2folder.png
classic skin007 folder has minimal skin pictures: http://homepage3.nifty.com/kkdf/images/wall7folder.png
test play. walking at outdoor(skin002): http://homepage3.nifty.com/kkdf/images/walls2.png
test play in skin007. http://homepage3.nifty.com/kkdf/images/walls7.png

p.s.
i painted skin002(outdoor) with PaintShopPro7 (using picture tube) in 2 days. i grouped each wall position in layer(like D0L,D0R,D0,D0floor). the original quality is like: http://homepage3.nifty.com/kkdf/images/walls2hireso.png
kentaro-k.21
Artisan
Posts: 178
Joined: Wed Dec 17, 2003 1:39 am
Location: Osaka, Japan
Contact:

Post by kentaro-k.21 »

here is a minimal set of tutorial/tools/samples for CustomGraphicsEngine wall sets. i hope this will be useful to extend your creativity.

http://kkdf2.sakura.ne.jp/dmfiles/SmellTools.Rev.1.rar
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”