.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

View Poll Results: Are you interested?
Yes, I'll help develop a Dominions Roguelike! 9 13.85%
Yes, I'll play a Dominions Roguelike if someone develops one. 39 60.00%
No, I'm not interested. 4 6.15%
What's a Roguelike? 12 18.46%
What's Dominions? 1 1.54%
Voters: 65. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1  
Old June 29th, 2005, 12:29 AM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default Re: Gauging interest in a Dominions Roguelike...


If you just format the text files properly, they're actually _very_ easy to parse. Either of two ways will suffice - delimitted fields, where each piece of information is separated by a rare/unused character ( for instance, the pipe symbol '|') or where each field is always a fixed width. Having done a lot of work with both, I suggest the delimitter, and an iostream extraction class that does conversion and error checking on the contents (this is vital in either case).

Either way, place the responsibility for data on the people editting it : if the formatting is wrong, bail out, preferably with an appropriate and useful error message showing the line of data, and the specific field / data that caused the error.

Otherwise, you write thousands of lines of code to compensate for user error, which is an incredible waste of programming time / effort if you aren't going to have tens of thousands of users.
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote
Reply

Bookmarks


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 05:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.