intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Feb 19, 2019 9:29 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Mon Dec 12, 2011 7:14 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
I wasn't previously aware of this place. It seems that most people bailed out of Usenet for this place. Kinda sad really. Anyhow, I thought I'd let people know that I've picked up Frotz development again. The codebase is now in a Git repository hosted at Sourceforge. The latest code supports Blorb. I've also been bringing the DOS interface up to date. The DOS interface as written with Turbo C in mind is quite different from the one written with DJGPP in mind. I've resolved those differences and now have 2.40 compiled such that the IBM PC 5150 should be able to run it. Everything works with it except compiling with sound support and saves. There's also a strange problem with Arthur causing DOSbox to freeze after a random period of time. The next step is to bring it in line with the master branch, add Blorb support and hopefully correct the aforementioned bugs in the process.

Please take a look at http://sourceforge.net/projects/frotz/ and let me know what you think.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Dec 14, 2011 3:11 am 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
I've pushed into the Master branch DOS code that should work. I'm having some trouble with a complaint of "Invalid combination of opcode and operands" relating to certain macros. If there are any people out there who grok programming with Turbo C, I'd appreciate it if you take a look and let me know what the problem and solution might be.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Dec 15, 2011 6:31 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 765
Location: Seattle
frotz wrote:
I've pushed into the Master branch DOS code that should work. I'm having some trouble with a complaint of "Invalid combination of opcode and operands" relating to certain macros. If there are any people out there who grok programming with Turbo C, I'd appreciate it if you take a look and let me know what the problem and solution might be.


The "invalid combination..." line refers to assembly language, not C. You're either using opcodes that don't exist on the older processor(s) you're compiling for, or, you're using the wrong DOS memory model. To change the latter in Turbo C, go to OPTIONS, COMPILER, CODE GENERATION, and its the left-most selection. You're probably on Small but need Medium or Compact or whatever. (DOS memory models is a subject unto itself, and I'm not an expert. I never aimed at older hardware even in 1991.)

Anyway, I can't compile any Frotz at all. (But Hello World and my own old Versus project compile, so it's not the installation.) Does the download on the link you gave above missing its makefile? Or the .PRJ project file for Turbo C? Or are you compiling Frotz with one extremely long line at the command prompt? I ask because under the /common/ subfolder there's a file called main.c which I presumed was the, ahem, main file. But it doesn't #include anything except that folder's header files.. such as the 20 or so C files that sit next to it in said folder.

I tried looking in the other folders in your download, but same problem. What am I missing here? How are you compiling it?

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Dec 15, 2011 11:03 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
The file Makefile.tc is for use with Turbo C. Typing "make -f Makefile.tc" should start the compiling process. Also, I forgot to put the latest makefile in place. The git is now at the point where the build complains about invalid combinations. The problem seems to be coming from the fact that those macros it's complaining about resolve to some assembly code. That isn't done with any of the other ports. I'm fiddling with using C instead of assembly there. Maybe if I simplify things, I'll more clearly see what needs to be done.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 16, 2011 1:10 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 765
Location: Seattle
Ah, there's the problem. There is no Makefile.tc. There is a Makefile -- no extension -- but it's clearly for UNIX and the GNU compiler. I think you gave me the wrong download link. Can you just email me the zip or tarball or whatever?

You can rewrite the asm into C of course. If you're trying to backport a 32-bit DOS app (i.e., DJGPP) to a 16-bit DOS app then you may have no choice anyway. Pull up an opcode list for the x86 line and see what shouldn't be there.

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 16, 2011 3:19 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
To get the latest source code, give your git client this url: git://frotz.git.sourceforge.net/gitroot/frotz/frotz. Please PM me your email address if this doesn't work.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 16, 2011 8:20 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
For anyone who's interested, I'm scaling back things to first make sure that the 16-bit DOS interface works completely and THEN move on to getting it to work with the trunk. In the trunk, it just doesn't want to work at all. The 2.40 interface code runs, but won't restore saved games. It also won't compile with sound support. So, if there's any of you out there who still know DOS and would like to contribute, I'd love to hear from you.

Why might you ask am I bothering with the DOS port? There's a bunch of people out there who get their jollies by running old hardware.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 16, 2011 9:33 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 2599
Is there any current relationship between the Sourceforge Frotz and the Frotz that is in, for example, Gargoyle?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 16, 2011 10:21 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 574
Location: Washington
Dannii wrote:
Is there any current relationship between the Sourceforge Frotz and the Frotz that is in, for example, Gargoyle?


The Frotz in Gargoyle is forked from Frotz 2.42. Merging stuff from there back to Unix Frotz is one of my ongoing goals.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Feb 01, 2018 10:05 am 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 122
Hi,
I tryed to compile Frotz with Turbo C++ 3.00 under Dosbox and I couldn't.
It works if I comment lines with errors.
Quote:
Error src\common\frotz.h 12: Unable to open include file 'defines.h'
Error src\common\frotz.h 13: Unable to open include file 'git_hash.h'
Error src\dos\bcinit.c 370: Undefined symbol 'VERSION' in function os_process_arguments

Error src\common\fastmem.c 881: Undefined symbol 'pc' in function restore_undo
Error src\common\fastmem.c 881: Undefined symbol 'pc' in function restore_undo


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group