Code Efficiency Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Code Efficiency « Previous Next »

Author Message
Ronald W Brierley (Ronaldwb)
Posted on Monday, October 27, 2003 - 10:53 am:   

Hello everyone,
For some time now I have been considering using the structure (if something else somethingelse) to improve the efficiency of some of my game code but I have repeatedly suffered from syntax errors. I have searched the code of games which I have downloaded but have only found one game which uses the code structure. That game is found as bigbat.zrf in the Contest100 games. Perhaps the structure is used more in puzzles but I have only downloaded a few and they do not appear to use the code. Perhaps if I study the code of bigbat I will learn to avoid my current errors. I would be surprised if the code structure is used so rarely.
Can this really be the case?
Ben
Jeff Mallett (Jeffm)
Posted on Monday, October 27, 2003 - 1:00 pm:   

I just did a text search on most of the ZRFs on our site for the whole word "else" and found 12,509 occurrences in hundreds of ZRFs.
Ronald W Brierley (Ronaldwb)
Posted on Tuesday, October 28, 2003 - 12:01 pm:   

Hello again,
Having read Jeff Mallett's reply, I found that it was the case that I did not know how to adequately use the Search Companion of XP Home to find those of my downloaded ZRF files which contain the word "else". If I selected the 'All files and folders' option and then inserted the criterion *.zrf in the 'file name' box with the 'Zillions Development' directory selected in the 'Look in' box then a long list of file names was found, but if I returned to add the extra criterion of the word "else" in the 'word or phrase' box then the result was a list of 0 length. After trying variations of the above I finally gave up. I searched the net for a 'text search freeware' program and found InfoRapid. I am extremely please with this program. It is very quick and also very easy to use. I can now find which of my downloaded ZRF files contain any particular word. The searcher must have downloaded at least one such ZRF file in order to examine the word's usage. This will probably have occurred for a word like 'else' which it now appears is frequently used.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: