Thread Tools
Old June 7, 2000, 04:26   #31
Paul
Apolytoners Hall of Fame
Emperor
 
Paul's Avatar
 
Local Time: 00:37
Local Date: October 31, 2010
Join Date: Mar 1999
Location: Zwolle, The Netherlands
Posts: 6,737
Sorry, it appears that this one still has the same problem.
Paul is offline  
Old June 7, 2000, 19:38   #32
MacUser
Prince
 
MacUser's Avatar
 
Local Time: 17:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Olathe, KS, USA
Posts: 947
Paul: I use the PC daily, I just repress the memory!

Smash: Here is the response from WinZip -

Hi, I am writing in response to your message:

>
> Do you have a Macintosh compatible version of WinZip? I have an iMac running OS 8.6.

Sorry, WinZip works only on Windows.

The Info-ZIP group produces command line Zip/Unzip software for a
variety of other platforms, including the Mac, MVS, and various versions
of Unix. I suggest you take a look at their home page at

http://www.info-zip.org/pub/infozip/

You can also check

http://garbo.uwasa.fi

which has an extensive collection of Macintosh file utilities.

Please let me know if you have any further questions.


-- Chuck Campbell, WinZip Technical Support


I find it very curious that Paul is having such problems with your text file. Perhapes some additional PC users could confirm this behavior. I have always assumed that Simple Text and applications such as Notepad were the most basic of text editors and could produce cross-platform files. Ah, but what do I know. Something is obviously amiss! Again, I had no problems with your file.

------------------
Different is GOOD!

AOL IM--JacSamDad
MacUser is offline  
Old June 7, 2000, 20:50   #33
Smash
Emperor
 
Smash's Avatar
 
Local Time: 15:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Civ2 Diehard
Posts: 3,838
finding a zip utility was/is not the problem
Smash is offline  
Old June 8, 2000, 00:42   #34
Smash
Emperor
 
Smash's Avatar
 
Local Time: 15:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Civ2 Diehard
Posts: 3,838
I give up
Smash is offline  
Old June 8, 2000, 03:52   #35
Scouse Gits
lifer
Civilization II PBEMTrade Wars / BlackNova TradersGalCiv Apolyton EmpireApolytoners Hall of FameCivilization II Succession Games
Emperor
 
Scouse Gits's Avatar
 
Local Time: 23:37
Local Date: October 30, 2010
Join Date: Nov 1999
Location: Liverpool, United Kingdom
Posts: 6,344
Regret - having the same problem - end of line markers not recognised as such by PC.
Does the Mac use the ASCII character set?


------------------
____________
Scouse Git[1]

"CARTAGO DELENDA EST" - Cato the Censor
Scouse Gits is offline  
Old June 8, 2000, 04:46   #36
Paul
Apolytoners Hall of Fame
Emperor
 
Paul's Avatar
 
Local Time: 00:37
Local Date: October 31, 2010
Join Date: Mar 1999
Location: Zwolle, The Netherlands
Posts: 6,737
It probably does, otherwise the whole text would be unreadable garbage. It is just the end-of-line markers that appear to be the problem.
Paul is offline  
Old June 8, 2000, 07:53   #37
MacUser
Prince
 
MacUser's Avatar
 
Local Time: 17:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Olathe, KS, USA
Posts: 947
I just checked the "Macworld Mac Secrets" book and confirmed that ASCII is the same for all religions whether Windows, Mac or "anything else" (Unix? ) I'll ask this to some real programers and see if they know the answer. This is really curious.

------------------
Different is GOOD!

AOL IM--JacSamDad
[This message has been edited by MacUser (edited June 08, 2000).]
MacUser is offline  
Old June 8, 2000, 08:37   #38
Tom DeMille
Prince
 
Tom DeMille's Avatar
 
Local Time: 18:37
Local Date: October 30, 2010
Join Date: Jan 2000
Location: Kingston, Ontario, Canada
Posts: 334
Hey, I'm a real programmer!

I dug around some c++ docs concerning text editors, and have found the problem.

DOS and Windows use ASCII 13 (carriage return) and ASCII 10 (linefeed character) in combination as their new line marker.

UNIX and Mac use only the linefeed character.

So straight text files are not compatible cross platform. What else is new...

Smash, if you could just toss in an ASCII 13 character everytime you hit enter, it would be appreciated.
Tom DeMille is offline  
Old June 8, 2000, 10:25   #39
Paul
Apolytoners Hall of Fame
Emperor
 
Paul's Avatar
 
Local Time: 00:37
Local Date: October 31, 2010
Join Date: Mar 1999
Location: Zwolle, The Netherlands
Posts: 6,737
Well, it's good to see that we finally know the cause of the problem and a possible solution. Smash, I hope this will help you get your scenario working on both Windows and Mac.
Paul is offline  
Old June 8, 2000, 10:57   #40
Steve Clark
King
 
Steve Clark's Avatar
 
Local Time: 17:37
Local Date: October 30, 2010
Join Date: Oct 1999
Location: Colorado
Posts: 1,555
In case you don't know how to do that, just do:

#include <iostream.h>
cout << "string\n";
or
cout << "string" << end1;
where 'string' is the text string.

j/k

[This message has been edited by Steve Clark (edited June 08, 2000).]
Steve Clark is offline  
Old June 8, 2000, 11:51   #41
Smash
Emperor
 
Smash's Avatar
 
Local Time: 15:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Civ2 Diehard
Posts: 3,838
huh?
Smash is offline  
Old June 8, 2000, 13:14   #42
Tom DeMille
Prince
 
Tom DeMille's Avatar
 
Local Time: 18:37
Local Date: October 30, 2010
Join Date: Jan 2000
Location: Kingston, Ontario, Canada
Posts: 334
I think Steve is suggesting you write yourself an app in C. A bit tricky for a non programmer. I remember using Think C for the mac a decade ago, but unfortunately don't have a mac compiler available right now. If I did I'd write a quick and dirty text editor for you.

Do you have a Java interpreter installed on your machine? I could bang off a Java text editor for you.

Or you could try http://www.mac.org/utilities/texeditplus/ . This is a mac text editor that mentions it will reformat text for MS-DOS BBSs. This might save the text in the right format.

It's interesting that the Mac doesn't have trouble with the extra carriage return character in DOS text files. I guess it just ingores it.

edit: Or, you can just tell pc people to fix the damn text file themselves. It's not hard. Just open it in wordpad (or any word processor other than notepad), and resave it as a straight text file.
[This message has been edited by Tom DeMille (edited June 08, 2000).]
Tom DeMille is offline  
Old June 8, 2000, 13:57   #43
Steve Clark
King
 
Steve Clark's Avatar
 
Local Time: 17:37
Local Date: October 30, 2010
Join Date: Oct 1999
Location: Colorado
Posts: 1,555
Actually, I was just trying to be cleverly funny. Guess it didn't work.
Steve Clark is offline  
Old June 8, 2000, 14:25   #44
Tom DeMille
Prince
 
Tom DeMille's Avatar
 
Local Time: 18:37
Local Date: October 30, 2010
Join Date: Jan 2000
Location: Kingston, Ontario, Canada
Posts: 334
quote:

#include <iostream.h>
cout << "string\n";
or
cout << "string" << end1;
where 'string' is the text string.


Oh, I just got it! Ha, ha! Good old American humour.
[This message has been edited by Tom DeMille (edited June 08, 2000).]
Tom DeMille is offline  
Old June 8, 2000, 14:59   #45
SCG
Civilization II Democracy GameCivilization II Succession GamesCivilization II Democracy Game: Red Front
King
 
SCG's Avatar
 
Local Time: 18:37
Local Date: October 30, 2010
Join Date: Jun 2000
Location: of less than all that I see
Posts: 1,055
quote:


#include <iostream.h>
cout << "string\n";
or
cout << "string" << end1;
where 'string' is the text string.


As someone who has just spend much of the last 6 hrs helping people proofread their beginning Ada and C programs, I guess I'm still in that mindset

So, actually this is a C++ program, not a C program, if anyone really wanted to try that out somewhere C would use printf statements instead, as well as a slightly different file to include. The printf statement in place of cout might have even helped Smash get the gist of the code just from context.

also, can anyone spot the typo in the alternate way to print a new line?

thats right! the 1 should be an l
(lower case 'L')


As one other side note to the actual problem, I'm surprised I didn't think of that - there are a lot of people who load their programs from notepad to UNIX and I always have them do a search and replace on all those pesky little carriage returns (^M) - they don't affect anything compilerwise, but do confuse text editors like emacs.

and my appologies to Tom and Steve - like i said, i've been spending too long today pointing out the obvious and just couldn't help myself

edit: odd - I just tried to edit this page, since the <iostream.h> was missing in my original post - but its already there???

wonder if it will show up this time :|
[This message has been edited by SCG (edited June 08, 2000).]
SCG is offline  
Old June 8, 2000, 17:23   #46
SilverDragon
Guest
 
Posts: n/a
How could you win without shake's and INs? What's the point of being able to have an extra city for only one turn? I'm curious.
 
Old June 8, 2000, 22:39   #47
Smash
Emperor
 
Smash's Avatar
 
Local Time: 15:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Civ2 Diehard
Posts: 3,838
I have no idea what you guys are talkng about so it ends here ...For now.

I tryed to make a OCC game that would have things that I think make it hard.No Shake's means Mono and cathedral slowing the effect of "we love days"

No Ike's means slower science.

Less civ means less help with techs and tribute.

I made 2 civs have vendettas but it doesn't give consistant results.

It was meant as a small puzzle just for something different.You'll notice the city is not well placed for OCC.I wanted the player to have to build a palace and have a supported settler as a result of disbanding Mingapulco.You can't disband with 1 city so it was meant to give few seconds of puzzle solving.

It can be won relatively easily depending on what "Evan" and "Venger" do.First 2 tests I was wiped out by 3 triremes of knights that "Evan" sent.I tweaked it alittle and I landed in 1930s.
Smash is offline  
Old June 10, 2000, 10:02   #48
MacUser
Prince
 
MacUser's Avatar
 
Local Time: 17:37
Local Date: October 30, 2010
Join Date: Jul 1999
Location: Olathe, KS, USA
Posts: 947
Tom, SCG and Steve: You guys are just too damn tough! Talk about "Code Warriors"! Don't want to meet you guys in a dark ally with only AppleScript at my side! It's all I can do to change the Type and Creator codes in ResEdit! This is why I bought the book "Mac Programming for Dummies" (which I never got around to reading )! FYI: it came with a free copy of CodeWarrior Lite compiler and Apples resource editor ResEdit.

I now feel enlighted and educated! Plus I get to write the authors of MacSecrets and point out their error about ASCII being cross-platform!

------------------
Different is GOOD!

AOL IM--JacSamDad
[This message has been edited by MacUser (edited June 10, 2000).]
MacUser is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 19:37.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team