New Mac OS X port for Macintosh users!

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
Sousuke
Neophyte
Posts: 6
Joined: Fri Feb 13, 2004 10:25 am
Location: Japan
Contact:

Post by Sousuke »

It does not run yet.
I don't know the reason that becomes so.
Would you compress it by sit or zip?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

http://www.dmjump.net/CSBWindowsLinux96+v5.zip

Here, this has the basic accepted v96, and has the v96v5 .exe file that is still being 'tested' that you can switch to for playing confluxII, etc
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

If Tomas has DM for MacOS X working, perhaps he wouldn't mind posting the DM package for us? That would be much appreciated, as I'd kind of like to run through it again before hopping into CSB!

Sure. The released version was 9.03 while I was testing it with 9.6.

ConfluxII does not work yet because of endian issues most probably. DM works fine (I haven't played it yet, but I could open door, choose Zed and kill the first mummy and few screamers...)

Dungeon Master for Mac OS X

-Tomas
DaveWeb
Neophyte
Posts: 7
Joined: Thu Feb 12, 2004 6:30 pm
Location: Washington State, USA
Contact:

Post by DaveWeb »

Thanks for posting the DM package... I can now enter the Dungeoun, move around, pick things up and so on. Unfortunately, nothing I do will bring up the character inventory windows. This means I cannot save, adjust inventory, sleep, etc. Is there a shortcut key or some trick I might be overlooking?
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Post by Lunever »

Hmm, the F1 to F4 keys should open the inventory like right-clicking on a character's hands or bars should do, <ctrl+s> should save tha game, and I think <ctrl+q> should quit the game (althouh I am not sure whether this is in all versions).
Parting is all we know from Heaven, and all we need of hell.
DaveWeb
Neophyte
Posts: 7
Joined: Thu Feb 12, 2004 6:30 pm
Location: Washington State, USA
Contact:

Post by DaveWeb »

Hmmm... "right-clicking" (which is a control-click on a Mac with a single-button mouse) works perfectly on my desktop Mac. So it looks as though my PowerBook is the problem. Perhaps I have the keyboard locked out while using the mouse, so I'll have to check that out.

All I can say is THANK YOU to everybody for their help. I can toss out my ailing Atari ST now that I can finally play one of the best games of all time on my Mac! I hope that Conflux II eventually makes its way to the Mac as well, as I am curious to see a new DM adventure!
Last edited by DaveWeb on Thu Feb 26, 2004 11:41 pm, edited 1 time in total.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

When you see ConfluxII you will be curious for
quite a long time. I doubt that Zyx himself remembers
everything in that dungeon. It is amazing.

The good news is that ConfluxII already works very well
on the Linux port and I see no reason it will not work
on the macintosh. The bad news is that there are a large
number of places that I added code and did not worry about
the little- / big-endian nature of the two machines. Tomas
is going to have to work these out one at a time, get the
suggested changes to me, I will install them and send him the
updates, and then we repeat the whole process until it
works. I cannot see this being finished for over a month.
He may have a test version before that, however.
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

Hmmm... "right-clicking" (which is a control-click on a Mac with a single-button mouse) works perfectly on my desktop Mac. So it looks as though my PowerBook is the problem. Perhaps I have the keyboard locked out while using the mouse, so I'll have to check that out.

Should work since I port on my G4 PowerBook and ported on G3 PowerBook before. If you don't have 2 buttons mouse, use control-click. That's what is working for me. I hold down control and tap on the trackpad.

-Tomas
User avatar
Sousuke
Neophyte
Posts: 6
Joined: Fri Feb 13, 2004 10:25 am
Location: Japan
Contact:

Post by Sousuke »

Thank you. I could play DM at last.
But It has some faults.
I want it to be improved someday.
User avatar
Sousuke
Neophyte
Posts: 6
Joined: Fri Feb 13, 2004 10:25 am
Location: Japan
Contact:

Post by Sousuke »

I found why ChaosMacOSX.rar could not be played.
Chaos Strikes Back.app/Contents/MacOS/Chaos Strikes Back<-is not Unix Executable File.
When I changed for Chaos Strikes Back (Unix Excutable File) contained in Dungeon Master.app, Chaos Strikes Back.app operated normally.
I could play both Dungeon Master & Chaos Strikes Back.
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

I found why ChaosMacOSX.rar could not be played.
Chaos Strikes Back.app/Contents/MacOS/Chaos Strikes Back<-is not Unix Executable File.
When I changed for Chaos Strikes Back (Unix Excutable File) contained in Dungeon Master.app, Chaos Strikes Back.app operated normally.
I could play both Dungeon Master & Chaos Strikes Back.


Rar seems be not suitable for packing UNIX things since it does not preserve UNIX permissions :(

-Tomas
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

Can I use the CSBuild editor on a Mac?

I may port CSBuild sometimes to Mac but unfortunately I don't have much time for that. Sorry.

-Tomas
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 may port CSBuild sometimes to Mac
I will bet against this ever happening. By anyone.
The best that will ever happen is that you can use some
sort of Windows emulator on the macintosh.

CSBuild was not written with any thought of portability.
CSBwin had a lot of portability from the start because
it WAS a port from the Atari. It is a straight Windows
program with no libraries or other interfaces. CSBuild is
an MFC application using the Document/View architecture.
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

Paul Stevens wrote:
I may port CSBuild sometimes to Mac
I will bet against this ever happening. By anyone.
The best that will ever happen is that you can use some
sort of Windows emulator on the macintosh.

CSBuild was not written with any thought of portability.
CSBwin had a lot of portability from the start because
it WAS a port from the Atari. It is a straight Windows
program with no libraries or other interfaces. CSBuild is
an MFC application using the Document/View architecture.
I thought that :lol:. Let's concentrate on Conflux. Even me wrote some simple CSB editor for Atari but I was unable to calculate the checksum.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

you could use the trick of start from an existing dungeon with checksum, and simply add/subtract the hex for ever conversion of an item or tile to a different state
Tintomara

Post by Tintomara »

Paul Stevens wrote: CSBuild was not written with any thought of portability.
CSBwin had a lot of portability from the start because
it WAS a port from the Atari. It is a straight Windows
program with no libraries or other interfaces. CSBuild is
an MFC application using the Document/View architecture.
Maybe one could conside wxWindows? It's a LGPL project (mainly for linux, I think) which claims to be "very similar to MFC". They don't use the class names of MFC, but they use the same design. Apparently some people think that it is easy to port MFC applications to linux using wxWindows. I haven't tried wx so far, but I'll read through the documentation.

This could be worth a try if there is a serious interest in porting CSBuild... It exists for windows as well. I don't know if there is a Mac version though..

/* Rebecka */

Moerator note: THe above link replaced at author's request.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Hope I got your link right. It seems to work better than
the old one.

I predict that anyone attempting to port CSBuild will be
in for a lot of work and frustration. Porting a 'static'
application might be feasible. CSBuild changes daily and
it will keep changing for a long time to come. Attempting
a port to Linux might make a good graduate student project.
For someone accustomed to working long hours for peanuts.
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

Paul Stevens wrote:DaveWeb:

I suspect that it wll be easy to play DM now that you
have CSB working. Get the CSB for Windows and
Linux version 9.6. In your directory replace the
Dungeon.dat and the Graphics.dat with the files by the
same name in the DM directory from the 9.6 release.

But that is why I asked the questions above......are the
original files used or is there a convertor? Christophe?????
Thomas???? Where are you when we need you?
No convertor needed. 9.6 version I posted as Dungeon Master works with DM files.
Zed-Head

Post by Zed-Head »

Firstly I want to give major kudos to Tomas and all those who have worked on this project. I have struggled with emulators for Atari ST and Amiga which would not support sound or save files. Now I can now play this classic in OS X without emulation! Awesome! Your efforts are majorly appreciated. :-)


Secondly, some of my keyboard controls are not working. The arrow keys work, but don't allow strafing. j k l ; , . are not working and the keypad numbers activate the spell-icons instead of movement (num lock has no effect). I wold like to assign 456123 on the numeric keypad for movement if possible. Mouse control is fine. Any advice? TIA

I'm using a Macally ikey usb keyboard with Mac OS 10.3
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

Zed-Head wrote:Secondly, some of my keyboard controls are not working. The arrow keys work, but don't allow strafing. j k l ; , . are not working and the keypad numbers activate the spell-icons instead of movement (num lock has no effect). I wold like to assign 456123 on the numeric keypad for movement if possible. Mouse control is fine. Any advice? TIA

I'm using a Macally ikey usb keyboard with Mac OS 10.3
Well, I'm porting that on my PowerBook G4 so there are no strafe keys defined. You can define them yourself in the configuration file (config.txt) inside the Resources folder of the CSB package. Download first "Full key codes" application from http://www.versiontracker.com to get the proper code for the key and then press the key you want to assign take the ASCII value and convert it to hexadecimal code. The screenshot of the simple "Full key codes" application follows:

Image

Use this code transformed to HEX with the config file.

Example: Let's do that for right arrow:

ASCII = 29

therefore 29 / 16 = 1 (huh, 16? hexadecimal 6+16=16), rest = 13 (1*16+13=29) therefore its hex value is 1D (why 1D? 1 is the result of integer division with rest and D is 13th letter of {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F} set). The 1d key is the Mac key code for right arrow. That keycode is transformed in CSB's event loop into a 47 key that gets recognized by game engine and turns party right. The code will then be:

Code: Select all

key  1 00001d 470000  ; Mac turn right
so you are expected to add and

Code: Select all

key 1 0000XX 4b0000  ; Keypad '4' = move left
key 1 0000YY 4d0000  ; Keypad '6' = move right
where XX and YY are values you get from the calculation above for two different keys.

Note: You have to fill those values :-)
Tip: If you don't want to bother with the hex translation, you can use Calculator.app and type the number you want to convert and then choose hex radix instead decimal with View->Display Format->Hexadecimal.

Cheers,

Tomas
Zed-Head

Post by Zed-Head »

Tomas,
thanks for the clear & thorough instructions.

I did as indicated, using Full Key Codes to get the ASCII code for the "5" key on my numeric keypad (53).
Then converted into hexadecimal (35). (Calculator was very handy for this.)
And finally pasted into the config.txt file (scan 1 000035 500000 ; Keypad '5' = move backward).
But still no response.

I noticed that all the keys with lines that begin "mscan" work fine (except F1-F4) and all the keys with lines that begin "scan" or "key" are unresponsive. (I don't see an entry for the arrow keys but they work too.)
I tried the above procedure with several keys on the numeric keypad and the main keyboard without success. :-( Anything else I should try?

Thanks again for the help.
tomas zahradnicky
Novice
Posts: 10
Joined: Thu Feb 26, 2004 10:45 pm

Post by tomas zahradnicky »

You can also use the scan code (already in hex) which is already shown in the Full key codes.app and then write:

Code: Select all

scan 1 0000XX YY0000
I don't have numpad, sorry, but suppose you want to move forward when you press 5 key at the top (this key has different scan code from the right one!). Full key codes shows 17 hex scan code therefore:

Code: Select all

scan 1 000017 480000


will work. For QWEASD keys the keys are defined as:

Code: Select all

scan 1 00000c 520000  ; 'Q' = turn left
scan 1 00000d 480000  ; 'W' = move forward
scan 1 00000e 470000  ; 'E' = turn right
scan 1 000000 4b0000  ; 'A' = strafe left
scan 1 000001 500000  ; 'S' = move backward
scan 1 000002 4d0000  ; 'D' = strafe right

-Tomas
User avatar
Sousuke
Neophyte
Posts: 6
Joined: Fri Feb 13, 2004 10:25 am
Location: Japan
Contact:

Post by Sousuke »

Please tell me the definition of num key.
Would you convert someone config.txt?
Image
magroader81
Neophyte
Posts: 5
Joined: Wed Mar 05, 2008 9:46 pm

Universal Binary?

Post by magroader81 »

DM/CBS runs great on ppc, but does not run at all on intel :cry:
Any chance for an Universal Binary update?
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Universal Binary?

Post by Paul Stevens »

magroader81 wrote:DM/CBS runs great on ppc, but does not run at all on intel :cry:
Any chance for an Universal Binary update?
An 'UBU' :? Not from me.

It runs fine on Intel Windows platforms.
What are you trying to run it on? And
how does it fail?
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

Sit Ubu sit!
Good dog! *Woof*
magroader81
Neophyte
Posts: 5
Joined: Wed Mar 05, 2008 9:46 pm

Re: Universal Binary?

Post by magroader81 »

Paul Stevens wrote:
magroader81 wrote:DM/CBS runs great on ppc, but does not run at all on intel :cry:
Any chance for an Universal Binary update?
An 'UBU' :? Not from me.

It runs fine on Intel Windows platforms.
What are you trying to run it on? And
how does it fail?
I am trying to run it on a OSX 10.5.2 (intel), MacMini.
It just won´t run.
I had no luck on OSX 10.4 (intel) either, however, this time the game runs. But the graphics is garbled.
Runs fine on 10.4 (PPC), G3 iMac.

Conclusion: DM/CBS is not OSX (intel) compatible, only compatible with OSX (PPC).
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

That is certainly believeable. I have
not heard from our macintosh developer
for a very long time. Unless he, or someone
else with suitable skills and willingness,
comes along, I guess you are out of luck.
magroader81
Neophyte
Posts: 5
Joined: Wed Mar 05, 2008 9:46 pm

Post by magroader81 »

Thanks for your quick answer Paul. Seems i am indeed out of luck, unless I go for emulation, but still...installing Windows only to play a game thats what, under 1 MB?
I emailed Tomas about this 6 months ago, and did not get a reply. Did not expect to get one either, but I guess he is busy.
Hope somebody will come along and fix it.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

installing Windows only to play a game thats what, under 1 MB?
I can make an especially big one....just for you :lol:
Post Reply

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